Search Comments and Ratings

go

Comments and Ratings

   
Date File Comment by Comment Rating
25 Mar 2009 multidimensional cell-based bsxfun generalization Preliminary M-ary singleton expansion based upon cell arrays sequentially sent to user function. Author: michaelB brost brost, michaelB

Does anyone have example mex c/c++ code for rev. 2007a or later which demonstrates how to invoke an anonymous function defined in the caller's workspace from a mex called from the same workspace??? Thanks mike

23 Feb 2009 vectorCounter Iteraterates from start vector to finish vector. Author: michaelB brost Jos (10584)

A few suggestions for improvement:
- check that all necessary output arguments are returned. For instance, this function has hardly any use when called with less than 4 output arguments
- make use of the function persistent, so that one can call the function once to initialize it, and then without arguments to update it, without having to go through all the checks and loops again.
- The coding can be improved: instead of the for-loop "% check end >= start" make use of ANY; "hitflag = ~isempty(hitIndex))" instead of the if-statement; etc ...

 

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