필터 지우기
필터 지우기

Change value at axis ?

조회 수: 1 (최근 30일)
empy
empy 2015년 4월 23일
답변: Adam 2015년 4월 23일
Hi,
I have a 81x200 double which i want to plot with surf(). Since my matrix is 80 column wide the values at x axis is from 0 to 81. In practice, i would like the xaxis to say -40 to 40 but with the same surf plot just changing the values shown on x-axis in the plot.
If i use axis ([- 40 40 0 200 ]) i will get no values from -40 to 0...
Can someone please help me!
Regards

채택된 답변

Adam
Adam 2015년 4월 23일
surf(X,Y,Z,C)
allows you to specify the x and y range of your data as the first two arguments (there is a version without the C too if you don't have colour data to explicitly define).

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by