Why does not all my data is displayed in the errorbar plot
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Raffael
am 27 Apr. 2016
Beantwortet: Star Strider
am 27 Apr. 2016
Hi I have the following script to plot a errorbar graph but my mean value and std for the date 460 are not displayed. Can someone tell me why?
%%Script für Graphic Produktion aus den Daten von Benis Masterthesis
clc
clear
%Data insert aus Thesis Seite 38-39
datalab303=[1.2E7 4.53E8 8.20E8, 3.70E8;7.15E6, 3.28E8, 4.80E8, 5.4E8];
datalist303=[1.05E5, 3.95E4, 1.05E4, 1.25E3; 1.20E5, 9.05E4, 8.35E3, 2.60E3];
datalab460=[5.55E6, 2.55E7, 45E7, 4E7;1.10E7, 2.5E6, 2.5E7, 1.3E7];
datalist460=[1.30E5, 3.50E2, 1E2, 1E2;1.25E5, 4.60e3, 1E2, 1E2];
time=[0 24 48 120];
%Mittelwert berechnen
meanlab303=mean(datalab303);
meanlab460=mean(datalab460);
meanlist303=mean(datalist303);
meanlist460=mean(datalist460);
%Standartabweichung berechnen
stdlab303=std(datalab303);
stdlab460=std(datalab460);
stdlist303=std(datalist303);
stdlist460=std(datalist460);
figure
errorbar(time,meanlab303,stdlab303,'color','r')
hold on;
errorbar(time,meanlist303,stdlist303,'color','r')
errorbar(time,meanlab460,stdlab460,'color','m')
errorbar(time,meanlist460,stdlist460,'color','g')
axis([-10 130 1E1 1E9]);
set(gca,'yscale','log');
0 Kommentare
Akzeptierte Antwort
Star Strider
am 27 Apr. 2016
This could be the problem:
set(gca,'yscale','log');
If the ‘mean value and std for the date 460’ are less than or equal to zero, they will not be displayed on a logarithmic scale.
0 Kommentare
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!