| Date | File | Comment by | Comment | Rating |
|---|---|---|---|---|
| 29 Oct 2009 | GetKeyWait Wait a certain time for a single keypress (v2.0, apr 2009). | Hopkins, Jesse | Just what I was looking for |
|
| 15 Sep 2009 | GetKeyWait Wait a certain time for a single keypress (v2.0, apr 2009). | Negahbani, Ehsan | Great. Thank you Jos.
|
|
| 11 Sep 2009 | RANDP Random integers with given probabilities ( (v2.0) | Pozzi, Francesco | I've tried this small experiment: N = 100000; % sample size
%%%%%%%%%%%%%%%%% Y1 = randp(w, N, 1); % Try Jos function
%%%%%%%%%%%%%%%%% Y2 = gDiscrPdfRnd(w, N, 1); % Try Gianluca Dorini's function
%%%%%%%%%%%%%%%%% % Check if empirical standard deviations are coherent with theretical ones
%%%%%%%%%%%%%%%%% It looks as though both functions statistically behave very well. They are both excellent functions. Thank you. |
|
| 04 Sep 2009 | MATCHROW (v1.1, may 2008) Match elements in the rows of a matrix | Romero, Mauricio | ||
| 04 Sep 2009 | RANDP Random integers with given probabilities ( (v2.0) | Pozzi, Francesco | Wow, it really is a nice function, very fast and efficient. It is exactly what I was looking for. Thank you. |
|
| 11 Aug 2009 | INSERTROWS (v2.0, may 2008) Insert rows into a matrix at specific locations | Oldenhuis, Rody | I agree with John; this should be part of standard matlab. Well documented, short & simple, vectorized and ample documentation & comments; excelent. |
|
| 06 Aug 2009 | ALLCOMB All combinations of input | Asoni, Andrea | very useful. it is possible to have the exact same thing for symbolic objects (i am working with tomSym)? |
|
| 17 Jul 2009 | CATSTRUCT Concatenate structures (v2.2, oct 2008). | Otterson, Scott | This works well. I agree with Jeremy that recursive concatenation would be an advantage. It would also be useful to concatenate arrays and cells at the leaf nodes in the case when the fieldnames match (I've had to do this many times). But it works for what I'm doing at the moment. Thanks! |
|
| 01 Jul 2009 | PADCAT concatenate vectors with different lengths by padding with NaN (v1.0, feb 2009) | Johns, Laurence | ||
| 21 Jun 2009 | RANDP Random integers with given probabilities ( (v2.0) | Baiz, Carlos | Works great! |
|
| 19 Jun 2009 | ALLCOMB All combinations of input | Jun, Tsinghua | so powerful, it is what I've been looking for~~ |
|
| 04 Jun 2009 | PADCAT concatenate vectors with different lengths by padding with NaN (v1.0, feb 2009) | Conover, Kent | Works as advertised - many thanks! |
|
| 14 May 2009 | CIRCULANT (v2.0, feb 2009) (yet another, but fast) Circulent Matrix | Fierro, Massimo | ||
| 09 May 2009 | RANDSWAP randomly swap elements of a matrix | Grey, Kevin | Great! This is exactly what I wanted. For network analysis of Quadratic Assignment Procedure (QAP), this step is pre-required. |
|
| 06 May 2009 | GRIDXY (v2.2 feb 2008) plot horizontal and vertical grid | Jos | @Chiara. You can use, e.g.,
hth
|
|
| 06 May 2009 | GRIDXY (v2.2 feb 2008) plot horizontal and vertical grid | Chiara | Very useful - but i'd need to add a legend with entries for the vertical bars. EG i have a histogram, and two vertical bars, say one for the mean and one for the median. How can i do this? |
|
| 06 May 2009 | GRIDXY (v2.2 feb 2008) plot horizontal and vertical grid | Jos | @Phil, in 3D the lines would become planes. Is this what you want? You can also take a look at REFLINEXYZ to see if that better fills your needs:
|
|
| 05 May 2009 | GRIDXY (v2.2 feb 2008) plot horizontal and vertical grid | Phil | Hello everyone, this code is exactly what I need. Unfortunately I need it in three dimensions. Does any body have an idea? Otherwise I will try to extend this m-file but I have a feeling that this will take me lots of time thanks Philipp |
|
| 05 May 2009 | HERRORBAR Horizontal errorbar plot. | Jordan | How do I put vertical end markers on my horizontal error bars? The code worked great to put them in but I have data points that overlap substantially so I need end markers to show their bounds. thanks |
|
| 08 Apr 2009 | CATSTRUCT Concatenate structures (v2.2, oct 2008). | Schreiber, Gabriel Akira | great work, may the sun always shine on you. |
|
| 07 Apr 2009 | RUNMEAN Version 3.0 (sep 2006) Very fast running mean (aka moving average) filter | Winkler, Thomas | ||
| 06 Apr 2009 | KTHVALUE select the k-th smallest element in a (randomized) list | Jos | @Luigi: To be honest, I suggest that you use SORT in all cases ... the gain in using KTHVALUE is small. And it is not so much the value of K that determines its running time. This submission is to be regarded as a programming exercise. |
|
| 06 Apr 2009 | UNIQUEWITHEQUALNANS Set unique, treating NaNs as equal (v2.0, mar 2009) | Jos | @Hoi Wong: apparently TMW changed the internals of UNIQUE, so it is no longer backward compatible. I will update this function shortly. |
|
| 05 Apr 2009 | UNIQUEWITHEQUALNANS Set unique, treating NaNs as equal (v2.0, mar 2009) | Wong, Hoi | Great tool. But you cannot just pass [] into unique as second argument. I modified it for my own use, but I'd encourage the original author to update it instead of having me posting a minor modification of your work. :) |
|
| 05 Apr 2009 | KTHVALUE select the k-th smallest element in a (randomized) list | Giaccari, Luigi | Nice One, Well commented and written, it is also fast for high K/Numel(L) ratio, but I thing for a smaller K, 1-2-3 , brute search would be faster. So if I can suggest an improvement I would switch to brute search in those cases. Am I wrong? |
|
| 03 Apr 2009 | GRIDXY (v2.2 feb 2008) plot horizontal and vertical grid | Wong, Hoi | Great Program. It'd be even better if it can accept an axes handle as its first input. For the moment, since I need it in a hurry, I tapped into your code and changed this: function hh = gridxy(hca, x,varargin) if(isempty(hca))
|
|
| 23 Mar 2009 | COMBN All combinations of N elements taken from the vector V. | Baiz, Carlos | Thanks! |
|
| 13 Mar 2009 | RANDPERMFULL Random full permutation (derangement) (v2.1, march 2009) | us | one of the typical josians:
|
|
| 09 Mar 2009 | INSERTROWS (v2.0, may 2008) Insert rows into a matrix at specific locations | Rubi | excellent file n.n thanks a lot, i had a terrible headache trying to use a for with this t=[t(1,:);[1 1];t(2:end,:)] !! |
|
| 23 Feb 2009 | NEARESTPOINT NEARESTPOINT - find the nearest value in another vector | Ashby, Michael | Simple to use and understand. Thanks for the code and helpful documentation. |
|
| 19 Feb 2009 | PERMPOS all possible permutations of M values in N positions | Anders | Exactly what is needed when finding syndromes for the corresponding bit error patterns when making a decoder for block codes |
|
| 18 Feb 2009 | FACTORIALRATIO Ratio of factorials, as in (a!b!c!...) / (d!e!f!g!...) | D'Errico, John | Sorry, I forgot to point out what I feel to be one of the best features of this code - the copious internal comments that explain how it works. I've often argued that the best MATLAB code should aim for a 1-1 ratio of comments to lines of code. That is, each line of code should have an associated comment line, at least in those places where the code is doing something tricky. This code goes beyond my aim. People interested in how to write good comments should look at what the author did here and learn from it. |
|
| 18 Feb 2009 | FACTORIALRATIO Ratio of factorials, as in (a!b!c!...) / (d!e!f!g!...) | D'Errico, John | Good help as you would expect from Jos. Well written. An interesting solution for the computation itself. |
|
| 07 Feb 2009 | CIRCULANT (v2.0, feb 2009) (yet another, but fast) Circulent Matrix | Jos | An update that resolves a bug in forward shifts has been submitted. Please wait for version 2.0. |
|
| 06 Feb 2009 | CIRCULANT (v2.0, feb 2009) (yet another, but fast) Circulent Matrix | Aldahiyat, Husam | Wow. |
|
| 05 Feb 2009 | CIRCULANT (v2.0, feb 2009) (yet another, but fast) Circulent Matrix | D'Errico, John | Efficient, well written, clean code. Excellent help, examples. Appropriate error checks. It offers either form of circulant matrix, with the proper choice of default. |
|
| 03 Feb 2009 | NDLINSPACE (v1.1, feb 2008) Generalized LINSPACE: linearly spaced values between mutliple points | AMBROISE, Steeve | I tried to compare this function to linspaceNDim with this code: clear
tic, c1 = linspaceNDim(a, b, N);toc
tic, c2 = ndlinspace(a, b, N);toc I find that linspaceNDim is 20 times faster then ndlinspace. Steeve. |
|
| 22 Jan 2009 | CATSTRUCT Concatenate structures (v2.2, oct 2008). | Jeremy | Nice work, just one comment:
s1.a = 1;
s2.a = 101; s3 = catstruct(s1,s2) gives s3.a = 101, s3.b = 2.
s1.A.a = 1;
s2.A.a = 101; gives s3.A = a : 101.
|
|
| 04 Jan 2009 | STOPLOOP (v1.0, jun 2008) Shows stop button to interrupt loops | Mike | Relax, have a home brew. Free country with Free opinions to agree/dissagree with.. All problems are hard problems until they are solved. Thanks for the submission! |
|
| 28 Dec 2008 | STOPLOOP (v1.0, jun 2008) Shows stop button to interrupt loops | Khurram | It was very useful to me. Thanks Jos |
|
| 20 Dec 2008 | YESNO let user choose between yes or no | Eaton, Kenneth | @Marco, The utility of this program should be very clear. I don't know why you are unable to understand it. This function allows you to pause a running program to wait for a yes ('y' press) or no ('n' press) keyboard input from the user. The example Jos gives in his description shows one possible use for it: the piece of code above generates a random number every time the user chooses 'y', and stops when they choose 'n'. Your comment makes absolutely no sense. Yet again, it appears that you have somehow missed the point and are trying to punish the author with a bad rating even though it is you who has misinterpreted things. Your mention of a "half instant" and a "mechanic instant" is gibberish. Your review is quite poor. |
|
| 20 Dec 2008 | YESNO let user choose between yes or no | boyer, alain | ||
| 20 Dec 2008 | YESNO let user choose between yes or no | Poor, V. | ||
| 20 Dec 2008 | YESNO let user choose between yes or no | P, M | While loop is a wait for a keypress and I have two ways: if the selection is y=yes then break, if the selection is n=no then break. It is a double possible input equal at the same output (break); 2=1. This is the while loop. There is other. If my input is been “y” then isyes=1 and if is been “n” then isyes=0; I write yes and it is yes, I write no and it is no, in both cases break to quit wait-loop. Conclusion: yes=yes and no=no with yes=no because there is break. One (yes=yes) and one (no=no) with one=one (yes=no) because there is break. This is half simulation of the mechanic instant (the inanimated instant, possible because exist users): break is the half, the stopper, the reference of the half-instant and I can choose the positive or I can choose the negative; in the first case is a positive instant (in the half) and in the second case is a negative instant (in the half).
|
|
| 19 Dec 2008 | CountMember Count members. | sherer, Pete | Excellent. It could be better if you can also return the logical index as a second output. |
|
| 11 Dec 2008 | CATSTRUCT Concatenate structures (v2.2, oct 2008). | Daniel | ||
| 21 Nov 2008 | HERRORBAR Horizontal errorbar plot. | Hansen, Kim | PLEASE PLEASE Help I am almost about to give up. How do I remove those crappy connection lines that herrorbar produces. In the normal errorbar i can just write errorbar(x,y,e,'LineStyle','none') where e offcourse is the error on the y values which in my case should be added to the x values. So I really want the command to be like this herrorbar(x,y,e,'LineStyle','none') but that does not work.
|
|
| 14 Nov 2008 | ALLCOMB All combinations of input | fabio | easy things are always the best! Great! |
|
| 06 Nov 2008 | RANDPERMBREAK (v1.1, nov 2008) randomize the order of elements within sections of a vector | Jos | In v1.0 the last example should read:
|
|
| 27 Oct 2008 | PERMPOS all possible permutations of M values in N positions | Jos | Amanda, could you contact me directly? See any of my recent submissions for an address. Jos |
|
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