Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

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

조회 수: 1 (최근 30일)
A
A 2015년 10월 21일
마감: MATLAB Answer Bot 2021년 8월 20일
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);

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by