Errorbar(X,Y): Can X, Y have different sizes?

  • Follow


I have time series data and some of which is short while a few of them are for longer term. Since I wanted to compare the short term and long term effects, I am interested on plotting them in the same plot with errorbars. As such, errorbar(X,Y) doesnot work as Y is not a complete matrix with some elements missing. Is there a solution that is available for the scientific community?

Thanks,
Ganesh
0
Reply Ganesh 12/20/2010 5:53:05 PM

Ganesh wrote:
> I have time series data and some of which is short while a few of them 
> are for longer term. Since I wanted to compare the short term and long 
> term effects, I am interested on plotting them in the same plot with 
> errorbars. As such, errorbar(X,Y) doesnot work as Y is not a complete 
> matrix with some elements missing. Is there a solution that is available 
> for the scientific community?
....

Not sure whether you have multiple series of differing lengths or a 
series w/ missing values.

If former, should be able to use errorbar() for each series with hold on 
and see all on a single plot.

errorbar(x1,y1,e1)
hold on
errorbar(x2,y2,e2)

etc.

If the latter, afaik errorbar() (as plot and friends) will ignore NaN so 
simply fill the series to same length but w/ NaN for missing y-values.

If something yet than one of the above, clarify...

--
0
Reply dpb 12/20/2010 8:03:34 PM


That works.. Thanks.

> If the latter, afaik errorbar() (as plot and friends) will ignore NaN so 
> simply fill the series to same length but w/ NaN for missing y-values.
> 
> If something yet than one of the above, clarify...
> 
> --
0
Reply Ganesh 12/20/2010 9:28:07 PM

2 Replies
347 Views

(page loaded in 0.05 seconds)

Similiar Articles:













7/22/2012 11:00:05 PM


Reply: