Rank: 597 based on 229 downloads (last 30 days) and 3 files submitted
photo

Qi An

E-mail

Personal Profile:
Professional Interests:
statistics, signal processing, machine learning, pattern recognition, classification, regression

 

Watch this Author's files

 

Files Posted by Qi View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
04 Feb 2014 Screenshot Plot data with error bars on both x and y axes plot data with error bars along both x and y axes Author: Qi An errorbar, statistics 193 12
  • 4.0
4.0 | 5 ratings
22 Feb 2013 Screenshot Align two time-stamped data streams in time Align two time-stamped data streams in time Author: Qi An align, time, data stream, data alignment 19 0
  • 5.0
5.0 | 1 rating
14 Feb 2013 Screenshot Forest plot for meta-analysis or sub-group analysis Plot a forest plot for meta-analysis or sub-group analysis Author: Qi An meta analysis, forest plot, odds ratio, relative risk, statistics 17 0
Comments and Ratings by Qi View all
Updated File Comments Rating
21 Feb 2014 Plot data with error bars on both x and y axes plot data with error bars along both x and y axes Author: Qi An

@ B.M.

I don't have the problem you mentioned. I tried the example below and multiple plots can be drawn on the same plot:
x = 1:10;
xe = 0.5*ones(size(x));
y = sin(x);
ye = std(y)*ones(size(x));
H=errorbarxy(x,y,xe,ye,{'ko', 'b', 'r'});
hold on;
y=cos(x);
H=errorbarxy(x,y,xe,ye,{'ko', 'r', 'b'});
hold off;

If you still have problem, either leave comment here or email me @ anqi2000@gmail.com.

As for the second question, see my example above again. If you use 'ko-' in the first element of the formatting string, data points are connected. Instead, if you use 'ko', data points are plotted in circles and isolated.

04 Feb 2014 Plot data with error bars on both x and y axes plot data with error bars along both x and y axes Author: Qi An

Sebastian, you can use the handles of main plot/errorbars to customize your plot.

04 Feb 2014 Plot data with error bars on both x and y axes plot data with error bars along both x and y axes Author: Qi An

Florian, great suggestion. I have changed my codes to allow customization of main plot using formatting string. See help for more details.

16 Jan 2014 Plot data with error bars on both x and y axes plot data with error bars along both x and y axes Author: Qi An

Eric, sorry for late response. Your suggestions are great. I have changed the output structure to make it more accessible. See help for more details.

24 Sep 2013 Plot data with error bars on both x and y axes plot data with error bars along both x and y axes Author: Qi An

You are right, Emily. I am an idiot. Fixed file uploaded.

Comments and Ratings on Qi's Files View all
Updated File Comment by Comments Rating
21 Feb 2014 Plot data with error bars on both x and y axes plot data with error bars along both x and y axes Author: Qi An An, Qi

@ B.M.

I don't have the problem you mentioned. I tried the example below and multiple plots can be drawn on the same plot:
x = 1:10;
xe = 0.5*ones(size(x));
y = sin(x);
ye = std(y)*ones(size(x));
H=errorbarxy(x,y,xe,ye,{'ko', 'b', 'r'});
hold on;
y=cos(x);
H=errorbarxy(x,y,xe,ye,{'ko', 'r', 'b'});
hold off;

If you still have problem, either leave comment here or email me @ anqi2000@gmail.com.

As for the second question, see my example above again. If you use 'ko-' in the first element of the formatting string, data points are connected. Instead, if you use 'ko', data points are plotted in circles and isolated.

14 Feb 2014 Plot data with error bars on both x and y axes plot data with error bars along both x and y axes Author: Qi An B.M.

For some reason I'm not able to hold and draw multiple of these plots on the same figure :( Also I can't seem to specify (none) in S....always get my data points connected.

04 Feb 2014 Plot data with error bars on both x and y axes plot data with error bars along both x and y axes Author: Qi An An, Qi

Sebastian, you can use the handles of main plot/errorbars to customize your plot.

04 Feb 2014 Plot data with error bars on both x and y axes plot data with error bars along both x and y axes Author: Qi An An, Qi

Florian, great suggestion. I have changed my codes to allow customization of main plot using formatting string. See help for more details.

22 Jan 2014 Plot data with error bars on both x and y axes plot data with error bars along both x and y axes Author: Qi An Rückerl, Florian

Nice function!

@Sebastian
you can change line 132 in the m-file from:
h=plot(x,y, 'color', color{1}); % main plot
to:
h=plot(x,y,color{1});

This will plot the main data in the way you specify it in the first field of your color description.

Example:

errorbarxy(x,y,errx,erry,{'ok','r','b'});

will plot your data as black circles with red and blue error bars. If you want lines on top of that change 'ok' to '-ok'.

Take care,
Florian

Contact us