plot of 3 variables
8 ビュー (過去 30 日間)
古いコメントを表示
Hi all
I have
p=0:0.2:1
m=0:2.5:12.5
x=p./m
is it possible to have a plot of x, p, m
kindly guide
thanking in advance
lincy
2 件のコメント
回答 (2 件)
Walter Roberson
2015 年 6 月 24 日
plot(1:length(p), p, 'r', 1:length(p), m, 'g', 1:length(p), x, 'b')
this would plot p in red, m in green, and x in blue.
2 件のコメント
Walter Roberson
2015 年 6 月 24 日
What I suspect you need is
p=0:0.2:1
m=0:2.5:12.5
[P, M] = ndgrid(p, m);
X = P ./ M;
surf(p, m, X)
参考
カテゴリ
Help Center および File Exchange で Log Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!