error bar from xlsx
6 ビュー (過去 30 日間)
古いコメントを表示
Abdullah Al Alhareth
2019 年 10 月 7 日
コメント済み: Walter Roberson
2019 年 10 月 7 日
Hello
I have data from excel and I imported and everything going fine except error bar doesn't work
I have an error bar in column 3, this is the first time I use it.
Thank you in advance.
A=importdata('value.xlsx')
x=A.data(:,2)
b=A.data(:,1)
err=A.date(:,3)
S1=plot(x,b,err,'sk','MarkerFaceColor','k')
error(x,b,err)
0 件のコメント
採用された回答
Walter Roberson
2019 年 10 月 7 日
The function to plot error bars is errorbar() not error()
13 件のコメント
Walter Roberson
2019 年 10 月 7 日
filename = 'value.xlsx';
A = importdata('value.xlsx');
x = A.data(:,2);
b = A.data(:,1);
err = A.data(:,3);
plot(x, b, 'sk', 'MarkerFaceColor', 'k')
errorbar(x, b, err)
その他の回答 (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!