plotting data with and without errorbars
11 ビュー (過去 30 日間)
古いコメントを表示
Hi!
I'm trying to plot my data with matlab. The problem is that I'd like to plot, on the same graph, my data with errorbars, and a curve without it. Could anyone help me with this?
It's probably very simple but I couldn't find a solution in the matab help nor on google.
Thanks in advance!
Aurélie
0 件のコメント
採用された回答
Arnaud Miege
2011 年 5 月 20 日
3 件のコメント
Arnaud Miege
2011 年 5 月 20 日
Use hold on:
X = 0:pi/10:pi;
Y = sin(X);
E = std(Y)*ones(size(X));
errorbar(X,Y,E)
hold on
Z = cos(X);
plot(X,Z)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Errorbars についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!