How can I plot the mean and standar deviation of two variables?
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Paula Agudelo
am 9 Mär. 2018
Kommentiert: Paula Agudelo
am 9 Mär. 2018
I have the mean of two variables and the standard deviation of the same variables, how can I plot error bars of this data so it looks something like this? I have used errorbar function but it doesn't work. Than you.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/171102/image.jpeg)
1 Kommentar
Jos (10584)
am 9 Mär. 2018
" it doesn't work" is rather meaningless here; you wouldn't be asking this question otherwise ;)
Better tell us which error you got, or why the result was different from what you expected, etc.
Akzeptierte Antwort
Von Duesenberg
am 9 Mär. 2018
You could start like this:
meanVal = [.6, .6];
sdVal = [.4, 0.4];
errorbar(meanVal, sdVal, 'o');
set(gca, 'XLim', [0, 3], 'YLim', [0, 1.2])
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Errorbars finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!