| MATLAB Central > MATLAB Newsreader > Reshape? |
|
|
|
Hi |
|
% Data |
|
"Vanesa " <vanesa2455@HOTMAIL.com> wrote in message <h9u5jn$ar7$1@fred.mathworks.com>... |
|
Oops. Looking at Matt's response it looks like I misread the question. You can use this instead: |
|
Here is a faster (than my first post) MATLAB solution that doesn't leave a useless variable in the workspace: |
|
"Matt Fig" <spamanon@yahoo.com> wrote in message |
|
c=nchoosek(0:5,2) % 0:5 is [0; v].' |
|
"Vanesa " <vanesa2455@HOTMAIL.com> wrote in message <h9u5jn$ar7$1@fred.mathworks.com>... |
|
Much of the methods presented here do not work if the column is e.g. [5;4;3;2;1]. This one will: |
|
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <h9uq1h$btq$1@fred.mathworks.com>... |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| forloopking | Matt Fig | 30 Sep, 2009 11:28:18 |
| reshape | Sprinceana | 30 Sep, 2009 07:34:09 |
| cell array | Sprinceana | 30 Sep, 2009 07:34:09 |
| reshape cell arays | Vanesa | 29 Sep, 2009 19:39:04 |
Contact us at files@mathworks.com
