Rank: 94 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:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Martina
Updated   File Tags Downloads
(last 30 days)
Comments Rating
18 Jul 2013 Screenshot Bar Chart with Error Bars This is a very simple extension of MatLab's bar function to add error bars. Author: Martina Callaghan bar, error, errorbar, bar chart, plotting, graph 397 20
  • 4.90909
4.9 | 11 ratings
Comments and Ratings by Martina View all
Updated File Comments Rating
24 Jun 2013 Bar Chart with Error Bars This is a very simple extension of MatLab's bar function to add error bars. Author: Martina Callaghan

Mossi, see the help entry for the file and the help entry for bar (dictates what kind of plots can be created).

You appear to have four parameters in three conditions. So, your data (y) and errors (errY) should each be held in a 3x4 matrix.
h = barwitherr(errY, y);

Use the handles "h" to tailor figure properties/appearance.

22 May 2013 freezeColors / unfreezeColors Use multiple colormaps per figure! Version 2, now works for many types of objects, not only images. Author: John Iversen

Thanks! Super useful.

22 May 2013 COLORMAP and COLORBAR utilities (Sep 2009) MATLAB color utilities including COLORMAP join and interpolation; freeze and fit COLORBAR, etc. Author: Carlos Adrian Vargas Aguilera

Thanks! Super useful.

05 Oct 2012 fit_ellipse Find the best fit for an ellipse using a given set of points (a closed contour). Author: Ohad Gal

26 Jan 2012 errorbarxy Errorbarxy allows the user to plot both horizontal and vertical errorbars. Author: James Rooney

Comments and Ratings on Martina's Files View all
Updated File Comment by Comments Rating
18 Jul 2013 Bar Chart with Error Bars This is a very simple extension of MatLab's bar function to add error bars. Author: Martina Callaghan Collin, Charles

Very nice function. I changed the last bit (starting at line 107) like so to get rid of the dot in the middle of the error bar.

if nRows > 1
for col = 1:nCols
% Extract the x location data needed for the errorbar plots:
x = get(get(handles.bar(col),'children'),'xdata');
% Use the mean x values to call the standard errorbar fn; the
% errorbars will now be centred on each bar; these are in ascending
% order so use xOrder to ensure y values and errors are too:
ebhandle = errorbar(mean(x,1),values(xOrder,col),lowerErrors(xOrder,col), upperErrors(xOrder, col), '.k');
set(ebhandle, 'Marker', 'none');

end
else
x = get(get(handles.bar,'children'),'xdata');
ebhandle = errorbar(mean(x,1),values,errors,'.k');
set(ebhandle, 'Marker', 'none');

end

12 Jul 2013 Bar Chart with Error Bars This is a very simple extension of MatLab's bar function to add error bars. Author: Martina Callaghan Cherkasov Nikolay

Unfortunately it does not work when one deals with the only group. Even the modified built-in example does not work ( y = randn(1,4); errY = zeros(1,4,2); errY(:,:,1) = 0.1.*y; errY(:,:,2) = 0.2.*y; barwitherr(errY, y); )
In order to solve this problem, line 118 should be modified to provide errors more explicitly - like this
errorbar(mean(x,1),values,values-errors(:,:,1),errors(:,:,2)-values,'.k')

12 Jul 2013 Bar Chart with Error Bars This is a very simple extension of MatLab's bar function to add error bars. Author: Martina Callaghan Cherkasov Nikolay

Unfortunately it does not work when one deals with the only group. Even the modified built-in example does not work ( y = randn(1,4); errY = zeros(1,4,2); errY(:,:,1) = 0.1.*y; errY(:,:,2) = 0.2.*y; barwitherr(errY, y); )
In order to solve this problem, line 118 should be modified to provide errors more explicitly - like this
errorbar(mean(x,1),values,errors(:,:,1),errors(:,:,2),'.k')

24 Jun 2013 Bar Chart with Error Bars This is a very simple extension of MatLab's bar function to add error bars. Author: Martina Callaghan Callaghan, Martina

Mossi, see the help entry for the file and the help entry for bar (dictates what kind of plots can be created).

You appear to have four parameters in three conditions. So, your data (y) and errors (errY) should each be held in a 3x4 matrix.
h = barwitherr(errY, y);

Use the handles "h" to tailor figure properties/appearance.

24 Jun 2013 Bar Chart with Error Bars This is a very simple extension of MatLab's bar function to add error bars. Author: Martina Callaghan Mossi

Thank you so much for the useful function. I could not create a special plot though. Here is the link to the plot picture:

https://www.dropbox.com/s/jn45qasmr8zec8a/Photo%202013-06-24%201%2024%2005%20AM.png

I have created this plot in Excel but could not use Matlab to do it. Could you please guide me on how to use your function for plotting this?

Top Tags Applied by Martina
bar, bar chart, error, errorbar, graph
Files Tagged by Martina
Updated   File Tags Downloads
(last 30 days)
Comments Rating
18 Jul 2013 Screenshot Bar Chart with Error Bars This is a very simple extension of MatLab's bar function to add error bars. Author: Martina Callaghan bar, error, errorbar, bar chart, plotting, graph 397 20
  • 4.90909
4.9 | 11 ratings

Contact us