フィルターのクリア

Can I plot 3 variables in 2d figure?

2 ビュー (過去 30 日間)
John
John 2013 年 4 月 13 日
hello, the problem is that I have 3 variables, velocity(v), acceleration (a), and speed (s) -speed is scalar, velocity is vector. SO i need to plot them on 2d figure. is that possible in matlab? I try this but don't know how to finish
k=0;
v=... (vector of 1 by 10, -ve and +ve)
s=abs(v);
for t=0:0.289:2.9
k=k+1;
a(k)=v(k)./t;
end
plot(v,a) % only 2d i dont know how to add s

採用された回答

Image Analyst
Image Analyst 2013 年 4 月 13 日
Use plot3() or scatter3().
  1 件のコメント
John
John 2013 年 4 月 13 日
thank you

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by