[Scilab-users] csvWrite trouble

Stefan Du Rietz sdr at durietz.se
Sat Nov 24 16:46:16 CET 2012


Hello Sylvestre,

A similar question:
Why are string vectors written with every other line empty?

-->s = [
-->"This is a two row"
-->"string vector"
-->]
  s  =

!This is a two row  !
!                   !
!string vector      !

Regards
Stefan

On 2012-11-24 16:23, Sylvestre Ledru wrote:
--------------------
> Hello,
>
> This bug has been fixed since then and will be part of the 5.4.1 release.
> See:
> http://bugzilla.scilab.org/11991
>
> Sylvestre
>
> On 24/11/2012 12:44, A. Vogt-Schilb wrote:
>> Hi
>>
>> Make sure you use the last versions.
>>
>> I had noticed a bug like this in my windows machine. It was worked
>> around telling csv to use Linux ends of line. Something like
>> csv_default("eol", "unix ")
>>
>> best thing to do to debug is open your csv with a good text editor and
>> show all characters to see what end of line chars are being used
>>
>> Sent from my phone
>>
>> Paul Carrico <paul.carrico at free.fr> wrote:
>>
>> Hi,
>>
>>
>>
>> It’s a pity but when I use csvWrite function, each line is separated by
>> a blank line ….
>>
>>
>>
>> Paul
>>
>>
>>
>> #####################################################
>>
>> mode(0)
>>
>>
>>
>> PATH= get_absolute_file_path("test_csvWrite.sce");
>>
>> FILE_NAME= "test_csvwrite.csv";
>>
>> A= rand(10,3);
>>
>>
>>
>> /// test/
>>
>> csvWrite(A,PATH+FILE_NAME,",");
>>
>>
>>
>>
>>
>> *_Result_*:
>>
>> 0.50153415976092219,0.28064980218186975,0.40948254754766822
>>
>> 0.43685875833034515,0.12800584640353918,0.87841258011758327
>>
>> 0.26931248093023896,0.77831285959109664,0.11383596854284406
>>
>> 0.6325744865462184,0.2119030449539423,0.19983377400785685
>>
>> 0.40519540151581168,0.11213546665385365,0.56186607433483005
>>
>> 0.91847078315913677,0.68568959552794695,0.58961773291230202
>>
>> 0.043733433354645967,0.15312166837975383,0.68539796629920602
>>
>> 0.48185089323669672,0.69708506017923355,0.89062247332185507
>>
>> 0.26395560009405017,0.84155184263363481,0.50422128057107329
>>
>> 0.41481037065386772,0.40620247554033995,0.34936154074966908
>>
>>
>>
>> _______________________________________________
>> users mailing list
>> users at lists.scilab.org
>> http://lists.scilab.org/mailman/listinfo/users
>>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>





More information about the users mailing list