Generate Wavy Fibers
Version 1.0.1 (1.94 KB) by
Ayad Al-Rumaithi
Generate random wavy fibers inside a box
Generate randomly oriented fibers wavy inside a box with example file.
function Fiber=Generate_Fiber(x,y,z,L,M,N,DTheta)
where:
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 Segments
M: Number of segments in each fiber
N: Number of fibers
DTheta: Maximum angle between subsequent fibers segments directions
Fiber: {N,1} cell array. Each containing (M+1,3) matrix containing M+1 vertices of the M segments of each fiber
Cite As
Ayad Al-Rumaithi (2024). Generate Wavy Fibers (https://www.mathworks.com/matlabcentral/fileexchange/165096-generate-wavy-fibers), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2017b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.