You know the definition of you x, y and z axis. If you want to swap axis, why don't you change the x,y,z symbol in your equation and re-generate the plot.
Or you can use view() to set the viewpoint.
Or you can use the "Rotate 3D" button on the figure to rotate the figure to what you want, and then use the view() to get the viewpoint.
Or I modified your code.
clear
c=1;
t=0.2;
y=linspace(0,c,100);
z=t*c/0.2*(0.2969*sqrt(y/c)-0.1260*(y/c)-0.3516*(y/c).^2+0.2843*(y/c).^3-0.1015*(y/c).^4);
x=y;
[X,Z]=meshgrid(x,z);
surf(x,y,Z);
hold on;
surf(x,y,-Z);
xlabel('x');ylabel('y');zlabel('z');
Best Answer