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: Errorbar(X,Y): Can X, Y have different sizes? - comp.soft-sys ...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 eff... errorbars in both axes?? - comp.soft-sys.matlabErrorbar(X,Y): Can X, Y have different sizes? - comp.soft-sys ... errorbars in both axes?? - comp.soft-sys.matlab Errorbar(X,Y): Can X, Y have different sizes? - comp.soft ... different size of vectors - comp.soft-sys.matlabErrorbar(X,Y): Can X, Y have different sizes? - comp.soft-sys ... adding vectors of different length - comp.soft-sys.matlab ... Errorbar(X,Y): Can X, Y have different ... errorbar on x and y axis - comp.soft-sys.matlabErrorbar(X,Y): Can X, Y have different sizes? - comp.soft-sys ... box plots with 2 different y axes - comp.soft-sys.matlab ... errorbar on x and y axis - comp.soft-sys ... Nonparametric, paired test with unequal sample size? - comp.soft ...Errorbar(X,Y): Can X, Y have different sizes? - comp.soft-sys ... Nonparametric, paired test with unequal sample size? - comp.soft ... Errorbar(X,Y): Can X, Y have ... Multiple Series on a Bar Graph with different x and y values ...Errorbar(X,Y): Can X, Y have different sizes? - comp.soft-sys ... Multiple Series on a Bar Graph with different x and y values ... Errorbar(X,Y): Can X, Y have different ... How do you plot opaque circles with error bars? - comp.soft-sys ...The "errorbar" function creates error bars just fine (e.g., errorbar(x,y,e,'ko','LineStyle','none')), but the white circles it plots are transparent and therefore let the ... adding vectors of different length - comp.soft-sys.matlab ...> What does "add" mean, if the vectors have different sizes?! > > Kind regards ... variable y which are vectors of equal length at ... for x and y will have different ... Image Stitching and Mapping - comp.soft-sys.matlab... them I want to 'map' on the scale of a different ... given the label 'frame_0': % step size: vec_step_x = x_grid(2,1) - x_grid(1,1); % The step in both the x and the y ... shapefile contour plot - comp.soft-sys.matlabI can plot X and Y using mapshow, but not X,Y, and z... ... to a set of three vectors (X, Y, and Year_total) each having size 15597x1. ... banks present college loan for different ... Errorbar(X,Y): Can X, Y have different sizes? - comp.soft-sys ...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 eff... errorbar_x - File Exchange - MATLAB Central... X or Y. This M-file can be used for plotting the spread in the D_50-value of the particle size ... different markers and legend. Try this example and you'll know what I mean: errorbar_x ... 7/22/2012 11:00:05 PM
|