Respuesta aceptada

Akira Agata
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)

Más respuestas (0)

Etiquetas

Preguntada:

el 4 de Dic. de 2019

Respondida:

el 4 de Dic. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by