Rank: 228 based on 397 downloads (last 30 days) and 1 file submitted
photo

Martina Callaghan

E-mail
Company/University
University College London
Lat/Long
51.538635, -0.101385

Personal Profile:

 

Watch this Author's files

 

Files Posted by Martina Callaghan
Updated   File Tags Downloads
(last 30 days)
Comments Rating
29 Oct 2014 Screenshot barwitherr(errors,varargin) This is a very simple extension of MatLab's bar function to add error bars. Author: Martina Callaghan errorbar, error, bar, bar chart, plotting, graph 397 40
  • 4.88
4.9 | 25 ratings
Comments and Ratings by Martina Callaghan View all
Updated File Comments Rating
29 Oct 2014 barwitherr(errors,varargin) This is a very simple extension of MatLab's bar function to add error bars. Author: Martina Callaghan

Now updated for 2014b - thanks Jiri for the linke.

17 Sep 2014 barwitherr(errors,varargin) This is a very simple extension of MatLab's bar function to add error bars. Author: Martina Callaghan

Hi WH,

I do not know why it wouldn't work in 2014b. Something similar was reported for 2013b though it worked in previous versions and in 2014a. I do not use 2014b so haven't tested. Perhaps a Matlab issue that will be ironed out.

16 Sep 2014 barwitherr(errors,varargin) This is a very simple extension of MatLab's bar function to add error bars. Author: Martina Callaghan

Hi Parto,

For example:
h = barwitherr(randn(3,4), randn(3,4));
set(h(1), 'FaceColor','r')
set(h(2), 'FaceColor','g')

The first parameter will be red and the second parameter will be green.

12 Feb 2014 barwitherr(errors,varargin) This is a very simple extension of MatLab's bar function to add error bars. Author: Martina Callaghan

Hi Clare, yes, you can change the line width via:
[hBox hErr] = barwitherr(errY, y);
set(hErr(:), 'LineWidth', 2)

20 Jan 2014 barwitherr(errors,varargin) This is a very simple extension of MatLab's bar function to add error bars. Author: Martina Callaghan

Hi Cui, use asymmetric error bars (example in header) and set one error to 0.

Comments and Ratings on Martina Callaghan's Files View all
Updated File Comment by Comments Rating
17 Dec 2014 barwitherr(errors,varargin) This is a very simple extension of MatLab's bar function to add error bars. Author: Martina Callaghan Wasim

Any chance you could add an option to control the errorbar tick width, as this code used to do before Matlab 2014b kicked in:
http://www.mathworks.com/matlabcentral/fileexchange/22826-adjust-error-bar-width/content/errorbar_tick.m
Thanks!

16 Dec 2014 barwitherr(errors,varargin) This is a very simple extension of MatLab's bar function to add error bars. Author: Martina Callaghan Barbara

29 Oct 2014 barwitherr(errors,varargin) This is a very simple extension of MatLab's bar function to add error bars. Author: Martina Callaghan Martina Callaghan

Now updated for 2014b - thanks Jiri for the linke.

28 Oct 2014 barwitherr(errors,varargin) This is a very simple extension of MatLab's bar function to add error bars. Author: Martina Callaghan Jiri

The fix for 2014b is here:
http://www.mathworks.com/matlabcentral/answers/158899-barweb-in-2014b-doesn-t-work-any-more

Love it!

28 Oct 2014 barwitherr(errors,varargin) This is a very simple extension of MatLab's bar function to add error bars. Author: Martina Callaghan Francesco

As mentioned by others, error bars don't show properly on the new 2014b...

Contact us