help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: entering tide data


From: Dmitri A. Sergatskov
Subject: Re: entering tide data
Date: Thu, 29 Jan 2009 15:42:27 -0600

On Thu, Jan 29, 2009 at 3:34 PM, Dmitri A. Sergatskov
<address@hidden> wrote:

>> 2007022+0030   0.231
>> 2007022+0100   0.238
>> 2007022+0130   0.235
>> 2007022+0200   0.234
>
>
> fh = fopen("tide.txt");
> a=fscanf(fh, "%4i%3i%f %f", [4, inf]);
> plot(a(3,:),a(4,:))
>

I just realized that the time is probably in HHMM format,
so the following would work better:

a=fscanf(fh, "%4d%3d+%2d%2d %f", [5, inf])
plot(a(3,:)+a(4,:)/60, a(5,:))


Dmitri.
--


reply via email to

[Prev in Thread] Current Thread [Next in Thread]