how can I make a plot between theretival and experimental value with the standard deviation?

2 ビュー (過去 30 日間)
Hello If my calculated value is 0.351, and the experimental value is 0.621+-0.4, if I want to make a plot to show that my calculated value is within 1 sigma or 2 sigma of the experimental one

採用された回答

Thorsten
Thorsten 2017 年 4 月 10 日
編集済み: Thorsten 2017 年 4 月 10 日
h(1)= plot(1, 0.351, 'ko')
hold on
h(2) = errorbar(1, 0.641, -0.4, 0.4, 'Marker', 'x')
axis([0.9 1.1 0 1.2])
set(gca, 'XTick', []);
legend(h, {'Calculated', 'Experimental'})
  5 件のコメント
reem123
reem123 2017 年 4 月 10 日
sorry, but no plot appear
reem123
reem123 2017 年 4 月 13 日
Thank you, I understood what you did, and I get it. But I have a question please for more than one experimental data..I just add more values for your code..but the problem that I want them on the graph separated from each other(different locations) on X axis...this is my code please
h(1)= plot(1, 0.351, 'ko');
hold on;
h(2) = errorbar(1, 0.641, -0.4, 0.4, 'Marker', 'x');
h(3) = errorbar(1, 0.2, -0.1, 0.1, 'Marker', 'x');
h(4) = errorbar(1, 0.3, -0.1, 0.1, 'Marker', 'x');
h(5) = errorbar(1, 0.5, -0.2, 0.2, 'Marker', 'x');
axis([0.9 1.1 0 1.2]);
set(gca, 'XTick', []);
legend(h, {'Calculated', 'Experimental'});
axis([0.9 1.1 0 1.2]);
set(gca, 'XTick', []);
legend(h, {'Calculated', 'Experimental'});

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeErrorbars についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by