[Scilab-users] Fwd: End of line and tab characters in SCILAB

Samuel Gougeon sgougeon at free.fr
Fri Sep 11 08:26:27 CEST 2015


Hello,
Le 10/09/2015 23:14, Samuel Enibe a écrit :
> Thank you very much. The string was generated from Excel 2003 files.
> Some cells contained blank spaces which when processed for use in a
> LaTeX document or csv file, the blank lines cause errors and had to be
> removed manually.
>
> I tried using the expression
>
>      datax = strsubst(datax, "\n", " ");//replace EndOfLine with " " everywhere
>
> to replace the EndOfLine characters with ordinary spaced but this did
> not produce the desired results.
>
>
You may try

datax = strsubst(datax, ascii(10), " ");
datax = strsubst(datax, ascii(13), " ");


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20150911/515e5a3d/attachment.htm>


More information about the users mailing list