From: ronnie on 30 Jun 2010 04:52 I have an array that is composed ot time data that I am reading into from excel and it looks like this: 12:34:20 12:34:40 12:34:60 etc. When it reads it into matlab it displays it as a decimal value: .7342, .7345, etc... What I want to do is take the array that matlab has read in (call it A) and create an array of the same length that counts the number of values in the time array that I have read in. i.e. I want an array that would look like this: B= 1 2 3 4 5 6 etc. if there are 230 time values in array A, I want to make an array B that counts from 1 to 230. Thanks in advance, Ronald Coleman
From: dpb on 30 Jun 2010 09:05 ronnie wrote: .... > ... What I want to do is take the array that matlab > has read in (call it A) and create an array of the same length that > counts the number of values in the time array that I have read in. > > i.e. I want an array that would look like this: > B= 1:length(A); --
From: ronnie on 30 Jun 2010 05:21 Never mind I figured it out, thank you all
From: ronnie on 30 Jun 2010 05:22 haha my way was more difficult, that makes it easier, thanks
|
Pages: 1 Prev: resolution of input and output Next: problem with dsolve |