MATLAB: X Y grids on 2D surface plot grid I'm facing problem in making visible the grids for the x and y axis. Her is a simple exemple: [X,Y,Z] = peaks(25); surf(X,Y,Z) shading interp; grid on view(2) Please, any help? Best Answer If you want to see the grid lines, do not use shading interpJust do: [X,Y,Z] = peaks(25);figuresurf(X, Y, Z)grid onview(2)and the grid lines will be visible,. Related SolutionsMATLAB: How to draw a cylinder with Z axis length greater than 1 Try this:[X,Y,Z] = cylinder(1, 10);Z(2,:) = Z(2,:) * 10; % Cylinder 10 Units Longfigure(1)surf(X, Y, Z)grid onaxis equal MATLAB: Removing Z-Axis in 3D plot(plot3) Try this: x = randn(1, 100); % Create Datay = randn(1, 100); % Create Dataz = randn(1, 100); % Create Datafigureplot3(x, y, z)Ax = gca;Ax.ZAxis.Visible = 'off';Ax.ZGrid = 'off';Ax.Color = 'none';Use your own data. Related Question3D imagesc functionDisplay a shifted gridHow to plot given plane in matlab (It will be 3d)How to plot a 3D surface from a non square matrix
Best Answer