Rank: 13 based on 1525 downloads (last 30 days) and 64 files submitted
photo

Jos (10584)

E-mail

Personal Profile:
Professional Interests:
neuroscience, physics, mathematics

 

Watch this Author's files

 

Files Posted by Jos (10584) View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
09 Apr 2013 COMBN (4.3) All combinations of N elements taken from the vector V. Author: Jos (10584) combination, select, permutation, elements, matrices, repetition 87 31
  • 4.82143
4.8 | 28 ratings
09 Apr 2013 COMBNSUB (1.0) Subset IX of all combinations of N elements of a vector V Author: Jos (10584) combination, subset, selection, permutation, repetitions, combinations 29 0
06 Mar 2013 CATSTRUCT Concatenate/merge structures (v3.0, mar 2013). Author: Jos (10584) concatenate, cell arrays, merge, combine, structs, structures 80 22
  • 4.64706
4.6 | 17 ratings
13 Feb 2013 NCHOOSECRIT (V1.0 feb 2013) returns those subsets (= combinations of elements of a set) that fulfill a specific criterion Author: Jos (10584) combinations, pick, subsets, selection, criterion, function 7 0
  • 5.0
5.0 | 1 rating
25 Oct 2012 FACTORIALRATIO Ratio of factorials, as in (a!b!c!...) / (d!e!f!g!...) (version 2.0, oct 2012) Author: Jos (10584) factorial, product, large numbers, ratio, division, infinite 4 4
  • 5.0
5.0 | 1 rating
Comments and Ratings by Jos (10584) View all
Updated File Comments Rating
22 Mar 2013 ALLCOMB All combinations of input (v3.0, may 2012) Author: Jos (10584)

@Ofer To combine strings with doubles you can use a cell array. You can use allcomb to retrieve the indices, as in

D = [10 11] % doubles
S = {'s1','s2','s3'}
ix = allcomb(1:numel(D), 1:numel(S))

11 Mar 2013 CATSTRUCT Concatenate/merge structures (v3.0, mar 2013). Author: Jos (10584)

Thanks Christophe for pointing out the changed behavior of unique! I will fix this soon.

06 Mar 2013 CATSTRUCT Concatenate/merge structures (v3.0, mar 2013). Author: Jos (10584)

@Tor Inge Birkenes
I see your problem! An update is being submitted ...

28 Feb 2013 CATSTRUCT Concatenate/merge structures (v3.0, mar 2013). Author: Jos (10584)

@Tor Inge Birkenes
This behaviour is intended. CATSTRUCT merges separate structures containing different(!) field names into 1. For instance, it works perfectly for the initial example given in Loren's blog.

19 Feb 2013 set1limtight set ylim tight for the current xlim range of a plot (xlim stays unchanged); incl. option for xlim Author: Bart van Oort

Nice idea! However, ...
(1) It would be nice to be able to pass axes handles to the function

(2) a more robust approach would be:
function setxtight(ah)
% ... argument/error checks etc. go here ...
L = get(ah,{'ylim','zlim'}) ;
axis(ah,'tight') ;
set(ah,'ylim',L{1},'zlim',L{2}) ;

(3) The help section is broken (did you check what the user sees after typing "help setxtight"

(4) I suggest to combine both set##tight functions in a single submission.

Comments and Ratings on Jos (10584)'s Files View all
Updated File Comment by Comments Rating
19 Apr 2013 ALLCOMB All combinations of input (v3.0, may 2012) Author: Jos (10584) singh, raj

superb, i was trying for this problem, but this Ans solved my problem within second

16 Apr 2013 NCHOOSECRIT (V1.0 feb 2013) returns those subsets (= combinations of elements of a set) that fulfill a specific criterion Author: Jos (10584) Blatt Vital, Rossella

22 Mar 2013 ALLCOMB All combinations of input (v3.0, may 2012) Author: Jos (10584) Jos (10584)

@Ofer To combine strings with doubles you can use a cell array. You can use allcomb to retrieve the indices, as in

D = [10 11] % doubles
S = {'s1','s2','s3'}
ix = allcomb(1:numel(D), 1:numel(S))

21 Mar 2013 getkey Get a (single) keypress (v2.0, june 2012) Author: Jos (10584) Darnell

Great program. Is there a way to merge this program with the timer element previously implemented in the getkeywait program so that you can use a time limit for each of the multiple key presses?

21 Mar 2013 ALLCOMB All combinations of input (v3.0, may 2012) Author: Jos (10584) Rozen, Ofer

great function. how can i combine strings with doubles?

Top Tags Applied by Jos (10584)
matrices, matrix, permutation, select, rand
Files Tagged by Jos (10584) View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
29 Apr 2013 Min/Max selection Search for k smallest or largest elements in the array Author: Bruno Luong min, sorting, max, partial sort, quicksort, selection 67 32
  • 4.66667
4.7 | 12 ratings
09 Apr 2013 COMBN (4.3) All combinations of N elements taken from the vector V. Author: Jos (10584) combination, select, permutation, elements, matrices, repetition 87 31
  • 4.82143
4.8 | 28 ratings
09 Apr 2013 COMBNSUB (1.0) Subset IX of all combinations of N elements of a vector V Author: Jos (10584) combination, subset, selection, permutation, repetitions, combinations 29 0
06 Mar 2013 CATSTRUCT Concatenate/merge structures (v3.0, mar 2013). Author: Jos (10584) concatenate, cell arrays, merge, combine, structs, structures 80 22
  • 4.64706
4.6 | 17 ratings
13 Feb 2013 NCHOOSECRIT (V1.0 feb 2013) returns those subsets (= combinations of elements of a set) that fulfill a specific criterion Author: Jos (10584) combinations, pick, subsets, selection, criterion, function 7 0
  • 5.0
5.0 | 1 rating

Contact us