scatter plot with showing their means and error bars
31 次查看(过去 30 天)
显示 更早的评论
Hello,
I would like to draw following graphs with Matlab. Any suggestions would be appreciated.
0 个评论
回答(1 个)
Sudheer Bhimireddy
2020-8-9
doc errorbar
Look at the matlab example: "plot error bars with no line".
2 个评论
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 Exchange 中查找有关 Errorbars 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!