plot curve with error bars
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
best16 programmer
am 7 Jun. 2017
Beantwortet: Star Strider
am 7 Jun. 2017
I have two vectors,how can i calculate the standard deviation for each element so i can plot the error bars in the curve.
thank you
0 Kommentare
Akzeptierte Antwort
Star Strider
am 7 Jun. 2017
One approach:
x = 1:10; % Create Data (Independent Variable)
V1 = randn(1, 10); % Create Data (Row Vectors)
V2 = randn(1, 10);
V12_sd = std([V1; V2]); % Standard Deviation
V12_mean = mean([V1; V2]); % Mean
figure(1)
errorbar(x, V12_mean, V12_sd)
grid
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Bar Plots finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!