How do I insert errobar to a timeseries line, specifying the time length of the errorbars

조회 수: 4 (최근 30일)
I have a timeseries of five years of data. I need to make various line graphs with errorbars, with the errorbars in each graph by year, season and month, respectively. However, I coould not discover how to specify on the errorbar function, the period of data in which I want the errorbars.
Please, could anyone kindly help me with this? Thanks!

답변 (1개)

Peter Perkins
Peter Perkins 2022년 3월 7일
Not clar what you mean by, "with the errorbars in each graph by year, season and month, respectively", but this may get you started:
>> t = datetime(2022,1,1:10);
>> x = 10*rand(1,10);
>> e = rand(1,10);
>> errorbar(t,x,e)
  댓글 수: 1
Luís Henrique Bordin
Luís Henrique Bordin 2022년 3월 7일
Thanks, Peter. The standard error can be calculated for the whole dataset, or by separate subsets, e.g. the standar error for all days of January, February, etc. So, the value on the graph will represent the mean of all days of those month, with a errorbar together. I hope I was clearer this time.
Thanks!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Errorbars에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by