| MATLAB Central > MATLAB Newsreader > Finding and Replacing Consecutive Numbers in an Ar... |
|
|
|
Subject: Finding and Replacing Consecutive Numbers in an Array From: Ern Date: 30 Mar, 2011 13:23:22 Message: 1 of 9 |
|
Hi, |
|
Subject: Finding and Replacing Consecutive Numbers in an Array From: Roger Stafford Date: 31 Mar, 2011 19:24:20 Message: 2 of 9 |
|
"Ern" wrote in message <imvasa$gbb$1@fred.mathworks.com>... |
|
Subject: Finding and Replacing Consecutive Numbers in an Array From: Florin Neacsu Date: 31 Mar, 2011 21:38:04 Message: 3 of 9 |
|
"Roger Stafford" wrote in message <in2kd4$jak$1@fred.mathworks.com>... |
|
Subject: Finding and Replacing Consecutive Numbers in an Array From: Roger Stafford Date: 31 Mar, 2011 21:59:05 Message: 4 of 9 |
|
"Florin Neacsu" <fneacsu2@gmail.com> wrote in message <in2s7s$7af$1@fred.mathworks.com>... |
|
Subject: Finding and Replacing Consecutive Numbers in an Array From: Florin Neacsu Date: 31 Mar, 2011 22:12:02 Message: 5 of 9 |
|
"Roger Stafford" wrote in message <in2tf9$qc7$1@fred.mathworks.com>... |
|
Subject: Finding and Replacing Consecutive Numbers in an Array From: Bruno Luong Date: 1 Apr, 2011 06:15:19 Message: 6 of 9 |
|
You might try this code using my SplitVec function on FEX: |
|
Subject: Finding and Replacing Consecutive Numbers in an Array From: Bruno Luong Date: 1 Apr, 2011 06:59:05 Message: 7 of 9 |
|
Sorry the correct URL for SplitVec is: |
|
Subject: Finding and Replacing Consecutive Numbers in an Array From: Ern Date: 1 Apr, 2011 07:12:05 Message: 8 of 9 |
|
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <in3qhn$rv3$1@fred.mathworks.com>... |
|
Subject: Finding and Replacing Consecutive Numbers in an Array From: Ern Date: 1 Apr, 2011 07:55:04 Message: 9 of 9 |
|
It's fine now thanks. I made a simple mistake and needed to transform the array from a column vector to a row vector! Seems to work great now! |
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.
