I need to generate random shapes that are similar to the pattern of the white stripes in the image i am uploading.... enter image description here

Any ideas or algorithms on how to do this ?? The software I am going to use is matlab

有帮助吗?

解决方案

Well I decided to use the spiral suggested in the previous comments...

t = linspace(0,(rand()*4 +1)*pi,100);
k = rand()/2;
laminatedx = t.*cos(t) + k*rand(size(t));
laminatedy = t.*sin(t) + k*rand(size(t));
h = plot(laminatedx,laminatedy);
set(h,'linewidth',30);
set(h,'LineStyle','-.');
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top