entering tide data

Dmitri A. Sergatskov dasergatskov at gmail.com
Thu Jan 29 15:42:27 CST 2009


On Thu, Jan 29, 2009 at 3:34 PM, Dmitri A. Sergatskov
<dasergatskov at gmail.com> 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.
--


More information about the Help-octave mailing list