|
On Oct 18, 8:47 am, "Divakar " <divakar.chitt...@asu.edu> wrote:
> Hi
>
> Thanks for the reply
> But i am stuck at that point on trying to have the required information. How do i do it? Because after i extract using the textscan. . each column holds different data for one specific date. Now the filtering is purely based on the date and hence all the columns on those band of dates have to be selected, which tells me that ,, it is best to filter in the first place when i am trying to extract rather than filtering after i get the whole data. Kindly suggest
>
> Thanks
>
> Rune Allnor <all...@tele.ntnu.no> wrote in message <11c595f7-be00-4dd1-ad5c-830bb35a6...@k33g2000yqa.googlegroups.com>...
> > On 16 Okt, 22:07, "Divakar " <divakar.chitt...@asu.edu> wrote:
> > > Hi
>
> > > I am new to matlab Programing.
>
> > > I am reading data from the csv file using textscan. ( file has 5 columns and 5000 rows with first column being dates and other columns are observations made on that date. )
>
> > > Now i want to extract only the information (all columns ) starting from a specific date To a specific date and not all 5000 rows.
>
> > > How do i do this?..
>
> > The simple way is to read all the data as usual,
> > and the throw away the data you don't want.
>
> > Rune
First of all, please don't top post. It makes the thread hard to
follow.
Put your reply UNDERNEATH.
Figure out which rows you don't want and put the row numbers in a
vector:
ibad=[1:10 300:5000]';
Now, for the other columns, you just zap those rows:
c{2}(ibad)=[];
c{3}(ibad)=[];
|