waterfall appear to be out of box

1 visualización (últimos 30 días)
Yuji Zhang
Yuji Zhang el 15 de Mayo de 2014
Comentada: Yuji Zhang el 15 de Mayo de 2014
Hi everyone,
One waterfall plot appears that the curve are for outside the axis range. See this... Does anyone know how to fix this? Thanks!
Code 1 works without adjusting z axis range:
[x,y] = meshgrid(-3:0.1:3,10:30);
z = exp(-x.^2/5^2);
figure;
waterfall(x,y,z);
Code 2 doesn't work when I adjust the z axis [x,y] = meshgrid(-3:0.1:3,10:30);
z = exp(-x.^2/5^2);
figure;
waterfall(x,y,z);
set(gca, 'zlim', [0.8 1]);
see attached picture. Thanks!

Respuestas (0)

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by