scatter plot with showing their means and error bars

76 ビュー (過去 30 日間)
Joon Choi
Joon Choi 2020 年 8 月 9 日
コメント済み: Sudheer Bhimireddy 2020 年 8 月 10 日
Hello,
I would like to draw following graphs with Matlab. Any suggestions would be appreciated.

回答 (1 件)

Sudheer Bhimireddy
Sudheer Bhimireddy 2020 年 8 月 9 日
doc errorbar
Look at the matlab example: "plot error bars with no line".
  2 件のコメント
Joon Choi
Joon Choi 2020 年 8 月 9 日
I would like to show all the data points in each category and to show their mean values and standard error. The example you suggested is not what I want to have. Thank you for your effort, though.
Sudheer Bhimireddy
Sudheer Bhimireddy 2020 年 8 月 10 日
You can plot all your points in each category (from the image you posted, it seems that each x-tick is a category) and use 'hold on', then draw the plot with at mean values with errorbars.
plot(x1,z1,'ro','MarkerFaceColor','w'); %<- this shows all points
hold on;
errorbar(1,z1_mean,z1_std,'-ro','MarkerSize',10,...
'MarkerEdgeColor','r','MarkerFaceColor','r'); %<- this shows mean with standard deviation

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

カテゴリ

Help Center および File ExchangeDiscrete Data Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by