フィルターのクリア

Why does not all my data is displayed in the errorbar plot

1 回表示 (過去 30 日間)
Raffael
Raffael 2016 年 4 月 27 日
回答済み: Star Strider 2016 年 4 月 27 日
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');

採用された回答

Star Strider
Star Strider 2016 年 4 月 27 日
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 件)

カテゴリ

Help Center および File ExchangeErrorbars についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by