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

Jan Åge Langeland j-lan at online.no
Wed Mar 22 12:33:09 CET 2017



On 22.03.2017 11:53, Jens Simon Strom wrote:
> 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.
M=csvRead(filename," ",[],"string",[],[],[],7)
Y=M(1:4,1)'
etc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20170322/f3de8f53/attachment.htm>


More information about the users mailing list