Info
此问题已关闭。 请重新打开它进行编辑或回答。
HELP About contour command
3 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(2 个)
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
0 个评论
Alex Molina
2012-7-17
1 个评论
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!