Plot surface with 3 vectors x,y,z?

92 ビュー (過去 30 日間)
maxmathlab
maxmathlab 2017 年 12 月 20 日
回答済み: Ramnarayan Krishnamurthy 2017 年 12 月 28 日
Hello,
I have 3 vectors with a few 1000 measurement points. How do I 3D plot this data where x is on the x-axis and so on? I tried comet3 and surf but can't figure it out. Played a little with meshgrid but dont think its what I want. I need to plot data were I can see that when x was 10 that y and z were some values.

回答 (1 件)

Ramnarayan Krishnamurthy
Ramnarayan Krishnamurthy 2017 年 12 月 28 日
Did you try plot3 or scatter3?
If you are looking to simply "plot" the 1000 points where the triplet (x,y,z) represents a point on the plot, you could use either of the functions above.
Example:
X = 1:5;
Y = 6:10;
Z = 11:15;
plot3(X,Y,Z,'o-')

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by