How can I change the radius of the spiral so it varies along the length from 0 to 1?
y=0:0.5:100; n=length(y); x=cos(y/100*10*pi);z=sin(y/100*10*pi); X=[zeros(1,n);x]; Y=[y;y]; Z=[zeros(1,n);z]; surf(X,Y,Z); alpha(0.5); view(75,15);
3d plots
y=0:0.5:100; n=length(y); x=cos(y/100*10*pi);z=sin(y/100*10*pi); X=[zeros(1,n);x]; Y=[y;y]; Z=[zeros(1,n);z]; surf(X,Y,Z); alpha(0.5); view(75,15);
Best Answer