How to plot a mean value as a function of specific value pairs ?
1 ビュー (過去 30 日間)
表示 古いコメント
How can I plot the following data in a nice plot?
a=[ [1 2], [2 3], [4 5] ]; mean= [ 5.43, 6.78, 5.66];
Thank you
回答 (1 件)
Massimo Zanetti
2017 年 2 月 10 日
編集済み: Massimo Zanetti
2017 年 2 月 10 日
First, notice that in Matlab a=[ [1 2], [2 3], [4 5] ] equals a=[1,2,2,3,4,5]. I guess, you meant to associate each entry of mean=[5.43, 6.78, 5.66] with one coordinate couple (x,y) in a.
To do that, just define your X and Y and plot mean against them:
X=[1,2,4];
Y=[2,3,5];
mean=[5.43,6.78,5.66];
plot3(X,Y,mean,'*');
grid on;
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!