File Comment by Comment
21 Nov 2014 Adjust error bar width Adjust error bars width in an errorbar plot to a ratio of the x-axis or a length (x-axis units). Adam

Always loved this function, but seems to be broken by 2014b :-(

10 Nov 2014 Adjust error bar width Adjust error bars width in an errorbar plot to a ratio of the x-axis or a length (x-axis units). John Trimper

I've used/loved this function for years, but something's going wrong for me tonight. Also the first time I've used it with MatLab 2014b (64bit).

With x values of [1:4], errorbar_tick is moving my 4th point over to an x-value of .08, so the updated series of x values becomes [1 2 3 .08]. I'm totally boggled. Any ideas?

04 Nov 2014 Adjust error bar width Adjust error bars width in an errorbar plot to a ratio of the x-axis or a length (x-axis units). Cengiz Gunay

Perfect!

28 Oct 2014 Adjust error bar width Adjust error bars width in an errorbar plot to a ratio of the x-axis or a length (x-axis units). Josef PĂ¶rnbachr

17 Jul 2014 Adjust error bar width Adjust error bars width in an errorbar plot to a ratio of the x-axis or a length (x-axis units). Arnab Banerjee

Works great. For a graph with many errorbar plots this works:
>> h = get(gca,'Children');
>> % h is an array of plot handles
>> errorbar_tick(h(n),200); % etc.

21 Nov 2013 Adjust error bar width Adjust error bars width in an errorbar plot to a ratio of the x-axis or a length (x-axis units). Dan

Works great for my linear axis. Thanks for sharing.

03 Jul 2013 Adjust grid color Adjust x, y and/or z grid color Marius

12 May 2013 Adjust error bar width Adjust error bars width in an errorbar plot to a ratio of the x-axis or a length (x-axis units). LDELBENE

What about if the x axis is in log scale?

08 Feb 2013 Adjust error bar width Adjust error bars width in an errorbar plot to a ratio of the x-axis or a length (x-axis units). J

Note that if you simply find and replace "x" with "y" throughout the code, it then works on horizontal error bars generated by, for example, errorbar_x.

Josh

15 Oct 2012 Adjust error bar width Adjust error bars width in an errorbar plot to a ratio of the x-axis or a length (x-axis units). Emily

31 Aug 2012 Polar/cartesian into degree north reference Set of function to convert polar/cartesian coordinates into degrees north and inversely. janez

cart2compass engine can be simplified - you don't need three 'find'-s.

degN: angle in degree north system (N = 0 degrees, E = 90 degrees)
deg: cartesian angle (E = 0 degrees, N = 90 degrees)

then it follows:

degN = 90 - deg;
idx = find(degN < 0);
degN(idx) = degN(idx) + 360;

output:
deg =

0 45 90 135 180 225 270 315 360

degN =

90 45 0 315 270 225 180 135 90

regards!

15 Aug 2012 Adjust error bar width Adjust error bars width in an errorbar plot to a ratio of the x-axis or a length (x-axis units). Amanda Whitmire

I really like this function, but I wish it also worked on horizontal error bars (FEX function herrorbar). Otherwise, this is very handy.

03 Jul 2012 Adjust error bar width Adjust error bars width in an errorbar plot to a ratio of the x-axis or a length (x-axis units). Min Liu

Solved my long-standing problem. Thank you~

25 Apr 2012 clear except... clear workspace except prescribed variables Piyush

thanks for the file!!

26 Mar 2012 Adjust error bar width Adjust error bars width in an errorbar plot to a ratio of the x-axis or a length (x-axis units). James Herman

16 Feb 2012 Student distribution value This function retrieve the student distribution value for a given alpha and degree of freedom value. Andy Daubenspeck

Hi Arnaud, I just downloaded your student-t table lookup program and cannot figure out where to get teh function "nanmin"--it is not in any of my libraries and does not present on a Matlab Central search. Thanks for any help.

14 Jan 2012 clear except... clear workspace except prescribed variables Gijs

21 Nov 2011 Adjust error bar width Adjust error bars width in an errorbar plot to a ratio of the x-axis or a length (x-axis units). Felipe G. Nievinski

You might want to insert this at line # 39:

if ~isscalar(h)
arrayfun(@(h) errorbar_tick(h,w,xtype), h);
return;
end

15 Nov 2011 Adjust error bar width Adjust error bars width in an errorbar plot to a ratio of the x-axis or a length (x-axis units). Felipe G. Nievinski

It's great that this function operates on the handle output by the errorbar function, rather than duplicating what the errorbar function already does.

30 Aug 2011 Adjust error bar width Adjust error bars width in an errorbar plot to a ratio of the x-axis or a length (x-axis units). Frank Coumans

27 Jul 2011 Adjust error bar width Adjust error bars width in an errorbar plot to a ratio of the x-axis or a length (x-axis units). Tom Etzer

04 May 2011 clear except... clear workspace except prescribed variables Martin Lenz

many users don't have a version like r2008a or newer. this function is also necessary. thank's a lot.

26 Mar 2011 Adjust error bar width Adjust error bars width in an errorbar plot to a ratio of the x-axis or a length (x-axis units). Lin Li

27 Jul 2010 Adjust error bar width Adjust error bars width in an errorbar plot to a ratio of the x-axis or a length (x-axis units). Anton Daneyko

06 Jul 2010 Adjust error bar width Adjust error bars width in an errorbar plot to a ratio of the x-axis or a length (x-axis units). Tim DuBois

11 Jun 2010 Adjust error bar width Adjust error bars width in an errorbar plot to a ratio of the x-axis or a length (x-axis units). Tobias

Thanks for sharing your solution! It works fine as long as I one have one error bar series in a plot but I can't get it to work when I have more (as in> errorbar, hold on, errorbar). Do you have a fix for this?

14 Feb 2010 Adjust error bar width Adjust error bars width in an errorbar plot to a ratio of the x-axis or a length (x-axis units). Max

Works great! Thanks a lot!

13 Dec 2009 Adjust error bar width Adjust error bars width in an errorbar plot to a ratio of the x-axis or a length (x-axis units). alex m

good idea, but I'm new to matlab and am unsure of the variables h and xtype, could someone post an example?

08 Oct 2009 Adjust error bar width Adjust error bars width in an errorbar plot to a ratio of the x-axis or a length (x-axis units). Dan Knudsen

Thanks very much! Easy to use and works great.

One quick tip, which is relatively obvious but might be nice to add to the help: If you'd like to get rid of the ticks entirely, it's as easy as calling: errorbar_tick(h,0,'units')

14 Aug 2009 Adjust error bar width Adjust error bars width in an errorbar plot to a ratio of the x-axis or a length (x-axis units). Arnaud Laurent

Re: thanks for your input Sathish, you're right the script wasn't made for log scale. I'll update the file to take care of that.

31 Jul 2009 Adjust error bar width Adjust error bars width in an errorbar plot to a ratio of the x-axis or a length (x-axis units). Sathish Krishnan

cool job!! but the feature does not retain when I change linear scale to log scale(i.e. the width is wider in log scale and is uncontrollable)

04 Jun 2009 Adjust error bar width Adjust error bars width in an errorbar plot to a ratio of the x-axis or a length (x-axis units). Joey Doll

18 Mar 2009 Adjust error bar width Adjust error bars width in an errorbar plot to a ratio of the x-axis or a length (x-axis units). Moritz

Nice work! This has driven me crazy in the past, but not any more .

10 Dec 2008 clear except... clear workspace except prescribed variables Federico Ang

not everyone uses r2008a if you people would only realize that...

17 Jun 2008 clear except... clear workspace except prescribed variables

You've saved my project...

14 Apr 2008 clear except... clear workspace except prescribed variables

If these two well-known reviewers tell the truth, you should remove this submission.

14 Apr 2008 clear except... clear workspace except prescribed variables

yet another one of these KEEP-ers...
note: r2008a (finally) introduces CLEARVARS with these options

clearvars -except v1 v2 ...
clearvars -except -regexp p1 p2 ...
clearvars v1 v2 ... -except -regexp p1 p2 ...
clearvars -regexp p1 p2 ... -except v1 v2 ...

us

14 Apr 2008 clear except... clear workspace except prescribed variables

This functionality has been posted to the FEX many times, e.g., keep, keep2, keep3. This functionality also exists as part of MATLAB itself starting with R2008a, i.e.,

clearvars -except v1 v2 ... clears all variables except for those specified following the -except flag. Use the wildcard character '*' in a variable name to exclude variables that match a pattern from being cleared. clearvars -except X* clears all the variables in the current workspace, except for those that start with X, for instance.