| MATLAB Central > MATLAB Newsreader > working with matrix |
|
|
|
a=1 2 3 4 |
|
"anil chandy" <anilvchandy@gmail.com> wrote in message <gnbbh6$946$1@fred.mathworks.com>... |
|
"anil chandy" |
|
"us" |
|
"anil chandy" <anilvchandy@gmail.com> wrote in message <gnbbh6$946$1@fred.mathworks.com>... |
|
its a mistake.. wat i actually meant was i ve a matrix A=[ 4 6 4 9 4 8 8 6 ] |
|
there is some problem when what i typed gets displayed in the forum... |
|
"its a mistake.. wat i actually meant was i ve a matrix A=[ 4 6 4 9 4 8 8 6 ] |
|
A=[ 4 6 4 9 4 8 8 6 ] |
|
Another approach calls sort instead of accumarray. |
|
idx = cumsum(logical([1 diff(B)])); |
|
and why ur using the variable x? |
|
"anil chandy" <anilvchandy@gmail.com> wrote in message <gnetra$327 |
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 |
| acummarray | Matt Fig | 17 Feb, 2009 01:19:27 |
| indexing | us | 16 Feb, 2009 06:47:11 |
| code | us | 16 Feb, 2009 06:47:11 |
Contact us at files@mathworks.com
