How to create one errorbar for multiple data points?
Ältere Kommentare anzeigen
Hello,
i want to plot a x-vector (1,100) and a y-vector (1,100) with an errorbar. I have already calculated the single value for the standard deviation of the y-vector. This y-vector has been measured 100 times, so i just need one standard deviation for the 100 values of y.
I tried to do this with:
x = ones(1,100);
y = ...;
error = 4.17e-04;
errorbar(x,y,error,'.');
1 Kommentar
VBBV
am 3 Feb. 2021
error variable must be of same size as x and y see the doc page https://in.mathworks.com/help/matlab/ref/errorbar.html
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Errorbars finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!