Rank: 19 based on 1621 downloads (last 30 days) and 58 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
18 Jan 2010 COMBN All combinations of N elements taken from the vector V. Author: Jos (10584) repetition, elements, permutation, matrices, select, combination 106 19
  • 4.73684
4.7 | 19 ratings
04 Jan 2010 ALLCOMB All combinations of input (v1.2, jan 2010) Author: Jos (10584) repetion, permutation, matrices, select, cartesian product, combination 83 13
  • 5.0
5.0 | 10 ratings
04 Jan 2010 CELL2FLOAT converts cell array into scalar float array (v4.0, jan 2010) Author: Jos (10584) values, convert, 10584x, change, double, matrices 40 4
  • 4.5
4.5 | 2 ratings
15 May 2009 Sylvester Matrix (v1.0, may 2009) SYLVESTER - Sylvester matrix of two polynomials Author: Jos (10584) determinant, polynomials, matrix, polynomial, this is not working s..., resultant 10 0
23 Apr 2009 GetKeyWait Wait a certain time for a single keypress (v2.0, apr 2009). Author: Jos (10584) pause, timed, input, kbhit, getkey, keypress 30 7
  • 4.83333
4.8 | 6 ratings
Comments and Ratings by Jos (10584) View all
Updated File Comments Rating
09 Feb 2010 Generation of random number given the pmf n=rand_gen(x,pmf,N) Generates a random signal n oh length N from a desird pmf. Author: Furlan

The help is certainly an improvement! You could add an H1 line to assist users of LOOKFOR.

However, floating point issues are not dealt with properly : rand_gen(x,[.1 .2 .3 .3 .1],N) returns an unexpected error .

And, as Michael Chen already pointed out, there are many alternatives on the FEX, including my own:
http://www.mathworks.com/matlabcentral/fileexchange/8891

09 Feb 2010 Discrete (multinomial) distribution sampler Random number generator of a discrete (multinomial) distribution Author: Michael Chen

A case of cryptomnesia?

http://www.mathworks.com/matlabcentral/fileexchange/8891

09 Feb 2010 RANDWORD Generate a random word from an alphabet Author: Thomas

How is this different from the more simple approach:

idx = ceil(numel(alpha)*rand(n,w)) ;
words = alpha(idx)?

Note that the variable "word" is growing inside the lloop, making this algorithm potentially very slow.

A final and positive comment: the help is quite adequate with a description of the in- and outputs, the algorithm and an example. A "See Also" line, referencing RAND and RANDSAMPLE would improve it even further.

08 Feb 2010 Generation of random number given the pmf n=rand_gen(x,pmf,N) Generates a random signal n oh length N from a desird pmf. Author: Furlan

The lack of any help, comments, % symbol what so ever and the unvectorized engine makes this is poor submission. Finally, this functionality is already available here on the File Exchange.

04 Feb 2010 GINI coefficient A measure of statistical dispersion Author: Oleg Komarov

Nicely coded, with copious internal comments! As a suggestion for improvement, you could mention in the help that the coefficient can range from 0 (no dispersion, complete equality) to 1 (total inequality), as you do on the fex page. By the way, ginicoeff(ScalarValue) is now 0, but I think it should be 1, as it is total inequality since one gets all, but it is also equal ... I got confused.
And why is the correction not the default, so it truly ranges from 0 to 1?

Comments and Ratings on Jos (10584)'s Files View all
Updated File Comment by Comments Rating
02 Feb 2010 getkey Get a single keypress (v1.2 apr 2009) Author: Jos (10584) Vipperman, Jeff

Nice, but I have it inside a loop where I assign the ith value of a vector using getkey(). If I hit the CTRL key (to CTRL-C and break out of the loop), it stops pausing to accept input each time through the loop.

31 Jan 2010 getkey Get a single keypress (v1.2 apr 2009) Author: Jos (10584) Aaron

I should also add that this function doesn't wait for input. So if no keys are pressed when it is called, it is bypassed, which is great for use in a while loop.

31 Jan 2010 getkey Get a single keypress (v1.2 apr 2009) Author: Jos (10584) Aaron

Hey guys, I know Tristan and told him about this solution, and decided I'd post here in case any one else had this problem. I downloaded the Psychtoolbox (http://psychtoolbox.org/wikka.php?wakka=HomePage) which is free, and it has a command called KbCheck(). It can read keyboard input at any time even during a endless while loop. I drive a mobile robot using the WASD keys using it. Note: KbCheck outputs a weird key code, use KbName to convert to ASCII.

29 Jan 2010 HERRORBAR Horizontal errorbar plot. Author: Jos (10584) Jos (10584)

@ J B. Please see my comment of 10 dec 2009:

h = errorbar(x,y,ex) ;
set(h,'linewidth',2)

28 Jan 2010 HERRORBAR Horizontal errorbar plot. Author: Jos (10584) B, J

great, but can one change 'linewidth'?...or shall i give up trying!

Top Tags Applied by Jos (10584)
matrices, matrix, select, permutation, probability
Files Tagged by Jos (10584) View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
18 Jan 2010 COMBN All combinations of N elements taken from the vector V. Author: Jos (10584) repetition, elements, permutation, matrices, select, combination 106 19
  • 4.73684
4.7 | 19 ratings
10 Jan 2010 Min/Max selection Search for k smallest or largest elements in the array Author: Bruno Luong max, min, quicksort, kthvalue, selection, partial sort 115 4
  • 5.0
5.0 | 3 ratings
04 Jan 2010 ALLCOMB All combinations of input (v1.2, jan 2010) Author: Jos (10584) repetion, permutation, matrices, select, cartesian product, combination 83 13
  • 5.0
5.0 | 10 ratings
04 Jan 2010 CELL2FLOAT converts cell array into scalar float array (v4.0, jan 2010) Author: Jos (10584) values, convert, 10584x, change, double, matrices 40 4
  • 4.5
4.5 | 2 ratings
15 May 2009 Sylvester Matrix (v1.0, may 2009) SYLVESTER - Sylvester matrix of two polynomials Author: Jos (10584) determinant, polynomials, matrix, polynomial, this is not working s..., resultant 10 0
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com