[Scilab-users] Reading numerical and string vectors from txt-file

Jens Simon Strom j.s.strom at hslmg.de
Wed Mar 22 11:53:33 CET 2017


Hi,
I would like to read 5 colum vectors from the example txt-file as quoted 
between the dotted lines below.
The desired result should be:

Y=[2017;2017;2017;2017]
M=['May';'June';'Jul';'Aug']
D=[26.;25.;25.;24.]
BATh=[0.;%nan;1.;2.] //hour of  begin of astronomical twilight.
BATm=[48.;%nan;29.;57.] //minute of  begin of astronomical twilight.

Which of Scilab's various file reading functions would you recommend 
here? I am passably familiar with Fortran and C formats. So I just need 
a productive choice of the function to start my trial and error with. My 
essays with mfscanffailed miserably.

Regards
Jens
--------------------------------------------------------------------------------------------
Sun

Location: 0°00'00.0", N50°00'00.0", 0m (Longitude referred to Greenwich 
meridian)
Date              Begin Rise  Az.Trans Alt Set   Az. End (UT1)
                   Astr                               Astr
TwiliTwilight
                   h  m  h  m  °  h  m  °   h  m  °   h  m
2017 May 26 (Fri) 00:48 04:01 55 11:57 61S 19:54 306 23:11
2017 Jun 25 (Sun) ///// 03:52 51 12:03 63S 20:13 309 /////
2017 Jul 25 (Tue) 01:29 04:20 57 12:07 60S 19:52 302 22:41
2017 Aug 24 (Thu) 02:57 05:03 72 12:02 51S 19:00 288 21:05
--------------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20170322/77dc3dcf/attachment.htm>


More information about the users mailing list