Rank: 15 based on 2364 downloads (last 30 days) and 68 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
06 Mar 2014 ISFUNCTION true for valid matlab functions (v3.1, feb 2014) Author: Jos (10584) function, isfunction, matlab function, syntax, valid, exist 28 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 24 0
03 Mar 2014 HEX2RGB Convert hexadecimal color strings to RGB values (v1.0, feb 2014) Author: Jos (10584) color, hexadecimal, conversion, rgb, colour 22 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 198 34
  • 5.0
5.0 | 25 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 18 1
  • 5.0
5.0 | 1 rating
Comments and Ratings by Jos (10584) View all
Updated File Comments Rating
27 Mar 2014 find duplicates find duplicate numbers between to vectors Author: Bas Altena

Take a look at the set functions INTERSECT, UNION, SETDIFF

21 Mar 2014 ALLCOMB All combinations of input (v4.0, feb 2014) Author: Jos (10584)

@Alexander Implementing this would require the Statistics Toolbox. However, you can easily generate the table yourself, using ALLCOMB on the indices. I assume you should be able to do something like this:

idxAB = allcomb(1:numel(A),1:numel(B))
out = [A(idxAB(:,1)) B(idxAB(:,2))]

05 Mar 2014 Hausdorff Distance Hausdorff Distance Author: Baba Dash

poorly coded: no pre-allocation, unnecessary use of for-loops, and most importantly, no useful help or internal documentation.

28 Feb 2014 Find Index Give a Index near a value searching sequentially in function of the direcction Author: David Pineda

Do you know about the function FIND? E.g.,

find (abs(Vector-Value)<Tolerance, 1 , 'first')

28 Feb 2014 GenerateDOSfilename Generates a unique string with 8 characters Author: Andreas Sprenger

Nice idea, although I will stick with my own version

filename = [datestr(now,'ddHHmmss') '.ext']

And shall we make a bet that DOS still is used in 2034?

Comments and Ratings on Jos (10584)'s Files View all
Updated File Comment by Comments Rating
25 Mar 2014 RANDSWAP randomly swap elements of a matrix Author: Jos (10584) Pernille

Thanks

21 Mar 2014 ALLCOMB All combinations of input (v4.0, feb 2014) Author: Jos (10584) Jos (10584)

@Alexander Implementing this would require the Statistics Toolbox. However, you can easily generate the table yourself, using ALLCOMB on the indices. I assume you should be able to do something like this:

idxAB = allcomb(1:numel(A),1:numel(B))
out = [A(idxAB(:,1)) B(idxAB(:,2))]

19 Mar 2014 ALLCOMB All combinations of input (v4.0, feb 2014) Author: Jos (10584) Alexander

Excellent function! Given that this function can be used to create combinations of selections from a number of categories (A1...AN), could you allow it to operate on categorical arrays? The output could be either a table (preferably) or cell array, as in the example below.

A = categorical({'A1','A2'})
B = categorical({'B1','B2','B3'})
allcomb2(A,B)

% -> Var1 Var2
% ____ ____
%
% A1 B1
% A1 B2
% A1 B3
% A2 B1
% A2 B2
% A2 B3

17 Mar 2014 CATSTRUCT Concatenate/merge structures (v4.0, dec 2013). Author: Jos (10584) Krzysztof

narginchk(1,Inf)
N = nargin ;

sorted = varargin { end };
if ischar(sorted)
narginchk(2,Inf)
assert (all (sorted == 'sorted'))
sorted = 1 ;
N = N-1 ;
else
sorted = 0 ;
end

13 Mar 2014 GetKeyWait Wait a certain time for a single keypress (v2.1, jan 2012). Author: Jos (10584) alex

excellent,very nice work!
very useful to my project
thank you very much!

Contact us