MATLAB: MatLab code for generating a surface as shown in the attached figure: an ellipse in the X-Y plane is twisted by 90deg as it progresses along Z-axis.

axis changingcurve fitting

Best Answer

As an approximation:
[TH,R] = ndgrid(linspace(0,pi/2,200),linspace(10,22,200));
Z = sin(50*TH);
[X,Y,ZZ] = pol2cart(TH,R,Z);
surf(X,Y,ZZ,'edgecolor','none')
axis equal
view(-35,66)
Related Question