Re: [Scilab-users] scilab 6.0.0-beta-1 on Mac OS X El Capitan

2016-05-24 Thread Ricardo Fabbri
Hi,

Just letting you know I've updated the bugracker with a work-around.
http://bugzilla.scilab.org/show_bug.cgi?id=14182

Thanks,

--
Dr Ricardo Fabbri
Professor of Computer Engineering
GNU/Linux registered user #175401
www.lems.brown.edu/~rfabbri
pt.wikipedia.org/wiki/IPRJ
labmacambira.sf.net


On Mon, Apr 4, 2016 at 4:40 AM, Clément David
 wrote:
> Hello,
>
> I guess there might be a bug on that support. You can add yourself to the CC 
> list on the bugzilla
> interface to be alerted on change.
>
> --
> Clément
>
> Le dimanche 03 avril 2016 à 06:04 -0700, jaipur a écrit :
>> Thank you.
>> I understand that scilab 6.0.0-beta-1 does not support Mac OS X El Capitan.
>>
>>
>>
>>
>> --
>> View this message in context: 
>> http://mailinglists.scilab.org/scilab-6-0-0-beta-1-on-Mac-OS-X-El-Ca
>> pitan-tp4033887p4033893.html
>> Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
>> Nabble.com.
>> ___
>> users mailing list
>> users@lists.scilab.org
>> http://lists.scilab.org/mailman/listinfo/users
> ___
> users mailing list
> users@lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] csvread different separator

2016-05-24 Thread Serge Steer

Le 23/05/2016 23:15, Florian Winter a écrit :

Hello
I'm trying to write a function that reads data from a single file. It 
is a rather large file so I wanted to use the csvread function because 
it is faster than opening the file and then using scanf.
I am surprised by the fact csvread is faster than mfscanf. mfscanf 
directly call C code while csvread is xritten in Scilab...


The problem is, that my file is not a real csv file. It has different 
number of spaces in between every data entry.

It looks like this:

1 2  3   4   5 6 7   8
the spaces between each entry is the same in every row so between 1 
and 2 there is a single space, between 2 and 3 there are two spaces, 
between 3-4 and 4-5 three spaces, 5-6 one, 6-7 one and 7-8 three again.



Is there a faster way than opening the file and using a scanf?

Thank you!
Florian


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] csvread different separator exclusive)

2016-05-24 Thread scilab . 20 . browseruk
Florian,

If you have Perl available, you could regularise the file with the following 
one-liner:
 
perl -nle "print join ' ', split ' '" out.file

(You'll need to switch 's to "s and vice versa if you're on *nix.)

(Despite the way that looks, the split ' ' will habdle any number of 
intervening spaces or tabs and join ' ', will replace them with a single space.
Use join "\t" to get a proper tab delimited output file.)

It takes around 30s/GB on my machine.

Cheers, Buk

> -Original Message-
> From: scilab.browseruk.c9f0207c9f.flotschos#gmail@ob.0sg.net
> Sent: Mon, 23 May 2016 23:15:20 +0200
> To: users@lists.scilab.org
> Subject: [Scilab-users] csvread different separator
> exclusive)
> 
> Hello
> I'm trying to write a function that reads data from a single file. It is
> a
> rather large file so I wanted to use the csvread function because it is
> faster than opening the file and then using scanf. The problem is, that
> my
> file is not a real csv file. It has different number of spaces in between
> every data entry.
> It looks like this:
> 
> 1 2  3   4   5 6 7   8
> the spaces between each entry is the same in every row so between 1 and 2
> there is a single space, between 2 and 3 there are two spaces, between
> 3-4
> and 4-5 three spaces, 5-6 one, 6-7 one and 7-8 three again.
> 
> 
> Is there a faster way than opening the file and using a scanf?
> 
> Thank you!
> Florian


FREE ONLINE PHOTOSHARING - Share your photos online with your friends and 
family!
Visit http://www.inbox.com/photosharing to find out more!



___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] {EXT} csvread different separator

2016-05-24 Thread Dang Ngoc Chan, Christophe
Hello,

> De : users [mailto:users-boun...@lists.scilab.org] De la part de Florian 
> Winter
> Envoyé : lundi 23 mai 2016 23:15
>
> It is a rather large file so I wanted to use the csvread function
> [...]
> It looks like this:
>
> 1 2  3   4   5 6 7   8

You can try:

a = csvRead("foo.csv", " ")

b = a(~(isnan(a)))

HTH

Regards

--
Christophe Dang Ngoc Chan
Mechanical calculation engineer
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error), please 
notify the sender immediately and destroy this e-mail. Any unauthorized 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users