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

2 vues (au cours des 30 derniers jours)
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

Réponse acceptée

Thorsten
Thorsten le 10 Avr 2017
Modifié(e) : Thorsten le 10 Avr 2017
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 commentaires
reem123
reem123 le 13 Avr 2017
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'});

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Errorbars dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by