Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: cellfun doesn't work ?
Replies: 5   Last Post: Jun 28, 2013 6:21 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Abel

Posts: 31
Registered: 5/29/13
Re: cellfun doesn't work ?
Posted: Jun 27, 2013 2:56 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Thank you Bruno, unfortunately it doesn't seem to work :

I've tried : Y=mcolon(X(:,1),X(:,2)); with my previous example and I get this error message :

??? At compilation "mcolsettol" was determined to be variable. As a variable,
it is uninitialized, but function "mcolsettol" is now in context.
In MATLAB 7, you cannot use the same name in a single function as
both a function and a variable.

Error in ==> mcolon at 24
tol = mcolsettol();

Despite of this, is there something to do regarding my matlab version (7.0.1.24704 (R14) Service Pack 1) ?


------------------------------

The other solution doesn't work either, "arrayfun" being not recognized :

>> Y=cell2mat( arrayfun(@(i) X(i, 1):X(i, 2), 1:length(X), 'UniformOutput', 0) );
??? Undefined command/function 'arrayfun'.



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.