animation - How to limit x-axis of 3D animated mesh in MATLAB -
i have animated 3d mesh of sine wave, want limit axis specific ranges.
here piece code:
[x,t] = meshgrid(x,t); j=1; while 1 j=j+1; y = a*sind(2*pi*f*(j/100+(x*t)/wl)); mesh(y); f(j) = getframe; end movie(f);
the values of variables a,f,t , wl predefined user
i want limit x-axis 10 20, can show me how it?
call xlim after draw mesh.
xlim([10 20])
Comments
Post a Comment