The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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 ]

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 ( (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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.