File Exchange

image thumbnail

Generate Fiber

version 1.0.1 (2.16 KB) by Ayad Al-Rumaithi
Generate random fibers inside a box


Updated 18 Nov 2019

View Version History

View License

Generate randomly oriented fibers inside a box with example file.

1-function Fiber=Generate_Fiber(x,y,z,L,N): Generate fibers inside a box
2-function Plot_Fiber(x,y,z,Fiber): Plot fibers


x=[x1 x2]: x boundaries of the box
y=[y1 y2]: y boundaries of the box
z=[z1 z2]: z boundaries of the box
L: Length of fibers
N: Number of fibers
Fiber: (N,6) matrix of fiber coordinates with (:,1), (:,2) and (:,3) are x,y, and z coordinates of one end and (:,4),(:,5) and (:,6) are x,y, and z coordinates of the other end.

Cite As

Ayad Al-Rumaithi (2021). Generate Fiber (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)

Xujiang Chao

Ayad Al-Rumaithi

Hi Amanzhol, please check this paper:

Fang, Qin, and Jinhua Zhang. "Three-dimensional modelling of steel fiber reinforced concrete material under intense dynamic loading." Construction and Building Materials 44 (2013): 118-132.

Amanzhol Kurmashev

Hi there! thank for you for this great model!
If it's possible, can you also add a brief description to some of the lines in the code? Or maybe refer to the relevant math, sources?
Especially, for the matrix Dr.
Thank you!!!

Ayad Al-Rumaithi

Hi Jeeva. Unfortunately I don’t have code for that. But I have code for aggregate or particles packing generator:

Jeeva Muthulingam

hi i am jeeva i want generate RVE with two inclusions can u tell me how can i do that

MATLAB Release Compatibility
Created with R2017b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!