Rank: 15 based on 1799 downloads (last 30 days) and 68 files submitted
photo

Jos (10584)

E-mail

Personal Profile:

 

Watch this Author's files

 

Files Posted by Jos (10584) View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
06 Mar 2014 ISFUNCTION true for valid matlab functions (v3.1, feb 2014) Author: Jos (10584) function, isfunction, matlab function, syntax, valid, exist 5 1
  • 5.0
5.0 | 1 rating
03 Mar 2014 LOGICALEXPAND expand (or shrink) series in a logical vector (v2.0, feb 2014) Author: Jos (10584) logical, find, shrink, expand, increase, decrease 7 0
03 Mar 2014 HEX2RGB Convert hexadecimal color strings to RGB values (v1.0, feb 2014) Author: Jos (10584) color, hexadecimal, conversion, rgb, colour 20 0
  • 5.0
5.0 | 1 rating
18 Feb 2014 ALLCOMB All combinations of input (v4.0, feb 2014) Author: Jos (10584) matrices, all, combination, permutation, cartesian product, select 168 34
  • 5.0
5.0 | 26 ratings
30 Jan 2014 LOGICALFIND Find occurrences of consecutive non-zeros in a vector (v1.0, jan 2014) Author: Jos (10584) find, matrices, search, pattern, vector, matrix 4 1
  • 5.0
5.0 | 1 rating
Comments and Ratings by Jos (10584) View all
Updated File Comments Rating
25 Oct 2014 HERRORBAR Horizontal errorbar plot. Author: Jos (10584)

@Patricia,
you can use UISTACK on the handles returned by HERRORBAR. Something along these lines might work for you:
h = errorbar(...)
uistack(h(2),'up')

With these handles you can also change the properties of the plot symbols and the error bars.

18 Sep 2014 findInRange Find elements within many ranges. Faster than find() for large N. Useful for PSTHs and rasterplots. Author: Joseph O'Doherty

For a proper timing check, you should pre-allocate your cell array V2 before the loop.

15 Sep 2014 INSERTROWS (v2.0, may 2008) Insert rows into a matrix at specific locations Author: Jos (10584)

@AAYUSH Make sure the function is on your matlab path. Check with the command "which insert rows" to ensure this.

10 Aug 2014 GROUP2CELL group values into cells Author: Jos (10584)

@Qifan something like this should work: cat(1, cell1{:}, cell2{:})

08 Jul 2014 Insertion Sort Implementation of Insertion Sorting Algorithm in Matlab Author: Arumugam G

This submission is of educational interest only, and should therefore contain a lot more comments to be useful.

Comments and Ratings on Jos (10584) 's Files View all
Updated File Comment by Comments Rating
12 Nov 2014 UNIQUEWITHEQUALNANS Set unique, treating NaNs as equal (v2.0, mar 2009) Author: Jos (10584) Hoi Wong

Since this code is a wrapper around the builtin/unique(), the default behavior for 'first', 'last' depends on your version of MATLAB (before R2013a or R2013a and after).

You might want to update your comments so it applies to more versions. Right now the description says 'last' is the default but the code actually behaves as 'first' when I run it in R2013a or after.

Thanks.

06 Nov 2014 SLIDEFUN (v4.0, sep 2008) apply function to a moving window over a vector Author: Jos (10584) Durga Lal Shrestha

It would be good if this function checks that input is vector. Otherwise for matrix it produces erroneous values.

25 Oct 2014 HERRORBAR Horizontal errorbar plot. Author: Jos (10584) Jos (10584)

@Patricia,
you can use UISTACK on the handles returned by HERRORBAR. Something along these lines might work for you:
h = errorbar(...)
uistack(h(2),'up')

With these handles you can also change the properties of the plot symbols and the error bars.

20 Oct 2014 HERRORBAR Horizontal errorbar plot. Author: Jos (10584) Patricia

Is it possible to either change the order in which the errorbar and marker are plotted? Or is there any other fix that would remove the line that is drawn across the marker, so I can have something like -o-?
Thanks!

15 Oct 2014 HERRORBAR Horizontal errorbar plot. Author: Jos (10584) Charles

Thanks a lot, really good tool. Had a little bit of trouble figuring out how to change the marker style, color, etc because of the plotting scheme, but I got there eventually.

@Hugh, to remove the vertical lines at either end simply change the "tee" variable to 0 in line 103.

Contact us