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 25, 2013 5:40 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

It seems this code can't work with my version of Matlab (7.0.1.24704 (R14) Service Pack 1 ) although it is syntactically correct. But, would you know an alternative method ?

What I want to do is the following :

Let's say,

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

(X has then 2 columns)

I want to obtain :

Y=[1 2 3 10 11 12 17 18 19 20 21 22 23 24 ect...]

(Y has one column)

It is what is supposed the previous code to do. Moreover, I have managed to do what I want with a code than includes one for loop but I would like to avoid this. That is why I'm asking for a solution without any loops.



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.