I want to make a 3-D surface plot without contour lines of the function but I keep receiving a Matrix dimensions must agree error

4 visualizaciones (últimos 30 días)
% 3)Make a 3-D surface plot without contour lines of the function .
z = peaks(exp(2*(x-1).^2+(y+2).^2));
peaks(25);
colormap(pink) % change color map
shading interp

Respuesta aceptada

Saravanan Sengottuvel
Saravanan Sengottuvel el 9 de Abr. de 2021
x = linspace(1,10,1000);
y = linspace(1,10,1000);
z = peaks(exp(2*(x-1).^2+(y+2).^2));
peaks(25);
colormap(pink) % change color map
shading interp
Try this code.

Más respuestas (0)

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by