From j.s.strom at hslmg.de Sun Dec 2 09:33:41 2012 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Sun, 2 Dec 2012 08:33:41 +0000 (UTC) Subject: [Scilab-users] fminsearch, error occurs after changing variable name Message-ID: Hello Scilab experts, This script functions: function SAQ=!f(p), SAQ=sum( ( p(1)+p(2)*xi-yi ).^2 ), endfunction xi=1:1000 ; yi=2*xi+3; popt=fminsearch(!f,[0;0]) If I replace yi by y everywhere the script functions too as expected. If I replace xi by x everywhere an error occurs: "Inconsistent subtraction in function !f. What is wrong here? Kind regards Jens From paul.carrico at free.fr Sun Dec 2 09:37:15 2012 From: paul.carrico at free.fr (Paul Carrico) Date: Sun, 2 Dec 2012 09:37:15 +0100 Subject: [Scilab-users] libsciparallel.so not provided Message-ID: <000301cdd068$3c373680$b4a5a380$@carrico@free.fr> Dear, I installed Scilab binary files under 2 different linux OS (Opensuse and Centos) ; in both cases the libsciparallel.so library is missing . is there any workaround in order to use parallel_run function ? (I haven't seen any rpm file of something like this .) A subsidiary question : is there any benefit to use PVM package (Atoms) for parallel computing ? the later package is intended for cluster application and not for multicore one, isn't it ? Regards Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin at null-a.de Sun Dec 2 10:37:02 2012 From: martin at null-a.de (Martin Helm) Date: Sun, 02 Dec 2012 10:37:02 +0100 Subject: [Scilab-users] libsciparallel.so not provided In-Reply-To: <000301cdd068$3c373680$b4a5a380$@carrico@free.fr> References: <000301cdd068$3c373680$b4a5a380$@carrico@free.fr> Message-ID: <50BB213E.3090804@null-a.de> Am 02.12.2012 09:37, schrieb Paul Carrico: > > Dear, > > I installed Scilab binary files under 2 different linux OS (Opensuse > and Centos) ; in both cases the libsciparallel.so library is missing ? > > is there any workaround in order to use parallel_run function ? > > (I haven?t seen any rpm file of something like this ?) > Which version have you installed? Looking at my system where 5.3.3 and 5.4.0 is installed I find the libraries here /opt/scilab-5.3.3/lib/scilab/libsciparallel.so /opt/scilab-5.3.3/lib/scilab/libsciparallel.so.5 /opt/scilab-5.3.3/lib/scilab/libsciparallel.so.5.3.3 /opt/scilab-5.4.0/lib/scilab/libsciparallel.so /opt/scilab-5.4.0/lib/scilab/libsciparallel.so.5 /opt/scilab-5.4.0/lib/scilab/libsciparallel.so.5.4.0 so look into the place where you installed scilab into the lib/scilab directory. Check also with ldd if a needed library from your system is missing which prevents it from loading e. g. ldd /opt/scilab-5.3.3/lib/scilab/libsciparallel.so From paul.carrico at free.fr Sun Dec 2 11:24:31 2012 From: paul.carrico at free.fr (Paul Carrico) Date: Sun, 2 Dec 2012 11:24:31 +0100 Subject: [Scilab-users] libsciparallel.so not provided In-Reply-To: <50BB213E.3090804@null-a.de> References: <000301cdd068$3c373680$b4a5a380$@carrico@free.fr> <50BB213E.3090804@null-a.de> Message-ID: <000901cdd077$38857b50$a99071f0$@carrico@free.fr> Unfortunately after deeper research on the net, it seems necessary to build Scilab when such error message appears, in order to use parallel_run function ... http://permalink.gmane.org/gmane.comp.mathematics.scilab.user/6379 http://bugzilla.scilab.org/show_bug.cgi?id=9381 http://mailinglists.scilab.org/parallel-run-not-working-scilab-5-3-2-under-c entos-5-6-td2961331.html#a2961281 Paul -----Message d'origine----- De?: users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de Martin Helm Envoy??: dimanche 2 d?cembre 2012 10:37 ??: users at lists.scilab.org Objet?: Re: [Scilab-users] libsciparallel.so not provided Am 02.12.2012 09:37, schrieb Paul Carrico: > > Dear, > > I installed Scilab binary files under 2 different linux OS (Opensuse > and Centos) ; in both cases the libsciparallel.so library is missing > > is there any workaround in order to use parallel_run function ? > > (I haven?t seen any rpm file of something like this ) > Which version have you installed? Looking at my system where 5.3.3 and 5.4.0 is installed I find the libraries here /opt/scilab-5.3.3/lib/scilab/libsciparallel.so /opt/scilab-5.3.3/lib/scilab/libsciparallel.so.5 /opt/scilab-5.3.3/lib/scilab/libsciparallel.so.5.3.3 /opt/scilab-5.4.0/lib/scilab/libsciparallel.so /opt/scilab-5.4.0/lib/scilab/libsciparallel.so.5 /opt/scilab-5.4.0/lib/scilab/libsciparallel.so.5.4.0 so look into the place where you installed scilab into the lib/scilab directory. Check also with ldd if a needed library from your system is missing which prevents it from loading e. g. ldd /opt/scilab-5.3.3/lib/scilab/libsciparallel.so _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From martin at null-a.de Sun Dec 2 11:35:18 2012 From: martin at null-a.de (Martin Helm) Date: Sun, 02 Dec 2012 11:35:18 +0100 Subject: [Scilab-users] libsciparallel.so not provided In-Reply-To: <000901cdd077$38857b50$a99071f0$@carrico@free.fr> References: <000301cdd068$3c373680$b4a5a380$@carrico@free.fr> <50BB213E.3090804@null-a.de> <000901cdd077$38857b50$a99071f0$@carrico@free.fr> Message-ID: <50BB2EE6.8040905@null-a.de> I am a bit surprised that you have a problem on openSUSE, it works just fine for me on openSUSE 12.2 64 bit, on Centos I cannot comment. From paul.carrico at free.fr Sun Dec 2 11:48:03 2012 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Sun, 2 Dec 2012 11:48:03 +0100 (CET) Subject: [Scilab-users] libsciparallel.so not provided In-Reply-To: <50BB2EE6.8040905@null-a.de> Message-ID: <233189893.228540659.1354445283932.JavaMail.root@zimbra5-e1.priv.proxad.net> I don't know how to say ... I'm using the 5.4.0 binary release and I've such kind of message .... see http://mailinglists.scilab.org/Scilab-users-parallilization-error-on-opensuse-td4025260.html Paul ----- Mail original ----- De: "Martin Helm" ?: users at lists.scilab.org Envoy?: Dimanche 2 D?cembre 2012 11:35:18 Objet: Re: [Scilab-users] libsciparallel.so not provided I am a bit surprised that you have a problem on openSUSE, it works just fine for me on openSUSE 12.2 64 bit, on Centos I cannot comment. _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From martin at null-a.de Sun Dec 2 11:59:18 2012 From: martin at null-a.de (Martin Helm) Date: Sun, 02 Dec 2012 11:59:18 +0100 Subject: [Scilab-users] libsciparallel.so not provided In-Reply-To: <233189893.228540659.1354445283932.JavaMail.root@zimbra5-e1.priv.proxad.net> References: <233189893.228540659.1354445283932.JavaMail.root@zimbra5-e1.priv.proxad.net> Message-ID: <50BB3486.5080905@null-a.de> Am 02.12.2012 11:48, schrieb paul.carrico at free.fr: > I don't know how to say ... I'm using the 5.4.0 binary release and I've such kind of message .... > > see http://mailinglists.scilab.org/Scilab-users-parallilization-error-on-opensuse-td4025260.html > > Paul > That looks very suspicious, there is no hidden .libs directory in share/scilab/modules/parallel so where does that come from? Do you set any fancy LD_LIBRARY_PATHS? Or any manipulation from your side in /etc/ld.so.conf or /etc/ld.so.conf.d? Can you post a self contained code snippet which triggers the error? I just tested with the examples from "help parallel_run" and they work for me without error (and actually run in parallel as I can see). From martin at null-a.de Sun Dec 2 12:33:36 2012 From: martin at null-a.de (Martin Helm) Date: Sun, 02 Dec 2012 12:33:36 +0100 Subject: [Scilab-users] libsciparallel.so not provided In-Reply-To: <50BB3486.5080905@null-a.de> References: <233189893.228540659.1354445283932.JavaMail.root@zimbra5-e1.priv.proxad.net> <50BB3486.5080905@null-a.de> Message-ID: <50BB3C90.8010407@null-a.de> >From the bug report you quoted earlier I take that at least on openSUSE it can be what I suspected in the first place. You miss a library which is needed by libparallel. Please post from your openSUSE system the output from ldd /home/paul/scilab-5.4.0/lib/scilab/libsciparallel.so and ls -l /home/paul/scilab-5.4.0/lib/scilab/libsciparallel* and also provide the openSUSE version. From vogt at centre-cired.fr Sun Dec 2 13:27:23 2012 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Sun, 02 Dec 2012 13:27:23 +0100 Subject: [Scilab-users] fminsearch, error occurs after changing variable name In-Reply-To: References: Message-ID: <50BB492B.8050308@centre-cired.fr> On 02/12/2012 09:33, Jens Simon Strom wrote: > Hello Scilab experts, > > This script functions: > > function SAQ=!f(p), SAQ=sum( ( p(1)+p(2)*xi-yi ).^2 ), endfunction > xi=1:1000 ; > yi=2*xi+3; > popt=fminsearch(!f,[0;0]) > > If I replace yi by y everywhere the script functions too as expected. > > If I replace xi by x everywhere an error occurs: "Inconsistent subtraction in > function !f. > > What is wrong here? > > Kind regards > Jens > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users hi that's because the way scilab uses local variables try "declaring" all the variables needed in your function: function SAQ=!f(p,x,y), SAQ=sum( ( p(1)+p(2)*x-y ).^2 ), endfunction then use the "list approach" in fminsearch x=1:1000 ; y=2*xi+3; popt=fminsearch(list(!f,x,y),[0;0])) I did not try this code because it's sunday and i don't want to. but tell me if it does not work. kind regards AVS -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Sun Dec 2 14:33:54 2012 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Sun, 2 Dec 2012 14:33:54 +0100 (CET) Subject: [Scilab-users] libsciparallel.so not provided In-Reply-To: <50BB3C90.8010407@null-a.de> Message-ID: <1171348698.228767038.1354455234718.JavaMail.root@zimbra5-e1.priv.proxad.net> thanks for your suggestion ; unfortunately nothing changes in my opensuse OS ... I had a look in a Suse package but the latest Scilabk is not available ... it's a pitty Paul #####################################################################################################################""" ldd /home/paul/scilab-5.4.0/lib/scilab/libsciparallel.so linux-vdso.so.1 (0x00007fff87f0d000) libgfortran.so.3 => /usr/lib64/libgfortran.so.3 (0x00007f4f31254000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f4f31038000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f4f30e33000) libncurses.so.5 => /lib64/libncurses.so.5 (0x00007f4f30c0e000) libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f4f30907000) libm.so.6 => /lib64/libm.so.6 (0x00007f4f3060f000) libc.so.6 => /lib64/libc.so.6 (0x00007f4f3026a000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f4f30054000) libquadmath.so.0 => /usr/lib64/libquadmath.so.0 (0x00007f4f2fe1d000) /lib64/ld-linux-x86-64.so.2 (0x00007f4f3178c000) libtinfo.so.5 => /lib64/libtinfo.so.5 (0x00007f4f2fbeb000) paul at linux-tnr3:~/scilab-5.4.0/lib/scilab> man ldd paul at linux-tnr3:~/scilab-5.4.0/lib/scilab> ls -l /home/paul/scilab-5.4.0/lib/scilab/libsciparallel* lrwxrwxrwx 1 paul users 23 29 sept. 00:59 /home/paul/scilab-5.4.0/lib/scilab/libsciparallel.so -> libsciparallel.so.5.4.0 lrwxrwxrwx 1 paul users 23 29 sept. 00:59 /home/paul/scilab-5.4.0/lib/scilab/libsciparallel.so.5 -> libsciparallel.so.5.4.0 -rwxr-xr-x 1 paul users 221594 29 sept. 00:59 /home/paul/scilab-5.4.0/lib/scilab/libsciparallel.so.5.4.0 ################################## A previous error has been detected while loading libsciparallel.so: [Min,Med,Max]=parallel_run(A,B,C,"min_med_max");// equivalent to the previous loop. !--error 999 Impossible de charger la biblioth?que libsciparallel.so : /home/paul/scilab-5.4.0/share/scilab/modules/parallel/.libs/libsciparallel.so: undefined symbol: omp_set_num_threads at line 37 of exec file called by : exec('/home/paul/ETUDE_SCILAB/implementation_fatigue/test_parallelization.sce', -1) ################################## ----- Mail original ----- De: "Martin Helm" ?: users at lists.scilab.org Envoy?: Dimanche 2 D?cembre 2012 12:33:36 Objet: Re: [Scilab-users] libsciparallel.so not provided >From the bug report you quoted earlier I take that at least on openSUSE it can be what I suspected in the first place. You miss a library which is needed by libparallel. Please post from your openSUSE system the output from ldd /home/paul/scilab-5.4.0/lib/scilab/libsciparallel.so and ls -l /home/paul/scilab-5.4.0/lib/scilab/libsciparallel* and also provide the openSUSE version. _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From sylvestre.ledru at scilab-enterprises.com Sun Dec 2 15:21:41 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Sun, 02 Dec 2012 15:21:41 +0100 Subject: [Scilab-users] libsciparallel.so not provided In-Reply-To: <50BB3486.5080905@null-a.de> References: <233189893.228540659.1354445283932.JavaMail.root@zimbra5-e1.priv.proxad.net> <50BB3486.5080905@null-a.de> Message-ID: <50BB63F5.809@scilab-enterprises.com> On 02/12/2012 11:59, Martin Helm wrote: > Am 02.12.2012 11:48, schrieb paul.carrico at free.fr: >> I don't know how to say ... I'm using the 5.4.0 binary release and I've such kind of message .... >> >> see http://mailinglists.scilab.org/Scilab-users-parallilization-error-on-opensuse-td4025260.html >> >> Paul >> > That looks very suspicious, there is no hidden .libs directory in > share/scilab/modules/parallel so where does that come from? Do you set > any fancy LD_LIBRARY_PATHS? Or any manipulation from your side in > /etc/ld.so.conf or /etc/ld.so.conf.d? .libs is the temporary directory used under GNU/Linux and Mac OS X at build time to store the shared library (.so, .dylib). Your issue has been reported here: http://bugzilla.scilab.org/show_bug.cgi?id=12133 and I will see if I can fix it for 5.4.1. About PVM, Paul, you can give it a try. PVM is a bit outdated and not maintained. We are working on a MPI Scilab implementation which should be better. Otherwise, if you want to go into parallel, you can have a look to Diet: http://graal.ens-lyon.fr/diet/use-cases/integrated-software/diet-scilab or proactive: http://proactive.activeeon.com/index.php?page=release_notes&action=displaymin&productid=12&majmin=1.0 Sylvestre From paul.carrico at free.fr Sun Dec 2 15:38:48 2012 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Sun, 2 Dec 2012 15:38:48 +0100 (CET) Subject: [Scilab-users] libsciparallel.so not provided In-Reply-To: <50BB63F5.809@scilab-enterprises.com> Message-ID: <2066108335.228848980.1354459128319.JavaMail.root@zimbra5-e1.priv.proxad.net> Hi Sylvestre, Let me asking the following : in order to use parallelization in a multicore environnent (serveur or station), what is the best way ? NB : - As I ever told in the current list, I use as often as possible the vectorization in my current develoment, but the same elementary scheme has to be used tens of hundreds times ... thus parallization is another way to have significant gain in time calculation, - I've a CentOs server with 8 processors Paul ----- Mail original ----- De: "Sylvestre Ledru" ?: users at lists.scilab.org Envoy?: Dimanche 2 D?cembre 2012 15:21:41 Objet: Re: [Scilab-users] libsciparallel.so not provided On 02/12/2012 11:59, Martin Helm wrote: > Am 02.12.2012 11:48, schrieb paul.carrico at free.fr: >> I don't know how to say ... I'm using the 5.4.0 binary release and I've such kind of message .... >> >> see http://mailinglists.scilab.org/Scilab-users-parallilization-error-on-opensuse-td4025260.html >> >> Paul >> > That looks very suspicious, there is no hidden .libs directory in > share/scilab/modules/parallel so where does that come from? Do you set > any fancy LD_LIBRARY_PATHS? Or any manipulation from your side in > /etc/ld.so.conf or /etc/ld.so.conf.d? .libs is the temporary directory used under GNU/Linux and Mac OS X at build time to store the shared library (.so, .dylib). Your issue has been reported here: http://bugzilla.scilab.org/show_bug.cgi?id=12133 and I will see if I can fix it for 5.4.1. About PVM, Paul, you can give it a try. PVM is a bit outdated and not maintained. We are working on a MPI Scilab implementation which should be better. Otherwise, if you want to go into parallel, you can have a look to Diet: http://graal.ens-lyon.fr/diet/use-cases/integrated-software/diet-scilab or proactive: http://proactive.activeeon.com/index.php?page=release_notes&action=displaymin&productid=12&majmin=1.0 Sylvestre _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From sylvestre.ledru at scilab-enterprises.com Sun Dec 2 15:55:00 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Sun, 02 Dec 2012 15:55:00 +0100 Subject: [Scilab-users] libsciparallel.so not provided In-Reply-To: <2066108335.228848980.1354459128319.JavaMail.root@zimbra5-e1.priv.proxad.net> References: <2066108335.228848980.1354459128319.JavaMail.root@zimbra5-e1.priv.proxad.net> Message-ID: <50BB6BC4.9010408@scilab-enterprises.com> There is no perfect answer: It depends the problem you are trying to solve. Sylvestre On 02/12/2012 15:38, paul.carrico at free.fr wrote: > Hi Sylvestre, > > Let me asking the following : in order to use parallelization in a multicore environnent (serveur or station), what is the best way ? > > NB : > - As I ever told in the current list, I use as often as possible the vectorization in my current develoment, but the same elementary scheme has to be used tens of hundreds times ... thus parallization is another way to have significant gain in time calculation, > - I've a CentOs server with 8 processors > > Paul > > > ----- Mail original ----- > De: "Sylvestre Ledru" > ?: users at lists.scilab.org > Envoy?: Dimanche 2 D?cembre 2012 15:21:41 > Objet: Re: [Scilab-users] libsciparallel.so not provided > > On 02/12/2012 11:59, Martin Helm wrote: >> Am 02.12.2012 11:48, schrieb paul.carrico at free.fr: >>> I don't know how to say ... I'm using the 5.4.0 binary release and I've such kind of message .... >>> >>> see http://mailinglists.scilab.org/Scilab-users-parallilization-error-on-opensuse-td4025260.html >>> >>> Paul >>> >> That looks very suspicious, there is no hidden .libs directory in >> share/scilab/modules/parallel so where does that come from? Do you set >> any fancy LD_LIBRARY_PATHS? Or any manipulation from your side in >> /etc/ld.so.conf or /etc/ld.so.conf.d? > .libs is the temporary directory used under GNU/Linux and Mac OS X at > build time to store the shared library (.so, .dylib). > Your issue has been reported here: > http://bugzilla.scilab.org/show_bug.cgi?id=12133 > and I will see if I can fix it for 5.4.1. > > About PVM, Paul, you can give it a try. PVM is a bit outdated and not > maintained. We are working on a MPI Scilab implementation which should > be better. > > Otherwise, if you want to go into parallel, you can have a look to Diet: > http://graal.ens-lyon.fr/diet/use-cases/integrated-software/diet-scilab > or proactive: > http://proactive.activeeon.com/index.php?page=release_notes&action=displaymin&productid=12&majmin=1.0 > > > Sylvestre > _______________________________________________ > 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 > From paul.carrico at free.fr Sun Dec 2 16:12:10 2012 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Sun, 2 Dec 2012 16:12:10 +0100 (CET) Subject: [Scilab-users] libsciparallel.so not provided In-Reply-To: <50BB6BC4.9010408@scilab-enterprises.com> Message-ID: <1723901555.228889252.1354461130233.JavaMail.root@zimbra5-e1.priv.proxad.net> imagine the following : for i = 1 : 100000 for j = 1 : 8 lanch_my_function_on_point_j end end would like to do : for i = 1 : 100000 proc1 = my_function_on_point_1 proc2 = my_function_on_point_2 .... .... proc3 = my_function_on_point_8 end Paul NB : the link to download the diet soft is broken ----- Mail original ----- De: "Sylvestre Ledru" ?: users at lists.scilab.org Envoy?: Dimanche 2 D?cembre 2012 15:55:00 Objet: Re: [Scilab-users] libsciparallel.so not provided There is no perfect answer: It depends the problem you are trying to solve. Sylvestre On 02/12/2012 15:38, paul.carrico at free.fr wrote: > Hi Sylvestre, > > Let me asking the following : in order to use parallelization in a multicore environnent (serveur or station), what is the best way ? > > NB : > - As I ever told in the current list, I use as often as possible the vectorization in my current develoment, but the same elementary scheme has to be used tens of hundreds times ... thus parallization is another way to have significant gain in time calculation, > - I've a CentOs server with 8 processors > > Paul > > > ----- Mail original ----- > De: "Sylvestre Ledru" > ?: users at lists.scilab.org > Envoy?: Dimanche 2 D?cembre 2012 15:21:41 > Objet: Re: [Scilab-users] libsciparallel.so not provided > > On 02/12/2012 11:59, Martin Helm wrote: >> Am 02.12.2012 11:48, schrieb paul.carrico at free.fr: >>> I don't know how to say ... I'm using the 5.4.0 binary release and I've such kind of message .... >>> >>> see http://mailinglists.scilab.org/Scilab-users-parallilization-error-on-opensuse-td4025260.html >>> >>> Paul >>> >> That looks very suspicious, there is no hidden .libs directory in >> share/scilab/modules/parallel so where does that come from? Do you set >> any fancy LD_LIBRARY_PATHS? Or any manipulation from your side in >> /etc/ld.so.conf or /etc/ld.so.conf.d? > .libs is the temporary directory used under GNU/Linux and Mac OS X at > build time to store the shared library (.so, .dylib). > Your issue has been reported here: > http://bugzilla.scilab.org/show_bug.cgi?id=12133 > and I will see if I can fix it for 5.4.1. > > About PVM, Paul, you can give it a try. PVM is a bit outdated and not > maintained. We are working on a MPI Scilab implementation which should > be better. > > Otherwise, if you want to go into parallel, you can have a look to Diet: > http://graal.ens-lyon.fr/diet/use-cases/integrated-software/diet-scilab > or proactive: > http://proactive.activeeon.com/index.php?page=release_notes&action=displaymin&productid=12&majmin=1.0 > > > Sylvestre > _______________________________________________ > 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 > _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From j.s.strom at hslmg.de Sun Dec 2 19:06:13 2012 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Sun, 2 Dec 2012 18:06:13 +0000 (UTC) Subject: [Scilab-users] fminsearch, error occurs after changing variable name References: <50BB492B.8050308@centre-cired.fr> Message-ID: Thank you Adrien, I tried your approach before because it works with optim. It fails. The reason is that "x" is a variable of fminsearch which interferes with "my" x. The consequence is that one has to choose variables that are not defined in fminsearch. This is quite disappointing for an elaborated language like Scilab. Kind regards Jens From vogt at centre-cired.fr Mon Dec 3 10:19:48 2012 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Mon, 03 Dec 2012 10:19:48 +0100 Subject: [Scilab-users] fminsearch, error occurs after changing variable name In-Reply-To: References: <50BB492B.8050308@centre-cired.fr> Message-ID: <50BC6EB4.7010305@centre-cired.fr> On 02/12/2012 19:06, Jens Simon Strom wrote: > Thank you Adrien, > I tried your approach before because it works with optim. It fails. The reason > is that "x" is a variable of fminsearch which interferes with "my" x. > > The consequence is that one has to choose variables that are not defined in > fminsearch. This is quite disappointing for an elaborated language like Scilab. > > Kind regards > Jens > Hi Jens I was surprised by your answer, os I tested the code. It works with no problem in my Sci 5.4 under winXP: function SAQ=!f(p,x,y), SAQ=sum( ( p(1)+p(2)*x-y ).^2 ), endfunction x=1:1000 ; y=2*x+3; popt=fminsearch(list(!f,x,y),[0;0]); function SAQ=!f(p,xi,yi), SAQ=sum( ( p(1)+p(2)*xi-yi ).^2 ), endfunction xi=1:1000 ; yi=2*x+3; popti=fminsearch(list(!f,xi,yi),[0;0]); popt-popti ans = 0. 0. Kind regards > > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.s.strom at hslmg.de Mon Dec 3 13:11:43 2012 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Mon, 3 Dec 2012 12:11:43 +0000 (UTC) Subject: [Scilab-users] fminsearch, error occurs after changing variable name References: <50BB492B.8050308@centre-cired.fr> <50BC6EB4.7010305@centre-cired.fr> Message-ID: Hallo Adrien, I tried your 'list' version. The error now is 'invalid index'. However I still use Version 5.3. So I will install 5.4.0 for 32 bits. After that I will give notice again. Kind regards Jens From ashim.giyanani at kenersys.com Mon Dec 3 14:00:08 2012 From: ashim.giyanani at kenersys.com (=?windows-1252?Q?Ashim_Giyanani?=) Date: Mon, 3 Dec 2012 14:00:08 +0100 Subject: [Scilab-users] Legends missing in the plot Message-ID: Hello ? I have scripted a Scilab file to do plotting; however, the legends do not show the legend name. This same script is working on other computers just fine and it was working with Scilab 5.3 very well as well. Could you please guide me in this related error. ? Scilab Version 5.4.0 ? Example of plot descrition ? subplot(2,2,4) xgrid(); ? plot(V2,TIV2_IEC,'r')???????? //pdf plot(V2int,TIV2M4,'db')??????? //pdf from site????? plot(V2int,TIV2M10,'.b')?????? //pdf from site????? ? fig.children(1).font_size=3; fig.children(1).x_label.font_size=3; fig.children(1).y_label.font_size=3; fig.children(1).title.font_size=3; fig.children(1).log_flags='nnn'; ? fig.children(1).x_label.text="wind speed in m/s"; fig.children(1).y_label.text="turbulence intensity in %"; fig.children(1).title.text="Distribution of turbulence intensity"; hl=legend(["Certification"; "Site, M4 (incl. dens. cor.)";"Site, M8 (incl. dens. cor.)"],a=1); ? Mit freundlichen Gr??en Ashim Giyanani Master Graduand ? KENERSYS GmbH | portAL 10 | Albersloher Weg 10 | 48155 M?nster | Germany Tel.: ????+49 (0)251 210 99-201 | Fax: -2801 E-Mail:?agiyanani at kenersys.com Web:??? www.kenersys.com ? KENERSYS?GmbH | Sitz/Reg. Amtsgericht M?nster HRB 10275 | Gesch?ftsf?hrer: B.S. Mitkari | UST-ID/ VAT.-ID: DE 232401701 ? Die Information in dieser E-Mail ist vertraulich und ist ausschliesslich fuer den Adressaten bestimmt. Jeglicher Zugriff auf diese E-Mail durch andere Personen als den Adressaten ist untersagt. Sollten Sie nicht der fuer diese E-Mail bestimmte Adressat sein, ist Ihnen jede Veroeffentlichung, Vervielfaeltigung oder Weitergabe wie auch das Ergreifen oder Unterlassen von Massnahmen im Vertrauen auf erlangte Information untersagt. In dieser E-Mail enthaltene Meinungen oder Empfehlungen unterliegen den Bedingungen des jeweiligen Kundenverhaeltnisses mit dem Adressaten. ? The information in this E-Mail is confidential and may be legally privileged. It is intended solely for the addressee. Access to this E-Mail by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Any opinions or advice contained in this E-Mail are subject to the terms and conditions expressed in the governing client engagement letter. ? P Please consider the environment before printing this E-Mail. ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.s.strom at hslmg.de Mon Dec 3 15:05:51 2012 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Mon, 3 Dec 2012 14:05:51 +0000 (UTC) Subject: [Scilab-users] =?utf-8?q?fminsearch=2C=09error_occurs_after_chang?= =?utf-8?q?ing__variable_name?= References: <50BB492B.8050308@centre-cired.fr> <50BC6EB4.7010305@centre-cired.fr> Message-ID: Hallo Adrien, with Version 5.4.0 for 32 bits your script with 'list' is flawless at my installation too. Thank you for your help and for activating me to install the recent version and to subscribe the Scilab update alarm. Kind regards Jens From Serge.Steer at inria.fr Mon Dec 3 18:49:57 2012 From: Serge.Steer at inria.fr (Serge Steer) Date: Mon, 03 Dec 2012 18:49:57 +0100 Subject: [Scilab-users] getting values from an event handler In-Reply-To: References: Message-ID: <50BCE645.5000500@inria.fr> The event handling function works asynchronously (may be during the execution of another function....) instruction like res=return (x*2) will store the result in the current execution context which unknown if Scilab is not at prompt level when the handling function is executed It is better to use global variable: function myEventHandler(win,x,y,ibut) global res res=x*2 endfunction You can then recover the value everywhere by global res;disp(res) or to store the result into the user data field of the figure in which the evenet handler has been called function myEventHandler(win,x,y,ibut) fig=get_figure_handle(win) set(fig, "user_data", struct("myres",x*2)) endfunction You can then recover the value everywhere using fig=get_figure_handle(win) disp(fig.user_data.myres) Serge Steer Le 30/11/2012 14:26, walid shouman a ?crit : > how can i return the a value from an event handling function > > > ie: > > seteventhandler('myEventHandler(win,x,y,ibut)') > function val=myEventHandler(win,x,y,ibut) > return x*2 > endfunction > > > where should i find "val" to use it later in the code ? > > -- > > Sincerely, > Walid E. Shouman > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From dedic at ac.me Tue Dec 4 09:33:36 2012 From: dedic at ac.me (sasivoje) Date: Tue, 4 Dec 2012 00:33:36 -0800 (PST) Subject: [Scilab-users] installation problem In-Reply-To: <50B74B92.8000502@laas.fr> References: <829bfbd905743f3d61a9b1c2dd5a21b7.squirrel@www.mail.ac.me> <50B74B92.8000502@laas.fr> Message-ID: <1354610016084-4025418.post@n3.nabble.com> The computer is Pentium III, 1,1 GHz, 256 M ram, processor i686, WindowsXP Scilab works correctly under Linux at the same machine Aleksandar -- View this message in context: http://mailinglists.scilab.org/Scilab-users-installation-problem-tp4025372p4025418.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From j.s.strom at hslmg.de Tue Dec 4 17:21:17 2012 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Tue, 4 Dec 2012 16:21:17 +0000 (UTC) Subject: [Scilab-users] Replacement of pixmap by drawlater / drawnow in Version 5.4.0 Message-ID: In version 5.3 I have written a script which produces an animated plot of a magnetic field showing approx. 70 oscillating and rotating arrows. The arrows are generated by the command 'arrows' in a loop. I used the 'pixmap' and the 'show_pixmap()' command resulting in a perfect calm and smooth movie. Version 5.4.0 tells me that 'pixmap' is obsolete and 'drawlater' and 'drawnow' shall be used instead. I have tried my best with the latter two plus 'xpause' but never got a satisfying result - the animation performs like a defect silent film projector. Deleting seem to be an issue. Could anyone kindly give me a hint how I can calm down the animation with 'drawlater' and 'drawnow' in a loop where arrows are drawn with 'arrows'? 'comet' might be a workarond but that would mean a new start from scratch. Kind regards Jens From paul.carrico at free.fr Tue Dec 4 17:25:07 2012 From: paul.carrico at free.fr (Paul Carrico) Date: Tue, 4 Dec 2012 17:25:07 +0100 Subject: [Scilab-users] file missing with csvRead : scilab 5.4.0 Message-ID: <000001cdd23b$ed6ba290$c842e7b0$@carrico@free.fr> Dear all, Is there an equivalent to "err" when using csvRead ? I'm looking to a way to test if the file exists (or not) previous to read it with csvRead Thanks Paul >From "mopen" help file : [fd, err] = mopen(file [, mode, swap ]) -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.s.strom at hslmg.de Tue Dec 4 17:28:07 2012 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Tue, 4 Dec 2012 16:28:07 +0000 (UTC) Subject: [Scilab-users] Replacement of pixmap by drawlater / drawnow in Version 5.4.0 Message-ID: In version 5.3 I have written a script which produces an animated plot of a magnetic field showing approx. 70 oscillating and rotating arrows. The arrows are generated by the command 'arrows' in a loop. I used the 'pixmap' and the 'show_pixmap()' command resulting in a perfect calm and smooth movie. Version 5.4.0 tells me that 'pixmap' is obsolete and 'drawlater' and 'drawnow' shall be used instead. I have tried my best with the latter two plus 'xpause' but never got a satisfying result - the animation performs like a defect silent film projector. Deleting seem to be an issue. Could anyone kindly give me a hint how I can calm down the animation with 'drawlater' and 'drawnow' in a loop where arrows are drawn with 'arrows'? 'comet' might be a workarond but that would mean a new start from scratch. Kind regards Jens From vogt at centre-cired.fr Tue Dec 4 17:32:25 2012 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Tue, 04 Dec 2012 17:32:25 +0100 Subject: [Scilab-users] Replacement of pixmap by drawlater / drawnow in Version 5.4.0 In-Reply-To: References: Message-ID: <50BE2599.1080807@centre-cired.fr> On 04/12/2012 17:21, Jens Simon Strom wrote: > In version 5.3 I have written a script which produces an animated plot of a > magnetic field showing approx. 70 oscillating and rotating arrows. The arrows > are generated by the command 'arrows' in a loop. I used the 'pixmap' and the > 'show_pixmap()' command resulting in a perfect calm and smooth movie. > > Version 5.4.0 tells me that 'pixmap' is obsolete and 'drawlater' and 'drawnow' > shall be used instead. I have tried my best with the latter two plus 'xpause' > but never got a satisfying result - the animation performs like a defect silent > film projector. Deleting seem to be an issue. > > Could anyone kindly give me a hint how I can calm down the animation with > 'drawlater' and 'drawnow' in a loop where arrows are drawn with 'arrows'? > > 'comet' might be a workarond but that would mean a new start from scratch. > > Kind regards > Jens > > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users Hi This works for me: dt=30;x=1:0.1:10;fori=1:0.01:10drawlaterclf//clear plot plot(x,sin(i*x/10))//plot a=gca();a.data_bounds(:,2)=[-1;1];//fixes bounds drawnowxpause(dt)end Is it what you are looking for? Kind regards, Adrien Exported from Notepad++ -------------- next part -------------- An HTML attachment was scrubbed... URL: From vogt at centre-cired.fr Tue Dec 4 17:33:28 2012 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Tue, 04 Dec 2012 17:33:28 +0100 Subject: [Scilab-users] file missing with csvRead : scilab 5.4.0 In-Reply-To: <000001cdd23b$ed6ba290$c842e7b0$@carrico@free.fr> References: <000001cdd23b$ed6ba290$c842e7b0$@carrico@free.fr> Message-ID: <50BE25D8.9050001@centre-cired.fr> On 04/12/2012 17:25, Paul Carrico wrote: > > Dear all, > > Is there an equivalent to "err" when using csvRead ? I'm looking to a > way to test if the file exists (or not) previous to read it with csvRead > > Thanks > > Paul > > From "mopen" help file : > > [fd, err] = mopen(file [, mode, swap ]) > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users Hi Is isfile a solution for you? isfile("notafile.csv") KR AVS -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Tue Dec 4 17:50:09 2012 From: paul.carrico at free.fr (Paul Carrico) Date: Tue, 4 Dec 2012 17:50:09 +0100 Subject: [Scilab-users] file missing with csvRead : scilab 5.4.0 In-Reply-To: <50BE25D8.9050001@centre-cired.fr> References: <000001cdd23b$ed6ba290$c842e7b0$@carrico@free.fr> <50BE25D8.9050001@centre-cired.fr> Message-ID: <001a01cdd23f$6cc8bd40$465a37c0$@carrico@free.fr> Great thanks De : users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de Adrien Vogt-Schilb Envoy? : mardi 4 d?cembre 2012 17:33 ? : International users mailing list for Scilab. Objet : Re: [Scilab-users] file missing with csvRead : scilab 5.4.0 On 04/12/2012 17:25, Paul Carrico wrote: Dear all, Is there an equivalent to ?err? when using csvRead ? I?m looking to a way to test if the file exists (or not) previous to read it with csvRead Thanks Paul >From ?mopen? help file : [fd, err] = mopen(file [, mode, swap ]) _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users Hi Is isfile a solution for you? isfile("notafile.csv") KR AVS -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.s.strom at hslmg.de Tue Dec 4 17:51:08 2012 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Tue, 4 Dec 2012 16:51:08 +0000 (UTC) Subject: [Scilab-users] Replacement of pixmap by drawlater / drawnow in Version 5.4.0 References: <50BE2599.1080807@centre-cired.fr> Message-ID: Hello Adrien, Thanks for your answer. Your example is fine on my installation too except some bouncing and hopping now and then. In my case - using your approach - these disturbances are more severe. One gets nervous when watching the animation. Fortunately I did not uninstall version 5.3. Kind regards Jens From vogt at centre-cired.fr Tue Dec 4 17:56:00 2012 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Tue, 04 Dec 2012 17:56:00 +0100 Subject: [Scilab-users] Replacement of pixmap by drawlater / drawnow in Version 5.4.0 In-Reply-To: References: <50BE2599.1080807@centre-cired.fr> Message-ID: <50BE2B20.9070600@centre-cired.fr> On 04/12/2012 17:51, Jens Simon Strom wrote: > Hello Adrien, > Thanks for your answer. Your example is fine on my installation too except some > bouncing and hopping now and then. In my case - using your approach - these > disturbances are more severe. One gets nervous when watching the animation. > Fortunately I did not uninstall version 5.3. > Kind regards > Jens > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users Hi I guess you already tried to fine tune the dt parameter. Another approach consists on exporting each frame as a gif file, then convert the separated gif files in one animated gif. This can be quiet more easily than I though. it is explan in the documentation page of xs2gif and requires to install an additional piece of software; but it worth it: help xs2gif Kind regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdeligny38 at gmail.com Tue Dec 4 20:07:48 2012 From: sdeligny38 at gmail.com (sdeligny) Date: Tue, 4 Dec 2012 11:07:48 -0800 (PST) Subject: [Scilab-users] =?utf-8?q?probl=C3=A8me_fonction_CL=5Fdeg2rad?= Message-ID: <1354648068683-4025429.post@n3.nabble.com> Bonjour, Je commence ? utiliser le module celestlab pour un projet nano-satellite, et j'ai rencontr? un probl?me lors de l?ex?cution de la fonction CL_deg2rad. Celle-ci fonctionne normalement lorsqu'elle est employ?e de la mani?re suivante : x_rad = CL_deg2rad(x_deg). Mais avec l'?criture x_rad = x_deg * %CL_deg2rad, la console me renvoie : "error 4 - Variable non d?finie : %CL_deg2rad" Une visite de l'aide m'indique pourtant que l'utilisation de cette ?criture est possible... Je ne comprends pas, cela vient-il d'un probl?me de version ? Merci de votre r?ponse, Bien Cordialement, Simon DELIGNY, ?l?ve-ing?nieur Centrale Marseille -- View this message in context: http://mailinglists.scilab.org/probleme-fonction-CL-deg2rad-tp4025429.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From avanxar at yahoo.com Wed Dec 5 03:41:02 2012 From: avanxar at yahoo.com (Gilberto Parra) Date: Tue, 4 Dec 2012 18:41:02 -0800 (PST) Subject: [Scilab-users] scilab Message-ID: <1354675262.86004.YahooMailNeo@web120404.mail.ne1.yahoo.com> Gentlement good day scilab has Data Acquisition via serial or USAB? scilab can plot 2D data acquired by serial or parallel port? scilab for private use has a cost? scilab to use the official sector (government) have a cost? scilab is difficult to handle? scilab has complete tutorials? thanks Gilberto Parra -------------- next part -------------- An HTML attachment was scrubbed... URL: From sampsahannola at gmail.com Wed Dec 5 09:12:43 2012 From: sampsahannola at gmail.com (Sampsa Hannola) Date: Wed, 5 Dec 2012 10:12:43 +0200 Subject: [Scilab-users] Website comment Message-ID: Hello, I have a request for your website: The fast download link on your websites frontpage should make an inquiry about the operating system of the user. Mainly the 32- or 64bit versions. I used the link and upon installing the first comment was "you should use 64bit version for faster experience..." Otherwise I love this software! - Sampsa Hannola -------------- next part -------------- An HTML attachment was scrubbed... URL: From frederic.jourdin at shom.fr Wed Dec 5 09:47:30 2012 From: frederic.jourdin at shom.fr (Frederic Jourdin) Date: Wed, 05 Dec 2012 09:47:30 +0100 Subject: [Scilab-users] =?utf-8?q?probl=C3=A8me_fonction_CL=5Fdeg2rad?= In-Reply-To: <1354648068683-4025429.post@n3.nabble.com> References: <1354648068683-4025429.post@n3.nabble.com> Message-ID: <50BF0A22.1050708@shom.fr> There is a special Scilab mailing list for French language. (je me rappelle plus l'adresse...) Fred Le 04/12/2012 20:07, sdeligny a ?crit : > Bonjour, > Je commence ? utiliser le module celestlab pour un projet nano-satellite, et > j'ai rencontr? un probl?me lors de l?ex?cution de la fonction CL_deg2rad. > Celle-ci fonctionne normalement lorsqu'elle est employ?e de la mani?re > suivante : x_rad = CL_deg2rad(x_deg). > > Mais avec l'?criture x_rad = x_deg * %CL_deg2rad, la console me renvoie : > > "error 4 - Variable non d?finie : %CL_deg2rad" > > Une visite de l'aide m'indique pourtant que l'utilisation de cette ?criture > est possible... > > Je ne comprends pas, cela vient-il d'un probl?me de version ? > > Merci de votre r?ponse, > > Bien Cordialement, > > Simon DELIGNY, > ?l?ve-ing?nieur Centrale Marseille > > > > > > -- > View this message in context: http://mailinglists.scilab.org/probleme-fonction-CL-deg2rad-tp4025429.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From sylvestre.ledru at scilab-enterprises.com Wed Dec 5 09:49:36 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Wed, 05 Dec 2012 09:49:36 +0100 Subject: [Scilab-users] =?utf-8?q?probl=C3=A8me_fonction_CL=5Fdeg2rad?= In-Reply-To: <50BF0A22.1050708@shom.fr> References: <1354648068683-4025429.post@n3.nabble.com> <50BF0A22.1050708@shom.fr> Message-ID: <50BF0AA0.5000806@scilab-enterprises.com> You can subscribe by sending an email to: celestlab-subscribe at lists.scilab.org and the archives are here: http://mailinglists.scilab.org/CelestLab-f3653733.html Sylvestre On 05/12/2012 09:47, Frederic Jourdin wrote: > There is a special Scilab mailing list for French language. > (je me rappelle plus l'adresse...) > Fred > > > Le 04/12/2012 20:07, sdeligny a ?crit : >> Bonjour, >> Je commence ? utiliser le module celestlab pour un projet >> nano-satellite, et >> j'ai rencontr? un probl?me lors de l?ex?cution de la fonction CL_deg2rad. >> Celle-ci fonctionne normalement lorsqu'elle est employ?e de la mani?re >> suivante : x_rad = CL_deg2rad(x_deg). >> >> Mais avec l'?criture x_rad = x_deg * %CL_deg2rad, la console me renvoie : >> >> "error 4 - Variable non d?finie : %CL_deg2rad" >> >> Une visite de l'aide m'indique pourtant que l'utilisation de cette >> ?criture >> est possible... >> >> Je ne comprends pas, cela vient-il d'un probl?me de version ? >> >> Merci de votre r?ponse, >> >> Bien Cordialement, >> >> Simon DELIGNY, >> ?l?ve-ing?nieur Centrale Marseille >> >> >> >> >> >> -- >> View this message in context: >> http://mailinglists.scilab.org/probleme-fonction-CL-deg2rad-tp4025429.html >> >> Sent from the Scilab users - Mailing Lists Archives mailing list >> archive at Nabble.com. >> _______________________________________________ >> 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 From tpaysen at sbcglobal.net Wed Dec 5 10:20:11 2012 From: tpaysen at sbcglobal.net (Tim Paysen) Date: Wed, 5 Dec 2012 01:20:11 -0800 (PST) Subject: [Scilab-users] scilab In-Reply-To: <1354675262.86004.YahooMailNeo@web120404.mail.ne1.yahoo.com> References: <1354675262.86004.YahooMailNeo@web120404.mail.ne1.yahoo.com> Message-ID: <1354699211.97621.YahooMailRC@web181102.mail.ne1.yahoo.com> Scilab is open-source (free). It can plot 2D data--the port is up to your computer. Scilab is not difficult to handle--but you have to have a bit of programming sense to use it to its fullest potential. The tutorials are good--they are expanding their languages for tutorials. Absolute completeness is found in the very good help files--which have very good examples that can be directly run by the software. Tim Paysen ________________________________ From: Gilberto Parra To: "users at lists.scilab.org" ; "users-fr at lists.scilab.org" ; "enseignement at lists.scilab.org" Sent: Wed, December 5, 2012 12:22:57 AM Subject: [Scilab-users] scilab Gentlement good day scilab has Data Acquisition via serial or USAB? scilab can plot 2D data acquired by serial or parallel port? scilab for private use has a cost? scilab to use the official sector (government) have a cost? scilab is difficult to handle? scilab has complete tutorials? thanks Gilberto Parra -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.s.strom at hslmg.de Wed Dec 5 12:42:27 2012 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Wed, 5 Dec 2012 11:42:27 +0000 (UTC) Subject: [Scilab-users] Replacement of pixmap by drawlater / drawnow in Version 5.4.0 References: <50BE2599.1080807@centre-cired.fr> <50BE2B20.9070600@centre-cired.fr> Message-ID: Hallo Adrien, 'xs2gif' plus external software sounds promising. Might even be better than 'pixmap'. I will try it. Thanks for the clue! Kind regards Jens From Serge.Steer at inria.fr Wed Dec 5 15:20:13 2012 From: Serge.Steer at inria.fr (Serge Steer) Date: Wed, 05 Dec 2012 15:20:13 +0100 Subject: [Scilab-users] Replacement of pixmap by drawlater / drawnow in Version 5.4.0 In-Reply-To: References: Message-ID: <50BF581D.4090407@inria.fr> Le 04/12/2012 17:28, Jens Simon Strom a ?crit : > In version 5.3 I have written a script which produces an animated plot of a > magnetic field showing approx. 70 oscillating and rotating arrows. The arrows > are generated by the command 'arrows' in a loop. I used the 'pixmap' and the > 'show_pixmap()' command resulting in a perfect calm and smooth movie. > > Version 5.4.0 tells me that 'pixmap' is obsolete and 'drawlater' and 'drawnow' > shall be used instead. I have tried my best with the latter two plus 'xpause' > but never got a satisfying result - the animation performs like a defect silent > film projector. Deleting seem to be an issue. > > Could anyone kindly give me a hint how I can calm down the animation with > 'drawlater' and 'drawnow' in a loop where arrows are drawn with 'arrows'? > > 'comet' might be a workarond but that would mean a new start from scratch. > > Kind regards > Jens > > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > does the sample code below solves the problem? Note that it does not use neither pixmap neither drawlater drawnow clf();a=gca();a.data_bounds=[-1 -1;1 1]*10; t=linspace(0,2*%pi,70); n=110; r1=linspace(0,1,n); r2=linspace(1,10,n); phi=linspace(0,%pi/2,n); k=1; nx=[r1(k)*cos(t+phi(k));r2(k)*cos(t+phi(k))]; ny=[r1(k)*sin(t+phi(k));r2(k)*sin(t+phi(k))]; xarrows(nx,ny)// create the Segs entity e=gce(); //get the handle on it realtimeinit(0.05); for k=2:n realtime(k-1) //wait a little to slow down the loop if necessary nx=[r1(k)*cos(t+phi(k));r2(k)*cos(t+phi(k))]; ny=[r1(k)*sin(t+phi(k));r2(k)*sin(t+phi(k))]; e.data=[nx(:) ny(:)];//update arrow coordinates end Serge Steer -------------- next part -------------- An HTML attachment was scrubbed... URL: From julie.paul at scilab-enterprises.com Wed Dec 5 17:24:15 2012 From: julie.paul at scilab-enterprises.com (Julie PAUL) Date: Wed, 5 Dec 2012 17:24:15 +0100 Subject: [Scilab-users] Website comment In-Reply-To: References: Message-ID: Dear Sir, Thanks for your feedback. We are currently working on a brand new version of www.scilab.org which will detect automatically from the fast download link on which version (32 or 64 bits) the computer is under and thus avoid future confusion for Windows users. Best Regards Julie PAUL Communications & Public Relations Director ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France http://www.scilab-enterprises.com Le 5 d?c. 2012 ? 09:12, Sampsa Hannola a ?crit : > Hello, > > I have a request for your website: > > The fast download link on your websites frontpage should make an inquiry about the operating system of the user. Mainly the 32- or 64bit versions. I used the link and upon installing the first comment was "you should use 64bit version for faster experience..." > > Otherwise I love this software! > > - Sampsa Hannola > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From julien.langouet at gmail.com Wed Dec 5 20:35:37 2012 From: julien.langouet at gmail.com (julien.langouet) Date: Wed, 5 Dec 2012 11:35:37 -0800 (PST) Subject: [Scilab-users] Scilab date and hour functions In-Reply-To: <1493600569.9820648.1354141894975.JavaMail.root@inria.fr> References: <1354130177632-4025363.post@n3.nabble.com> <1493600569.9820648.1354141894975.JavaMail.root@inria.fr> Message-ID: <1354736137118-4025439.post@n3.nabble.com> Hello, thanks for your help.. I'm a bit confusing now, i tried your purpose but it doesn't work with me. I guess it's my fault. I tried to create an array just like Serge said... the time is in the 1st column in milliseconds and normally the time have to be converted and stocked in the matrix T right? But i don't understand the "conso(:,1:2)" argument... Also when I try it the matrix T is full of zeros but no time... Could you explain tell me what's wrong? that's what i wrote : conso=fscanfMat("C:\Projet Helios\Grapheur 2013\consommation2.txt") [A, M, J, h, mn, s] = datevec(conso(:,1)/1000/24/3600); out = msprintf("%02d:%02d:%04.1f\n",h, mn ,s) T=tlist(["foo","data","time"],conso(:,1:2),out) -- View this message in context: http://mailinglists.scilab.org/Scilab-date-and-hour-functions-tp4025363p4025439.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From jeff at hamannclan.net Thu Dec 6 14:29:36 2012 From: jeff at hamannclan.net (Jeff) Date: Thu, 6 Dec 2012 13:29:36 +0000 (UTC) Subject: [Scilab-users] problems with script execution from SciNotes Message-ID: Hello, I'm running SciLab 5.4.0 on OS X 10.6.8 and am having a problem opening a figure from an sce script that I am working on. The text of the script is: f = figure("figure_name", gettext("test window"),... "BackgroundColor",[1 1 1],... "Tag","test_window"); Nothing else except comments. ?When I execute the script from SciNotes I see no response. But if I execute from the menu "Execute->...file with echo" I do get my window to appear. I presume this is happening because the script contents is being executed from the echo'd console, but I could be incorrect on that. As part of my troubleshooting I made a copy of the demo script uicontrol.dem.sce (which works fine) and tore it down until everything is deleted or commented except the same code as above. This does produce a blank window as expected when I execute it from SciNotes. If I copy this command from the working (torn down) uicontrol.dem.sce file into a brand new sce script it doesn't show a window when I try to execute. I have tried executing the new scripts from the same director as my copy of the demo code. No change. What am I missing? Thank for your assistance. Hope I'm clear on my explanation. Warm regards, Jeff From jrafaelbguerra at hotmail.com Fri Dec 7 01:16:44 2012 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Thu, 6 Dec 2012 16:16:44 -0800 (PST) Subject: [Scilab-users] Plotting functions of spherical coordinates on a sphere Message-ID: <1354839404035-4025441.post@n3.nabble.com> Hello,Is it possible in Scilab to plot a function of spherical coordinates on a sphere?Graphical examples can be found in Wikipedia page "spherical harmonics", or much nicer ones in Mathematica page, obtained by googling: "plotting - Density plot on the surface of sphere - Mathematica" - see figure attached.Thanks and regardsRafael G. -- View this message in context: http://mailinglists.scilab.org/Plotting-functions-of-spherical-coordinates-on-a-sphere-tp4025441.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Fri Dec 7 09:50:05 2012 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 07 Dec 2012 09:50:05 +0100 Subject: [Scilab-users] Plotting functions of spherical coordinates on a sphere In-Reply-To: <1354839404035-4025441.post@n3.nabble.com> References: <1354839404035-4025441.post@n3.nabble.com> Message-ID: <50C1ADBD.50006@free.fr> Hello Rafael, You may have a look at here: http://fileexchange.scilab.org/toolboxes/129000 Regards From rogermiroy at yahoo.co.uk Sat Dec 8 12:36:00 2012 From: rogermiroy at yahoo.co.uk (Roger Miroy) Date: Sat, 8 Dec 2012 11:36:00 +0000 (GMT) Subject: [Scilab-users] Scilab graphics problem Message-ID: <1354966560.88262.YahooMailNeo@web171303.mail.ir2.yahoo.com> Hello All, I have installed the latest version of Scilab on my laptop which is running Vista Basic. The problem is that Scilab only works with non graphic applications. As soon as it encounters anything to do with drawing or graphing it puts up an empty graphics window and none of the controls work. The only way to shut Scilab down is windows task manager and end process. I had one instance of a error message saying it could not find a path to Java but the message was partly hidden by the then stuck window. Any ideas please ? Thank you, Roger -------------- next part -------------- An HTML attachment was scrubbed... URL: From haasejos at web.de Sat Dec 8 14:10:18 2012 From: haasejos at web.de (haasejos) Date: Sat, 8 Dec 2012 05:10:18 -0800 (PST) Subject: [Scilab-users] inttrap Message-ID: <1354972218098-4025444.post@n3.nabble.com> *hallo, I want to compare several calculations for fourier coefficients (see example):* clear; clc; xdel; function f_x = RECHTECK(); // Berechnung der Rechteckfunktion f_x(1:20) = 1; f_x(21:40) = -1; endfunction x = linspace (0 , 2*%pi , 40); f_x = RECHTECK(); //m = [x',f_x]; //disp(m); //plot2d(x',f_x); //0-ter Fourierkoeffizient a_0 = (1/%pi)*inttrap(x , f_x); //disp('a_0 = ' +string(a_0)); c_0 = a_0 / 2; //1te Fourierkoeffizienten a_1 = (1/%pi) * inttrap(x , (f_x .* cos(1*x)')); //disp('a_1 = ' +string(a_1)); b_1 = (1/%pi) * inttrap(x , (f_x .* sin(1*x)')); //disp('b_1 = ' +string(b_1)); c_11 = (a_1 - %i * b_1) / 2; c_12 = (a_1 + %i * b_1) / 2; c_11_i = 1/(2*%pi) * inttrap(x , f_x .* (%e^((-%i) * 1 * x))'); c_12_i = 1/(2*%pi) * inttrap(x , f_x .* (%e^((-%i) * (-1) * x))'); disp ([c_11 c_11_i c_12 c_12_i]); abort; *As it can be seen, c_11_i = - c_11. Can this NOT be done by inttrap? What else am I doing wrong? thanks in advance for your help Josef * -- View this message in context: http://mailinglists.scilab.org/inttrap-tp4025444.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From mathieu.dubois at limsi.fr Sat Dec 8 14:46:25 2012 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Sat, 08 Dec 2012 14:46:25 +0100 Subject: [Scilab-users] problems with script execution from SciNotes In-Reply-To: References: Message-ID: <336b19340df03685e0ff5a265790c59f@limsi.fr> Hi Jeff, This sounds mysterious... I have copied your example in a file and it works perfectly (with or without echo). I'm under Linux. What's strange is that the command works inside your stripped version of uicontrol.dem.sce and not in your file. So it's not a graphic problem or a syntax error. Do you use blank characters in your filename? What happen if you put some printf statement? They should appear on the console. Last idea: try to execute your file form the console with exec() HTH, Mathieu Le 06/12/2012 14:29, Jeff a ?crit : > Hello, > > I'm running SciLab 5.4.0 on OS X 10.6.8 and am having a problem > opening a figure from an sce script that I am working on. The text > of the script is: > > f = figure("figure_name", gettext("test window"),... > "BackgroundColor",[1 1 1],... > "Tag","test_window"); > > Nothing else except comments. > > ?When I execute the script from SciNotes I see no response. But if > I execute from the menu "Execute->...file with echo" I do get my > window to appear. I presume this is happening because the script > contents is being executed from the echo'd console, but I could be > incorrect on that. > > As part of my troubleshooting I made a copy of the demo script > uicontrol.dem.sce (which works fine) and tore it down until > everything is deleted or commented except the same code as above. > This does produce a blank window as expected when I execute it > from SciNotes. > > If I copy this command from the working (torn down) > uicontrol.dem.sce file into a brand new sce script it doesn't show > a window when I try to execute. > > I have tried executing the new scripts from the same director > as my copy of the demo code. No change. > > What am I missing? > > Thank for your assistance. Hope I'm clear on my explanation. > > Warm regards, > Jeff > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From sylvestre.ledru at scilab-enterprises.com Sat Dec 8 15:56:37 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Sat, 08 Dec 2012 15:56:37 +0100 Subject: [Scilab-users] problems with script execution from SciNotes In-Reply-To: References: Message-ID: <50C35525.4010700@scilab-enterprises.com> On 06/12/2012 14:29, Jeff wrote: > Hello, > > I'm running SciLab 5.4.0 on OS X 10.6.8 and am having a problem > opening a figure from an sce script that I am working on. The text > of the script is: > > f = figure("figure_name", gettext("test window"),... > "BackgroundColor",[1 1 1],... > "Tag","test_window"); > > Nothing else except comments. > > ?When I execute the script from SciNotes I see no response. But if > I execute from the menu "Execute->...file with echo" I do get my > window to appear. I presume this is happening because the script > contents is being executed from the echo'd console, but I could be > incorrect on that. Sounds like: http://bugzilla.scilab.org/show_bug.cgi?id=11994 http://mailinglists.scilab.org/Scilab-users-Compatibility-With-MAC-OS-Mountain-Lion-td4024747.html As a workaround (as said in a message): Go to preferences and in the scinotes tab, switch default file encoding to iso-8859-1. I also switched the end-of-line to Unix. Sylvestre From jrafaelbguerra at hotmail.com Sat Dec 8 16:11:32 2012 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sat, 8 Dec 2012 07:11:32 -0800 (PST) Subject: [Scilab-users] Plotting functions of spherical coordinates on a sphere In-Reply-To: <50C1ADBD.50006@free.fr> References: <1354839404035-4025441.post@n3.nabble.com> <50C1ADBD.50006@free.fr> Message-ID: <1354979492437-4025447.post@n3.nabble.com> Samuel, Thanks for the very useful link provided, despite that I could not find what I was looking for. For example, how to plot a function such as a surface temperature field T=T(polar angles) on a sphere using the color scale to differentiate the temperature values? Maybe I have overlooked something in the examples shown in the link provided, as this type of functions seems to be plotted there as 3D parametric surfaces, with the surface distance to the origin being equal to the function values. Best Regards, Rafael G. -- View this message in context: http://mailinglists.scilab.org/Plotting-functions-of-spherical-coordinates-on-a-sphere-tp4025441p4025447.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Sat Dec 8 17:22:12 2012 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 08 Dec 2012 17:22:12 +0100 Subject: [Scilab-users] Plotting functions of spherical coordinates on a sphere In-Reply-To: <1354979492437-4025447.post@n3.nabble.com> References: <1354839404035-4025441.post@n3.nabble.com> <50C1ADBD.50006@free.fr> <1354979492437-4025447.post@n3.nabble.com> Message-ID: <50C36934.8070305@free.fr> Le 08/12/2012 16:11, Rafael Guerra a ?crit : > Samuel, > > Thanks for the very useful link provided, despite that I could not find what > I was looking for. > For example, how to plot a function such as a surface temperature field > T=T(polar angles) on a sphere using the color scale to differentiate the > temperature values? Here is an example: a = linspace(0,360,100); th = linspace(-90,90,50); R = 1; [A,Th] = meshgrid(a,th); Z = R*sind(Th); X = R*cosd(Th).*cosd(A); Y = R*cosd(Th).*sind(A); Ncolors = 100; // Number of coding colors temp = pmodulo(A+Th,Ncolors)+1; // Here gives the spherical mapping of your data clf f = gcf(); f.color_map = jetcolormap(Ncolors); surf(X,Y,Z,temp) ax = gca(); ax.isoview = 'on'; e = gce(); e.thickness = 0; e.thickness = 0; // hides the mesh e.color_flag = 3; // switches to interpolated colors and the result (without and with interpolated colors): HTH Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: cajccbci.png Type: image/png Size: 16220 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: bhdghcdb.png Type: image/png Size: 23619 bytes Desc: not available URL: From sgougeon at free.fr Sat Dec 8 17:41:09 2012 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 08 Dec 2012 17:41:09 +0100 Subject: [Scilab-users] Plotting functions of spherical coordinates on a sphere In-Reply-To: <1354979492437-4025447.post@n3.nabble.com> References: <1354839404035-4025441.post@n3.nabble.com> <50C1ADBD.50006@free.fr> <1354979492437-4025447.post@n3.nabble.com> Message-ID: <50C36DA5.40500@free.fr> Sorry, i did not see the attached figure of your first message before posting. With (your example, for the real part of exp(2iA)) temp = cosd(2*A).*sind(Th).^2 .*cosd(Th).*(3*cosd(Th).^2 -1); you will get -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: jgafjfid.png Type: image/png Size: 20013 bytes Desc: not available URL: From ludo.wag at laposte.net Sat Dec 8 20:36:55 2012 From: ludo.wag at laposte.net (Orbeman) Date: Sat, 8 Dec 2012 11:36:55 -0800 (PST) Subject: [Scilab-users] List of struct Message-ID: <1354995415394-4025451.post@n3.nabble.com> Hello, I don't understand why Scilab does not allow the following code : a=list() for i=1:10 a(i)=struct() end Thanks. -- View this message in context: http://mailinglists.scilab.org/List-of-struct-tp4025451.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Sun Dec 9 03:44:23 2012 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 09 Dec 2012 03:44:23 +0100 Subject: [Scilab-users] List of struct In-Reply-To: <1354995415394-4025451.post@n3.nabble.com> References: <1354995415394-4025451.post@n3.nabble.com> Message-ID: <50C3FB07.8030805@free.fr> Le 08/12/2012 20:36, Orbeman a ?crit : > Hello, > > I don't understand why Scilab does not allow the following code : for me, scilab 5.4.0 / win 7 64 bits does run it as expected. From xiaodongbai_2007 at yahoo.com Sun Dec 9 03:00:49 2012 From: xiaodongbai_2007 at yahoo.com (xdb) Date: Sat, 8 Dec 2012 18:00:49 -0800 (PST) Subject: [Scilab-users] Hello is there a function to do the inner product of two 2-D vectors? Message-ID: <1355018449292-4025452.post@n3.nabble.com> Hello, Is there a function to do the inner product of two 2-D vectors? thanks xdb -- View this message in context: http://mailinglists.scilab.org/Hello-is-there-a-function-to-do-the-inner-product-of-two-2-D-vectors-tp4025452.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From dkajah at gmail.com Sun Dec 9 18:24:43 2012 From: dkajah at gmail.com (Daniel Penalva) Date: Sun, 9 Dec 2012 15:24:43 -0200 Subject: [Scilab-users] Hello is there a function to do the inner product of two 2-D vectors? In-Reply-To: <1355018449292-4025452.post@n3.nabble.com> References: <1355018449292-4025452.post@n3.nabble.com> Message-ID: maybe operator .* , vec1 .* vec2 On Sun, Dec 9, 2012 at 12:00 AM, xdb wrote: > Hello, > > Is there a function to do the inner product of two 2-D vectors? > > thanks > > xdb > > > > > -- > View this message in context: > http://mailinglists.scilab.org/Hello-is-there-a-function-to-do-the-inner-product-of-two-2-D-vectors-tp4025452.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive > at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -- *Democracia Digital Direta Carta: *http://li7e.org/ddd2 *Des Carta coletiva aos ministerios * http://rede.metareciclagem.org/blog/16-10-12/Des-Carta-da-Rede-Metareciclagem-para-o-Ministerio-da-Cultura-e-Outros-Ministerios-Tam * * *AfroAmbiental eh sociedade em Axe e Diversidade* http://afroambiental.org Daniel Penalva State related activity, currently: Phd - Physics in Institute for Theoretical Physics - http://www.ift.unesp.br/posgrad/ramais-alunos-pos.php Transparency portal(workflows): http://www.nightsc.com.br/aa/interface_v0.1.php *look for SUoU9 user, or do ctrl+f and SUoU9* FLOSS and related ideas enthusiastic -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sun Dec 9 19:46:51 2012 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 09 Dec 2012 19:46:51 +0100 Subject: [Scilab-users] Hello is there a function to do the inner product of two 2-D vectors? In-Reply-To: <1355018449292-4025452.post@n3.nabble.com> References: <1355018449292-4025452.post@n3.nabble.com> Message-ID: <50C4DC9B.4030902@free.fr> Le 09/12/2012 03:00, xdb a ?crit : > Hello, > > Is there a function to do the inner product of two 2-D vectors? sum(a.*b) From j.s.strom at hslmg.de Sun Dec 9 22:23:42 2012 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Sun, 9 Dec 2012 21:23:42 +0000 (UTC) Subject: [Scilab-users] =?utf-8?q?Replacement_of_pixmap_by_drawlater_/_dra?= =?utf-8?q?wnow_in=09Version_5=2E4=2E0?= References: <50BE2599.1080807@centre-cired.fr> <50BE2B20.9070600@centre-cired.fr> Message-ID: Hallo Adrien, 'xs2gif' plus external software IS perfect. For animation I used the slideshow function of Irfanview to generate an exe. No bouncing, no hopping! Again big thank for the advice! Kind regards Jens From j.s.strom at hslmg.de Sun Dec 9 22:59:58 2012 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Sun, 9 Dec 2012 21:59:58 +0000 (UTC) Subject: [Scilab-users] Replacement of pixmap by drawlater / drawnow in Version 5.4.0 References: <50BF581D.4090407@inria.fr> Message-ID: Serge Steer writes: >... does the sample code below solves the problem? Note that it does not ... Thank you, Serge, for your answer. Your code performs well apart from some bouncing now and then. Sorry for anwering so late. I have an orientation problem in finding replies on my post. I never changed the subject but your comment is stored apart from others. It seems to be difficult in gmane to find or organise a complete and coherent thread. I have posted today my approach, catchword 'Irfanview'. The answer is somewhere in this jungle. Perhaps you can find it. Kind regards Jens From jeff at hamannclan.net Mon Dec 10 13:05:09 2012 From: jeff at hamannclan.net (Jeff Haamann) Date: Mon, 10 Dec 2012 12:05:09 +0000 (UTC) Subject: [Scilab-users] problems with script execution from SciNotes - FIXED References: Message-ID: Hello Sylvestre and Mathieu, Thank your for your prompt assistance. The problem was traced to a CR at the end of lines instead of an LF. This explains why the copy and paste wasn't working. I modified the SciNotes default in the preferences and everything appears to be working fine. War regards, Jeff Hamann From byronmillet at hotmail.com Tue Dec 11 01:03:37 2012 From: byronmillet at hotmail.com (byronmillet) Date: Mon, 10 Dec 2012 16:03:37 -0800 (PST) Subject: [Scilab-users] Using Scilab to plot via C++ code In-Reply-To: References: Message-ID: <1355184217286-4025459.post@n3.nabble.com> I managed to determine the cause of my error. My C++ code was computing averages of many data points and in some cases the number of points was 0 so the data contained non numerical data which caused my error. I am now successfully using Scilab to produce plots from my C++ data processing code -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Using-Scilab-to-plot-via-C-code-tp4025344p4025459.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From byronmillet at hotmail.com Tue Dec 11 01:12:14 2012 From: byronmillet at hotmail.com (byronmillet) Date: Mon, 10 Dec 2012 16:12:14 -0800 (PST) Subject: [Scilab-users] Surface plotting without averaging? Message-ID: <1355184734259-4025460.post@n3.nabble.com> Hello, I am trying to produce plots representing the surface of a plane of glass from raw deflectometry data. I have successfully produced good plots for most of the data. However, now I am trying to produce a color-coded tolerance plot of each individual location on the plane. That is, I have code that determines whether or not a location failed tolerance criteria and creates a matrix of numbers representing 3 possible outcomes and sets the numerical value for that location to: 1 if the location failed tolerance 0 if it passed tolerance -1 if the location did not contain valid data for the tolerance test. For previous plots I used the Sgrayplot command which worked quite well, but for this, the plot does not show the detail that I require. I also tried grayplot but it still does not show the precision I need. I know that the reason for this is due to how these plot routines determine the color for each square on the surface (taking the average of the data from each corner). However, I am looking for a way to plot each data point as a color coded point on the grid with the color determined only from each individual data point. There are just over 62000 locations on the plane that I have data for. Does anyone know of a way to produce a plot of this type using Scilab? Thanks, Byron -- View this message in context: http://mailinglists.scilab.org/Surface-plotting-without-averaging-tp4025460.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From arctica1963 at gmail.com Tue Dec 11 08:16:01 2012 From: arctica1963 at gmail.com (Lester Anderson) Date: Tue, 11 Dec 2012 07:16:01 +0000 Subject: [Scilab-users] Summation query in Scilab Message-ID: Hello, I have an equation structured like in the attached, however I am unsure of the correct syntax to compute in Scilab. One can calculate the first term of the expansion but obvioulsy it needs to go to a large number (approximating infinity eg 20). I am sure this is something very straightforward! Any ideas welcome. Thanks for the help Lester att: image of equation, test code -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: eqn1.jpg Type: image/jpeg Size: 5833 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: LTGA_code.sce Type: application/octet-stream Size: 1193 bytes Desc: not available URL: From frederic.jourdin at shom.fr Tue Dec 11 08:34:43 2012 From: frederic.jourdin at shom.fr (Frederic Jourdin) Date: Tue, 11 Dec 2012 08:34:43 +0100 Subject: [Scilab-users] Surface plotting without averaging? In-Reply-To: <1355184734259-4025460.post@n3.nabble.com> References: <1355184734259-4025460.post@n3.nabble.com> Message-ID: <50C6E213.4080604@shom.fr> Yes, for this reason I use Matplot in Scilab 5.3. (and compute myself x and y axes) Unfortunately Matplot in Scilab 5.4.0 does interpolate. Fred Le 11/12/2012 01:12, byronmillet a ?crit : > Hello, > > I am trying to produce plots representing the surface of a plane of glass > from raw deflectometry data. > > I have successfully produced good plots for most of the data. > > However, now I am trying to produce a color-coded tolerance plot of each > individual location on the plane. > > That is, I have code that determines whether or not a location failed > tolerance criteria and creates a matrix of numbers representing 3 possible > outcomes and sets the numerical value for that location to: > 1 if the location failed tolerance > 0 if it passed tolerance > -1 if the location did not contain valid data for the tolerance test. > > For previous plots I used the Sgrayplot command which worked quite well, but > for this, the plot does not show the detail that I require. > I also tried grayplot but it still does not show the precision I need. > > > I know that the reason for this is due to how these plot routines determine > the color for each square on the surface (taking the average of the data > from each corner). > > > However, I am looking for a way to plot each data point as a color coded > point on the grid with the color determined only from each individual data > point. > > There are just over 62000 locations on the plane that I have data for. > > Does anyone know of a way to produce a plot of this type using Scilab? > > > Thanks, > > Byron > > > > > -- > View this message in context: http://mailinglists.scilab.org/Surface-plotting-without-averaging-tp4025460.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From sdr at durietz.se Tue Dec 11 10:50:57 2012 From: sdr at durietz.se (Stefan Du Rietz) Date: Tue, 11 Dec 2012 10:50:57 +0100 Subject: [Scilab-users] xpoly bug Message-ID: <50C70201.7020706@durietz.se> Hi Sylvestre, with polyline_style 3 (vertical lines from [x, 0] to [x, y]), line_mode controls the display of an extra line with polyline_style 1! And mark_mode "on" draws extra markers (not at [x, y]), which is also true with polyline_style 2. Shall I open a new bug or add to your 11632? Regards Stefan From sylvestre.ledru at scilab-enterprises.com Tue Dec 11 10:57:11 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Tue, 11 Dec 2012 10:57:11 +0100 Subject: [Scilab-users] xpoly bug In-Reply-To: <50C70201.7020706@durietz.se> References: <50C70201.7020706@durietz.se> Message-ID: <50C70377.9010603@scilab-enterprises.com> On 11/12/2012 10:50, Stefan Du Rietz wrote: > Hi Sylvestre, > with polyline_style 3 (vertical lines from [x, 0] to [x, y]), line_mode > controls the display of an extra line with polyline_style 1! > > And mark_mode "on" draws extra markers (not at [x, y]), which is also > true with polyline_style 2. > > Shall I open a new bug or add to your 11632? To me, it looks like the same bug. So, don't hesitate to add your test case. Thanks, Sylvestre From alexanjo at yahoo.com Tue Dec 11 12:00:58 2012 From: alexanjo at yahoo.com (jordan alexander) Date: Tue, 11 Dec 2012 03:00:58 -0800 (PST) Subject: [Scilab-users] (no subject) Message-ID: <1355223658.62245.YahooMailNeo@web140805.mail.bf1.yahoo.com> http://digitalroots.net/playplay/vu4ltjoh.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From byronmillet at hotmail.com Tue Dec 11 19:03:00 2012 From: byronmillet at hotmail.com (byronmillet) Date: Tue, 11 Dec 2012 10:03:00 -0800 (PST) Subject: [Scilab-users] Surface plotting without averaging? In-Reply-To: <50C6E213.4080604@shom.fr> References: <1355184734259-4025460.post@n3.nabble.com> <50C6E213.4080604@shom.fr> Message-ID: <1355248980158-4025466.post@n3.nabble.com> That is exactly what I was looking for! I'm using version 5.3.3 so this will work perfectly. Thanks a million! Byron -- View this message in context: http://mailinglists.scilab.org/Surface-plotting-without-averaging-tp4025460p4025466.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Alain.Lamy at cnes.fr Wed Dec 12 10:10:27 2012 From: Alain.Lamy at cnes.fr (Lamy Alain) Date: Wed, 12 Dec 2012 09:10:27 +0000 Subject: [Scilab-users] =?utf-8?q?probl=C3=A8me_fonction_CL=5Fdeg2rad?= In-Reply-To: <50BF0AA0.5000806@scilab-enterprises.com> References: <1354648068683-4025429.post@n3.nabble.com> <50BF0A22.1050708@shom.fr> <50BF0AA0.5000806@scilab-enterprises.com> Message-ID: <8F232902ADB4E14EB16789FB7006FC84101D35@TW-MBX-P01.cnesnet.ad.cnes.fr> Hi, About the initial question : The solution is probably: CL_init() which creates various local variables including %CL_deg2rad. You can also add the line "CL_init();" in the "scilab.ini" file so that the variables exist each time you start Scilab. (type "SCIHOME" for the directory where this file is) Alain -----Message d'origine----- De?: users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de Sylvestre Ledru Envoy??: mercredi 5 d?cembre 2012 09:50 ??: users at lists.scilab.org Objet?: Re: [Scilab-users] probl?me fonction CL_deg2rad You can subscribe by sending an email to: celestlab-subscribe at lists.scilab.org and the archives are here: http://mailinglists.scilab.org/CelestLab-f3653733.html Sylvestre On 05/12/2012 09:47, Frederic Jourdin wrote: > There is a special Scilab mailing list for French language. > (je me rappelle plus l'adresse...) > Fred > > > Le 04/12/2012 20:07, sdeligny a ?crit : >> Bonjour, >> Je commence ? utiliser le module celestlab pour un projet >> nano-satellite, et >> j'ai rencontr? un probl?me lors de l?ex?cution de la fonction CL_deg2rad. >> Celle-ci fonctionne normalement lorsqu'elle est employ?e de la mani?re >> suivante : x_rad = CL_deg2rad(x_deg). >> >> Mais avec l'?criture x_rad = x_deg * %CL_deg2rad, la console me renvoie : >> >> "error 4 - Variable non d?finie : %CL_deg2rad" >> >> Une visite de l'aide m'indique pourtant que l'utilisation de cette >> ?criture >> est possible... >> >> Je ne comprends pas, cela vient-il d'un probl?me de version ? >> >> Merci de votre r?ponse, >> >> Bien Cordialement, >> >> Simon DELIGNY, >> ?l?ve-ing?nieur Centrale Marseille >> >> >> >> >> >> -- >> View this message in context: >> http://mailinglists.scilab.org/probleme-fonction-CL-deg2rad-tp4025429.html >> >> Sent from the Scilab users - Mailing Lists Archives mailing list >> archive at Nabble.com. >> _______________________________________________ >> 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 _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From pilyugin.i at yandex.ru Tue Dec 11 19:01:46 2012 From: pilyugin.i at yandex.ru (=?koi8-r?B?8MnMwMfJziDp18HO?=) Date: Tue, 11 Dec 2012 22:01:46 +0400 Subject: [Scilab-users] bug Message-ID: <1169711355248906@web10d.yandex.ru> programm code --------------------------------- clear z=mscanf('%g') ---------------------------------- Input 7.9 Result z=7.9000001 -->78.8 z = 78.800003 From sdeligny38 at gmail.com Wed Dec 12 12:16:17 2012 From: sdeligny38 at gmail.com (sdeligny) Date: Wed, 12 Dec 2012 03:16:17 -0800 (PST) Subject: [Scilab-users] =?utf-8?q?probl=C3=A8me_fonction_CL=5Fdeg2rad?= In-Reply-To: <8F232902ADB4E14EB16789FB7006FC84101D35@TW-MBX-P01.cnesnet.ad.cnes.fr> References: <1354648068683-4025429.post@n3.nabble.com> <50BF0A22.1050708@shom.fr> <50BF0AA0.5000806@scilab-enterprises.com> <8F232902ADB4E14EB16789FB7006FC84101D35@TW-MBX-P01.cnesnet.ad.cnes.fr> Message-ID: Thank you very much Alain ! It works perfectly with cl_init(). Plus it was written into the readme file... I'm sorry for my mistake, i didn't really understand where i had to post my message. Le 12 d?c. 2012 10:10, "Alain LAMY [via Scilab / Xcos - Mailing Lists Archives]" a ?crit : > Hi, > > About the initial question : > > The solution is probably: CL_init() > which creates various local variables including %CL_deg2rad. > > You can also add the line "CL_init();" in the "scilab.ini" file > so that the variables exist each time you start Scilab. > (type "SCIHOME" for the directory where this file is) > > Alain > > > -----Message d'origine----- > De : [hidden email] [mailto:[hidden > email] ] De la part > de Sylvestre Ledru > Envoy? : mercredi 5 d?cembre 2012 09:50 > ? : [hidden email] > Objet : Re: [Scilab-users] probl?me fonction CL_deg2rad > > You can subscribe by sending an email to: > [hidden email] > > and the archives are here: > http://mailinglists.scilab.org/CelestLab-f3653733.html > > Sylvestre > > On 05/12/2012 09:47, Frederic Jourdin wrote: > > > There is a special Scilab mailing list for French language. > > (je me rappelle plus l'adresse...) > > Fred > > > > > > Le 04/12/2012 20:07, sdeligny a ?crit : > >> Bonjour, > >> Je commence ? utiliser le module celestlab pour un projet > >> nano-satellite, et > >> j'ai rencontr? un probl?me lors de l?ex?cution de la fonction > CL_deg2rad. > >> Celle-ci fonctionne normalement lorsqu'elle est employ?e de la mani?re > >> suivante : x_rad = CL_deg2rad(x_deg). > >> > >> Mais avec l'?criture x_rad = x_deg * %CL_deg2rad, la console me renvoie > : > >> > >> "error 4 - Variable non d?finie : %CL_deg2rad" > >> > >> Une visite de l'aide m'indique pourtant que l'utilisation de cette > >> ?criture > >> est possible... > >> > >> Je ne comprends pas, cela vient-il d'un probl?me de version ? > >> > >> Merci de votre r?ponse, > >> > >> Bien Cordialement, > >> > >> Simon DELIGNY, > >> ?l?ve-ing?nieur Centrale Marseille > >> > >> > >> > >> > >> > >> -- > >> View this message in context: > >> > http://mailinglists.scilab.org/probleme-fonction-CL-deg2rad-tp4025429.html > >> > >> Sent from the Scilab users - Mailing Lists Archives mailing list > >> archive at Nabble.com. > >> _______________________________________________ > >> users mailing list > >> [hidden email] > >> http://lists.scilab.org/mailman/listinfo/users > >> > > > > _______________________________________________ > > users mailing list > > [hidden email] > > http://lists.scilab.org/mailman/listinfo/users > > _______________________________________________ > users mailing list > [hidden email] > http://lists.scilab.org/mailman/listinfo/users > _______________________________________________ > users mailing list > [hidden email] > http://lists.scilab.org/mailman/listinfo/users > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://mailinglists.scilab.org/probleme-fonction-CL-deg2rad-tp4025429p4025467.html > To unsubscribe from probl?me fonction CL_deg2rad, click here > . > NAML > -- View this message in context: http://mailinglists.scilab.org/probleme-fonction-CL-deg2rad-tp4025429p4025468.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From denis.crete at thalesgroup.com Wed Dec 12 14:25:47 2012 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Wed, 12 Dec 2012 14:25:47 +0100 Subject: [Scilab-users] bug In-Reply-To: <1169711355248906@web10d.yandex.ru> References: <1169711355248906@web10d.yandex.ru> Message-ID: <22574_1355318742_50C885D6_22574_6093_1_908CBC9017354841B2F32BBEC70A05A101C386D11952@THSONEA01CMS01P.one.grp> Hello, Try z=mscanf('%lg') HTH Denis -----Message d'origine----- De?: users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de ??????? ???? Envoy??: mardi 11 d?cembre 2012 19:02 ??: users at lists.scilab.org Objet?: [Scilab-users] bug programm code --------------------------------- clear z=mscanf('%g') ---------------------------------- Input 7.9 Result z=7.9000001 -->78.8 z = 78.800003 _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From meni.tima at hotmail.com Wed Dec 12 16:05:23 2012 From: meni.tima at hotmail.com (Tima) Date: Wed, 12 Dec 2012 07:05:23 -0800 (PST) Subject: [Scilab-users] Gtk-WARNING **: Locale not supported by C library. Message-ID: <1355324723935-4025471.post@n3.nabble.com> Bonjour ? tous, J'essaie de faire l'appel ? Scilab gr?ce ? Javasci depuis mon Eclipse, j'ai tout r?gl?, les variables, le build path.. mais je re?ois cet erreur: *(process:3528): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale.* Avez vous une id?e Svp? Merci bien d'avance -- View this message in context: http://mailinglists.scilab.org/Gtk-WARNING-Locale-not-supported-by-C-library-tp4025471.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sylvestre.ledru at scilab-enterprises.com Wed Dec 12 16:07:26 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Wed, 12 Dec 2012 16:07:26 +0100 Subject: [Scilab-users] Gtk-WARNING **: Locale not supported by C library. In-Reply-To: <1355324723935-4025471.post@n3.nabble.com> References: <1355324723935-4025471.post@n3.nabble.com> Message-ID: <50C89DAE.6040805@scilab-enterprises.com> Hello, This is an english mailing list. The French one is listed on the top of this page: http://www.scilab.org/fr/communities/developer_zone/tools/mailing_list Le 12/12/2012 16:05, Tima a ?crit : > Bonjour ? tous, > > J'essaie de faire l'appel ? Scilab gr?ce ? Javasci depuis mon Eclipse, j'ai > tout r?gl?, les variables, le build path.. > mais je re?ois cet erreur: > > *(process:3528): Gtk-WARNING **: Locale not supported by C library. > Using the fallback 'C' locale.* > > Avez vous une id?e Svp? This is just a warning. It does not prevent Scilab or Javasci from working. Sylvestre From serge.steer at inria.fr Wed Dec 12 23:29:58 2012 From: serge.steer at inria.fr (Serge Steer) Date: Wed, 12 Dec 2012 23:29:58 +0100 (CET) Subject: [Scilab-users] Summation query in Scilab In-Reply-To: Message-ID: <1609762339.15299923.1355351398465.JavaMail.root@inria.fr> I think the following code fullfil your wish... n = 0 : 1 : 20 ; // series in the expansion B = 1.5 ; //beta factor Tm = 1300 * 274.15 ; //base-lithosphere temperature [C] tau = 62.8 ; //lithosphere cooling thermal decay constant [Ma] a = 125000 ; //equilibrium lithospheric thickness [m] alpha = 3.28e-5 ; //thermal expansion coefficient K^-1 // Tm needs to be converted to Kelvin - multiply by 274.15 rho = 3300 ; t = 0 : 5 : 150 ; //lithosphere age [Ma] G = 6.67e-11 ; // LTGA with increasing age of oceanic lithosphere c = 8 * G * alpha * rho * a * Tm / %pi ; m = ( 0 : 20 ) ' ; m1 = 2 * m + 1 ; g = c * sum ( ( B ./ ( m1 .^ 3 * %pi ) .* sin ( m1 * %pi / B ) ) * ones ( t ) .* exp ( - ( m1 .^ 2 * t / tau ) ) , 1 ) ; clf ; plot ( t , g ) Serge Steer ----- Mail original ----- > De: "Lester Anderson" > ?: "International users mailing list for Scilab." > > Envoy?: Mardi 11 D?cembre 2012 08:16:01 > Objet: [Scilab-users] Summation query in Scilab > Hello, > I have an equation structured like in the attached, however I am > unsure of the correct syntax to compute in Scilab. > One can calculate the first term of the expansion but obvioulsy it > needs to go to a large number (approximating infinity eg 20). > I am sure this is something very straightforward! > Any ideas welcome. > Thanks for the help > Lester > att: image of equation, test code > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From arctica1963 at gmail.com Wed Dec 12 23:46:00 2012 From: arctica1963 at gmail.com (Lester Anderson) Date: Wed, 12 Dec 2012 22:46:00 +0000 Subject: [Scilab-users] Summation query in Scilab In-Reply-To: <1609762339.15299923.1355351398465.JavaMail.root@inria.fr> References: <1609762339.15299923.1355351398465.JavaMail.root@inria.fr> Message-ID: Many thanks Serge :) That worked great! Helps to see how the syntax should work. Cheers Lester On 12 December 2012 22:29, Serge Steer wrote: > I think the following code fullfil your wish... > > > n = 0:1:20 ;// series in the expansionB = 1.5; //beta factorTm = 1300*274.15; //base-lithosphere temperature [C]tau = 62.8; //lithosphere cooling thermal decay constant [Ma]a = 125000; //equilibrium lithospheric thickness [m]alpha = 3.28e-5 ;//thermal expansion coefficient K^-1// Tm needs to be converted to Kelvin - multiply by 274.15rho = 3300;t = 0:5:150; //lithosphere age [Ma]G = 6.67e-11; > // LTGA with increasing age of oceanic lithosphere > c=8*G*alpha*rho*a*Tm/%pi;m=(0:20)';m1=2*m+1;g=c*sum((B./(m1.^3*%pi).*sin(m1*%pi/B))*ones(t).*exp(-(m1.^2*t/tau)),1);clf;plot(t,g) > > > Serge Steer > ------------------------------ > > *De: *"Lester Anderson" > *?: *"International users mailing list for Scilab." < > users at lists.scilab.org> > *Envoy?: *Mardi 11 D?cembre 2012 08:16:01 > *Objet: *[Scilab-users] Summation query in Scilab > > > Hello, > > I have an equation structured like in the attached, however I am unsure of > the correct syntax to compute in Scilab. > > One can calculate the first term of the expansion but obvioulsy it needs > to go to a large number (approximating infinity eg 20). > I am sure this is something very straightforward! > > Any ideas welcome. > > Thanks for the help > > Lester > > att: image of equation, test code > > _______________________________________________ > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From arctica1963 at gmail.com Thu Dec 13 07:56:17 2012 From: arctica1963 at gmail.com (Lester Anderson) Date: Thu, 13 Dec 2012 06:56:17 +0000 Subject: [Scilab-users] Summation query in Scilab In-Reply-To: References: <1609762339.15299923.1355351398465.JavaMail.root@inria.fr> Message-ID: Hi Serge A quick question. In the context of the equation, what is the purpose of the ones(t) part? The help states that this creates a matrix composed of ones. g=c*sum((B./(m1.^3*%pi).*sin(m1*%pi/B))*ones(t).*exp(-(m1.^2*t/tau)),1); Probabaly a very simple answer. Cheers Lester On 12 December 2012 22:46, Lester Anderson wrote: > Many thanks Serge :) That worked great! > Helps to see how the syntax should work. > > Cheers > > Lester > > > On 12 December 2012 22:29, Serge Steer wrote: > >> I think the following code fullfil your wish... >> >> >> n = 0:1:20 ;// series in the expansionB = 1.5; //beta factorTm = 1300*274.15; //base-lithosphere temperature [C]tau = 62.8; //lithosphere cooling thermal decay constant [Ma]a = 125000; //equilibrium lithospheric thickness [m]alpha = 3.28e-5 ;//thermal expansion coefficient K^-1// Tm needs to be converted to Kelvin - multiply by 274.15rho = 3300;t = 0:5:150; //lithosphere age [Ma]G = 6.67e-11; >> // LTGA with increasing age of oceanic lithosphere >> c=8*G*alpha*rho*a*Tm/%pi;m=(0:20)';m1=2*m+1;g=c*sum((B./(m1.^3*%pi).*sin(m1*%pi/B))*ones(t).*exp(-(m1.^2*t/tau)),1);clf;plot(t,g) >> >> >> Serge Steer >> ------------------------------ >> >> *De: *"Lester Anderson" >> *?: *"International users mailing list for Scilab." < >> users at lists.scilab.org> >> *Envoy?: *Mardi 11 D?cembre 2012 08:16:01 >> *Objet: *[Scilab-users] Summation query in Scilab >> >> >> Hello, >> >> I have an equation structured like in the attached, however I am unsure >> of the correct syntax to compute in Scilab. >> >> One can calculate the first term of the expansion but obvioulsy it needs >> to go to a large number (approximating infinity eg 20). >> I am sure this is something very straightforward! >> >> Any ideas welcome. >> >> Thanks for the help >> >> Lester >> >> att: image of equation, test code >> >> _______________________________________________ >> 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 >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Thu Dec 13 09:59:46 2012 From: paul.carrico at free.fr (Paul Carrico) Date: Thu, 13 Dec 2012 09:59:46 +0100 Subject: [Scilab-users] root calculation + function crash Message-ID: <001b01cdd910$33e82b50$9bb881f0$@carrico@free.fr> Dear all, For my information, is there a faster method than the Newton one to calculate roots (1 root for a non-linear equation) ? NB : in case of "division by zero" in a function, is it possible to generate a specific code in order to avoid program crash ? Thanks Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From Serge.Steer at inria.fr Thu Dec 13 10:38:39 2012 From: Serge.Steer at inria.fr (Serge Steer) Date: Thu, 13 Dec 2012 10:38:39 +0100 Subject: [Scilab-users] Summation query in Scilab In-Reply-To: References: <1609762339.15299923.1355351398465.JavaMail.root@inria.fr> Message-ID: <50C9A21F.8080002@inria.fr> Le 13/12/2012 07:56, Lester Anderson a ?crit : > Hi Serge > > A quick question. In the context of the equation, what is the purpose > of the ones(t) part? The help states that this creates a matrix > composed of ones. (B./(m1.^3*%pi).*sin(m1*%pi/B)) is a column vector, the multiplication by ones(t) which is a row vector is a way to create a matrix with identical columns . Ina similar mannerm1.^2*t creates a matrix multiplying the column vectorm1.^2 by the row vector t > g=c*sum((B./(m1.^3*%pi).*sin(m1*%pi/B))*ones(t).*exp(-(m1.^2*t/tau)),1); > Probabaly a very simple answer. > > Cheers > > Lester > > On 12 December 2012 22:46, Lester Anderson > wrote: > > Many thanks Serge :) That worked great! > Helps to see how the syntax should work. > > Cheers > > Lester > > > On 12 December 2012 22:29, Serge Steer > wrote: > > I think the following code fullfil your wish... > > > n = 0:1:20 ;// series in the expansion > B = 1.5; //beta factor > Tm = 1300*274.15; //base-lithosphere temperature [C] > tau = 62.8; //lithosphere cooling thermal decay constant [Ma] > a = 125000; //equilibrium lithospheric thickness [m] > alpha = 3.28e-5 ;//thermal expansion coefficient K^-1 > // Tm needs to be converted to Kelvin - multiply by 274.15 > rho = 3300; > t = 0:5:150; //lithosphere age [Ma] > G = 6.67e-11; > > // LTGA with increasing age of oceanic lithosphere > > c=8*G*alpha*rho*a*Tm/%pi; > m=(0:20)';m1=2*m+1; > g=c*sum((B./(m1.^3*%pi).*sin(m1*%pi/B))*ones(t).*exp(-(m1.^2*t/tau)),1); > clf;plot(t,g) > > > Serge Steer > ------------------------------------------------------------------------ > > *De: *"Lester Anderson" > > *?: *"International users mailing list for Scilab." > > > *Envoy?: *Mardi 11 D?cembre 2012 08:16:01 > *Objet: *[Scilab-users] Summation query in Scilab > > > Hello, > > I have an equation structured like in the attached, > however I am unsure of the correct syntax to compute in > Scilab. > > One can calculate the first term of the expansion but > obvioulsy it needs to go to a large number (approximating > infinity eg 20). > I am sure this is something very straightforward! > > Any ideas welcome. > > Thanks for the help > > Lester > > att: image of equation, test code > > _______________________________________________ > 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 > > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From liuzeyu271828 at gmail.com Thu Dec 13 16:11:55 2012 From: liuzeyu271828 at gmail.com (Zeyu Liu) Date: Thu, 13 Dec 2012 23:11:55 +0800 Subject: [Scilab-users] bug In-Reply-To: <1169711355248906@web10d.yandex.ru> References: <1169711355248906@web10d.yandex.ru> Message-ID: in fact, scilab works with float numbers. so this kind of things always happen. say, -->format(25); -->1-0.9 ans = 0.0999999999999999777955 and -->0.1 == 1 - 0.9 ans = F you need to remember that this software is not for symbolic algebra system like maxima or maple On Wed, Dec 12, 2012 at 2:01 AM, ??????? ???? wrote: > programm code > --------------------------------- > clear > z=mscanf('%g') > > ---------------------------------- > > Input 7.9 > > Result z=7.9000001 > > > -->78.8 > z = > > 78.800003 > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Thu Dec 13 16:58:01 2012 From: sgougeon at free.fr (sgougeon at free.fr) Date: Thu, 13 Dec 2012 16:58:01 +0100 (CET) Subject: [Scilab-users] root calculation + function crash In-Reply-To: <001b01cdd910$33e82b50$9bb881f0$@carrico@free.fr> Message-ID: <931394547.57130805.1355414281147.JavaMail.root@zimbra75-e12.priv.proxad.net> >NB : in case of ?division by zero? in a function, is it possible to generate a specific code in order to avoid program crash ? ieee(2) From paul.carrico at free.fr Thu Dec 13 18:20:11 2012 From: paul.carrico at free.fr (Paul Carrico) Date: Thu, 13 Dec 2012 18:20:11 +0100 Subject: [Scilab-users] root calculation + function crash In-Reply-To: <931394547.57130805.1355414281147.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <001b01cdd910$33e82b50$9bb881f0$@carrico@free.fr> <931394547.57130805.1355414281147.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: <000601cdd956$1d271d90$577558b0$@carrico@free.fr> And how do you use it ? I've not understood .... -----Message d'origine----- De : users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de sgougeon at free.fr Envoy? : jeudi 13 d?cembre 2012 16:58 ? : International users mailing list for Scilab. Objet : Re: [Scilab-users] root calculation + function crash >NB : in case of ?division by zero? in a function, is it possible to generate a specific code in order to avoid program crash ? ieee(2) _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From sgougeon at free.fr Thu Dec 13 19:24:13 2012 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 13 Dec 2012 19:24:13 +0100 Subject: [Scilab-users] root calculation + function crash In-Reply-To: <000601cdd956$1d271d90$577558b0$@carrico@free.fr> References: <001b01cdd910$33e82b50$9bb881f0$@carrico@free.fr> <931394547.57130805.1355414281147.JavaMail.root@zimbra75-e12.priv.proxad.net> <000601cdd956$1d271d90$577558b0$@carrico@free.fr> Message-ID: <50CA1D4D.3070804@free.fr> Le 13/12/2012 18:20, Paul Carrico a ?crit : > And how do you use it ? I've not understood .... after ieee(2), any division by zero will yield %inf or -%inf instead of an error breaking the execution of the remainig code. help ieee // for more info From arctica1963 at gmail.com Thu Dec 13 19:42:51 2012 From: arctica1963 at gmail.com (Lester Anderson) Date: Thu, 13 Dec 2012 18:42:51 +0000 Subject: [Scilab-users] Summation query in Scilab In-Reply-To: <50C9A21F.8080002@inria.fr> References: <1609762339.15299923.1355351398465.JavaMail.root@inria.fr> <50C9A21F.8080002@inria.fr> Message-ID: I spotted the Kelvin conversion problem too :) Cheers Lester On 13 December 2012 09:38, Serge Steer wrote: > Le 13/12/2012 07:56, Lester Anderson a ?crit : > > Hi Serge > > A quick question. In the context of the equation, what is the purpose of > the ones(t) part? The help states that this creates a matrix composed of > ones. > > > (B./(m1.^3*%pi).*sin(m1*%pi/B)) is a column vector, the multiplication by ones(t) which is a row vector is a way to create a matrix with identical columns > . Ina similar manner m1.^2*t > creates a matrix multiplying the column vector m1.^2 by the row vector t > > g=c*sum((B./(m1.^3*%pi).*sin(m1*%pi/B))*ones(t).*exp(-(m1.^2*t/tau)),1); > > Probabaly a very simple answer. > > Cheers > > Lester > > On 12 December 2012 22:46, Lester Anderson wrote: > >> Many thanks Serge :) That worked great! >> Helps to see how the syntax should work. >> >> Cheers >> >> Lester >> >> >> On 12 December 2012 22:29, Serge Steer wrote: >> >>> I think the following code fullfil your wish... >>> >>> >>> n = 0:1:20 ;// series in the expansionB = 1.5; //beta factorTm = 1300*274.15; //base-lithosphere temperature [C]tau = 62.8; //lithosphere cooling thermal decay constant [Ma]a = 125000; //equilibrium lithospheric thickness [m]alpha = 3.28e-5 ;//thermal expansion coefficient K^-1// Tm needs to be converted to Kelvin - multiply by 274.15rho = 3300;t = 0:5:150; //lithosphere age [Ma]G = 6.67e-11; >>> // LTGA with increasing age of oceanic lithosphere >>> c=8*G*alpha*rho*a*Tm/%pi;m=(0:20)';m1=2*m+1;g=c*sum((B./(m1.^3*%pi).*sin(m1*%pi/B))*ones(t).*exp(-(m1.^2*t/tau)),1);clf;plot(t,g) >>> >>> >>> Serge Steer >>> ------------------------------ >>> >>> *De: *"Lester Anderson" >>> *?: *"International users mailing list for Scilab." < >>> users at lists.scilab.org> >>> *Envoy?: *Mardi 11 D?cembre 2012 08:16:01 >>> *Objet: *[Scilab-users] Summation query in Scilab >>> >>> >>> Hello, >>> >>> I have an equation structured like in the attached, however I am unsure >>> of the correct syntax to compute in Scilab. >>> >>> One can calculate the first term of the expansion but obvioulsy it needs >>> to go to a large number (approximating infinity eg 20). >>> I am sure this is something very straightforward! >>> >>> Any ideas welcome. >>> >>> Thanks for the help >>> >>> Lester >>> >>> att: image of equation, test code >>> >>> _______________________________________________ >>> 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 >>> >>> >> > > > _______________________________________________ > users mailing listusers at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Thu Dec 13 23:14:29 2012 From: paul.carrico at free.fr (Paul Carrico) Date: Thu, 13 Dec 2012 23:14:29 +0100 Subject: [Scilab-users] max of matric colums - vectorization Message-ID: <000001cdd97f$397ade40$ac709ac0$@carrico@free.fr> All, Maybe I'm too tired to find a so easy solution, but I don't understand why the code herebellow does not work .. I want to find the max of each column while each I've the max of the complete matrix (???) i is a vector ???? Paul ##################### A = rand(5,20) i=[1 : 20] B=zeros(1,20) B(i) = max(A(:,i)) -------------- next part -------------- An HTML attachment was scrubbed... URL: From samuel.enibe at unn.edu.ng Thu Dec 13 23:51:11 2012 From: samuel.enibe at unn.edu.ng (samuel.enibe at unn.edu.ng) Date: Thu, 13 Dec 2012 22:51:11 +0000 Subject: [Scilab-users] SCILAB Function to Read Excell 2007 File Message-ID: <50ca5be5.c35fb40a.1d97.1be5@mx.google.com> Dear Sirs, Could you please let me know if there is a SCILAB function or module to read an Excell file in 2007 format. This is to avoid having to convert it first to the 2003 (.xls) format. God bless you. Enibe Sent from my Nokia phone From grocer.toolbox at gmail.com Fri Dec 14 08:03:23 2012 From: grocer.toolbox at gmail.com (Eric Dubois) Date: Fri, 14 Dec 2012 08:03:23 +0100 Subject: [Scilab-users] max of matric colums - vectorization In-Reply-To: <50ca5350.a317c20a.4afd.ffff82c8SMTPIN_ADDED_BROKEN@mx.google.com> References: <50ca5350.a317c20a.4afd.ffff82c8SMTPIN_ADDED_BROKEN@mx.google.com> Message-ID: Maybe max(A,'r') is what you atd looking for. ?ric Le 13 d?c. 2012 23:14, "Paul Carrico" a ?crit : > All,**** > > ** ** > > Maybe I?m too tired to find a so easy solution, but I don?t understand why > the code herebellow does not work .. I want to find the max of each column > while each I?ve the max of the complete matrix (???)**** > > ** ** > > i is a vector ????**** > > ** ** > > Paul**** > > ** ** > > #####################**** > > *A** = rand(5,20)* > > *i**=**[**1** : 20]* > > * * > > *B**=**zeros**(**1**,**20**)*** > > *B**(**i**)** = max(A(:,i))* > > ** ** > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Fri Dec 14 09:44:35 2012 From: paul.carrico at free.fr (Paul Carrico) Date: Fri, 14 Dec 2012 09:44:35 +0100 Subject: [Scilab-users] max of matric colums - vectorization In-Reply-To: References: <50ca5350.a317c20a.4afd.ffff82c8SMTPIN_ADDED_BROKEN@mx.google.com> Message-ID: <000001cdd9d7$3f381b10$bda85130$@carrico@free.fr> Right thanks De : users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de Eric Dubois Envoy? : vendredi 14 d?cembre 2012 08:03 ? : International users mailing list for Scilab. Objet : Re: [Scilab-users] max of matric colums - vectorization Maybe max(A,'r') is what you atd looking for. ?ric Le 13 d?c. 2012 23:14, "Paul Carrico" a ?crit : All, Maybe I?m too tired to find a so easy solution, but I don?t understand why the code herebellow does not work .. I want to find the max of each column while each I?ve the max of the complete matrix (???) i is a vector ???? Paul ##################### A = rand(5,20) i=[1 : 20] B=zeros(1,20) B(i) = max(A(:,i)) _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From johannes.eha at web.de Fri Dec 14 15:00:50 2012 From: johannes.eha at web.de (cpt_nemo) Date: Fri, 14 Dec 2012 06:00:50 -0800 (PST) Subject: [Scilab-users] XCos: Problem with gain block inside super block Message-ID: <1355493650338-4025487.post@n3.nabble.com> Hello, in my simulation setup, i use a gain block inside a super block. The gain is set with a variable defined in the context. The Problem is, when changing the variable in context, the gain of the gain block keeps on the old value. To use the new value, i have to open the dialog of the gain block and close it with "OK"; after this, the gain value is changed to the new value. When i do the same with a gain block in the top level diagram, the gain changes immediatley without opening the dialog of the gain block. Is this a bug in Xcos? Is there a way to update all paramters on start of a simulation? Kind regards, Johannes -- View this message in context: http://mailinglists.scilab.org/XCos-Problem-with-gain-block-inside-super-block-tp4025487.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From alexandre.herisse at scilab-enterprises.com Fri Dec 14 15:32:27 2012 From: alexandre.herisse at scilab-enterprises.com (Alexandre HERISSE) Date: Fri, 14 Dec 2012 15:32:27 +0100 Subject: [Scilab-users] XCos: Problem with gain block inside super block In-Reply-To: <1355493650338-4025487.post@n3.nabble.com> References: <1355493650338-4025487.post@n3.nabble.com> Message-ID: <50CB387B.8000004@scilab-enterprises.com> Hello, This bug has been logged for Scilab-5.4.0 version at : http://bugzilla.scilab.org/show_bug.cgi?id=12031 It has just been solved and the correction will be available in next release of Scilab (Scilab-5.4.1) Best regards. Le 14/12/2012 15:00, cpt_nemo a ?crit : > Hello, > > in my simulation setup, i use a gain block inside a super block. The gain is > set with a variable defined in the context. > > The Problem is, when changing the variable in context, the gain of the gain > block keeps on the old value. To use the new value, i have to open the > dialog of the gain block and close it with "OK"; after this, the gain value > is changed to the new value. > > When i do the same with a gain block in the top level diagram, the gain > changes immediatley without opening the dialog of the gain block. > > Is this a bug in Xcos? Is there a way to update all paramters on start of a > simulation? > > Kind regards, > Johannes > > > > -- > View this message in context: http://mailinglists.scilab.org/XCos-Problem-with-gain-block-inside-super-block-tp4025487.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Alexandre HERISSE Xcos developer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.70 http://www.scilab-enterprises.com From alexandre.herisse at scilab-enterprises.com Fri Dec 14 16:09:51 2012 From: alexandre.herisse at scilab-enterprises.com (Alexandre HERISSE) Date: Fri, 14 Dec 2012 16:09:51 +0100 Subject: [Scilab-users] XCos: Problem with gain block inside super block In-Reply-To: <50CB387B.8000004@scilab-enterprises.com> References: <1355493650338-4025487.post@n3.nabble.com> <50CB387B.8000004@scilab-enterprises.com> Message-ID: <50CB413F.4030205@scilab-enterprises.com> Hello, In order to test immediately the correction for this issue, you can download the last nightly build version of Scilab-5.4 branch available at : http://www.scilab.org/fr/communities/developer_zone/scilab_versions/development_version/nightly_builds/branch_54 Best regards. Le 14/12/2012 15:32, Alexandre HERISSE a ?crit : > Hello, > > This bug has been logged for Scilab-5.4.0 version at : > http://bugzilla.scilab.org/show_bug.cgi?id=12031 > It has just been solved and the correction will be available in next > release of Scilab (Scilab-5.4.1) > > Best regards. > > > Le 14/12/2012 15:00, cpt_nemo a ?crit : >> Hello, >> >> in my simulation setup, i use a gain block inside a super block. The >> gain is >> set with a variable defined in the context. >> >> The Problem is, when changing the variable in context, the gain of >> the gain >> block keeps on the old value. To use the new value, i have to open the >> dialog of the gain block and close it with "OK"; after this, the gain >> value >> is changed to the new value. >> >> When i do the same with a gain block in the top level diagram, the gain >> changes immediatley without opening the dialog of the gain block. >> >> Is this a bug in Xcos? Is there a way to update all paramters on >> start of a >> simulation? >> >> Kind regards, >> Johannes >> >> >> >> -- >> View this message in context: >> http://mailinglists.scilab.org/XCos-Problem-with-gain-block-inside-super-block-tp4025487.html >> Sent from the Scilab users - Mailing Lists Archives mailing list >> archive at Nabble.com. >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > -- Alexandre HERISSE Xcos developer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.70 http://www.scilab-enterprises.com From johannes.eha at web.de Fri Dec 14 17:07:53 2012 From: johannes.eha at web.de (cpt_nemo) Date: Fri, 14 Dec 2012 08:07:53 -0800 (PST) Subject: [Scilab-users] XCos: Problem with gain block inside super block In-Reply-To: <50CB413F.4030205@scilab-enterprises.com> References: <1355493650338-4025487.post@n3.nabble.com> <50CB387B.8000004@scilab-enterprises.com> <50CB413F.4030205@scilab-enterprises.com> Message-ID: <1355501273269-4025490.post@n3.nabble.com> Thank you very much for this quick response. I have downloaded the nightly build (scilab-branch-5.4-1354812514_x64) and it seems to work better than the 5.4.0 release. After modifying a variable in the context of the top level diagram, the gain block value in the superblock is updated as expected. But the error still happens when a variable is modified inside the context of a super block. -- View this message in context: http://mailinglists.scilab.org/XCos-Problem-with-gain-block-inside-super-block-tp4025487p4025490.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From alexandre.herisse at scilab-enterprises.com Fri Dec 14 17:48:21 2012 From: alexandre.herisse at scilab-enterprises.com (Alexandre HERISSE) Date: Fri, 14 Dec 2012 17:48:21 +0100 Subject: [Scilab-users] XCos: Problem with gain block inside super block In-Reply-To: <1355501273269-4025490.post@n3.nabble.com> References: <1355493650338-4025487.post@n3.nabble.com> <50CB387B.8000004@scilab-enterprises.com> <50CB413F.4030205@scilab-enterprises.com> <1355501273269-4025490.post@n3.nabble.com> Message-ID: <50CB5855.40007@scilab-enterprises.com> Hello, The version scilab-branch-5.4-1354812514_x64 is one week old and has not taken into account the correction. That is why the error still happens. You should retry to download the nigthly build later for your platform. Best regards. Le 14/12/2012 17:07, cpt_nemo a ?crit : > Thank you very much for this quick response. I have downloaded the nightly > build (scilab-branch-5.4-1354812514_x64) and it seems to work better than > the 5.4.0 release. > > After modifying a variable in the context of the top level diagram, the gain > block value in the superblock is updated as expected. > > But the error still happens when a variable is modified inside the context > of a super block. > > > > > -- > View this message in context: http://mailinglists.scilab.org/XCos-Problem-with-gain-block-inside-super-block-tp4025487p4025490.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Alexandre HERISSE Xcos developer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.70 http://www.scilab-enterprises.com From johannes.eha at web.de Fri Dec 14 21:38:47 2012 From: johannes.eha at web.de (cpt_nemo) Date: Fri, 14 Dec 2012 12:38:47 -0800 (PST) Subject: [Scilab-users] XCos: Problem with gain block inside super block In-Reply-To: <50CB5855.40007@scilab-enterprises.com> References: <1355493650338-4025487.post@n3.nabble.com> <50CB387B.8000004@scilab-enterprises.com> <50CB413F.4030205@scilab-enterprises.com> <1355501273269-4025490.post@n3.nabble.com> <50CB5855.40007@scilab-enterprises.com> Message-ID: <1355517527916-4025492.post@n3.nabble.com> Hello, after reading your post i went back to the scilab homepage and found a new version (scilab-branch-5.4-1355237235_x64.exe). Now it works perfect! -- View this message in context: http://mailinglists.scilab.org/XCos-Problem-with-gain-block-inside-super-block-tp4025487p4025492.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From jasper at amsterchem.com Wed Dec 12 14:47:42 2012 From: jasper at amsterchem.com (jasper van baten) Date: Wed, 12 Dec 2012 14:47:42 +0100 Subject: [Scilab-users] bug In-Reply-To: <1169711355248906@web10d.yandex.ru> References: <1169711355248906@web10d.yandex.ru> Message-ID: <50C88AFE.9020803@amsterchem.com> try z=mscanf('%lg') Best wishes, Jasper. On 12/11/2012 19:01, ??????? ???? wrote: > programm code > --------------------------------- > clear > z=mscanf('%g') > > ---------------------------------- > > Input 7.9 > > Result z=7.9000001 > > > -->78.8 > z = > > 78.800003 > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From viniciussucupira at gmail.com Sun Dec 16 18:57:16 2012 From: viniciussucupira at gmail.com (email1018) Date: Sun, 16 Dec 2012 09:57:16 -0800 (PST) Subject: [Scilab-users] How to solve a matricial equation in scilab Message-ID: <1355680635354-4025495.post@n3.nabble.com> Solve the matricial equation: [a b; c d] * [3 1;-2 2]=[5 7;-5 9] Solution The equation is: [3*a-2*b a+2*b;3*c-2*d c+2*d]=[5 7;-5 9] 3*a-2*b=5 a+2*b=7 a=7-2*b 3*(7-2*b)-2*b=5 21-6*b-2*b=5 21-8*b=5 21-5=8*b 8*b=16 b=16/8 b=2 a+2*b=7 a+2*(2)=7 a+4=7 a=3 3*c-2*d=-5 c+2*d=9 c=9-2*d 3*(9-2*d)-2*d=-5 27-6*d-2*d=-5 27-8*d=-5 27+5=8*d 8*d=32 d=32/8 d=4 c=9-2*d c=9-2*(4) c=9-8 c=1 a=3 b=2 c=1 d=4 [a b; c d] The solution is [3 2;1 4] I would like please a solution in scilab. Regards -- View this message in context: http://mailinglists.scilab.org/How-to-solve-a-matricial-equation-in-scilab-tp4025495.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From viniciussucupira at gmail.com Sun Dec 16 18:59:12 2012 From: viniciussucupira at gmail.com (email1018) Date: Sun, 16 Dec 2012 09:59:12 -0800 (PST) Subject: [Scilab-users] How to solve a matricial equation in scilab? Message-ID: <1355680752030-4025496.post@n3.nabble.com> Solve the matricial equation: [a b; c d] * [3 1;-2 2]=[5 7;-5 9] Solution The equation is: [3*a-2*b a+2*b;3*c-2*d c+2*d]=[5 7;-5 9] 3*a-2*b=5 a+2*b=7 a=7-2*b 3*(7-2*b)-2*b=5 21-6*b-2*b=5 21-8*b=5 21-5=8*b 8*b=16 b=16/8 b=2 a+2*b=7 a+2*(2)=7 a+4=7 a=3 3*c-2*d=-5 c+2*d=9 c=9-2*d 3*(9-2*d)-2*d=-5 27-6*d-2*d=-5 27-8*d=-5 27+5=8*d 8*d=32 d=32/8 d=4 c=9-2*d c=9-2*(4) c=9-8 c=1 a=3 b=2 c=1 d=4 [a b; c d] The solution is [3 2;1 4] I would like please a solution in scilab. Regards -- View this message in context: http://mailinglists.scilab.org/How-to-solve-a-matricial-equation-in-scilab-tp4025496.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From martin at null-a.de Sun Dec 16 19:01:05 2012 From: martin at null-a.de (Martin Helm) Date: Sun, 16 Dec 2012 19:01:05 +0100 Subject: [Scilab-users] How to solve a matricial equation in scilab In-Reply-To: <1355680635354-4025495.post@n3.nabble.com> References: <1355680635354-4025495.post@n3.nabble.com> Message-ID: <50CE0C61.1070909@null-a.de> -->[5 7;-5 9] / [3 1; -2 2] ans = 3. 2. 1. 4. From paul.carrico at free.fr Sun Dec 16 19:29:27 2012 From: paul.carrico at free.fr (Paul Carrico) Date: Sun, 16 Dec 2012 19:29:27 +0100 Subject: [Scilab-users] redundant values Message-ID: <000001cddbbb$48764450$d962ccf0$@carrico@free.fr> Dear All In order to solve faster (i.e to avoid unnecessary calculations), I need to look for redundant values How can I improve the code hereafter, especially the "if" loop ? NB : please note the test is integrated in a loop, then the cste values change every loop ! Any advice ? Regards Paul i = 1; while (cste(i) <> cste($)) k = find(cste == cste(i))'; nl_k = size(k, "*") if (nl_k > 1) then cste(k(2:$))=[]; end i = i + 1; end -------------- next part -------------- An HTML attachment was scrubbed... URL: From denis.crete at thalesgroup.com Sun Dec 16 23:59:16 2012 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Sun, 16 Dec 2012 23:59:16 +0100 Subject: [Scilab-users] redundant values In-Reply-To: <000001cddbbb$48764450$d962ccf0$@carrico@free.fr> References: <000001cddbbb$48764450$d962ccf0$@carrico@free.fr> Message-ID: <6634_1355698749_50CE523D_6634_703_1_908CBC9017354841B2F32BBEC70A05A101C386E32683@THSONEA01CMS01P.one.grp> Hello, You may probably use the function ? tabul ?. HTH Denis De : users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de Paul Carrico Envoy? : dimanche 16 d?cembre 2012 19:29 ? : 'International users mailing list for Scilab.' Objet : [Scilab-users] redundant values Dear All In order to solve faster (i.e to avoid unnecessary calculations), I need to look for redundant values How can I improve the code hereafter, especially the "if" loop ? NB : please note the test is integrated in a loop, then the cste values change every loop ! Any advice ? Regards Paul i = 1; while (cste(i) <> cste($)) k = find(cste == cste(i))'; nl_k = size(k, "*") if (nl_k > 1) then cste(k(2:$))=[]; end i = i + 1; end -------------- next part -------------- An HTML attachment was scrubbed... URL: From papriwalprateek at gmail.com Mon Dec 17 04:49:32 2012 From: papriwalprateek at gmail.com (prateek papriwal) Date: Mon, 17 Dec 2012 09:19:32 +0530 Subject: [Scilab-users] How to solve a matricial equation in scilab In-Reply-To: <50CE0C61.1070909@null-a.de> References: <1355680635354-4025495.post@n3.nabble.com> <50CE0C61.1070909@null-a.de> Message-ID: And what about an equation like [a 2; b 4] * [3 c; -2 d] = [5 7;-5 9] On Dec 16, 2012 11:31 PM, "Martin Helm" wrote: > > -->[5 7;-5 9] / [3 1; -2 2] > ans = > > 3. 2. > 1. 4. > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From pjbinu at cdac.in Mon Dec 17 06:32:57 2012 From: pjbinu at cdac.in (pjbinu) Date: Sun, 16 Dec 2012 21:32:57 -0800 (PST) Subject: [Scilab-users] CallScilab from java under Windows Message-ID: <1355722377858-4025501.post@n3.nabble.com> Hi, Scilan cannot create Scilab Java Main-class (we have not been able to find the main Scilab class) Please help me P J Binu -- View this message in context: http://mailinglists.scilab.org/CallScilab-from-java-under-Windows-tp4025501.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From martin at null-a.de Mon Dec 17 09:45:06 2012 From: martin at null-a.de (Martin Helm) Date: Mon, 17 Dec 2012 09:45:06 +0100 Subject: [Scilab-users] How to solve a matricial equation in scilab In-Reply-To: References: <1355680635354-4025495.post@n3.nabble.com> <50CE0C61.1070909@null-a.de> Message-ID: <50CEDB92.7070108@null-a.de> Am 17.12.2012 04:49, schrieb prateek papriwal: > > And what about an equation like > > [a 2; b 4] * [3 c; -2 d] = [5 7;-5 9] > > Doesn't this looks like a student homework assignment? From johannes.eha at web.de Mon Dec 17 12:21:41 2012 From: johannes.eha at web.de (cpt_nemo) Date: Mon, 17 Dec 2012 03:21:41 -0800 (PST) Subject: [Scilab-users] Problem with plot2d, scf, clf Message-ID: <1355743301429-4025506.post@n3.nabble.com> Hello, on execution of this code i randomly get an error, that the first graphic window is blank: /clear; t_step = 1e-6; t = [0:t_step:5e-3 - t_step]; u = [zeros(t(1:1000)), ones(t(1001:5000))]; scf(0); clf(); plot2d(t', u'); //sleep(100); scf(1); clf(); plot2d(t', u');/ If i do a sleep between "plot2d()" and the following "scf/clf" (remove the "//" in my exmple), this error does no longer happen. I tested with the latest nightly build (scilab-branch-5.4-1355499000_x64.exe) on 64-bit Windows 7. I think this is a bug in scilab, is there already a bugzilla entry for this problem? -- View this message in context: http://mailinglists.scilab.org/Problem-with-plot2d-scf-clf-tp4025506.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From denis.crete at thalesgroup.com Mon Dec 17 14:05:42 2012 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Mon, 17 Dec 2012 14:05:42 +0100 Subject: [Scilab-users] How to solve a matricial equation in scilab In-Reply-To: References: <1355680635354-4025495.post@n3.nabble.com> <50CE0C61.1070909@null-a.de> Message-ID: <23226_1355749533_50CF189C_23226_6636_3_908CBC9017354841B2F32BBEC70A05A101C386E8CBBE@THSONEA01CMS01P.one.grp> Your equation is [AB,C2]*[C1,CD] = R, where AB =[a ; b], CD=[c ; d], C1=[3;-2] and C2=[2;4] and R=[5 7;-5 9]. AB=(R(:,1)-C1(2)*C2)/C1(1); CD=inv([AB,C2])*R(:,2); It appears that there is a solution if det([R(:,1),C2]) ~= 0 HTH Denis De : users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de prateek papriwal Envoy? : lundi 17 d?cembre 2012 04:50 ? : International users mailing list for Scilab. Objet : Re: [Scilab-users] How to solve a matricial equation in scilab And what about an equation like [a 2; b 4] * [3 c; -2 d] = [5 7;-5 9] On Dec 16, 2012 11:31 PM, "Martin Helm" > wrote: > > -->[5 7;-5 9] / [3 1; -2 2] > ans = > > 3. 2. > 1. 4. > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From communication at scilab-enterprises.com Mon Dec 17 14:19:47 2012 From: communication at scilab-enterprises.com (Communication) Date: Mon, 17 Dec 2012 14:19:47 +0100 Subject: [Scilab-users] New Scilab Website Message-ID: <50CF1BF3.3040803@scilab-enterprises.com> Dear Scilab Users, We have just released a new version of Scilab website. We hope you like it and find the information you need more easily. Do not hesitate to send us your comments and to notify any problems you may encounter at: communication at scilab-enterprises.com Enjoy your visit on www.scilab.org! Best Regards -- Communications and Public Relations Department ------------------------------------------------ Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France http://www.scilab-enterprises.com From johannes.eha at web.de Mon Dec 17 14:49:56 2012 From: johannes.eha at web.de (cpt_nemo) Date: Mon, 17 Dec 2012 05:49:56 -0800 (PST) Subject: [Scilab-users] Problem with c function in Xcos Message-ID: <1355752196965-4025514.post@n3.nabble.com> Hello, i am trying to use a c function as Block in Xcos. I found the tutorial "Creating a C Function Block in Scicos" and this is exactly what i need, but it is written for scicos and i can't get it working wth Scilab 5.4. Im managed to compile and link the function "lim_int", but when i try to test the new funtion as described on page 15 in the tutorial i get the following error message: /Undefined operation for the given operands. check or define function %i_c_s for overloading./ To use the interface function, one has to do the following step (page 19 in the tutorial): /Go back to Scicos by clicking the mouse in the Scicos window, open the dialog from the *Edit | Add new block* menu, and enter LIMINT into the dialog. / -- View this message in context: http://mailinglists.scilab.org/Problem-with-c-function-in-Xcos-tp4025514.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From email1018 at gmail.com Mon Dec 17 16:08:05 2012 From: email1018 at gmail.com (Ballenstedt) Date: Mon, 17 Dec 2012 07:08:05 -0800 (PST) Subject: [Scilab-users] Inequation Message-ID: <1355756885059-4025515.post@n3.nabble.com> Please, I would like a step by step solution in scilab of the following inequation: [(x-2)/(x-4)]>[(x+2)/x] Regards -- View this message in context: http://mailinglists.scilab.org/Inequation-tp4025515.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Tue Dec 18 04:37:10 2012 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 18 Dec 2012 04:37:10 +0100 Subject: [Scilab-users] How to solve a matricial equation in scilab In-Reply-To: References: <1355680635354-4025495.post@n3.nabble.com> <50CE0C61.1070909@null-a.de> Message-ID: <50CFE4E6.4070309@free.fr> Le 17/12/2012 04:49, prateek papriwal a ?crit : > > And what about an equation like > > [a 2; b 4] * [3 c; -2 d] = [5 7;-5 9] > -->help solve -->A = ['a' '2' ; 'b' '4' ] A = !a 2 ! !b 4 ! -->b = string([5 7;-5 9]) b = !5 7 ! !-5 9 ! -->x = solve(A,b) // such that A.x = b x = !a\(-2*(-4\5)+5) a\(-2*(4\9)+7) ! !-4\5 4\9 ! Now, you have to match x with [3 c ; -2 d] ... HTH Samuel From samuel.enibe at unn.edu.ng Tue Dec 18 15:04:02 2012 From: samuel.enibe at unn.edu.ng (Samuel Enibe) Date: Tue, 18 Dec 2012 15:04:02 +0100 Subject: [Scilab-users] How to Install SCILAB 5.4.0 on Ubuntu 11.10 Message-ID: Dear sir, I would like to try out the new SCILAB 5.4.0 on my 32-bit laptop running on UBUNTU 11.10 I have downloaded and unzipped the file into a directory as required. Unfortunately, when I invoke the scilab script from the bin directory or from elsewhere, a SCILAB console appears briefly and the disappears. Ealier versions of UBUNTU, such as 10.10, did not have this behavior. I know that one alternative is to wait a couple of months when the new version 5.4.0 will be included in the UBUNTU distribution, but I would prefere to be able to run it now. Could you please suggest what I should do. Enibe University of Nigeria, Nsukka, Nigeria -------------- next part -------------- An HTML attachment was scrubbed... URL: From juanpablodlc at gmail.com Tue Dec 18 17:57:47 2012 From: juanpablodlc at gmail.com (juanpablodlc) Date: Tue, 18 Dec 2012 08:57:47 -0800 (PST) Subject: [Scilab-users] ATOMS module Message-ID: <1355849867149-4025531.post@n3.nabble.com> Hello everyone! I am using Linux Mint 14 with XFCE and Scilab 5.4.0. When i try to start the atoms module manager via Applications ---> Atoms module manager i get: "No ATOMS module is available. Please, check your internet connection or make sure that your OS is compatible with ATOMS". -- atomsDownload: The following file hasn't been downloaded: - URL : 'http://atoms.scilab.org/5.4/TOOLBOXES/64/linux.gz' - Local location : '/tmp/SCI_TMP_2693_pZVydd/.atoms/1_TOOLBOXES.gz' The thing is that i do not use a proxy or any weird internet connection, i'm just using wifi and that's it. Running scilab as sudo doesen't change anything and with scilab 5.3.3 i had the same problem. ?Any ideas? Thanks! JP -- View this message in context: http://mailinglists.scilab.org/ATOMS-module-tp4025531.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From juanpablodlc at gmail.com Tue Dec 18 18:30:54 2012 From: juanpablodlc at gmail.com (juanpablodlc) Date: Tue, 18 Dec 2012 09:30:54 -0800 (PST) Subject: [Scilab-users] Equation In-Reply-To: <1355767602759-4025516.post@n3.nabble.com> References: <1355767602759-4025516.post@n3.nabble.com> Message-ID: <1355851854783-4025532.post@n3.nabble.com> clear A = ['a' '2'; 'b' '4'] B = ['3' 'c'; '-2' 'd'] b = string([5 7;-5 9]); x=solve(B,b); A; There you can see that d=36. So: deff('y=f(c)', 'y=3\(-c*(36\9)+7)-2'); c = fsolve(0,f); Replacing the values d=36 and c=4 on vector x x = [3\(-4*(-36\5)+5),3\(-4*(36\9)+7);-36/5,4]; Then a=1.85185 and b=-7.2 -- View this message in context: http://mailinglists.scilab.org/Equation-tp4025516p4025532.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From juanpablodlc at gmail.com Tue Dec 18 18:53:40 2012 From: juanpablodlc at gmail.com (juanpablodlc) Date: Tue, 18 Dec 2012 09:53:40 -0800 (PST) Subject: [Scilab-users] Inequation In-Reply-To: <1355756885059-4025515.post@n3.nabble.com> References: <1355756885059-4025515.post@n3.nabble.com> Message-ID: <1355853220802-4025534.post@n3.nabble.com> clear; x=[-3:0.013:7]'; f=(x-2)./(x-4); g=(x+2)./x; plot(x,[f g]); Therefore x> 4 ^ x<0 -- View this message in context: http://mailinglists.scilab.org/Inequation-tp4025515p4025534.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From arctica1963 at gmail.com Tue Dec 18 19:52:11 2012 From: arctica1963 at gmail.com (Lester Anderson) Date: Tue, 18 Dec 2012 18:52:11 +0000 Subject: [Scilab-users] Spherical harmonics Message-ID: Hi all, A general query, but is there a way to use Scilab to read in a file of spherical harmonic coefficients and output a file of longitude, latitude and value (xyz)? Cheers Lester -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Tue Dec 18 23:57:33 2012 From: paul.carrico at free.fr (Paul Carrico) Date: Tue, 18 Dec 2012 23:57:33 +0100 Subject: [Scilab-users] problem with max and min function ... Message-ID: <000001cddd73$118181d0$34848570$@carrico@free.fr> Dear all In the attachement, there is a vector ? pb_vect ? I?ve the errors hereafter : why ? Paul -->mean(pb_vect) ans = 0.0001906 -->median(pb_vect) ans = 0.0001785 -->max(pb_vect) !--error 202 max : Type erron? de l'argument 1 : Une matrice r?elle attendue. -->min(pb_vect) !--error 202 min : Type erron? de l'argument 1 : Une matrice r?elle attendue. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pb_vect.rar Type: application/octet-stream Size: 101022 bytes Desc: not available URL: From johannes.eha at web.de Wed Dec 19 08:32:02 2012 From: johannes.eha at web.de (cpt_nemo) Date: Tue, 18 Dec 2012 23:32:02 -0800 (PST) Subject: [Scilab-users] problem with max and min function ... In-Reply-To: <000001cddd73$118181d0$34848570$@carrico@free.fr> References: <000001cddd73$118181d0$34848570$@carrico@free.fr> Message-ID: <1355902322175-4025537.post@n3.nabble.com> Seems that your vector is made of complex numbers with imaginary = 0. Test the following: t=2+0*%i min(t) You will get the same error message. --> min(real(pb_vector)) -- View this message in context: http://mailinglists.scilab.org/Scilab-users-problem-with-max-and-min-function-tp4025536p4025537.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Christophe.Dang at sidel.com Wed Dec 19 09:24:48 2012 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Wed, 19 Dec 2012 09:24:48 +0100 Subject: [Scilab-users] result of spec function generate an error #144 Message-ID: <3B5FFC67498DFF49AE7271A584867D16F105F247CF@301EX00100.sidel.com> Hello, I implemented the Fitzgibbon algorithm[1] for ellipse fitting. This algorithm extracts the eigenvalues and -vectors from a matrix, and therefore uses the spec function. When I test the eigenvalue, e.g. eigval > 0 I get an error message 144 "Undefined operation for the given operands." I found a workaround sign(eigval) == 1 But would like to understand why I get this message. Did I do something wrong? Is this a documented limitation? Is this a bug? Thanks in advance [1] Halir, R. and Flusser, J., Numerically Stable Direct Least Squaes Fitting of Ellipses, in Winter School of Computer Graphics, vol. 6, 1998 http://wscg.zcu.cz/wscg1998/papers98/Halir_98.ps.gz -- Christophe Dang Ngoc Chan Mechanical calculation engineer Sidel Group Sidel Blowing & Services Avenue de la Patrouille de France Octeville-sur-Mer, BP 204 76053 Le Havre cedex, France Tel: 33(0)2 32 85 89 32 Fax: 33(0)2 32 85 91 17 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. From paul.carrico at free.fr Wed Dec 19 09:40:11 2012 From: paul.carrico at free.fr (Paul Carrico) Date: Wed, 19 Dec 2012 09:40:11 +0100 Subject: [Scilab-users] problem with max and min function ... In-Reply-To: <1355902322175-4025537.post@n3.nabble.com> References: <000001cddd73$118181d0$34848570$@carrico@free.fr> <1355902322175-4025537.post@n3.nabble.com> Message-ID: <000901cdddc4$763c3c40$62b4b4c0$@carrico@free.fr> Of course I thought about it and I had a look on any complex number (I've seen nothing) ... Is there a trick to verify is there is a complex number in the vector ? -----Message d'origine----- De?: users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de cpt_nemo Envoy??: mercredi 19 d?cembre 2012 08:32 ??: users at lists.scilab.org Objet?: Re: [Scilab-users] problem with max and min function ... Seems that your vector is made of complex numbers with imaginary = 0. Test the following: t=2+0*%i min(t) You will get the same error message. --> min(real(pb_vector)) -- View this message in context: http://mailinglists.scilab.org/Scilab-users-problem-with-max-and-min-functio n-tp4025536p4025537.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From simon.gareste at scilab-enterprises.com Wed Dec 19 09:59:31 2012 From: simon.gareste at scilab-enterprises.com (Simon GARESTE) Date: Wed, 19 Dec 2012 09:59:31 +0100 Subject: [Scilab-users] ATOMS module In-Reply-To: <1355849867149-4025531.post@n3.nabble.com> References: <1355849867149-4025531.post@n3.nabble.com> Message-ID: <50D181F3.30600@scilab-enterprises.com> Hello, Could you please post the results of the following : atomsGetConfig() atomsRepositoryList() Can you join your /tmp/SCI_TMP_2693_pZVydd/.atoms/1_TOOLBOXES.gz file? Can you try launching Scilab with LANG=en_US /path/to/your/bin/scilab and do an atomsSystemUpdate() ? wget http://atoms.scilab.org/5.4/TOOLBOXES/64/linux.gz works? Simon On 12/18/2012 05:57 PM, juanpablodlc wrote: > Hello everyone! > > I am using Linux Mint 14 with XFCE and Scilab 5.4.0. When i try to start the > atoms module manager via Applications ---> Atoms module manager i get: > > "No ATOMS module is available. Please, check your internet connection or > make sure that your OS is compatible with ATOMS". > -- atomsDownload: The following file hasn't been downloaded: > - URL : 'http://atoms.scilab.org/5.4/TOOLBOXES/64/linux.gz' > - Local location : '/tmp/SCI_TMP_2693_pZVydd/.atoms/1_TOOLBOXES.gz' > > The thing is that i do not use a proxy or any weird internet connection, i'm > just using wifi and that's it. Running scilab as sudo doesen't change > anything and with scilab 5.3.3 i had the same problem. > ?Any ideas? > > Thanks! > JP > > > > -- > View this message in context: http://mailinglists.scilab.org/ATOMS-module-tp4025531.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Simon Gareste Support & Development Engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.70 http://www.scilab-enterprises.com From Christophe.Dang at sidel.com Wed Dec 19 09:48:32 2012 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Wed, 19 Dec 2012 09:48:32 +0100 Subject: [Scilab-users] result of spec function generate an error #144 In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F105F247CF@301EX00100.sidel.com> References: <3B5FFC67498DFF49AE7271A584867D16F105F247CF@301EX00100.sidel.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F105F24850@301EX00100.sidel.com> Oh, I checked the previous messages "problem with max and min function" This seems to be the same problem: complex numbers with imaginary = 0 I modified the code and everything is fine. BTW, the corresponding code in attachment Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer Sidel Group Sidel Blowing & Services Avenue de la Patrouille de France Octeville-sur-Mer, BP 204 76053 Le Havre cedex, France Tel: 33(0)2 32 85 89 32 Fax: 33(0)2 32 85 91 17 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 at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users 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. -------------- next part -------------- A non-text attachment was scrubbed... Name: fitzgibbon_en.sce Type: application/octet-stream Size: 1026 bytes Desc: fitzgibbon_en.sce URL: From paul.carrico at free.fr Wed Dec 19 10:26:29 2012 From: paul.carrico at free.fr (Paul Carrico) Date: Wed, 19 Dec 2012 10:26:29 +0100 Subject: [Scilab-users] problem with max and min function ... In-Reply-To: <1355902322175-4025537.post@n3.nabble.com> References: <000001cddd73$118181d0$34848570$@carrico@free.fr> <1355902322175-4025537.post@n3.nabble.com> Message-ID: <001801cdddca$eddedb30$c99c9190$@carrico@free.fr> again, If I had a complex in a vector, then the following code should lead to non-zero values, right ? But it's not the case ... Paul A = imult(pb_vect); real_A = real(A); size(real_A); find(real_A <> 0) imag_A = imag(A); size(imag_A); find(imag_A == 0) answer : ans = [] ans = [] -----Message d'origine----- De?: users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de cpt_nemo Envoy??: mercredi 19 d?cembre 2012 08:32 ??: users at lists.scilab.org Objet?: Re: [Scilab-users] problem with max and min function ... Seems that your vector is made of complex numbers with imaginary = 0. Test the following: t=2+0*%i min(t) You will get the same error message. --> min(real(pb_vector)) -- View this message in context: http://mailinglists.scilab.org/Scilab-users-problem-with-max-and-min-functio n-tp4025536p4025537.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From johannes.eha at web.de Wed Dec 19 10:39:36 2012 From: johannes.eha at web.de (cpt_nemo) Date: Wed, 19 Dec 2012 01:39:36 -0800 (PST) Subject: [Scilab-users] problem with max and min function ... In-Reply-To: <001801cdddca$eddedb30$c99c9190$@carrico@free.fr> References: <000001cddd73$118181d0$34848570$@carrico@free.fr> <1355902322175-4025537.post@n3.nabble.com> <001801cdddca$eddedb30$c99c9190$@carrico@free.fr> Message-ID: <1355909976515-4025543.post@n3.nabble.com> > If I had a complex in a vector, then the following code should lead to > non-zero values, right ? If you make any calculation that produces complex numbers as result, then the numbers are interpreted as complex numbers, even if the imaginary part is zero. So it doesn't matter if the imaginary part of a number is zero or not. How did you create this 'pb_vect'? -- View this message in context: http://mailinglists.scilab.org/Scilab-users-problem-with-max-and-min-function-tp4025536p4025543.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From paul.carrico at free.fr Wed Dec 19 10:50:07 2012 From: paul.carrico at free.fr (Paul Carrico) Date: Wed, 19 Dec 2012 10:50:07 +0100 Subject: [Scilab-users] problem with max and min function ... In-Reply-To: <1355909976515-4025543.post@n3.nabble.com> References: <000001cddd73$118181d0$34848570$@carrico@free.fr> <1355902322175-4025537.post@n3.nabble.com> <001801cdddca$eddedb30$c99c9190$@carrico@free.fr> <1355909976515-4025543.post@n3.nabble.com> Message-ID: <000001cdddce$3adcc200$b0964600$@carrico@free.fr> Imult forces pb_vect to be converted into complex number ... then it possible to work on real part and complex part, isn't it ? NB : Pb_vect has been created by non-linear calculation using newton method such as : Coef1 * X^b_ + Coef2 * X^c_ - C = 0 If C <0 there's no solution, then all the negative values were removed previous to the calculation ... it worked fine so far and I don't understand where's the problem .... Paul -----Message d'origine----- De?: users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de cpt_nemo Envoy??: mercredi 19 d?cembre 2012 10:40 ??: users at lists.scilab.org Objet?: Re: [Scilab-users] problem with max and min function ... > If I had a complex in a vector, then the following code should lead to > non-zero values, right ? If you make any calculation that produces complex numbers as result, then the numbers are interpreted as complex numbers, even if the imaginary part is zero. So it doesn't matter if the imaginary part of a number is zero or not. How did you create this 'pb_vect'? -- View this message in context: http://mailinglists.scilab.org/Scilab-users-problem-with-max-and-min-functio n-tp4025536p4025543.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From Serge.Steer at inria.fr Wed Dec 19 11:14:04 2012 From: Serge.Steer at inria.fr (Serge Steer) Date: Wed, 19 Dec 2012 11:14:04 +0100 Subject: [Scilab-users] result of spec function generate an error #144 In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F105F247CF@301EX00100.sidel.com> References: <3B5FFC67498DFF49AE7271A584867D16F105F247CF@301EX00100.sidel.com> Message-ID: <50D1936C.9060605@inria.fr> Le 19/12/2012 09:24, Dang, Christophe a ?crit : > Hello, > > I implemented the Fitzgibbon algorithm[1] for ellipse fitting. This algorithm extracts the eigenvalues and -vectors from a matrix, and therefore uses the spec function. > > When I test the eigenvalue, e.g. > eigval > 0 > I get an error message 144 "Undefined operation for the given operands." > > I found a workaround > sign(eigval) == 1 > > But would like to understand why I get this message. The result of the spec function is a vector of complex number unless the matrix is exactly symmetric, so the test eigval > 0 has no meaning. May be you want to test : real(eigval)>0 > Did I do something wrong? > Is this a documented limitation? > Is this a bug? > > Thanks in advance > > [1] Halir, R. and Flusser, J., Numerically Stable Direct Least Squaes Fitting of Ellipses, in Winter School of Computer Graphics, vol. 6, 1998 > http://wscg.zcu.cz/wscg1998/papers98/Halir_98.ps.gz > From Serge.Steer at inria.fr Wed Dec 19 11:20:19 2012 From: Serge.Steer at inria.fr (Serge Steer) Date: Wed, 19 Dec 2012 11:20:19 +0100 Subject: [Scilab-users] problem with max and min function ... In-Reply-To: <000901cdddc4$763c3c40$62b4b4c0$@carrico@free.fr> References: <000001cddd73$118181d0$34848570$@carrico@free.fr> <1355902322175-4025537.post@n3.nabble.com> <000901cdddc4$763c3c40$62b4b4c0$@carrico@free.fr> Message-ID: <50D194E3.7000200@inria.fr> Le 19/12/2012 09:40, Paul Carrico a ?crit : > Of course I thought about it and I had a look on any complex number (I've > seen nothing) ... > > Is there a trick to verify is there is a complex number in the vector ? arrays are either real (all entries are real) or complex (all entries are complex). Take care that the elements with imaginary part equal to zero in complex arrays are displayed as if they were real. To test if an array is real or not you can use the isreal function -->t=2+0*%i t = 2. -->isreal(t) ans = F Serge Steer > > > > -----Message d'origine----- > De : users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] > De la part de cpt_nemo > Envoy? : mercredi 19 d?cembre 2012 08:32 > ? : users at lists.scilab.org > Objet : Re: [Scilab-users] problem with max and min function ... > > Seems that your vector is made of complex numbers with imaginary = 0. > > Test the following: > > t=2+0*%i > min(t) > > You will get the same error message. > > --> min(real(pb_vector)) > > > > -- > View this message in context: > http://mailinglists.scilab.org/Scilab-users-problem-with-max-and-min-functio > n-tp4025536p4025537.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at > Nabble.com. > _______________________________________________ > 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 > From Alain.Lamy at cnes.fr Wed Dec 19 11:17:03 2012 From: Alain.Lamy at cnes.fr (Lamy Alain) Date: Wed, 19 Dec 2012 10:17:03 +0000 Subject: [Scilab-users] u .^ k ? Message-ID: <8F232902ADB4E14EB16789FB7006FC841036C0@TW-MBX-P01.cnesnet.ad.cnes.fr> Hi, Does anyone know how to perform efficiently an operation like : u .^k with: u = [u1, u2, ..., un] // ui : real numbers and: k = [k1; k2; kp] // ki : positive integers The result being : [ u1^k1, u2^k1, ..., un^k1; u1^k2, u2^k2, ..., un^k2; ... u1^kp, u2^kp, ..., un^kp ] I know how to do it with cumprod (for instance), but it does not seem to be efficient enough. From stephane.mottelet at utc.fr Wed Dec 19 11:31:35 2012 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Wed, 19 Dec 2012 11:31:35 +0100 Subject: [Scilab-users] u .^ k ? In-Reply-To: <8F232902ADB4E14EB16789FB7006FC841036C0@TW-MBX-P01.cnesnet.ad.cnes.fr> References: <8F232902ADB4E14EB16789FB7006FC841036C0@TW-MBX-P01.cnesnet.ad.cnes.fr> Message-ID: <50D19787.9050207@utc.fr> Le 19/12/12 11:17, Lamy Alain a ?crit : > Hi, > > Does anyone know how to perform efficiently an operation like : > u .^k > > with: > u = [u1, u2, ..., un] // ui : real numbers > and: > k = [k1; k2; kp] // ki : positive integers > > > The result being : > > [ u1^k1, u2^k1, ..., un^k1; > u1^k2, u2^k2, ..., un^k2; > ... > u1^kp, u2^kp, ..., un^kp ] > > > I know how to do it with cumprod (for instance), but it does not seem to be > efficient enough. > > > > > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users maybe u(ones(1,p),:).^k(:,ones(1,n)) ? S. From vogt at centre-cired.fr Wed Dec 19 11:30:18 2012 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Wed, 19 Dec 2012 11:30:18 +0100 Subject: [Scilab-users] u .^ k ? In-Reply-To: <8F232902ADB4E14EB16789FB7006FC841036C0@TW-MBX-P01.cnesnet.ad.cnes.fr> References: <8F232902ADB4E14EB16789FB7006FC841036C0@TW-MBX-P01.cnesnet.ad.cnes.fr> Message-ID: <50D1973A.3070700@centre-cired.fr> On 19/12/2012 11:17, Lamy Alain wrote: > Hi, > > Does anyone know how to perform efficiently an operation like : > u .^k > > with: > u = [u1, u2, ..., un] // ui : real numbers > and: > k = [k1; k2; kp] // ki : positive integers > > > The result being : > > [ u1^k1, u2^k1, ..., un^k1; > u1^k2, u2^k2, ..., un^k2; > ... > u1^kp, u2^kp, ..., un^kp ] > > > I know how to do it with cumprod (for instance), but it does not seem to be > efficient enough. > > Hi I'm not sure you can imagine something more efficient for the general case (arbitrary k's) than: U = ones(1,n)*u; K = ones(1,n)*k; ans = U.^K; > > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Alain.Lamy at cnes.fr Wed Dec 19 11:54:31 2012 From: Alain.Lamy at cnes.fr (Lamy Alain) Date: Wed, 19 Dec 2012 10:54:31 +0000 Subject: [Scilab-users] u .^ k ? In-Reply-To: <50D1973A.3070700@centre-cired.fr> References: <8F232902ADB4E14EB16789FB7006FC841036C0@TW-MBX-P01.cnesnet.ad.cnes.fr> <50D1973A.3070700@centre-cired.fr> Message-ID: <8F232902ADB4E14EB16789FB7006FC841036F5@TW-MBX-P01.cnesnet.ad.cnes.fr> Thanks ! I'll check how efficient it is . Alain -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Wed Dec 19 11:51:02 2012 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Wed, 19 Dec 2012 11:51:02 +0100 Subject: [Scilab-users] Rotate an xarc figure Message-ID: <3B5FFC67498DFF49AE7271A584867D16F105F24BF7@301EX00100.sidel.com> Hello, I think this is a bit the same as http://mailinglists.scilab.org/Plot-overlays-on-images-tt2617675.html but as it was 2,5 years ago, I try again... So, I work on ellipse fitting, and would like to display the regression model superimposed to the experimental points. I extract the parameters of the ellipse and draw it with xarc, but cannot rotate it. Is there an elegant way to do this or do I have to calculate some points and draw with xpoly (ro something else)? -- Christophe Dang Ngoc Chan Mechanical calculation engineer Sidel Group Sidel Blowing & Services Avenue de la Patrouille de France Octeville-sur-Mer, BP 204 76053 Le Havre cedex, France Tel: 33(0)2 32 85 89 32 Fax: 33(0)2 32 85 91 17 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. From pjbinu at cdac.in Wed Dec 19 13:10:46 2012 From: pjbinu at cdac.in ( P J Binu) Date: Wed, 19 Dec 2012 17:40:46 +0530 Subject: [Scilab-users] scilab ode from java Message-ID: <201212191222.qBJCM14M021169@mailgw.srvmgmt.cdac.in> Hi, I am trying to call ode from java. but it shows an error like following, foo[1,1] = sci_matrix getHeight() = 1 getHeight() = 5 intdy-- t (=r1) illegal where r1 is : 0.2500000000000D-01 t n est pas entre tcur - hu (= r1) et tcur (=r2) where r1 is : 0.8694709664001D-02 and r2 : -0.7179037253078D-01 lsoda-- problems due to intdy. itask=i1,tout=r1 where i1 is : 1 where r1 is : 0.2500000000000D-01 testing my code is as follows, class Example1 { public static void main(String[] args) throws Exception{ try { Scilab sci = new Scilab(true); if (sci.open()) { sci.exec("function dx=f(t,x);dx =sin(2*t);endfunction"); ScilabDouble t0=new ScilabDouble(0); ScilabDouble x0=new ScilabDouble(0.5); sci.put("t0",t0); sci.put("x0",x0); sci.exec("[t] = linspace(0,0.1,5);"); ScilabType t=sci.get("t"); System.out.println("foo[1,1] = " + t.getType()); System.out.println("getHeight() = " + t.getHeight()); System.out.println("getWidth() = " + t.getWidth()); sci.put("t",t); sci.exec("x = ode ( t0 , x0 , t , f ) ;"); sci.exec("plot2d(t,x);"); System.out.println("testing " ); } else System.out.println("Not opening scilab " ); } catch (org.scilab.modules.javasci.JavasciException e) { System.out.println("test " ); System.err.println("An exception occurred: " + e.getMessage()); } } } *Thanks and Regards P J Binu | Senior Engineer | Heath Informatics | C-DAC Trivandrum| Kerala | India | pjbinu at cdac.in | www.cdactvm.in| Voice : +91 9496236198 | Video Conference : 0471 2313282 ------------------------------------------------------------------------------------------------------------------------------- This e-mail is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies and the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email is strictly prohibited and appropriate legal action will be taken. ------------------------------------------------------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From pjbinu at cdac.in Wed Dec 19 13:40:19 2012 From: pjbinu at cdac.in (pjbinu) Date: Wed, 19 Dec 2012 04:40:19 -0800 (PST) Subject: [Scilab-users] CallScilab from java under Windows In-Reply-To: <1355722377858-4025501.post@n3.nabble.com> References: <1355722377858-4025501.post@n3.nabble.com> Message-ID: <1355920819649-4025552.post@n3.nabble.com> I solved the problem. Just download the latest version and now it is working -- View this message in context: http://mailinglists.scilab.org/CallScilab-from-java-under-Windows-tp4025501p4025552.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From juanpablodlc at gmail.com Wed Dec 19 16:46:27 2012 From: juanpablodlc at gmail.com (juanpablodlc) Date: Wed, 19 Dec 2012 07:46:27 -0800 (PST) Subject: [Scilab-users] ATOMS module In-Reply-To: <1355849867149-4025531.post@n3.nabble.com> References: <1355849867149-4025531.post@n3.nabble.com> Message-ID: <1355931987109-4025555.post@n3.nabble.com> Anybody?? Please??? -- View this message in context: http://mailinglists.scilab.org/ATOMS-module-tp4025531p4025555.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From denis.crete at thalesgroup.com Wed Dec 19 18:26:41 2012 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Wed, 19 Dec 2012 18:26:41 +0100 Subject: [Scilab-users] Rotate an xarc figure In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F105F24BF7@301EX00100.sidel.com> References: <3B5FFC67498DFF49AE7271A584867D16F105F24BF7@301EX00100.sidel.com> Message-ID: <19612_1355938000_50D1F8D0_19612_10048_1_908CBC9017354841B2F32BBEC70A05A101C386F8D86C@THSONEA01CMS01P.one.grp> Hello, I don't know any command for rotating objects in a figure ("move" exists but it only performs a translation of a graphical object). However, the following code probably draws a rotated ellipse (as for Lissajou's curves): X=1; Y=0.5; the=0:%pi/100:2*%pi; the0=%pi/6; plot2d(X*cos(the),Y*cos(the-the0)); The principal axis of the ellipse are found at the=phi, where phi is solution of: tan(2*phi)= Y^2*sin(2*the0)/(X^2+Y^2*cos(2*the0)); // 2 solutions %pi/2 apart plot2d(X*cos(phi),Y*cos(phi-the0),style=-2) plot2d(X*cos(phi+%pi/2),Y*cos(phi+%pi/2-the0),style=-3) HTH Denis -----Message d'origine----- De?: users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de Dang, Christophe Envoy??: mercredi 19 d?cembre 2012 11:51 ??: International users mailing list for Scilab. Objet?: [Scilab-users] Rotate an xarc figure Hello, I think this is a bit the same as http://mailinglists.scilab.org/Plot-overlays-on-images-tt2617675.html but as it was 2,5 years ago, I try again... So, I work on ellipse fitting, and would like to display the regression model superimposed to the experimental points. I extract the parameters of the ellipse and draw it with xarc, but cannot rotate it. Is there an elegant way to do this or do I have to calculate some points and draw with xpoly (ro something else)? -- Christophe Dang Ngoc Chan Mechanical calculation engineer Sidel Group Sidel Blowing & Services Avenue de la Patrouille de France Octeville-sur-Mer, BP 204 76053 Le Havre cedex, France Tel: 33(0)2 32 85 89 32 Fax: 33(0)2 32 85 91 17 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 at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From sgougeon at free.fr Wed Dec 19 20:24:36 2012 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 19 Dec 2012 20:24:36 +0100 Subject: [Scilab-users] Rotate an xarc figure In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F105F24BF7@301EX00100.sidel.com> References: <3B5FFC67498DFF49AE7271A584867D16F105F24BF7@301EX00100.sidel.com> Message-ID: <50D21474.6090106@free.fr> Hello Christophe, Le 19/12/2012 11:51, Dang, Christophe a ?crit : > Is there an elegant way to do this or do I have to calculate some points and draw with xpoly (ro something else)? rotate() can be used when points defining a 2D curve are available, while the object returned by xarc() is parametric rather than a set of points. So, i am afraid that yes, you must calculate some points and draw the corresponding polyline, as proposed by Denis. Regards Samuel From Christophe.Dang at sidel.com Thu Dec 20 09:06:11 2012 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Thu, 20 Dec 2012 09:06:11 +0100 Subject: [Scilab-users] Rotate an xarc figure In-Reply-To: <19612_1355938000_50D1F8D0_19612_10048_1_908CBC9017354841B2F32BBEC70A05A101C386F8D86C@THSONEA01CMS01P.one.grp> References: <3B5FFC67498DFF49AE7271A584867D16F105F24BF7@301EX00100.sidel.com> <19612_1355938000_50D1F8D0_19612_10048_1_908CBC9017354841B2F32BBEC70A05A101C386F8D86C@THSONEA01CMS01P.one.grp> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F105F67A5C@301EX00100.sidel.com> Thanks Denis and Samuel. I personally used the following solution. Feel free to criticize if there is something to improve. function [] = trace_ellipse(xc, yc, a, b, phi) // trace l'ellipse de centre (xc, yc) // de rayons a et b et tourn?e de phi pas = 0.1; t = 0:pas:%pi/2; X = a*cos(t); Y = b*sin(t); n = 4*size(X,'*'); XY1 = [X, -flipdim(X,2), -X, flipdim(X,2);... Y, flipdim(Y,2), -Y, -flipdim(Y,2)]; XY = rotate(XY1, phi) + [xc*ones(1,n);yc*ones(1,n)]; xpoly(XY(1,:), XY(2,:)); endfunction -- Christophe Dang Ngoc Chan Mechanical calculation engineer Sidel Group Sidel Blowing & Services Avenue de la Patrouille de France Octeville-sur-Mer, BP 204 76053 Le Havre cedex, France Tel: 33(0)2 32 85 89 32 Fax: 33(0)2 32 85 91 17 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. From johannes.eha at web.de Thu Dec 20 09:44:00 2012 From: johannes.eha at web.de (cpt_nemo) Date: Thu, 20 Dec 2012 00:44:00 -0800 (PST) Subject: [Scilab-users] Question on funktion plzr / Zeros and Poles Message-ID: <1355993040310-4025560.post@n3.nabble.com> Hello, when executing the following code, i get a diagram with 3 zeros and 2 poles. In my understanding, there should be 2 zeros and 3 Poles, because "n" is a polynom with order 2 and "d" is a polynom with s^3. /clear; s=poly(0,'s'); n=2+3*s+4*s^2; d=5-s^3; h=syslin('c',n/d); plzr(h); / Can someone show me, what i am doing wrong or is this an error in scilab? -- View this message in context: http://mailinglists.scilab.org/Question-on-funktion-plzr-Zeros-and-Poles-tp4025560.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From pjbinu at cdac.in Thu Dec 20 08:58:45 2012 From: pjbinu at cdac.in (pjbinu) Date: Wed, 19 Dec 2012 23:58:45 -0800 (PST) Subject: [Scilab-users] ode from java In-Reply-To: <1355920970057-4025553.post@n3.nabble.com> References: <1355920970057-4025553.post@n3.nabble.com> Message-ID: <1355990325848-4025558.post@n3.nabble.com> Hi, I sorted out the issue and now it is working thanks to the viwers... Binu -- View this message in context: http://mailinglists.scilab.org/ode-from-java-tp4025553p4025558.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From simon.gareste at scilab-enterprises.com Thu Dec 20 13:42:06 2012 From: simon.gareste at scilab-enterprises.com (Simon GARESTE) Date: Thu, 20 Dec 2012 13:42:06 +0100 Subject: [Scilab-users] ATOMS module In-Reply-To: <1355931987109-4025555.post@n3.nabble.com> References: <1355849867149-4025531.post@n3.nabble.com> <1355931987109-4025555.post@n3.nabble.com> Message-ID: <50D3079E.70109@scilab-enterprises.com> Hello, Could you please post the results of the following : atomsGetConfig() atomsRepositoryList() Can you join your /tmp/SCI_TMP_2693_pZVydd/.atoms/1_TOOLBOXES.gz file? Can you try launching Scilab with LANG=en_US /path/to/your/bin/scilab and do an atomsSystemUpdate() ? wget http://atoms.scilab.org/5.4/TOOLBOXES/64/linux.gz works? Simon On 12/19/2012 04:46 PM, juanpablodlc wrote: > Anybody?? Please??? > > > > -- > View this message in context: http://mailinglists.scilab.org/ATOMS-module-tp4025531p4025555.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Simon Gareste Support & Development Engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.70 http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From juanpablodlc at gmail.com Thu Dec 20 17:06:21 2012 From: juanpablodlc at gmail.com (juanpablodlc) Date: Thu, 20 Dec 2012 08:06:21 -0800 (PST) Subject: [Scilab-users] ATOMS module In-Reply-To: <50D3079E.70109@scilab-enterprises.com> References: <1355849867149-4025531.post@n3.nabble.com> <1355931987109-4025555.post@n3.nabble.com> <50D3079E.70109@scilab-enterprises.com> Message-ID: <1356019581179-4025563.post@n3.nabble.com> Hello, Thank you Simon. -->atomsGetConfig ans = useProxy: "False" proxyPort: "21" proxyHost: "127.0.0.1" downloadTool: "wget" Verbose: "True" -->atomsRepositoryList() ans = !http://atoms.scilab.org/5.4 official ! ! ! !http://scene1.test.atoms.scilab.org allusers ! The 1_TOOLBOXES.gz file is always empty, 0b of size and it is not even readable (neither by root, because it is nothing but an empty file I believe). My scilab is already in english US. what do you mean to launch it with LANG=en_US? In the terminal I can do scilab -l en to launch it in English or French. wget http://atoms.scilab.org/5.4/TOOLBOXES/64/linux.gz DOES work fine. Thank you!!! -- View this message in context: http://mailinglists.scilab.org/ATOMS-module-tp4025531p4025563.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From patricia.dbooker at gmail.com Thu Dec 20 19:17:36 2012 From: patricia.dbooker at gmail.com (pmdbr) Date: Thu, 20 Dec 2012 10:17:36 -0800 (PST) Subject: [Scilab-users] Call for experienced Scilab users to write cases studies to a comprehensive book on Scilab Message-ID: <1356027456031-4025564.post@n3.nabble.com> Hello, I am looking for experienced Scilab users especially on the following topics : - Signal processing - Image processing - Prototyping - Matlab/Scilab migration and links to write contribution to a french comprehensive book on Scilab, organized into standalone modules. The book will be published by les ?ditions D-BookeR (www.d-booker.fr) in partnership with Scilab Enterprises. First modules on Scilab bases and Xcos are expected by Spring 2013. Each module on the mentionned topics may form a short textbook, with examples and good pratices. Cases studies on various Scilab use in any professional areas are also welcome. For more informations, please contact me off-list to contact at d-booker dot fr - Patricia Founder of D-BookeR ?ditions -- View this message in context: http://mailinglists.scilab.org/Call-for-experienced-Scilab-users-to-write-cases-studies-to-a-comprehensive-book-on-Scilab-tp4025564.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From simon.gareste at scilab-enterprises.com Fri Dec 21 08:55:03 2012 From: simon.gareste at scilab-enterprises.com (Simon GARESTE) Date: Fri, 21 Dec 2012 08:55:03 +0100 Subject: [Scilab-users] ATOMS module In-Reply-To: <1356019581179-4025563.post@n3.nabble.com> References: <1355849867149-4025531.post@n3.nabble.com> <1355931987109-4025555.post@n3.nabble.com> <50D3079E.70109@scilab-enterprises.com> <1356019581179-4025563.post@n3.nabble.com> Message-ID: <50D415D7.1060203@scilab-enterprises.com> Hello, Some ideas, try an atomsSystemUpdate() after each one, and combine them : -can you try deleting the content of ~/.Scilab/5.4.0/.atoms/config, or at least remove the useProxy, proxyPort and proxyHost lines? There might be a bug with these, though I doubt it. -atomsRepositoryDel("http://scene1.test.atoms.scilab.org","allusers"). This should delete this repository, which is used only for tests. I don't think it will change something, but it is of no use for you right now. -with LANG=en_US, I meant executing the command, in the terminal, 'LANG=en_US ./scilab', when you are in the bin directory of your scilab. -I guess the command atomsSystemUpdate() gives you the same error message as you had previously? -in the terminal, execute the command 'which scilab' Simon On 12/20/2012 05:06 PM, juanpablodlc wrote: > Hello, > > Thank you Simon. > > -->atomsGetConfig > ans = > > useProxy: "False" > proxyPort: "21" > proxyHost: "127.0.0.1" > downloadTool: "wget" > Verbose: "True" > > -->atomsRepositoryList() > ans = > > !http://atoms.scilab.org/5.4 official ! > ! ! > !http://scene1.test.atoms.scilab.org allusers ! > > The 1_TOOLBOXES.gz file is always empty, 0b of size and it is not even > readable (neither by root, because it is nothing but an empty file I > believe). > > My scilab is already in english US. what do you mean to launch it with > LANG=en_US? In the terminal I can do scilab -l en to launch it in > English or French. > > wget http://atoms.scilab.org/5.4/TOOLBOXES/64/linux.gz DOES work fine. > > Thank you!!! > > > > > -- > View this message in context: http://mailinglists.scilab.org/ATOMS-module-tp4025531p4025563.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Simon Gareste Support & Development Engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.70 http://www.scilab-enterprises.com From jean-marie.cottin at edf.fr Fri Dec 21 10:04:02 2012 From: jean-marie.cottin at edf.fr (Jean-Marie COTTIN) Date: Fri, 21 Dec 2012 10:04:02 +0100 Subject: [Scilab-users] AUTO : Jean-Marie COTTIN est absent. (retour 07/01/2013) Message-ID: Je suis absent(e) du bureau jusqu'au 07/01/2013 Je r?pondrai ? votre message d?s mon retour. Remarque?: ceci est une r?ponse automatique ? votre message "Re: [Scilab-users] ATOMS module" envoy? le 21/12/2012 8:55:03. C'est la seule notification que vous recevrez pendant l'absence de cette personne. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Fri Dec 21 10:53:40 2012 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Fri, 21 Dec 2012 10:53:40 +0100 Subject: [Scilab-users] Generalised eigenvalues Message-ID: <3B5FFC67498DFF49AE7271A584867D16F105FA736D@301EX00100.sidel.com> Hello, I'd like to convert the following Matlab script [gevec, geval] = eig(S, C); (see http://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/FITZGIBBON/ELLIPSE/ ) The MathWorks page http://www.mathworks.fr/fr/help/matlab/ref/eig.html tells me these are the generalised eigen-values and-vectors. According to the Scilab help page, spec seems to works a bit differently. I guess I have to do something like [al,be,gevec] = spec(S,C) geval = al./be but this is a bit beyond my math skills. Am I right or is the truth "out there"? -- Christophe Dang Ngoc Chan Mechanical calculation engineer Sidel Group Sidel Blowing & Services Avenue de la Patrouille de France Octeville-sur-Mer, BP 204 76053 Le Havre cedex, France Tel: 33(0)2 32 85 89 32 Fax: 33(0)2 32 85 91 17 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. From sylvestre.ledru at scilab-enterprises.com Fri Dec 21 11:15:21 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Fri, 21 Dec 2012 11:15:21 +0100 Subject: [Scilab-users] Generalised eigenvalues In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F105FA736D@301EX00100.sidel.com> References: <3B5FFC67498DFF49AE7271A584867D16F105FA736D@301EX00100.sidel.com> Message-ID: <50D436B9.40601@scilab-enterprises.com> On 21/12/2012 10:53, Dang, Christophe wrote: > Hello, > > I'd like to convert the following Matlab script > > [gevec, geval] = eig(S, C); > > (see http://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/FITZGIBBON/ELLIPSE/ ) > > The MathWorks page > http://www.mathworks.fr/fr/help/matlab/ref/eig.html > tells me these are the generalised eigen-values and-vectors. > > According to the Scilab help page, spec seems to works a bit differently. > > I guess I have to do something like > > [al,be,gevec] = spec(S,C) > geval = al./be > > but this is a bit beyond my math skills. > > Am I right or is the truth "out there"? The truth is probably here: http://help.scilab.org/docs/5.4.0/en_US/eigs.html ;) Sylvestre From Christophe.Dang at sidel.com Fri Dec 21 11:24:12 2012 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Fri, 21 Dec 2012 11:24:12 +0100 Subject: [Scilab-users] Generalised eigenvalues In-Reply-To: <50D436B9.40601@scilab-enterprises.com> References: <3B5FFC67498DFF49AE7271A584867D16F105FA736D@301EX00100.sidel.com> <50D436B9.40601@scilab-enterprises.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F105FA7456@301EX00100.sidel.com> Sylvestre Ledru wrote: > The truth is probably here: > http://help.scilab.org/docs/5.4.0/en_US/eigs.html Thanks. But sorry, I'm not familiar with this ARPACK. Is this an additional package I have to load with Atoms? Do I have to upgrade to 5.4? (I'm currently on 5.3). 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. From sylvestre.ledru at scilab-enterprises.com Fri Dec 21 11:42:51 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Fri, 21 Dec 2012 11:42:51 +0100 Subject: [Scilab-users] Generalised eigenvalues In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F105FA7456@301EX00100.sidel.com> References: <3B5FFC67498DFF49AE7271A584867D16F105FA736D@301EX00100.sidel.com> <50D436B9.40601@scilab-enterprises.com> <3B5FFC67498DFF49AE7271A584867D16F105FA7456@301EX00100.sidel.com> Message-ID: <50D43D2B.6050601@scilab-enterprises.com> On 21/12/2012 11:24, Dang, Christophe wrote: > Sylvestre Ledru wrote: > >> The truth is probably here: >> http://help.scilab.org/docs/5.4.0/en_US/eigs.html > > Thanks. > But sorry, I'm not familiar with this ARPACK. > Is this an additional package I have to load with Atoms? > Do I have to upgrade to 5.4? > (I'm currently on 5.3). Yes, this function has been introduced with Scilab 5.4.0. Sylvestre PS: This is detailed in the History section of the URL. From Christophe.Dang at sidel.com Fri Dec 21 11:45:26 2012 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Fri, 21 Dec 2012 11:45:26 +0100 Subject: [Scilab-users] Generalised eigenvalues In-Reply-To: <50D43D2B.6050601@scilab-enterprises.com> References: <3B5FFC67498DFF49AE7271A584867D16F105FA736D@301EX00100.sidel.com> <50D436B9.40601@scilab-enterprises.com> <3B5FFC67498DFF49AE7271A584867D16F105FA7456@301EX00100.sidel.com> <50D43D2B.6050601@scilab-enterprises.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F105FA74DB@301EX00100.sidel.com> > Yes, this function has been introduced with Scilab 5.4.0. Thanks a lot. > PS: This is detailed in the History section of the URL. I'll look at it next time. -- 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. From phil.shvarcz at yahoo.com Fri Dec 21 11:46:12 2012 From: phil.shvarcz at yahoo.com (phil_shvarcz) Date: Fri, 21 Dec 2012 02:46:12 -0800 (PST) Subject: [Scilab-users] Performance issue with mget on inhomogeneous binary file Message-ID: <1356086772771-4025574.post@n3.nabble.com> Hi all, being new to scilab I'm not sure if my problem has a trivial solution or not. I searched all documentation and forum postings but did not find anything relevant for my problem. So that's it: I need to read in quite big binary files (several 100MB) composed of successive pairs of float (4 byte word) and double (8 byte word). That is, the byte sequence looks like this ("ffff" is a 4-byte float and "dddddddd" is an 8 byte double): ffffddddddddffffddddddddffffddddddddffffdddddd if I use this code: the file is read in at an incredibly slow rate (a few MB take minutes to be read in). If I read in the entire file in one flush it takes a second or so to read in 100MB. However, the data structure is lost and the vector vb contains nonsensical doubles. Is there a way in scilab to read in a (structureless) vector of bytes and cast it to the right structure afterwards, like one would do with an array in C ? Besides, is it normal that mread is *so* slow when used to read a file in a word-by-word manner instead of reading it in one big chunk? Thanks for reading, regards Phil -- View this message in context: http://mailinglists.scilab.org/Performance-issue-with-mget-on-inhomogeneous-binary-file-tp4025574.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Serge.Steer at inria.fr Fri Dec 21 15:45:40 2012 From: Serge.Steer at inria.fr (Serge Steer) Date: Fri, 21 Dec 2012 15:45:40 +0100 Subject: [Scilab-users] Generalised eigenvalues In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F105FA736D@301EX00100.sidel.com> References: <3B5FFC67498DFF49AE7271A584867D16F105FA736D@301EX00100.sidel.com> Message-ID: <50D47614.4060506@inria.fr> Le 21/12/2012 10:53, Dang, Christophe a ?crit : > Hello, > > I'd like to convert the following Matlab script > > [gevec, geval] = eig(S, C); > > (see http://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/FITZGIBBON/ELLIPSE/ ) > > The MathWorks page > http://www.mathworks.fr/fr/help/matlab/ref/eig.html > tells me these are the generalised eigen-values and-vectors. > > According to the Scilab help page, spec seems to works a bit differently. > > I guess I have to do something like > > [al,be,gevec] = spec(S,C) > geval = al./be > > but this is a bit beyond my math skills. > > Am I right or is the truth "out there"? You are right. but Scilab returns the generalized eigenvalues under a factorized form because some generalized eigenvalue problems may have eigenvalue at infinity. Serge Steer From Serge.Steer at inria.fr Fri Dec 21 16:20:41 2012 From: Serge.Steer at inria.fr (Serge Steer) Date: Fri, 21 Dec 2012 16:20:41 +0100 Subject: [Scilab-users] Performance issue with mget on inhomogeneous binary file In-Reply-To: <1356086772771-4025574.post@n3.nabble.com> References: <1356086772771-4025574.post@n3.nabble.com> Message-ID: <50D47E49.7010801@inria.fr> Le 21/12/2012 11:46, phil_shvarcz a ?crit : > Hi all, > > being new to scilab I'm not sure if my problem has a trivial solution or > not. I searched all documentation and forum postings but did not find > anything relevant for my problem. So that's it: > > I need to read in quite big binary files (several 100MB) composed of > successive pairs of float (4 byte word) and double (8 byte word). That is, > the byte sequence looks like this ("ffff" is a 4-byte float and "dddddddd" > is an 8 byte double): > ffffddddddddffffddddddddffffddddddddffffdddddd > > if I use this code: You forgot it? > > > > the file is read in at an incredibly slow rate (a few MB take minutes to be > read in). > > If I read in the entire file in one flush > > > > it takes a second or so to read in 100MB. However, the data structure is > lost and the vector vb contains nonsensical doubles. > > Is there a way in scilab to read in a (structureless) vector of bytes and > cast it to the right structure afterwards, like one would do with an array > in C ? I do not think so. > > Besides, is it normal that mread is *so* slow when used to read a file in a > word-by-word manner instead of reading it in one big chunk? I do not know the mread function. Whre do you find it? Any way it is normal that a word_by-word read being slower because on each iteration the program as to check if the arguments are ok or not, the system as to create an interrupt , ... May be you can use a code similar to the one below to be able to read your file. It is bit tricky because it needs to create an intermediate file suppose your file is named yourfile and contains N floatting point numbers //read all the numbers in the file assumming float format u=mopen('yourfile','r'); T=mget(3*N,'f',u); F=T(1:3:$); // the float numbers mclose(u); //now write down all the records corresponding to doubles I=(2:3)'.*.ones(1,N/2)+(0:3:3*N-3).*.ones(2,1); u=mopen('/tmp/foo','w') mput(T(I),'f',u); mclose(u); //read it again as double u=mopen('/tmp/foo','r'); D=mget(N,'d',u); mclose(u); Serge Steer > > Thanks for reading, > regards > Phil > > > > -- > View this message in context: http://mailinglists.scilab.org/Performance-issue-with-mget-on-inhomogeneous-binary-file-tp4025574.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From phil.shvarcz at yahoo.com Fri Dec 21 16:04:18 2012 From: phil.shvarcz at yahoo.com (phil_shvarcz) Date: Fri, 21 Dec 2012 07:04:18 -0800 (PST) Subject: [Scilab-users] Performance issue with mget on inhomogeneous binary file In-Reply-To: <50D47E49.7010801@inria.fr> References: <1356086772771-4025574.post@n3.nabble.com> <50D47E49.7010801@inria.fr> Message-ID: <1356102258772-4025577.post@n3.nabble.com> Hi Serge, thank you for the quick answer! > You forgot it? hmm didn't the code appear? it was <...> finf=fileinfo(filename); bytes=finf(1); vt=zeros(bytes/6,1); vc=zeros(bytes/6,1); fd=mopen(filename); i=0; tic(); while ~(meof(fd)) i=i+1; vc(i)=mget(1,'f',fd); vt(i)=mget(1,'d',fd); end printf('%i records in %d seconds',i,toc()); for the word-by-word case and <...> tic(); fd=mopen(filename); vb=mget(bytes/4,'f',fd); mclose(fd); printf('%i bytes in %d seconds',bytes,toc()); for the one-step case. > I do not know the mread function. Whre do you find it? of course I meant "mget" and not "mread". See how new I am to scilab ;) I tried your proposed solution. Is it possible that there's a bug in the following line? > I=(2:3)'.*.ones(1,N/2)+(0:3:3*N-3).*.ones(2,1); I get an error message "inconsistent addition" or something like that. The summands seem to be matrices of different dimensions. Thanks again regards Phil -- View this message in context: http://mailinglists.scilab.org/Performance-issue-with-mget-on-inhomogeneous-binary-file-tp4025574p4025577.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From juanpablodlc at gmail.com Fri Dec 21 20:24:28 2012 From: juanpablodlc at gmail.com (juanpablodlc) Date: Fri, 21 Dec 2012 11:24:28 -0800 (PST) Subject: [Scilab-users] ATOMS module In-Reply-To: <50D415D7.1060203@scilab-enterprises.com> References: <1355849867149-4025531.post@n3.nabble.com> <1355931987109-4025555.post@n3.nabble.com> <50D3079E.70109@scilab-enterprises.com> <1356019581179-4025563.post@n3.nabble.com> <50D415D7.1060203@scilab-enterprises.com> Message-ID: <1356117868469-4025578.post@n3.nabble.com> Simon, Thanks for your help. Still no solution though!! Here is what happens: -can you try deleting the content of ~/.Scilab/5.4.0/.atoms/config, or at least remove the useProxy, proxyPort and proxyHost lines? There might be a bug with these, though I doubt it. DONE! Didn't help ..... -atomsRepositoryDel("http://scene1.test.atoms.scilab.org","allusers"). This should delete this repository, which is used only for tests. I don't think it will change something, but it is of no use for you right now. Done!! Didn't help .... -with LANG=en_US, I meant executing the command, in the terminal, 'LANG=en_US ./scilab', when you are in the bin directory of your scilab. Warning: Localization issue. Failed to change the LC_CTYPE locale category. Does not support the locale '' (null) C. Did you install the system locales? Warning: Localization issue. Does not support the locale '' Returned: (null) Current system locale: C Did you install the system locales? -I guess the command atomsSystemUpdate() gives you the same error message as you had previously? No solution yet .... -in the terminal, execute the command 'which scilab' /usr/bin/scilab I think the problem might be that scilab doesen't have the permissions or something to do wget? Why does it time out soo fast? In 5.3.3 i had the same problem, that's why I changed to 5.4.0. Running as root doesn't change anything .... What could be the problem? PLEASE help!!! Thnx a LOT -- View this message in context: http://mailinglists.scilab.org/ATOMS-module-tp4025531p4025578.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From samuel.enibe at unn.edu.ng Sat Dec 22 02:28:03 2012 From: samuel.enibe at unn.edu.ng (samuel.enibe at unn.edu.ng) Date: Sat, 22 Dec 2012 01:28:03 +0000 Subject: [Scilab-users] How to Install new SCILAB Release in UBUNTU 10.10 Message-ID: <50d50cf6.440db50a.78dd.ffff8ca0@mx.google.com> I would like to try out the new SCILAB 5:4.0 on my UBUNTU 11.10 installation. After unpacking the files, I found that non of the SCILAB scripts could not. For example, when I change to the bin directly and trey to run scilab from there or elsewher, a terminal window appears briefly and then vanishes. What should I do. I know the alternative is to wait for a few months when the UBUNTU distribution will include the new version. I will appreciate any advice. God bless you. Enibe Sent from my Nokia phone From sylvestre.ledru at scilab-enterprises.com Sat Dec 22 16:57:21 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Sat, 22 Dec 2012 16:57:21 +0100 Subject: [Scilab-users] How to Install new SCILAB Release in UBUNTU 10.10 In-Reply-To: <50d50cf6.440db50a.78dd.ffff8ca0@mx.google.com> References: <50d50cf6.440db50a.78dd.ffff8ca0@mx.google.com> Message-ID: <50D5D861.8030409@scilab-enterprises.com> On 22/12/2012 02:28, samuel.enibe at unn.edu.ng wrote: > I would like to try out the new SCILAB 5:4.0 on my UBUNTU 11.10 installation. > > After unpacking the files, I found that non of the SCILAB scripts could not. For example, when I change to the bin directly and trey to run scilab from there or elsewher, a terminal window appears briefly and then vanishes. > > What should I do. I know the alternative is to wait for a few months when the UBUNTU distribution will include the new version. Do you have any error messages when you start Scilab from the terminal ? Do you confirm that you use Ubuntu 10.10 and not 10.12 ? Sylvestre From simon.gareste at scilab-enterprises.com Mon Dec 24 10:04:49 2012 From: simon.gareste at scilab-enterprises.com (Simon GARESTE) Date: Mon, 24 Dec 2012 10:04:49 +0100 Subject: [Scilab-users] ATOMS module In-Reply-To: <1356117868469-4025578.post@n3.nabble.com> References: <1355849867149-4025531.post@n3.nabble.com> <1355931987109-4025555.post@n3.nabble.com> <50D3079E.70109@scilab-enterprises.com> <1356019581179-4025563.post@n3.nabble.com> <50D415D7.1060203@scilab-enterprises.com> <1356117868469-4025578.post@n3.nabble.com> Message-ID: <50D81AB1.9080804@scilab-enterprises.com> Juan, "which scilab" gives you /usr/bin/scilab, but you say you are using (and downloaded) 5.4.0. This means that is you launch scilab with only the command "scilab", it will launch the one in /usr/bin/scilab, which is certainly not 5.4.0 since we didn't packaged it yet in ubuntu. So first thing would be to do sudo apt-get remove scilab Also, rm -rf ~/.Scilab (which will delete all your configurations, if you have any, of any scilab version you ever installed) Now, if you launch scilab with the path to your 5.4.0 version, and execute "atomsRepositoryList()", it should only answers you the http://atoms.scilab.org/5.4 repository, right? Could you try using a wired connection, not a wifi one? If I remember correctly, we had a bug some time ago with bad wifi connections. Also, to be sure, execute in scilab "getversion('scilab')" Simon On 12/21/2012 08:24 PM, juanpablodlc wrote: > Simon, > > Thanks for your help. Still no solution though!! > Here is what happens: > -can you try deleting the content of ~/.Scilab/5.4.0/.atoms/config, or at > least remove the useProxy, proxyPort and proxyHost lines? There might be a > bug with these, though I doubt it. > DONE! Didn't help ..... > > -atomsRepositoryDel("http://scene1.test.atoms.scilab.org","allusers"). > This should delete this repository, which is used only for tests. I > don't think it will change something, but it is of no use for you right now. > Done!! Didn't help .... > > -with LANG=en_US, I meant executing the command, in the terminal, > 'LANG=en_US ./scilab', when you are in the bin directory of your scilab. > > Warning: Localization issue. Failed to change the LC_CTYPE locale category. > Does not support the locale '' (null) C. > Did you install the system locales? > Warning: Localization issue. Does not support the locale '' > Returned: (null) > Current system locale: C > Did you install the system locales? > -I guess the command atomsSystemUpdate() gives you the same error > message as you had previously? > No solution yet .... > > -in the terminal, execute the command 'which scilab' > /usr/bin/scilab > > I think the problem might be that scilab doesen't have the permissions or > something to do wget? Why does it time out soo fast? In 5.3.3 i had the same > problem, that's why I changed to 5.4.0. > Running as root doesn't change anything .... What could be the problem? > PLEASE help!!! > Thnx a LOT > > > > > > -- > View this message in context: http://mailinglists.scilab.org/ATOMS-module-tp4025531p4025578.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Simon Gareste Support & Development Engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.70 http://www.scilab-enterprises.com From paul.carrico at free.fr Tue Dec 25 00:48:21 2012 From: paul.carrico at free.fr (Paul Carrico) Date: Tue, 25 Dec 2012 00:48:21 +0100 Subject: [Scilab-users] empty memory Message-ID: <000001cde231$28ac0750$7a0415f0$@carrico@free.fr> Dear All, I noticed the memory is not empty after reading huge matrices (typically after using csvread function with number of rows greater than 500 000) ; as well it's the case in the example hereafter . . thus what is the way to force Scilab to empty the memory ? NB : the only way I found is to close Scilab .. Not convenient ! Merry Christmas Paul mode(0) stacksize('max'); n = 500000; A = rand(n,10); save('A.bin','A'); clear A (windows task manager shows the memory is not empty after < clear > use) -------------- next part -------------- An HTML attachment was scrubbed... URL: From samuel.enibe at unn.edu.ng Wed Dec 26 09:04:00 2012 From: samuel.enibe at unn.edu.ng (Samuel Enibe) Date: Wed, 26 Dec 2012 09:04:00 +0100 Subject: [Scilab-users] Fwd: How to Install new SCILAB Release in UBUNTU 10.10 In-Reply-To: References: <50d50cf6.440db50a.78dd.ffff8ca0@mx.google.com> <50D5D861.8030409@scilab-enterprises.com> <50D6C08D.4020507@scilab-enterprises.com> Message-ID: ---------- Forwarded message ---------- From: Samuel Enibe Date: Mon, Dec 24, 2012 at 5:22 PM Subject: Re: [Scilab-users] How to Install new SCILAB Release in UBUNTU 10.10 To: Sylvestre Ledru Thanks Sylvestre. SCILAB version 5.3.3 installed from the UBUNTU package system works very well without any problem. When I try to run the new SCILAB version 5.4.0 from the terminal, it produces the following error messqges: *Could not load JVM dynamic library (libjava). Error: libjvm.so: cannot open shared object file: No such file or directory If you are using a binary version of Scilab, please report a bug http://bugzilla.scilab.org/. If you are using a self-built version of Scilab, update the script bin/scilab to provide the path to the JVM. The problem might be related to SELinux. Try to deactivate it. Please also check that you are not trying to run Scilab 64 bits on a 32 bits system (or vice versa). Scilab cannot open JVM library. Thanks for your kind assistance. * Samuel Enibe On Sun, Dec 23, 2012 at 9:27 AM, Sylvestre Ledru < sylvestre.ledru at scilab-enterprises.com> wrote: > Hello > > and what about my first question ? :) > > S > > > On 23/12/2012 04:55, Samuel Enibe wrote: > > Thanks Sylvestre. > > I use UBUNTU 11.10. It is not 10.10 or 10.12. > > I will appreciate your assistance. > > Samuel Enibe > University of Nigeria > Nsukka, Nigeria > > On Sat, Dec 22, 2012 at 4:57 PM, Sylvestre Ledru < > sylvestre.ledru at scilab-enterprises.com> wrote: > >> On 22/12/2012 02:28, samuel.enibe at unn.edu.ng wrote: >> > I would like to try out the new SCILAB 5:4.0 on my UBUNTU 11.10 >> installation. >> > >> > After unpacking the files, I found that non of the SCILAB scripts could >> not. For example, when I change to the bin directly and trey to run scilab >> from there or elsewher, a terminal window appears briefly and then vanishes. >> > >> > What should I do. I know the alternative is to wait for a few months >> when the UBUNTU distribution will include the new version. >> Do you have any error messages when you start Scilab from the terminal ? >> >> Do you confirm that you use Ubuntu 10.10 and not 10.12 ? >> >> Sylvestre >> >> > > > > -- Samuel Ogbonna Enibe BEng (Nig), MSc (Reading, England), PhD (Nig) Professor of Mechanical Engineering Director, National Centre for Equipment Maintenance & Development University of Nigeria, Nsukka, Nigeria Tel: +2348063646798 Email: samuel.enibe at unn.edu.ng enibesam at yahoo.com -- Samuel Ogbonna Enibe BEng (Nig), MSc (Reading, England), PhD (Nig) Professor of Mechanical Engineering Director, National Centre for Equipment Maintenance & Development University of Nigeria, Nsukka, Nigeria Tel: +2348063646798 Email: samuel.enibe at unn.edu.ng enibesam at yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From frederic.jourdin at shom.fr Thu Dec 27 08:00:36 2012 From: frederic.jourdin at shom.fr (Frederic Jourdin) Date: Thu, 27 Dec 2012 08:00:36 +0100 Subject: [Scilab-users] empty memory In-Reply-To: <000001cde231$28ac0750$7a0415f0$@carrico@free.fr> References: <000001cde231$28ac0750$7a0415f0$@carrico@free.fr> Message-ID: <50DBF214.60103@shom.fr> even with: clear clearglobal() ? Fred Le 25/12/2012 00:48, Paul Carrico a ?crit : > > Dear All, > > I noticed the memory is not empty after reading huge matrices > (typically after using csvread function with number of rows greater > than 500 000) ; as well it's the case in the example hereafter ... > > ... thus what is the way to force Scilab to empty the memory ? > > NB : the only way I found is to close Scilab .... Not convenient ! > > Merry Christmas > > Paul > > mode(0) > > stacksize('max'); > > n = 500000; > > A = rand(n,10); > > save('A.bin','A'); > > clear A > > (windows task manager shows the memory is not empty after ? clear ? use) > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Thu Dec 27 09:48:01 2012 From: paul.carrico at free.fr (Paul Carrico) Date: Thu, 27 Dec 2012 09:48:01 +0100 Subject: [Scilab-users] empty memory In-Reply-To: <50DBF214.60103@shom.fr> References: <000001cde231$28ac0750$7a0415f0$@carrico@free.fr> <50DBF214.60103@shom.fr> Message-ID: <001e01cde40e$e1d218d0$a5764a70$@carrico@free.fr> Hi I tested it on my example under scilab5.4.0 (Windows OS) the memory is still full Paul De : users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de Frederic Jourdin Envoy? : jeudi 27 d?cembre 2012 08:01 ? : International users mailing list for Scilab. Objet : Re: [Scilab-users] empty memory even with: clear clearglobal() ? Fred Le 25/12/2012 00:48, Paul Carrico a ?crit : Dear All, I noticed the memory is not empty after reading huge matrices (typically after using csvread function with number of rows greater than 500 000) ; as well it?s the case in the example hereafter thus what is the way to force Scilab to empty the memory ? NB : the only way I found is to close Scilab . Not convenient ! Merry Christmas Paul mode(0) stacksize('max'); n = 500000; A = rand(n,10); save('A.bin','A'); clear A (windows task manager shows the memory is not empty after ? clear ? use) _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From frederic.jourdin at shom.fr Thu Dec 27 10:37:28 2012 From: frederic.jourdin at shom.fr (Frederic Jourdin) Date: Thu, 27 Dec 2012 10:37:28 +0100 Subject: [Scilab-users] empty memory In-Reply-To: <001e01cde40e$e1d218d0$a5764a70$@carrico@free.fr> References: <000001cde231$28ac0750$7a0415f0$@carrico@free.fr> <50DBF214.60103@shom.fr> <001e01cde40e$e1d218d0$a5764a70$@carrico@free.fr> Message-ID: <50DC16D8.9000401@shom.fr> I don't see this problem with Scilab 5.3 and 5.4 on Linux. Maybe this is a Scilab bug on Windows (?!): another guy for testing it on Windows ?... Fred Le 27/12/2012 09:48, Paul Carrico a ?crit : > > Hi > > I tested it on my example under scilab5.4.0 (Windows OS) ... the > memory is still full > > Paul > > *De :* users-bounces at lists.scilab.org > [mailto:users-bounces at lists.scilab.org] *De la part de* Frederic Jourdin > *Envoy? :* jeudi 27 d?cembre 2012 08:01 > *? :* International users mailing list for Scilab. > *Objet :* Re: [Scilab-users] empty memory > > even with: > clear > clearglobal() > ? > Fred > > > Le 25/12/2012 00:48, Paul Carrico a ?crit : > > Dear All, > > I noticed the memory is not empty after reading huge matrices > (typically after using csvread function with number of rows greater > than 500 000) ; as well it's the case in the example hereafter ... > > ... thus what is the way to force Scilab to empty the memory ? > > NB : the only way I found is to close Scilab .... Not convenient ! > > Merry Christmas > > Paul > > mode(0) > > stacksize('max'); > > n = 500000; > > A = rand(n,10); > > save('A.bin','A'); > > clear A > > (windows task manager shows the memory is not empty after ? clear ? use) > > > > _______________________________________________ > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Thu Dec 27 11:32:46 2012 From: paul.carrico at free.fr (Paul Carrico) Date: Thu, 27 Dec 2012 11:32:46 +0100 Subject: [Scilab-users] empty memory In-Reply-To: <50DC16D8.9000401@shom.fr> References: <000001cde231$28ac0750$7a0415f0$@carrico@free.fr> <50DBF214.60103@shom.fr> <001e01cde40e$e1d218d0$a5764a70$@carrico@free.fr> <50DC16D8.9000401@shom.fr> Message-ID: <000001cde41d$836fa910$8a4efb30$@carrico@free.fr> I don?t know if it?s relevant, but I?m using Windows 7 64 bits Paul De : users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de Frederic Jourdin Envoy? : jeudi 27 d?cembre 2012 10:37 ? : International users mailing list for Scilab. Objet : Re: [Scilab-users] empty memory I don't see this problem with Scilab 5.3 and 5.4 on Linux. Maybe this is a Scilab bug on Windows (?!): another guy for testing it on Windows ?... Fred Le 27/12/2012 09:48, Paul Carrico a ?crit : Hi I tested it on my example under scilab5.4.0 (Windows OS) the memory is still full Paul De : users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de Frederic Jourdin Envoy? : jeudi 27 d?cembre 2012 08:01 ? : International users mailing list for Scilab. Objet : Re: [Scilab-users] empty memory even with: clear clearglobal() ? Fred Le 25/12/2012 00:48, Paul Carrico a ?crit : Dear All, I noticed the memory is not empty after reading huge matrices (typically after using csvread function with number of rows greater than 500 000) ; as well it?s the case in the example hereafter thus what is the way to force Scilab to empty the memory ? NB : the only way I found is to close Scilab . Not convenient ! Merry Christmas Paul mode(0) stacksize('max'); n = 500000; A = rand(n,10); save('A.bin','A'); clear A (windows task manager shows the memory is not empty after ? clear ? use) _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From germaingondor at yahoo.fr Thu Dec 27 19:38:43 2012 From: germaingondor at yahoo.fr (germaingondor) Date: Thu, 27 Dec 2012 10:38:43 -0800 (PST) Subject: [Scilab-users] Scilab 5.4 ls and dir command Message-ID: <1356633523945-4025595.post@n3.nabble.com> Hi, since I moved from Scilab 5.33 to 5.4, ls command used to work. I've tried ls, dir and listfiles example. None of them works on my Scilab 5.4. I'm working on Windows 7. Could someone give me the way to solve the problem ? Thanks -- View this message in context: http://mailinglists.scilab.org/Scilab-5-4-ls-and-dir-command-tp4025595.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From gordonc53 at gmail.com Sun Dec 30 06:18:37 2012 From: gordonc53 at gmail.com (Gordon Clarke) Date: Sun, 30 Dec 2012 15:18:37 +1000 Subject: [Scilab-users] Running Scilab scripts Message-ID: I've recently loaded Scilab 5.4.0 onto my Mac. Initially converted a couple of MATLAB M scripts over to SCI scripts. After several hours of work and having to undo most of what the Scilab conversion process implemented I managed to get the SCI scripts to work. Next I created an SCI/SCE script from scratch similar to one of the converted MATLAB scripts and every time I exec it I was just given the prompt -->. Then I created a 2 line Hello World SCI script and same again only get the prompt back. After several hours of trying numerous things, like linking the SCI/SCE script to Scilab, checking permissions etc still nothing. It doesn't matter from where I exec the script, command line or via the editor. Always same result nothing. Anybody have any ideas? The 2 line script was: s="Hello World!"; disp(s); cheers Gordon -------------- next part -------------- An HTML attachment was scrubbed... URL: From kailup4 at hotmail.com Mon Dec 31 14:32:42 2012 From: kailup4 at hotmail.com (Tan Chin Luh) Date: Mon, 31 Dec 2012 13:32:42 +0000 Subject: [Scilab-users] empty memory In-Reply-To: <000001cde41d$836fa910$8a4efb30$@carrico@free.fr> References: <000001cde231$28ac0750$7a0415f0$@carrico@free.fr> <50DBF214.60103@shom.fr> <001e01cde40e$e1d218d0$a5764a70$@carrico@free.fr>, <50DC16D8.9000401@shom.fr>, <000001cde41d$836fa910$8a4efb30$@carrico@free.fr> Message-ID: after clearing, using stacksize('min') might help to squeeze the wscilab process mem to original. how this works. rgds,CL From: paul.carrico at free.fr To: users at lists.scilab.org Date: Thu, 27 Dec 2012 11:32:46 +0100 Subject: Re: [Scilab-users] empty memory I don?t know if it?s relevant, but I?m using Windows 7 64 bits Paul De : users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de Frederic Jourdin Envoy? : jeudi 27 d?cembre 2012 10:37 ? : International users mailing list for Scilab. Objet : Re: [Scilab-users] empty memory I don't see this problem with Scilab 5.3 and 5.4 on Linux. Maybe this is a Scilab bug on Windows (?!): another guy for testing it on Windows ?... Fred Le 27/12/2012 09:48, Paul Carrico a ?crit : Hi I tested it on my example under scilab5.4.0 (Windows OS) ? the memory is still full Paul De : users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de Frederic Jourdin Envoy? : jeudi 27 d?cembre 2012 08:01 ? : International users mailing list for Scilab. Objet : Re: [Scilab-users] empty memory even with: clear clearglobal() ? Fred Le 25/12/2012 00:48, Paul Carrico a ?crit : Dear All, I noticed the memory is not empty after reading huge matrices (typically after using csvread function with number of rows greater than 500 000) ; as well it?s the case in the example hereafter ?? thus what is the way to force Scilab to empty the memory ? NB : the only way I found is to close Scilab ?. Not convenient !Merry Christmas Paul mode(0)stacksize('max'); n = 500000;A = rand(n,10); save('A.bin','A');clear A(windows task manager shows the memory is not empty after ? clear ? use) _______________________________________________users mailing listusers at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users _______________________________________________users mailing listusers at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From robertbeloiu at yahoo.com Mon Dec 31 16:17:56 2012 From: robertbeloiu at yahoo.com (robertbeloiu) Date: Mon, 31 Dec 2012 07:17:56 -0800 (PST) Subject: [Scilab-users] scilab 5.4.0 lcc Message-ID: <1356967076947-4025599.post@n3.nabble.com> Hello, I have installed scilab 5.4.0. I have installed the lcc-windows. Still I can not run the demos of electrical systems: the RLC system. I get this message. What could it be done? Thank you. Robert --------------------------------------------\ Main Modelica : C:\DOCUME~1\ROBERT\LOCALS~1\Temp\SCI_TMP_3464_\RLC_Modelica_im.mo Flat Modelica : C:\DOCUME~1\ROBERT\LOCALS~1\Temp\SCI_TMP_3464_\RLC_Modelica_imf.mo Simulation C code :C:\DOCUME~1\ROBERT\LOCALS~1\Temp\SCI_TMP_3464_\RLC_Modelica_im.c Generate a loader file Generate a Makefile Running the Makefile Compilation of RLC_Modelica_im.obj Building shared library (be patient) !Could Not Find C:\DOCUME~1\ROBERT\LOCALS~1\Temp\SCI_TMP_3464_\*.bak ! ! ! !Could Not Find C:\DOCUME~1\ROBERT\LOCALS~1\Temp\SCI_TMP_3464_\*.obj ! ! ! !Could Not Find C:\DOCUME~1\ROBERT\LOCALS~1\Temp\SCI_TMP_3464_\*.dll ! ! ! !Could Not Find C:\DOCUME~1\ROBERT\LOCALS~1\Temp\SCI_TMP_3464_\*.lib ! ! ! !Could Not Find C:\DOCUME~1\ROBERT\LOCALS~1\Temp\SCI_TMP_3464_\*.def ! ! ! !------------- Compile file RLC_Modelica_im.c -------------- ! ! ! ! del *.bak ! ! ! ! del *.obj ! ! ! ! del *.dll ! ! ! ! del *.lib ! ! ! ! del *.def ! ! ! ! lcc msvcrt.lib -DWIN32 -D_MSC_VER -DSTRICT -DFORDLL -D__STDC__ -D! ! HAVE_EXP10 -I"C:/PROGRA~1/SCILAB~1.0\libs\MALLOC\includes" -I"C! ! :/PROGRA~1/SCILAB~1.0\modules\core\includes" -I"C:/PROGRA~1/SCI! ! LAB~1.0\modules\api_scilab\includes" -I"C:/PROGRA~1/SCILAB~1.0\! ! modules\call_scilab\includes" -I"C:/PROGRA~1/SCILAB~1.0\modules! ! \output_stream\includes" -I"C:/PROGRA~1/SCILAB~1.0\modules\jvm\! ! includes" -I"C:/PROGRA~1/SCILAB~1.0\modules\localiWarning rlc_m! ! odelica_im.c: 29 inconsistent linkage for 'ipow' previously dec! ! lared at c:\lcc\include\tgmath.h 132 ! ! ! !Warning rlc_modelica_im.c: 61 Missing prototype for 'get_scicos_time! ! ' ! ! ! !Warning rlc_modelica_im.c: 65 Missing prototype for 'get_phase_simul! ! ation' ! ! ! !0 errors, 3 warnings ! ! ! !zation\includes" -I"C:/PROGRA~1/SCILAB~1.0\modules\dynamic_link\incl! ! udes" -I"C:/PROGRA~1/SCILAB~1.0\modules\mexlib\includes" -I"C:! ! /PROGRA~1/SCILAB~1.0\modules\time\includes" -I"C:/PROGRA~1/SCIL! ! AB~1.0\modules\windows_tools\includes" -I"C:/PROGRA~1/SCILAB~1.! ! 0\libs\f2c" -I"C:/PROGRA~1/SCILAB~1.0\libs\hashtable" -I"C:/PR! ! OGRA~1/SCILAB~1.0\libs\intl" -I"C:/PROGRA~1/SCILAB~1.0/modules! ! /scicos/includes" -I"C:/PROGRA~1/SCILAB~1.0/modules/scicos_block! ! s/includes" RLC_Modelica_im.c ! ! ! ! "C:\PROGRA~1\SCILAB~1.0\bin\dumpexts" -o "libRLC_Modelica_im.def"! ! "libRLC_Modelica_im" RLC_Modelica_im.obj ! ! ! ! lcclnk -dll -nounderscores RLC_Modelica_im.obj "C:\DOCUME~1\ROB! ! ERT\APPLIC~1\Scilab\scilab-5.4.0\lcclib\MALLOC.lib" "C:\DOCUME~1! ! \ROBERT\APPLIC~1\Scilab\scilab-5.4.0\lcclib\blasplus.lib" "C:\D! ! OCUME~1\ROBERT\APPLIC~1\Scilab\scilab-5.4.0\lcclib\libf2c.lib" "! ! C:\DOCUME~1\ROBERT\APPLIC~1\Scilab\scilab-5.4.0\lcclib\lapack.li! ! b" "C:\DOCUME~1\ROBERT\APPLIC~1\Scilab\scilab-5.4.0\lcclib\core! ! .lib" "C:\DOCUME~1\ROBERT\APPLIC~1\Scilab\scilab-5.4.0\lcclib\co! ! re_f.lib" "C:\DOCUME~1\ROBERT\APPLIC~1\Scilab\scilab-5.4.0\lccl! ! ib\scicos.lib" "C:\DOCUME~1\ROBERT\APPLIC~1\Scilab\scilab-5.4.0\! ! lcclib\intersci.lib" "C:\DOCUME~1\ROBERT\APPLIC~1\Scilab\scilab! ! -5.4.0\lcclib\output_stream.lib" "C:\DOCUME~1\ROBERT\APPLIC~1\Sc! ! ilab\scilab-5.4.0\lcclib\dynamic_link.lib" "C:\DOCUME~1\ROBERT\! ! APPLIC~1\Scilab\scilab-5.4.0\lcclib\integer.lib" "C:\DOCUME~1\RO! ! BERT\APPLIC~1\Scilab\scilab-5.4.0\lcclib\optimization_f.lib" "C! ! :\DOCUME~1\ROBERT\APPLIC~1\Scilab\scilab-5.4.0\lcclib\libjvm.lib! ! " "C:\DOCUME~1\ROBERT\APPLIC~1\Scilab\scilab-5.4.0\lcclib\sciloc! ! alization.lib" "C:\DOCUME~1\ROBERT\APPLIC~1\Scilab\scilab-5.4.0! ! \lcclib\libintl.lib" "C:\DOCUME~1\ROBERT\APPLIC~1\Scilab\scilab-! ! 5.4.0\lcclib\linpack_f.lib" "C:\DOCUME~1\ROBERT\APPLIC~1\Scilab! ! \scilab-5.4.0\lcclib\call_scilab.lib" "C:\DOCUME~1\ROBERT\APPLIC! ! ~1\Scilab\scilab-5.4.0\lcclib\time.lib" "C:\DOCUME~1\ROBERT\APP! ! LIC~1\Scilab\scilab-5.4.0\lcclib\api_scilab.lib" "C:\DOCUME~1\RO! ! BERT\APPLIC~1\Scilab\scilab-5.4.0\lcclib\hashtable.lib" "C:\DOC! ! UME~1\ROBERT\APPLIC~1\Scilab\scilab-5.4.0\lcclib\scilab_windows.! ! lib" "C:\DOCUME~1\ROBERT\APPLIC~1\Scilab\scilab-5.4.0\lcclib\sc! ! icos_f.lib" "C:\DOCUME~1\ROBERT\APPLIC~1\Scilab\scilab-5.4.0\lcc! ! lib\scicos_blocks.lib" "C:\DOCUME~1\ROBERT\APPLIC~1\Scilab\scil! ! ab-5.4.0\lcclib\scicos_blocks_f.lib" "C:\DOCUME~1\ROBERT\APPLI! ! C~1\Scilab\scilab-5.4.0\lcclib\scicos.lib" "C:\DOCUME~1\ROBERT\A! ! PPLIC~1\Scilab\scilab-5.4.0\lcclib\scicos_f.lib" "C:\DOCUME~1\RO! ! BERT\APPLIC~1\Scilab\scilab-5.4.0\lcclic:\lcc\lib\libcrt0.obj .t! ! ext: undefined reference to '_RtlUnwind at 16' ! ! ! !b\scicos_blocks.lib" "C:\DOCUME~1\ROBERT\APPLIC~1\Scilab\scilab-5.4.0! ! \lcclib\scicos_blocks_f.lib" libRLC_Modelica_im.def -o libRLC_Mo! ! delica_im.dll ! ! ! !make: Error code 1 ! ! ! !make: 'libRLC_Modelica_im.dll' removed. ! !sorry compiling problem ! ! ! !ilib_compile: Error while executing Makelib.lcc. ! c_pass1: build the modelica meta-block failed xcos_simulate: Error during block parameters update. -- View this message in context: http://mailinglists.scilab.org/scilab-5-4-0-lcc-tp4025599.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.