| MATLAB Central > MATLAB Newsreader > Divide single column into variables |
|
|
|
Subject: Divide single column into variables From: Christopher Fell Date: 30 Nov, 2012 18:27:09 Message: 1 of 9 |
|
I have a single column / row of data that I would like to separate into multiple columns or variables. The column is current 59000 data points. The output lengths of the columns will vary as the data is different lengths. The data is separated by zero's and is typically linearly increasing (1,2,3,4) however there are some points that decrease by fractional amounts (1, 2, 1.8, 3). I tried using the FIND command to identify the zero's and a for/if loop to extract the data into columns but was not successful. Any suggestions are much appreciated. Some example data looks like: |
|
On 11/30/2012 12:27 PM, Christopher Fell wrote: |
|
Subject: Divide single column into variables From: Christopher Fell Date: 30 Nov, 2012 19:50:08 Message: 3 of 9 |
|
dpb <none@non.net> wrote in message <k9avpk$8c3$1@speranza.aioe.org>... |
|
Subject: Divide single column into variables From: Christopher Fell Date: 30 Nov, 2012 19:53:08 Message: 4 of 9 |
|
dpb <none@non.net> wrote in message <k9avpk$8c3$1@speranza.aioe.org>... |
|
On 11/30/2012 12:27 PM, Christopher Fell wrote: |
|
On 11/30/2012 4:17 PM, dpb wrote: |
|
Subject: Divide single column into variables From: Christopher Fell Date: 3 Dec, 2012 15:23:10 Message: 7 of 9 |
|
dpb <none@non.net> wrote in message <k9ggbm$5bd$1@speranza.aioe.org>... |
|
On 12/3/2012 9:23 AM, Christopher Fell wrote: |
|
On 12/3/2012 11:43 AM, dpb wrote: |
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.
