Plot Surface when Z is not a function of X and Y

조회 수: 6 (최근 30일)
OoM
OoM 2015년 1월 17일
편집: Meva 2016년 8월 26일
Hi everyone.
I am trying to plot my data in 3D surface. However, it currently does not work since my X,Y, and Z are independent. Z is not F(X,Y). I also try to use meshgrid but still does not work. The reason that I want to plot surface because my scatter plot points are trade-off. Thus, if i can show it in surface, it will be easier to interpolate my trade-off. Do I have any other ways to use surf function?
Thank you very much.

답변 (1개)

Image Analyst
Image Analyst 2015년 1월 17일
What relationship is there between z and x and y? What is z? Is it a 2D matrix? Is it a vector? Is it a volumetric array, like a CT or MRI image?
  댓글 수: 11
Torsten
Torsten 2016년 8월 26일
t=0:0.01:2;
x=0:0.01:1;
surf(x,t,u1array);
does not work for u1array being 201x101 ?
That's surprising.
Best wishes
Torsten.
Meva
Meva 2016년 8월 26일
편집: Meva 2016년 8월 26일
Thanks Torsten. My t and x arrays are very above my code and somehow it did not put the right axes limits. Now it is working. Thanks so much.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by