plotting 4 variables in same graph

i have four variables
h=[0.01 0.02 0.04 0.06 0.09 0.17 0.29 0.51 0.67 0.84];
sa=[31.85 31.84 31.81 31.79 31.76 31.68 31.56 31.35 31.18 31.01];
a=[68.14 68.14 68.14 68.14 68.14 68.14 68.14 68.14 68.14 68.14];
sd=[-3.80 -3.70 -3.60 -3.50 -3.40 -3.30 -3.20 -3.10 -3.00 -2.90];
i want to plot them in single graph. "h","sa", and "a" are dependent on "sd". also want to see any relationship of all variables with "sd"

 採用された回答

dpb
dpb 2016 年 6 月 1 日

0 投票

plot(sd,[h;sa;a].')
legend('H','SA','A')
xlabel('SD')
Finish 'salt to suit'...

4 件のコメント

Nabeel
Nabeel 2016 年 6 月 1 日
Thanks dear for helping me out, but i want to plot them in 3d
dpb
dpb 2016 年 6 月 1 日
Don't have sufficient data.
Nabeel
Nabeel 2016 年 6 月 2 日
how much data is required for that
dpb
dpb 2016 年 6 月 2 日
You've only got one independent variable with three dependent ones???

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

質問済み:

2016 年 6 月 1 日

コメント済み:

dpb
2016 年 6 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by