Rank: 505764 based on 0 downloads (last 30 days) and 0 file submitted

Charles Collin


Personal Profile:


Watch this Author's files


Comments and Ratings by Charles Collin View all
Updated File Comments Rating
18 Jul 2013 barwitherr(errors,varargin) This is a very simple extension of MatLab's bar function to add error bars. Author: Martina Callaghan

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');

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


04 Jul 2013 inputsdlg: Enhanced Input Dialog Box (v2.1.2) Predefined dialog box function to accept user inputs of several forms Author: Kesh Ikuma

This looks like a very useful tool. However, I noted that it has the same issue regarding font size as does inputdlg. That is, it only takes the factory default, making it impossible to change the size of the font using (e.g.) set(0, 'DefaultTextFontSize', 14), as is possible for most of the other "dlg" commands. I modified the script at line 940 to read:
'FontSize' get(0,'DefaultTextFontSize');
This makes it accept the user-definable default, but the size of the text boxes don't scale accordingly. It would be great if an updated version of the function could do this. Thanks for your attention.

Contact us