Code covered by the BSD License  

Highlights from
errorbarlogy

5.0

5.0 | 2 ratings Rate this file 23 Downloads (last 30 days) File Size: 1.56 KB File ID: #12449
image thumbnail

errorbarlogy

by Zhang Jiang

 

28 Sep 2006 (Updated 05 Oct 2006)

errorbar plot for log y scale

| Watch this File

File Information
Description

ERRORBARLOGY Show the vertical errorbar line in log y scale plot when the data error is larger than data itself.

Matlab buidin ERRORBAR does not plot the vertical errobar line in a log y scale plot when data error is larger than data itself. See the screenshot for comparion.
   
Example:
x = logspace(1,3,20);
y = 5*(1 + 0.5*(rand(1,20)-0.5)).*x.^(-2);
y_err(1:13) = y(1:13)/2;
y_err(14:20) = y(14:end)*5;
errorbar(x,y,y_err,'o');
errorbarlogy;

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
errorbarlogx.m

MATLAB release MATLAB 7.2 (R2006a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
20 Jul 2009 Yilun  
20 Jul 2009 Yilun

Easy to use.

Please login to add a comment or rating.
Updates
05 Oct 2006

Update funtion to work properly when plotting multiple errorbar plots with non errobar plots in one figure.

Tag Activity for this File
Tag Applied By Date/Time
specialized Zhang Jiang 22 Oct 2008 08:41:48
plotting Zhang Jiang 22 Oct 2008 08:41:48
errorbar Zhang Jiang 22 Oct 2008 08:41:48
log Zhang Jiang 22 Oct 2008 08:41:48
scale Zhang Jiang 22 Oct 2008 08:41:48
graphics Zhang Jiang 22 Oct 2008 08:41:48
plot Zhang Jiang 22 Oct 2008 08:41:48
errorbar Andres Haralson 27 Aug 2010 11:22:23
scale Michael 28 Sep 2010 17:41:54
errorbar ferram2 06 Jun 2011 14:29:55
scale Michael Mell 21 Sep 2011 10:51:37

Contact us at files@mathworks.com