Info

この質問は閉じられています。 編集または回答するには再度開いてください。

HELP About contour command

3 ビュー (過去 30 日間)
Alex Molina
Alex Molina 2012 年 7 月 17 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
My question is this, i have X and Y points, and for each coordinate there are a Z value, this is not a function, for example:
X=2 , Y=3 and Z=6.7
There are a different vectors for each coordintes, So is a anyway to represent this grafically like contour? o in the way increase de Z value change the color of the graphic?
PS: Sorry my poor english

回答 (2 件)

Sean de Wolski
Sean de Wolski 2012 年 7 月 17 日
編集済み: Sean de Wolski 2012 年 7 月 17 日
You could use scatter3 to show a scatter plot of the data:
doc scatter3
Or you could interpolate your data to a regular grid using TriScatteredInterp and then use contour
doc TriScatteredInterp

Alex Molina
Alex Molina 2012 年 7 月 17 日
i used scatter3 and works, but my problem is the points are all with the same color, and i need diferent color while increase the Z value
  1 件のコメント
Walter Roberson
Walter Roberson 2012 年 7 月 17 日
pointsize = 8;
scatter3(X(:), Y(:), Z(:), pointsize, Z(:))

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by