Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

How can I move a 'gridbox' 1 unit of Z axis up or down?

1 Ansicht (letzte 30 Tage)
A
A am 21 Okt. 2015
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
Hi guys,
I want the 'gridbox' between x = -1 to -1.5 and y = -1 to -1.5 raised by 2 units on the z axis? This will make just that one gridbox higher than the rest of the surface.
Here's the sample:
x = [-2:.5:2];
y = [-2:.5:2];
Test = @(x,y)x + y;
[X,Y] = meshgrid(x,y);
Z1 = Test(X,Y);
s1 = surf(X,Y,Z1);

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by