How to make this surface?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
mc18004
el 4 de Dic. de 2019
Respondida: Akira Agata
el 4 de Dic. de 2019
z = y*x
0<x<5
x/2<y<2
0 comentarios
Respuesta aceptada
Akira Agata
el 4 de Dic. de 2019
Straight-foward solution would be like this:
x = linspace(0,5);
y = linspace(0,2);
[xGrid, yGrid] = meshgrid(x,y);
zGrid = yGrid.*xGrid;
idx = xGrid./2 < yGrid;
zGrid(idx) = nan;
figure
surf(xGrid,yGrid,zGrid)
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Grid Lines, Tick Values, and Labels 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!