[Scilab-users] Read file (.txt)

P M p.muehlmann at gmail.com
Thu Sep 10 10:46:45 CEST 2020


I think csvRead is just fine.

[data header] = csvRead(fname, ' ', '.', 'string', [], [], [], 0);

As you may notice the data Matrix contains a lot of empty columns.

This is due to the many white spaces in the text file

anyways, after reading the dta in you may use evstr() to convert into doubles.


BR

Philipp



Am Do., 10. Sept. 2020 um 04:03 Uhr schrieb <
antoine.elias at scilab-enterprises.com>:

> Hello Daniel,
>
> Do you have try with "evstr" function ?
>
> data = evstr(mgetl("output.txt"));
>
> Regards,
> Antoine
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20200910/d77441e8/attachment.htm>


More information about the users mailing list