From: Ayotunde on
TideMan <mulgor(a)gmail.com> wrote in message <fac74246-2f15-4605-bce2-cff3b6e9fc66(a)t14g2000prm.googlegroups.com>...
> On May 12, 3:50 pm, "Ayotunde " <rhyme...(a)yahoo.co.uk> wrote:
> >  > Ahaaaa................
> >
> > > The second last column is text, not numbers.
> > > This means the format string must be:
> > > '%s%s%s%f%f%f%f%s%s'
> > > Note that I'm also reading in the date (2nd column) as a string.
> > > This means you convert to Matlab days like this:
> > > t=datenum([char(c{2}) char(c{3})],'yyyymmddHH:MM:SS');
> > > You can check if it is right by printing the start and finish times
> > > like this:
> > > datestr([t(1);t(end)])
> >
> > I hate being a bother but this is what i get when i try to convert to matlab days>> t=datenum([char(C{2})char(C{3})],'yyyymmddHH:MM:SS');
> >
> > ??? t=datenum([char(C{2})char(C{3})],'yyyymmddHH:MM:SS');
> >                          |
> > Error: Unexpected MATLAB expression.
> > I have tried different things but i just suck :(
> > thnx
>
> I'm afraid you are going to get nowhere with Matlab if you cannot do
> some simple debugging on a problem like this yourself.
> So I'm not going to spoon-feed you anymore.
> You'll just have to work it out.
>
> Hint: How is the expression different from what I gave you?

Hey tideman...sorry been busy the past day...erm it looks almost ientical except i've used C instead of c for my textscan
From: TideMan on
On May 14, 4:44 am, "Ayotunde " <rhyme...(a)yahoo.co.uk> wrote:
> TideMan <mul...(a)gmail.com> wrote in message <fac74246-2f15-4605-bce2-cff3b6e9f...(a)t14g2000prm.googlegroups.com>...
> > On May 12, 3:50 pm, "Ayotunde " <rhyme...(a)yahoo.co.uk> wrote:
> > >  > Ahaaaa................
>
> > > > The second last column is text, not numbers.
> > > > This means the format string must be:
> > > > '%s%s%s%f%f%f%f%s%s'
> > > > Note that I'm also reading in the date (2nd column) as a string.
> > > > This means you convert to Matlab days like this:
> > > > t=datenum([char(c{2}) char(c{3})],'yyyymmddHH:MM:SS');
> > > > You can check if it is right by printing the start and finish times
> > > > like this:
> > > > datestr([t(1);t(end)])
>
> > > I hate being a bother but this is what i get when i try to convert to matlab days>> t=datenum([char(C{2})char(C{3})],'yyyymmddHH:MM:SS');
>
> > > ??? t=datenum([char(C{2})char(C{3})],'yyyymmddHH:MM:SS');
> > >                          |
> > > Error: Unexpected MATLAB expression.
> > > I have tried different things but i just suck :(
> > > thnx
>
> > I'm afraid you are going to get nowhere with Matlab if you cannot do
> > some simple debugging on a problem like this yourself.
> > So I'm not going to spoon-feed you anymore.
> > You'll just have to work it out.
>
> > Hint: How is the expression different from what I gave you?
>
> Hey tideman...sorry been busy the past day...erm it looks almost ientical except i've used C instead of c for my textscan

Well, it's not................
From: Walter Roberson on
Ayotunde wrote:
> TideMan <mulgor(a)gmail.com> wrote in message
> <fac74246-2f15-4605-bce2-cff3b6e9fc66(a)t14g2000prm.googlegroups.com>...

>> > > This means you convert to Matlab days like this:
>> > > t=datenum([char(c{2}) char(c{3})],'yyyymmddHH:MM:SS');

>> > ??? t=datenum([char(C{2})char(C{3})],'yyyymmddHH:MM:SS');
>> > |
>> > Error: Unexpected MATLAB expression.

> Hey tideman...sorry been busy the past day...erm it looks almost
> ientical except i've used C instead of c for my textscan

Hint: [1 2] is not the same as [12]
From: Ayotunde on
Walter Roberson <roberson(a)hushmail.com> wrote in message <hsho69$t5s$2(a)canopus.cc.umanitoba.ca>...
> Ayotunde wrote:
> > TideMan <mulgor(a)gmail.com> wrote in message
> > <fac74246-2f15-4605-bce2-cff3b6e9fc66(a)t14g2000prm.googlegroups.com>...
>
> >> > > This means you convert to Matlab days like this:
> >> > > t=datenum([char(c{2}) char(c{3})],'yyyymmddHH:MM:SS');
>
> >> > ??? t=datenum([char(C{2})char(C{3})],'yyyymmddHH:MM:SS');
> >> > |
> >> > Error: Unexpected MATLAB expression.
>
> > Hey tideman...sorry been busy the past day...erm it looks almost
> > ientical except i've used C instead of c for my textscan
>
> Hint: [1 2] is not the same as [12]

I am so sorry. thanks for your help tideman and walter
From: Ayotunde on
"Ayotunde " <rhymer2k(a)yahoo.co.uk> wrote in message <hshp4t$3f5$1(a)fred.mathworks.com>...
> Walter Roberson <roberson(a)hushmail.com> wrote in message <hsho69$t5s$2(a)canopus.cc.umanitoba.ca>...
> > Ayotunde wrote:
> > > TideMan <mulgor(a)gmail.com> wrote in message
> > > <fac74246-2f15-4605-bce2-cff3b6e9fc66(a)t14g2000prm.googlegroups.com>...
> >
> > >> > > This means you convert to Matlab days like this:
> > >> > > t=datenum([char(c{2}) char(c{3})],'yyyymmddHH:MM:SS');
> >
> > >> > ??? t=datenum([char(C{2})char(C{3})],'yyyymmddHH:MM:SS');
> > >> > |
> > >> > Error: Unexpected MATLAB expression.
> >
> > > Hey tideman...sorry been busy the past day...erm it looks almost
> > > ientical except i've used C instead of c for my textscan
> >
> > Hint: [1 2] is not the same as [12]
>
> I am so sorry. thanks for your help tideman and walter

Hello again, i've been up all night trying to 'extract' a sample from my data at a frequency of 5 minutes but i still have no idea. i have looked at splining but i do not think that is it because my data is even more frequent than the sample i need. Sorry if this is something that should be easy but i am really trying