MATLAB: Sequence of slice() images 3d plotsimage processing How can I automatically save a sequence of slice() images? It doesn't seem to fall under the same approach that plot() images do Best Answer It is exactly the same, getframe() / imwrite(), or print(), or saveas() Related SolutionsMATLAB: How to plot this function Try this instead:x=0:10:200;y=0:0.05:1;[X,Y]=meshgrid(x,y);Z=(-0.5)*X.*(X+1).*(X-1).*((Y.^X./X)-(2*(Y.^(X-1))./(X-1))+(Y.^(X-2))./(X-2)-2./(X.*(X-1).*(X-2)));surf(X,Y,Z)rotate3d on MATLAB: Reconstructing a 3D Surface from a 2D Surface using Mesh surface plot in Matlab Hey!Use surf instead of meshLooks like this:Here it is:I = imread('2d_test_image.png');Igray = rgb2gray(I);Igray = im2double(Igray);[x, y] = size(Igray);[X, Y] = meshgrid(1:x,1:y);FV = surf(X, Y, Igray, I, 'EdgeColor', 'none');title('3D GRAY surface') % actually this is no longer a gray surface... Related Question
Best Answer