Rank: 12 based on 1290 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
24 Jun 2013 COMBNSUB Subset of all possible combinations of a fixed number of elements of a vector (v1.1, june 2013) Author: Jos (10584) combination, subset, selection, permutation, repetitions, combinations 15 1
  • 5.0
5.0 | 1 rating
06 Jun 2013 Sylvester Matrix SYLVESTER - Sylvester matrix of two polynomials (v3.0, june 2013) Author: Jos (10584) this is not working s..., mathematics, polynomial, polynomials, resultant, determinant 14 2
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 70 31
  • 4.82143
4.8 | 28 ratings
06 Mar 2013 CATSTRUCT Concatenate/merge structures (v3.0, mar 2013). Author: Jos (10584) concatenate, cell arrays, merge, combine, structs, structures 67 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 6 0
  • 5.0
5.0 | 1 rating
Comments and Ratings by Jos (10584) View all
Updated File Comments Rating
28 Jun 2013 replaceTildes Recurses through directories, finding Matlab code and replacing LHS tildes with 'ans'. Author: Daniel

I am currently rating this as one star because it should not overwrite files by default! This is potentially very dangerous.

You should copy the directory, and make the changes in the copied files. If this is implemented, I will reconsider my rating. The idea is fine btw ...

22 Jun 2013 Grammatical List Takes a cell array of strings and returns a single string with commas and "and" per standard grammar Author: Jonathan Awerbuch

No oxford comma, you mean. You should make this an option (and default to WITH oxford comma).

And is your example intended to have misspelled numbers? It suggest you're file is not to be taken too seriously.

07 Jun 2013 Closest Finds the value in an array X closest to the scalar b. Author: Matt

[~,idx] = min(abs(X(:)-b))
c = X(idx)

would do.

07 Jun 2013 Sylvester Matrix SYLVESTER - Sylvester matrix of two polynomials (v3.0, june 2013) Author: Jos (10584)

The error mentioned by Paul has been fixed in version 3.0

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

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

22 Jun 2013 COMBNSUB Subset of all possible combinations of a fixed number of elements of a vector (v1.1, june 2013) Author: Jos (10584) Simon, Jan

This is an excellent implementation of a very efficient method. Together with the exhaustive documentation this submission is useful, usable and valuable for the productive work and education. Thanks, Jos!

A tiny simplification: You do not need B(:)', because B is a row vector already.

07 Jun 2013 Sylvester Matrix SYLVESTER - Sylvester matrix of two polynomials (v3.0, june 2013) Author: Jos (10584) Jos (10584)

The error mentioned by Paul has been fixed in version 3.0

03 Jun 2013 Sylvester Matrix SYLVESTER - Sylvester matrix of two polynomials (v3.0, june 2013) Author: Jos (10584) Paul

Does not work but is easily corrected.
Change to : zeros(NQ-2,1)],zeros(NQ-1,1)); etc

03 Jun 2013 HERRORBAR Horizontal errorbar plot. Author: Jos (10584) Pearl

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
24 Jun 2013 COMBNSUB Subset of all possible combinations of a fixed number of elements of a vector (v1.1, june 2013) Author: Jos (10584) combination, subset, selection, permutation, repetitions, combinations 15 1
  • 5.0
5.0 | 1 rating
06 Jun 2013 Sylvester Matrix SYLVESTER - Sylvester matrix of two polynomials (v3.0, june 2013) Author: Jos (10584) this is not working s..., mathematics, polynomial, polynomials, resultant, determinant 14 2
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 64 33
  • 4.69231
4.7 | 13 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 70 31
  • 4.82143
4.8 | 28 ratings
06 Mar 2013 CATSTRUCT Concatenate/merge structures (v3.0, mar 2013). Author: Jos (10584) concatenate, cell arrays, merge, combine, structs, structures 67 22
  • 4.64706
4.6 | 17 ratings

Contact us