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
cellfun doesn't work ?
Posted: Jun 25, 2013 3:29 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi,

I'm trying this simple code :

clear
X = [1 3
10 12
17 24
29 35
41 46
51 58
60 65
73 79
82 84
91 99
102 104
112 116
118 123];

Y = cellfun(@(Y) Y(1):Y(2), num2cell(X,2),'UniformOutput', false).';
Y = cell2mat(Y).';

But it doesn't work, I get this error :

??? Too many inputs.

It looks like it is due to cellfun. How could I correct it ?



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.