From clement.david at scilab-enterprises.com Tue Oct 1 10:29:27 2013 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Tue, 01 Oct 2013 10:29:27 +0200 Subject: [Scilab-users] Modnum & Xcos In-Reply-To: <1380273388.2918.2.camel@pf-X58-USB3> References: <1380273388.2918.2.camel@pf-X58-USB3> Message-ID: <1380616167.5839.4.camel@paros> Hello Peter, Oh great. Which version of modnum did you use ? the equalis one ? a port of the ScicosModNum ? Le vendredi 27 septembre 2013 ? 11:16 +0200, pf a ?crit : > Hi all, > > here is > > http://wiki.tntech.eu/index.php?title=Xcos_Modnum > > a result from small experiment with conversion of nonlinear library from > Modnum Toolbox to Xcos (5.4.1). > > http://www.scicos.org/ScicosModNum/modnum_web/web/eng/ > > With regards > Peter > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Cl?ment DAVID Development Engineer / Account Manager ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Mobile: +33.6.26.26.51.90 Phone: +33.2.90.22.78.96 http://www.scilab-enterprises.com From boljeleel at yahoo.com Tue Oct 1 14:21:28 2013 From: boljeleel at yahoo.com (Debola Abduljeleel) Date: Tue, 1 Oct 2013 05:21:28 -0700 (PDT) Subject: [Scilab-users] Double y-axis on a single plot! In-Reply-To: References: <1380229462.64449.BPMail_high_noncarrier@web160303.mail.bf1.yahoo.com> <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B047@exchsrv.auxitrol.ad> Message-ID: <1380630088.63951.YahooMailNeo@web160306.mail.bf1.yahoo.com> Thanks All! ? ABDULJELEEL A. OSUNKUNLE SCIENTIFIC OFFICER PROJECTS DEVELOPMENT INSTITUTE, P.M.B. 01609, EMENE INDUSTRIAL LAYOUT, ENUGU, NIGERIA. +2347058408440. ________________________________ From: Eric Dubois To: International users mailing list for Scilab. Sent: Friday, September 27, 2013 7:53 AM Subject: Re: [Scilab-users] Double y-axis on a single plot! Sorry, there is a smartphone induced full. The link is dubois.ensae.net/grocer.html ?ric Le 27 sept. 2013 08:33, "Carrico, Paul" a ?crit?: The link doesn?t work >? >De?:users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de Eric Dubois >Envoy??: vendredi 27 septembre 2013 08:09 >??: International users mailing list for Scilab. >Objet?: Re: [Scilab-users] Double y-axis on a single plot! >? >Hello. >In my toolbox grocer, available on Atoms or my web site, dubois.ensae.net/grocee.html, you will find a function pltseries that provides this, among manu other things. >?ric >Le 26 sept. 2013 23:05, "Debola Abduljeleel" a ?crit?: > >Hi everyone, >Please how can I plot a graph with 2 y-axes i.e. Left & right with just one single x-axis. >Regards. >_______________________________________________ >users mailing list >users at lists.scilab.org >http://lists.scilab.org/mailman/listinfo/users >-------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. >_______________________________________________ >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 boljeleel at yahoo.com Tue Oct 1 14:21:11 2013 From: boljeleel at yahoo.com (Debola Abduljeleel) Date: Tue, 1 Oct 2013 05:21:11 -0700 (PDT) Subject: [Scilab-users] Double y-axis on a single plot! In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F31F31B392@301EX00100.sidel.com> References: <1380229462.64449.BPMail_high_noncarrier@web160303.mail.bf1.yahoo.com> <3B5FFC67498DFF49AE7271A584867D16F31F31B392@301EX00100.sidel.com> Message-ID: <1380630071.88165.YahooMailNeo@web160301.mail.bf1.yahoo.com> Thanks All! ? ABDULJELEEL A. OSUNKUNLE SCIENTIFIC OFFICER PROJECTS DEVELOPMENT INSTITUTE, P.M.B. 01609, EMENE INDUSTRIAL LAYOUT, ENUGU, NIGERIA. +2347058408440. ________________________________ From: "Dang, Christophe" To: International users mailing list for Scilab. Sent: Friday, September 27, 2013 7:58 AM Subject: Re: [Scilab-users] Double y-axis on a single plot! Hello, > De la part de Debola Abduljeleel > Envoy? : jeudi 26 septembre 2013 23:04 > > Please how can I plot a graph with 2 y-axes You will find here an example of code: http://commons.wikimedia.org/wiki/File:Trace_ln_sqrt_1_2_deux_echelles_scilab.svg?uselang=en Hope this helps. -- Christophe Dang Ngoc Chan Mechanical calculation engineer ______________________________________________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ______________________________________________________________________ _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From quantparis at numericable.fr Tue Oct 1 18:13:27 2013 From: quantparis at numericable.fr (quantparis at numericable.fr) Date: Tue, 1 Oct 2013 18:13:27 +0200 (CEST) Subject: [Scilab-users] StartScilab: Could not find SCI Message-ID: An HTML attachment was scrubbed... URL: From Peter.Fabo at dynamag.com Tue Oct 1 21:49:54 2013 From: Peter.Fabo at dynamag.com (pf) Date: Tue, 01 Oct 2013 21:49:54 +0200 Subject: [Scilab-users] Modnum & Xcos In-Reply-To: <1380616167.5839.4.camel@paros> References: <1380273388.2918.2.camel@pf-X58-USB3> <1380616167.5839.4.camel@paros> Message-ID: <1380656994.2865.16.camel@pf-X58-USB3> Hello Clement, I tried converted a small part of Modnum toolbox ver. 4.3b, original source code for Scicos (/modnum_43b/interf/scicos in distribution). C-Source code requires only minor modifications, principal changes are required in Scilab/Xcos interface - modification of the configuration dialogs and icons (*.svg), compilation is using 'ilib_for_link' macro. With regards Peter On Tue, 2013-10-01 at 10:29 +0200, Cl?ment David wrote: > Hello Peter, > > Oh great. Which version of modnum did you use ? the equalis one ? a port > of the ScicosModNum ? > > Le vendredi 27 septembre 2013 ? 11:16 +0200, pf a ?crit : > > Hi all, > > > > here is > > > > http://wiki.tntech.eu/index.php?title=Xcos_Modnum > > > > a result from small experiment with conversion of nonlinear library from > > Modnum Toolbox to Xcos (5.4.1). > > > > http://www.scicos.org/ScicosModNum/modnum_web/web/eng/ > > > > With regards > > Peter > > > > > > > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > From fabo.peter at gmail.com Tue Oct 1 21:48:31 2013 From: fabo.peter at gmail.com (pf) Date: Tue, 01 Oct 2013 21:48:31 +0200 Subject: [Scilab-users] Modnum & Xcos In-Reply-To: <1380616167.5839.4.camel@paros> References: <1380273388.2918.2.camel@pf-X58-USB3> <1380616167.5839.4.camel@paros> Message-ID: <1380656911.2865.15.camel@pf-X58-USB3> Hello Clement, I tried converted a small part of Modnum toolbox ver. 4.3b, original source code for Scicos (/modnum_43b/interf/scicos in distribution). C-Source code requires only minor modifications, principal changes are required in Scilab/Xcos interface - modification of the configuration dialogs and icons (*.svg), compilation is using 'ilib_for_link' macro. With regards Peter On Tue, 2013-10-01 at 10:29 +0200, Cl?ment David wrote: > Hello Peter, > > Oh great. Which version of modnum did you use ? the equalis one ? a port > of the ScicosModNum ? > > Le vendredi 27 septembre 2013 ? 11:16 +0200, pf a ?crit : > > Hi all, > > > > here is > > > > http://wiki.tntech.eu/index.php?title=Xcos_Modnum > > > > a result from small experiment with conversion of nonlinear library from > > Modnum Toolbox to Xcos (5.4.1). > > > > http://www.scicos.org/ScicosModNum/modnum_web/web/eng/ > > > > With regards > > Peter > > > > > > > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > From clement.david at scilab-enterprises.com Wed Oct 2 08:44:20 2013 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Wed, 02 Oct 2013 08:44:20 +0200 Subject: [Scilab-users] Modnum & Xcos In-Reply-To: <1380656911.2865.15.camel@pf-X58-USB3> References: <1380273388.2918.2.camel@pf-X58-USB3> <1380616167.5839.4.camel@paros> <1380656911.2865.15.camel@pf-X58-USB3> Message-ID: <1380696260.1703.5.camel@paros> Hello Peter, Thanks for the clarification. If you need a place to manage this toolbox you can use the forge.scilab.org website [1]. An atoms package (install-able inside any Scilab) can also be generated on [2]. [1]: http://wiki.scilab.org/Scilab%20forge [2]: http://wiki.scilab.org/ATOMS -- Cl?ment Le mardi 01 octobre 2013 ? 21:48 +0200, pf a ?crit : > Hello Clement, > > I tried converted a small part of Modnum toolbox ver. 4.3b, original > source code for Scicos (/modnum_43b/interf/scicos in distribution). > > C-Source code requires only minor modifications, principal changes are > required in Scilab/Xcos interface - modification of the configuration > dialogs and icons (*.svg), compilation is using 'ilib_for_link' macro. > > With regards > Peter > > > > > On Tue, 2013-10-01 at 10:29 +0200, Cl?ment David wrote: > > Hello Peter, > > > > Oh great. Which version of modnum did you use ? the equalis one ? a port > > of the ScicosModNum ? > > > > Le vendredi 27 septembre 2013 ? 11:16 +0200, pf a ?crit : > > > Hi all, > > > > > > here is > > > > > > http://wiki.tntech.eu/index.php?title=Xcos_Modnum > > > > > > a result from small experiment with conversion of nonlinear library from > > > Modnum Toolbox to Xcos (5.4.1). > > > > > > http://www.scicos.org/ScicosModNum/modnum_web/web/eng/ > > > > > > With regards > > > Peter > > > > > > > > > > > > _______________________________________________ > > > 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 communication at scilab-enterprises.com Wed Oct 2 12:13:17 2013 From: communication at scilab-enterprises.com (Scilab Communications) Date: Wed, 02 Oct 2013 12:13:17 +0200 Subject: [Scilab-users] Release of Scilab 5.5.0-beta1 Message-ID: <524BF1BD.1050002@scilab-enterprises.com> Dear Scilab Users, Scilab Enterprises is pleased to announce the release of Scilab 5.5.0-beta 1 which includes new sets of functions and new graphic features. All new functionalities provided are available at: http://www.scilab.org/community/news/20131001 Scilab 5.5.0 beta 1 is a test version provided to the community and available for download on our website at: http://www.scilab.org/download/5.5.0-beta-1 Do not hesitate to try it and send us back your feedbacks about any problems you might encounter on our bug tracker (http://bugzilla.scilab.org/) or by email at support at scilab-enterprises.com. Best Regards -- SE Communications and Public Relations Department, Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles (France)- http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 8210 bytes Desc: not available URL: From stephane.mottelet at utc.fr Wed Oct 2 18:07:46 2013 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Wed, 02 Oct 2013 18:07:46 +0200 Subject: [Scilab-users] Scilab 5.5.0 beta1 does not start under OSX 10.8 Message-ID: <524C44D2.6050201@utc.fr> Hello all, The 5.5 beta seems to be broken : # open /Applications/scilab-5.5.0-beta-1.app/ LSOpenURLsWithRole() failed with error -10810 for the file /Applications/scilab-5.5.0-beta-1.app. Trying to lauch the binary gives : # /Applications/scilab-5.5.0-beta-1.app/Contents/MacOS/bin/scilab dyld: Library not loaded: /sw/lib/libiconv.2.dylib Referenced from: /Applications/scilab-5.5.0-beta-1.app/Contents/MacOS/lib/thirdparty/libxml2.2.dylib Reason: Incompatible library version: libxml2.2.dylib requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0 /Applications/scilab-5.5.0-beta-1.app/Contents/MacOS/bin/scilab: line 730: 11666 Trace/BPT trap: 5 /usr/libexec/java_home --request > /dev/null dyld: Library not loaded: /sw/lib/libiconv.2.dylib Referenced from: /Applications/scilab-5.5.0-beta-1.app/Contents/MacOS/lib/thirdparty/libxml2.2.dylib Reason: Incompatible library version: libxml2.2.dylib requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0 /Applications/scilab-5.5.0-beta-1.app/Contents/MacOS/bin/scilab: line 911: 11669 Trace/BPT trap: 5 "$SCILABBIN" "$@" S. From krotersv at gmail.com Wed Oct 2 18:15:08 2013 From: krotersv at gmail.com (=?UTF-8?B?0KHRgtCw0L3QuNGB0LvQsNCy?=) Date: Wed, 02 Oct 2013 22:15:08 +0600 Subject: [Scilab-users] Scilab 5.5.0 beta1 does not start under OSX 10.8 In-Reply-To: <524C44D2.6050201@utc.fr> References: <524C44D2.6050201@utc.fr> Message-ID: <524C468C.1010109@gmail.com> 02.10.2013 22:07, St?phane Mottelet ?????: > Hello all, > > The 5.5 beta seems to be broken : > Hi. See http://bugzilla.scilab.org/show_bug.cgi?id=12947 Stanislav From Peter.Fabo at dynamag.com Wed Oct 2 18:39:45 2013 From: Peter.Fabo at dynamag.com (pf) Date: Wed, 02 Oct 2013 18:39:45 +0200 Subject: [Scilab-users] Scilab 5.5.0 beta1 does not start under OSX 10.8 In-Reply-To: <524C468C.1010109@gmail.com> References: <524C44D2.6050201@utc.fr> <524C468C.1010109@gmail.com> Message-ID: <1380731985.2893.4.camel@pf-X58-USB3> Hi all, 5.5.0-beta-1, Linux-32, Ubuntu 12.04 -> without any problems. With regards Peter On Wed, 2013-10-02 at 22:15 +0600, ????????? wrote: > 02.10.2013 22:07, St?phane Mottelet ?????: > > Hello all, > > > > The 5.5 beta seems to be broken : > > > Hi. > See http://bugzilla.scilab.org/show_bug.cgi?id=12947 > > Stanislav > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From serge.steer at inria.fr Wed Oct 2 18:56:54 2013 From: serge.steer at inria.fr (Serge Steer) Date: Wed, 2 Oct 2013 18:56:54 +0200 (CEST) Subject: [Scilab-users] Scilab-5.5.0-beta-1 crashes at startup Message-ID: <1607603683.15341539.1380733014977.JavaMail.root@inria.fr> For information, under SuSe12.3 on a 64 bits processor I obtain the following trace at startup.... peace% scilab-5.5.0-beta-1/bin/scilab scilab-bin: /tmp/scilab-5.5.0-beta-1/lib/thirdparty/libcurl.so.4: no version information available (required by /tmp/scilab-5.5.0-beta-1/lib/scilab/libscilab-cli.so.0) scilab-bin: /tmp/scilab-5.5.0-beta-1/lib/thirdparty/libcrypto.so.0.9.8: no version information available (required by /tmp/scilab-5.5.0-beta-1/lib/thirdparty/libcurl.so.4) scilab-bin: /tmp/scilab-5.5.0-beta-1/lib/thirdparty/libssl.so.0.9.8: no version information available (required by /tmp/scilab-5.5.0-beta-1/lib/thirdparty/libcurl.so.4) *** Error in `scilab-bin': free(): invalid pointer: 0x000000000068ac40 *** ======= Backtrace: ========= /lib64/libc.so.6(+0x7abf6)[0x7fab3b3bebf6] /lib64/libc.so.6(+0x7b973)[0x7fab3b3bf973] /usr/lib64/gtk-2.0/2.10.0/engines/liboxygen-gtk.so(_ZN6Oxygen8GtkIconsC1Ev+0x973)[0x7faaf047c8a3] -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Thu Oct 3 09:14:04 2013 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Thu, 3 Oct 2013 09:14:04 +0200 Subject: [Scilab-users] Scilab-5.5.0-beta-1 crashes at startup In-Reply-To: <1607603683.15341539.1380733014977.JavaMail.root@inria.fr> References: <1607603683.15341539.1380733014977.JavaMail.root@inria.fr> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F31F448A78@301EX00100.sidel.com> Hello, > De la part de Serge Steer > Envoy? : mercredi 2 octobre 2013 18:57 > > For information, under SuSe12.3 on a 64 bits processor I obtain the > following trace at startup.... I'm under Microsoft Windows XP Pro 64 bits (5.2.3790 Service Pack 2 Nu 3790) and I also couldn't start the 64 bits version of 5.5.0-beta Running the 32 bits version is OK Best 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 bruno.jofret at scilab-enterprises.com Fri Oct 4 17:46:24 2013 From: bruno.jofret at scilab-enterprises.com (Bruno JOFRET) Date: Fri, 04 Oct 2013 17:46:24 +0200 Subject: [Scilab-users] Scilab 5.5.0 beta1 does not start under OSX 10.8 In-Reply-To: <524C44D2.6050201@utc.fr> References: <524C44D2.6050201@utc.fr> Message-ID: <524EE2D0.5000501@scilab-enterprises.com> Hi, Can you try this nightly [1] please ? [1] http://downloadarea.scilab.org/download/2013-10-04/scilab-master-1380893237-x86_64.dmg On 10/02/2013 06:07 PM, St?phane Mottelet wrote: > Hello all, > > The 5.5 beta seems to be broken : > > # open /Applications/scilab-5.5.0-beta-1.app/ > LSOpenURLsWithRole() failed with error -10810 for the file > /Applications/scilab-5.5.0-beta-1.app. > > Trying to lauch the binary gives : > > # /Applications/scilab-5.5.0-beta-1.app/Contents/MacOS/bin/scilab > dyld: Library not loaded: /sw/lib/libiconv.2.dylib > Referenced from: > /Applications/scilab-5.5.0-beta-1.app/Contents/MacOS/lib/thirdparty/libxml2.2.dylib > Reason: Incompatible library version: libxml2.2.dylib requires > version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0 > /Applications/scilab-5.5.0-beta-1.app/Contents/MacOS/bin/scilab: line > 730: 11666 Trace/BPT trap: 5 /usr/libexec/java_home --request > > /dev/null > dyld: Library not loaded: /sw/lib/libiconv.2.dylib > Referenced from: > /Applications/scilab-5.5.0-beta-1.app/Contents/MacOS/lib/thirdparty/libxml2.2.dylib > Reason: Incompatible library version: libxml2.2.dylib requires > version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0 > /Applications/scilab-5.5.0-beta-1.app/Contents/MacOS/bin/scilab: line > 911: 11669 Trace/BPT trap: 5 "$SCILABBIN" "$@" > > S. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Bruno JOFRET Software Architect Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.69 http://www.scilab-enterprises.com From stephane.mottelet at utc.fr Fri Oct 4 18:01:32 2013 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Fri, 04 Oct 2013 18:01:32 +0200 Subject: [Scilab-users] Scilab 5.5.0 beta1 does not start under OSX 10.8 In-Reply-To: <524EE2D0.5000501@scilab-enterprises.com> References: <524C44D2.6050201@utc.fr> <524EE2D0.5000501@scilab-enterprises.com> Message-ID: <524EE65C.9080806@utc.fr> Same behaviour : macmottelet-gi-0:Applications mottelet$ scilab-master-1380893237.app/Contents/MacOS/bin/scilab dyld: Library not loaded: @executable_path/../lib/thirdparty/10.6/libiconv.2.dylib Referenced from: /Applications/scilab-master-1380893237.app/Contents/MacOS/lib/thirdparty/libxml2.2.dylib Reason: Incompatible library version: libxml2.2.dylib requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0 scilab-master-1380893237.app/Contents/MacOS/bin/scilab: line 730: 14253 Trace/BPT trap: 5 /usr/libexec/java_home --request > /dev/null dyld: Library not loaded: /sw/lib/libiconv.2.dylib Referenced from: /Applications/scilab-master-1380893237.app/Contents/MacOS/bin/scilab-bin Reason: Incompatible library version: scilab-bin requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0 scilab-master-1380893237.app/Contents/MacOS/bin/scilab: line 911: 14256 Trace/BPT trap: 5 "$SCILABBIN" "$@" S. Le 04/10/13 17:46, Bruno JOFRET a ?crit : > Hi, > > Can you try this nightly [1] please ? > > [1] > http://downloadarea.scilab.org/download/2013-10-04/scilab-master-1380893237-x86_64.dmg > > On 10/02/2013 06:07 PM, St?phane Mottelet wrote: >> Hello all, >> >> The 5.5 beta seems to be broken : >> >> # open /Applications/scilab-5.5.0-beta-1.app/ >> LSOpenURLsWithRole() failed with error -10810 for the file >> /Applications/scilab-5.5.0-beta-1.app. >> >> Trying to lauch the binary gives : >> >> # /Applications/scilab-5.5.0-beta-1.app/Contents/MacOS/bin/scilab >> dyld: Library not loaded: /sw/lib/libiconv.2.dylib >> Referenced from: >> /Applications/scilab-5.5.0-beta-1.app/Contents/MacOS/lib/thirdparty/libxml2.2.dylib >> Reason: Incompatible library version: libxml2.2.dylib requires >> version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0 >> /Applications/scilab-5.5.0-beta-1.app/Contents/MacOS/bin/scilab: line >> 730: 11666 Trace/BPT trap: 5 /usr/libexec/java_home --request > >> /dev/null >> dyld: Library not loaded: /sw/lib/libiconv.2.dylib >> Referenced from: >> /Applications/scilab-5.5.0-beta-1.app/Contents/MacOS/lib/thirdparty/libxml2.2.dylib >> Reason: Incompatible library version: libxml2.2.dylib requires >> version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0 >> /Applications/scilab-5.5.0-beta-1.app/Contents/MacOS/bin/scilab: line >> 911: 11669 Trace/BPT trap: 5 "$SCILABBIN" "$@" >> >> S. >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > From denis.crete at thalesgroup.com Fri Oct 4 17:50:45 2013 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Fri, 4 Oct 2013 17:50:45 +0200 Subject: [Scilab-users] MINEPY with Scilab Message-ID: <11443_1380901846_524EE3D6_11443_8817_1_8F1D40232A0E68409E3FC23A30C326620168D2785746@THSONEA01CMS04P.one.grp> Hello, Does anyone have experience with the implementation of the MINEPY library (http://minepy.sourceforge.net/) with Scilab? Thank you in advance Denis Unit? Mixte de Physique CNRS / THALES 1 Avenue Augustin Fresnel 91767 Palaiseau CEDEx - France Tel : +33 (0)1 69 41 58 52 Fax : +33 (0)1 69 41 58 78 e-mail : denis.crete at thalesgroup.com http://www.trt.thalesgroup.com/ump-cnrs-thales http://www.research.thalesgroup.com/ GPS: Long. : E 2? 12' 7 Lat. : N 48? 42' 52 The information contained in this e-mail/fax and any attachments are the property of THALES and may be confidential. If you are not the intended recipient, please notify us immediately, send this message back to us and destroy it. You are hereby notified that any review, dissemination, distribution, copying or otherwise use of this e-mail/fax is strictly prohibited . La libert? c'est d'accepter les contraintes... m?mes celles d'Outlook ???? -------------- next part -------------- An HTML attachment was scrubbed... URL: From bruno.jofret at scilab-enterprises.com Fri Oct 4 19:39:44 2013 From: bruno.jofret at scilab-enterprises.com (Bruno JOFRET) Date: Fri, 04 Oct 2013 19:39:44 +0200 Subject: [Scilab-users] Scilab 5.5.0 beta1 does not start under OSX 10.8 In-Reply-To: <524EE65C.9080806@utc.fr> References: <524C44D2.6050201@utc.fr> <524EE2D0.5000501@scilab-enterprises.com> <524EE65C.9080806@utc.fr> Message-ID: <524EFD60.4000801@scilab-enterprises.com> Ok last try before week-end : http://downloadarea.scilab.org/download/2013-10-04/scilab-master-1380896469-x86_64.dmg If this one works can you try something with "umfpack" ? (It should complain about dlopen) Thx On 10/04/2013 06:01 PM, St?phane Mottelet wrote: > Same behaviour : > > macmottelet-gi-0:Applications mottelet$ > scilab-master-1380893237.app/Contents/MacOS/bin/scilab > dyld: Library not loaded: > @executable_path/../lib/thirdparty/10.6/libiconv.2.dylib > Referenced from: > /Applications/scilab-master-1380893237.app/Contents/MacOS/lib/thirdparty/libxml2.2.dylib > Reason: Incompatible library version: libxml2.2.dylib requires > version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0 > scilab-master-1380893237.app/Contents/MacOS/bin/scilab: line 730: > 14253 Trace/BPT trap: 5 /usr/libexec/java_home --request > > /dev/null > dyld: Library not loaded: /sw/lib/libiconv.2.dylib > Referenced from: > /Applications/scilab-master-1380893237.app/Contents/MacOS/bin/scilab-bin > Reason: Incompatible library version: scilab-bin requires version > 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0 > scilab-master-1380893237.app/Contents/MacOS/bin/scilab: line 911: > 14256 Trace/BPT trap: 5 "$SCILABBIN" "$@" > > S. > > Le 04/10/13 17:46, Bruno JOFRET a ?crit : >> Hi, >> >> Can you try this nightly [1] please ? >> >> [1] >> http://downloadarea.scilab.org/download/2013-10-04/scilab-master-1380893237-x86_64.dmg >> >> On 10/02/2013 06:07 PM, St?phane Mottelet wrote: >>> Hello all, >>> >>> The 5.5 beta seems to be broken : >>> >>> # open /Applications/scilab-5.5.0-beta-1.app/ >>> LSOpenURLsWithRole() failed with error -10810 for the file >>> /Applications/scilab-5.5.0-beta-1.app. >>> >>> Trying to lauch the binary gives : >>> >>> # /Applications/scilab-5.5.0-beta-1.app/Contents/MacOS/bin/scilab >>> dyld: Library not loaded: /sw/lib/libiconv.2.dylib >>> Referenced from: >>> /Applications/scilab-5.5.0-beta-1.app/Contents/MacOS/lib/thirdparty/libxml2.2.dylib >>> Reason: Incompatible library version: libxml2.2.dylib requires >>> version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0 >>> /Applications/scilab-5.5.0-beta-1.app/Contents/MacOS/bin/scilab: >>> line 730: 11666 Trace/BPT trap: 5 /usr/libexec/java_home >>> --request > /dev/null >>> dyld: Library not loaded: /sw/lib/libiconv.2.dylib >>> Referenced from: >>> /Applications/scilab-5.5.0-beta-1.app/Contents/MacOS/lib/thirdparty/libxml2.2.dylib >>> Reason: Incompatible library version: libxml2.2.dylib requires >>> version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0 >>> /Applications/scilab-5.5.0-beta-1.app/Contents/MacOS/bin/scilab: >>> line 911: 11669 Trace/BPT trap: 5 "$SCILABBIN" "$@" >>> >>> S. >>> _______________________________________________ >>> 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 -- Bruno JOFRET Software Architect Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.69 http://www.scilab-enterprises.com From antoine.elias at scilab-enterprises.com Fri Oct 4 23:54:28 2013 From: antoine.elias at scilab-enterprises.com (Antoine ELIAS) Date: Fri, 04 Oct 2013 23:54:28 +0200 Subject: [Scilab-users] Scilab-5.5.0-beta-1 crashes at startup In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F31F448A78@301EX00100.sidel.com> References: <1607603683.15341539.1380733014977.JavaMail.root@inria.fr> <3B5FFC67498DFF49AE7271A584867D16F31F448A78@301EX00100.sidel.com> Message-ID: <524F3914.6080907@scilab-enterprises.com> Hello Christophe, Thank you for report. I think we have found the trouble with 64 bits version on Windows XP 64 bits. Can you try with the next nightly build ? Regards, Le 03/10/2013 09:14, Dang, Christophe a ?crit : > Hello, > >> De la part de Serge Steer >> Envoy? : mercredi 2 octobre 2013 18:57 >> >> For information, under SuSe12.3 on a 64 bits processor I obtain the >> following trace at startup.... > I'm under Microsoft Windows XP Pro 64 bits > (5.2.3790 Service Pack 2 Nu 3790) > and I also couldn't start the 64 bits version of 5.5.0-beta > > Running the 32 bits version is OK > > Best regards > -- Antoine ELIAS Software developer ----------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles Phone: 01.80.77.04.70 http://www.scilab-enterprises.com From Peter.Fabo at dynamag.com Sat Oct 5 20:52:21 2013 From: Peter.Fabo at dynamag.com (pf) Date: Sat, 05 Oct 2013 20:52:21 +0200 Subject: [Scilab-users] Linux I/O Communication for Xcos Message-ID: <1380999141.3103.5.camel@pf-X58-USB3> Hi all, small update for Serial I/O - tested with Scilab/Xcos 5.5.0 - blocks for writing/reading data via UDP - simple STX/ETX protocol for FIFO/UDP communication details on http://wiki.tntech.eu/index.php?title=Serial_I/O with regards Peter From Christophe.Dang at sidel.com Mon Oct 7 10:25:17 2013 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Mon, 7 Oct 2013 10:25:17 +0200 Subject: [Scilab-users] Scilab-5.5.0-beta-1 crashes at startup In-Reply-To: <524F3914.6080907@scilab-enterprises.com> References: <1607603683.15341539.1380733014977.JavaMail.root@inria.fr> <3B5FFC67498DFF49AE7271A584867D16F31F448A78@301EX00100.sidel.com> <524F3914.6080907@scilab-enterprises.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F31F4CFC7D@301EX00100.sidel.com> Hello, > De la part de Antoine ELIAS > Envoy? : vendredi 4 octobre 2013 23:54 > > Can you try with the next nightly build ? The scilab-master-1380896469_x64 starts without problem. Thanx. Best 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. ______________________________________________________________________ From stephane.mottelet at gmail.com Mon Oct 7 10:56:14 2013 From: stephane.mottelet at gmail.com (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Mon, 07 Oct 2013 10:56:14 +0200 Subject: [Scilab-users] Scilab 5.5.0 beta1 does not start under OSX 10.8 In-Reply-To: <524EFD60.4000801@scilab-enterprises.com> References: <524C44D2.6050201@utc.fr> <524EE2D0.5000501@scilab-enterprises.com> <524EE65C.9080806@utc.fr> <524EFD60.4000801@scilab-enterprises.com> Message-ID: <5252772E.2080606@utc.fr> Hello, This last one worked for me on my laptop (same config : Mac OS 10.8 and Xcode tools installed). S. Le 04/10/13 19:39, Bruno JOFRET a ?crit : > Ok last try before week-end : > http://downloadarea.scilab.org/download/2013-10-04/scilab-master-1380896469-x86_64.dmg > > > If this one works can you try something with "umfpack" ? > (It should complain about dlopen) > > Thx > > On 10/04/2013 06:01 PM, St?phane Mottelet wrote: >> Same behaviour : >> >> macmottelet-gi-0:Applications mottelet$ >> scilab-master-1380893237.app/Contents/MacOS/bin/scilab >> dyld: Library not loaded: >> @executable_path/../lib/thirdparty/10.6/libiconv.2.dylib >> Referenced from: >> /Applications/scilab-master-1380893237.app/Contents/MacOS/lib/thirdparty/libxml2.2.dylib >> Reason: Incompatible library version: libxml2.2.dylib requires >> version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0 >> scilab-master-1380893237.app/Contents/MacOS/bin/scilab: line 730: >> 14253 Trace/BPT trap: 5 /usr/libexec/java_home --request > >> /dev/null >> dyld: Library not loaded: /sw/lib/libiconv.2.dylib >> Referenced from: >> /Applications/scilab-master-1380893237.app/Contents/MacOS/bin/scilab-bin >> Reason: Incompatible library version: scilab-bin requires version >> 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0 >> scilab-master-1380893237.app/Contents/MacOS/bin/scilab: line 911: >> 14256 Trace/BPT trap: 5 "$SCILABBIN" "$@" >> >> S. >> >> Le 04/10/13 17:46, Bruno JOFRET a ?crit : >>> Hi, >>> >>> Can you try this nightly [1] please ? >>> >>> [1] >>> http://downloadarea.scilab.org/download/2013-10-04/scilab-master-1380893237-x86_64.dmg >>> >>> On 10/02/2013 06:07 PM, St?phane Mottelet wrote: >>>> Hello all, >>>> >>>> The 5.5 beta seems to be broken : >>>> >>>> # open /Applications/scilab-5.5.0-beta-1.app/ >>>> LSOpenURLsWithRole() failed with error -10810 for the file >>>> /Applications/scilab-5.5.0-beta-1.app. >>>> >>>> Trying to lauch the binary gives : >>>> >>>> # /Applications/scilab-5.5.0-beta-1.app/Contents/MacOS/bin/scilab >>>> dyld: Library not loaded: /sw/lib/libiconv.2.dylib >>>> Referenced from: >>>> /Applications/scilab-5.5.0-beta-1.app/Contents/MacOS/lib/thirdparty/libxml2.2.dylib >>>> Reason: Incompatible library version: libxml2.2.dylib requires >>>> version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0 >>>> /Applications/scilab-5.5.0-beta-1.app/Contents/MacOS/bin/scilab: >>>> line 730: 11666 Trace/BPT trap: 5 /usr/libexec/java_home --request >>>> > /dev/null >>>> dyld: Library not loaded: /sw/lib/libiconv.2.dylib >>>> Referenced from: >>>> /Applications/scilab-5.5.0-beta-1.app/Contents/MacOS/lib/thirdparty/libxml2.2.dylib >>>> Reason: Incompatible library version: libxml2.2.dylib requires >>>> version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0 >>>> /Applications/scilab-5.5.0-beta-1.app/Contents/MacOS/bin/scilab: >>>> line 911: 11669 Trace/BPT trap: 5 "$SCILABBIN" "$@" >>>> >>>> S. >>>> _______________________________________________ >>>> 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 sergio.callegari at gmail.com Mon Oct 7 16:13:02 2013 From: sergio.callegari at gmail.com (Sergio) Date: Mon, 7 Oct 2013 14:13:02 +0000 (UTC) Subject: [Scilab-users] Scilab-5.5.0-beta-1 crashes at startup References: <1607603683.15341539.1380733014977.JavaMail.root@inria.fr> Message-ID: Same issue here on ubuntu (kubuntu) raring 64bit. Sergio From sdr at durietz.se Tue Oct 8 13:12:57 2013 From: sdr at durietz.se (Stefan Du Rietz) Date: Tue, 08 Oct 2013 13:12:57 +0200 Subject: [Scilab-users] changed axes Message-ID: <5253E8B9.2000706@durietz.se> Hi all, when I have a figure with several axes below each other (created with newaxes()) and move the cursor over the axes at the bottom, it sometimes gets changed in a peculiar way and I cannot get it back ... Can I prevent this from happening? Regards Stefan From sdr at durietz.se Tue Oct 8 20:13:32 2013 From: sdr at durietz.se (Stefan Du Rietz) Date: Tue, 08 Oct 2013 20:13:32 +0200 Subject: [Scilab-users] Changed axes Message-ID: <52544B4C.80402@durietz.se> Hi all, when I have a figure with several axes below each other (created with newaxes()) and move the cursor over the axes at the bottom, it sometimes gets changed in a peculiar way and I cannot get it back ... Can I prevent this from happening? Regards Stefan From pawel.rubach at sorcersoft.com Wed Oct 9 18:20:27 2013 From: pawel.rubach at sorcersoft.com (Pawel Rubach) Date: Wed, 9 Oct 2013 09:20:27 -0700 (PDT) Subject: [Scilab-users] Scilab javasci problem loading libscioptimization.so Message-ID: <52558236.7030102@sorcersoft.com> Hello, We're trying to use a function from the optimization pack "leastsq" - it works very well if called from a script directly in scilab, however, we'd like to use it via the Javasci2 interface and call it from java. The problem we run into is the following: A previous error has been detected while loading libscioptimization.so: /opt/scilab/lib/scilab/libscioptimization.so: undefined symbol: pvApiCtx org.scilab.modules.javasci.JavasciException$ScilabErrorException: A Scilab error occurred: Impossible to load libscioptimization.so library: (null) Code: 999 at org.scilab.modules.javasci.Scilab.execException(Unknown Source) ~[org.scilab.modules.javasci.jar:na] at org.scilab.modules.javasci.Scilab.execException(Unknown Source) ~[org.scilab.modules.javasci.jar:na] I use scilab 5.4.1 and I tested it on Centos 6.4 and Ubuntu 13.04 (it bahaves identically). The native lib path definitely contains the directory in which the libscioptimization.so.0 resides and simpler functions and scripts work over javasci2 like a charm. Any help would be very appreciated, Thanks, Pawel -- View this message in context: http://mailinglists.scilab.org/Scilab-javasci-problem-loading-libscioptimization-so-tp4027574.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From wdrago at gmail.com Thu Oct 10 03:08:43 2013 From: wdrago at gmail.com (William Drago) Date: Wed, 09 Oct 2013 21:08:43 -0400 Subject: [Scilab-users] RGB color plot, trying to color each mark with its respective color Message-ID: <5255FE1B.1010001@gmail.com> All, I have made a 3d plot of some colors in the RGB color space. Currently the marks are all the same color. I would like each mark to be the color it represents in the space. So, a mark in the red corner of the plot should be red, etc... The code I have so far is below. Thanks for your help, -Bill // RGB color data for a few shades of pink and red r = [1, 1, 1, 1, 0.8588235294117647, 0.7803921568627451, 1, 0.9803921568627451, 0.9137254901960784, 0.9411764705882353]'; g = [0.7529411764705882, 0.7137254901960785, 0.4117647058823529, 0.07843137254901961, 0.4392156862745098, 0.08235294117647059, 0.6274509803921569, 0.5019607843137255, 0.5882352941176471, 0.5019607843137255]'; b = [0.796078431372549, 0.7568627450980392, 0.7058823529411765, 0.5764705882352941, 0.5764705882352941, 0.5215686274509804, 0.4784313725490196, 0.4470588235294118, 0.4784313725490196, 0.5019607843137255]'; // Draw 3D graph from R G B vectors param3d(r,g,b,35,45,"Red at Green@Blue",[2,4]); title("Some Shades of Pink and Red") // Set marks to ball style p=get("hdl"); p.mark_style = 9; // Turn lines off so we just have points e = gce(); e.line_mode="off"; e.mark_mode="on"; // Set color map to our RGB values cmap=[r g b]; // Put some code here to color each mark with its respective color From jennifer.basbas at gmail.com Thu Oct 10 05:38:16 2013 From: jennifer.basbas at gmail.com (Jennifer Basbas) Date: Thu, 10 Oct 2013 11:38:16 +0800 Subject: [Scilab-users] Solving linear problem in scilab using Karmarkar and Primal Affine Scaling Method Message-ID: Dear All, I am new to Scilab and I'm wondering if anyone can help me solve the following minimization problem in linear programming using Scilab: 1. Apply Karmarkar's algorithm to solve Minimize - x1 - 2x2 + 4x5subject to x2 - x3 = 0 2 x1 - 2x2 + 4x3 - 4x5 = 0x 1 + 2x2 + x4 - 4x5 = 0x 1 + x2 + x3 + x4 + x5 = 1x 1, x2, x3, x4, x5 >= 0 2. Apply the primal affne scaling algorithm to solve Minimize - 2x1 + x2subject to x1 - x2 + x3 = 15x 2 + x4 = 15x 1, x2, x3, x4 >= 0 Hint: The optimal solution is x* = [30 15 0 0]T with optimal value -45. Any inputs will be greatly appreciated. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From saketkc at gmail.com Fri Oct 11 00:30:15 2013 From: saketkc at gmail.com (Saket Choudhary) Date: Fri, 11 Oct 2013 04:00:15 +0530 Subject: [Scilab-users] Scilab On Cloud Service and Textbook Companion Project for Scilab Users In-Reply-To: References: Message-ID: Adding few more features to http://cloud.scilab.in, we have come up with a search utility on our Examples database. If you are new to Scilab and are looking for an example usage of a command say "contour": 1. Go to http://scilab.in/tbc_solr_search 2. Type "contour" in the search box. a list of examples using "contour" would show up 3. Click on a relevant example, say: http://cloud.scilab.in/index.php?eid=3283 4. Execute! You can try out "plot2d", "nyquist" etc and run the relevant set of examples, LIVE from the browser. Alternatively you can run your own examples by copy-pasting into the input window here: http://cloud.scilab.in If you have any feedback/comments, please use the feedback form given on http://cloud.scilab.in. You will need to click on "Report Bug/Give Feedback" button at the bottom left of the page. Thanks, Saket Choudhary http://cloud.scilab.in On 25 September 2013 17:55, Saket Choudhary wrote: > Based on the suggestions we received we have updated the UI a bit. > > http://cloud.scilab.in/ > > Thanks a lot to everyone who suggested feedbacks. Incase you encounter > a bug or have a suggestion please use the form given on the above > link. The button is titled : "Report Bug/Give Feedback". > > We are working on improving the accessibility of > http://cloud.scilab.in/ and your feedback is very important to us. > > Regards, > Saket Choudhary > Undergraduate Student > IIT Bombay > India > > On 12 September 2013 00:36, Saket Choudhary wrote: >> Extending the discussion from here : >> http://mailinglists.scilab.org/Scilab-users-Run-your-Scilab-Codes-Through-Browser-td4025180.html >> >> >> The service has been open to users for quite some time at: >> http://cloud.scilab.in/ >> >> The Textbook Companion Project aims to port solved examples from >> standard textbooks.We have Scilab Examples from more than 200 >> Textbooks. >> >> We would love to hear your feedback. >> >> Thanks >> >> Regards, >> Saket Choudhary >> Undergraduate Student >> IIT Bombay >> India From saketkc at gmail.com Fri Oct 11 01:19:03 2013 From: saketkc at gmail.com (saketkc) Date: Thu, 10 Oct 2013 16:19:03 -0700 (PDT) Subject: [Scilab-users] Scilab On Cloud Service and Textbook Companion Project for Scilab Users In-Reply-To: References: Message-ID: <1381447143474-4027581.post@n3.nabble.com> Adding few more features to http://cloud.scilab.in, we have come up with a search utility on our Examples database. If you are new to Scilab and are looking for an example usage of a command say "contour": 1. Go to http://scilab.in/tbc_solr_search 2. Type "contour" in the search box. a list of examples using "contour" would show up 3. Click on a relevant example, say: http://cloud.scilab.in/index.php?eid=3283 4. Execute! You can try out "plot2d", "nyquist" etc and run the relevant set of examples, LIVE from the browser. Alternatively you can run your own examples by copy-pasting into the input window here: http://cloud.scilab.in If you have any feedback/comments, please use the feedback form given on http://cloud.scilab.in. You will need to click on "Report Bug/Give Feedback" button at the bottom left of the page. Thanks, Saket Choudhary http://cloud.scilab.in -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Scilab-On-Cloud-Service-and-Textbook-Companion-Project-for-Scilab-Users-tp4027389p4027581.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From cedkhader at gmail.com Fri Oct 11 00:22:42 2013 From: cedkhader at gmail.com (Derar Khader) Date: Fri, 11 Oct 2013 00:22:42 +0200 Subject: [Scilab-users] SciLab for Embedded systems and real-time systems Message-ID: <000001cec607$3d654200$b82fc600$@gmail.com> Greetings, I would like to ask how mature is the scilab to model and simulate real-time and embedded systems ? Regards derar -------------- next part -------------- An HTML attachment was scrubbed... URL: From saketkc at gmail.com Fri Oct 11 12:49:25 2013 From: saketkc at gmail.com (Saket Choudhary) Date: Fri, 11 Oct 2013 16:19:25 +0530 Subject: [Scilab-users] Scilab On Cloud Service and Textbook Companion Project for Scilab Users In-Reply-To: References: Message-ID: Adding few more features to http://cloud.scilab.in, we have come up with a search utility on our Examples database. If you are new to Scilab and are looking for an example usage of a command say "contour": 1. Go to http://scilab.in/tbc_solr_search 2. Type "contour" in the search box. a list of examples using "contour" would show up 3. Click on a relevant example, say: http://cloud.scilab.in/index.php?eid=3283 4. Execute! You can try out "plot2d", "nyquist" etc and run the relevant set of examples, LIVE from the browser. Alternatively you can run your own examples by copy-pasting into the input window here: http://cloud.scilab.in If you have any feedback/comments, please use the feedback form given on http://cloud.scilab.in. You will need to click on "Report Bug/Give Feedback" button at the bottom left of the page. Thanks, Saket Choudhary http://cloud.scilab.in On 25 September 2013 17:55, Saket Choudhary wrote: > Based on the suggestions we received we have updated the UI a bit. > > http://cloud.scilab.in/ > > Thanks a lot to everyone who suggested feedbacks. Incase you encounter > a bug or have a suggestion please use the form given on the above > link. The button is titled : "Report Bug/Give Feedback". > > We are working on improving the accessibility of > http://cloud.scilab.in/ and your feedback is very important to us. > > Regards, > Saket Choudhary > Undergraduate Student > IIT Bombay > India > > On 12 September 2013 00:36, Saket Choudhary wrote: >> Extending the discussion from here : >> http://mailinglists.scilab.org/Scilab-users-Run-your-Scilab-Codes-Through-Browser-td4025180.html >> >> >> The service has been open to users for quite some time at: >> http://cloud.scilab.in/ >> >> The Textbook Companion Project aims to port solved examples from >> standard textbooks.We have Scilab Examples from more than 200 >> Textbooks. >> >> We would love to hear your feedback. >> >> Thanks >> >> Regards, >> Saket Choudhary >> Undergraduate Student >> IIT Bombay >> India From paul.bignier at scilab-enterprises.com Fri Oct 11 16:26:07 2013 From: paul.bignier at scilab-enterprises.com (Paul BIGNIER) Date: Fri, 11 Oct 2013 16:26:07 +0200 Subject: [Scilab-users] Solving linear problem in scilab using Karmarkar and Primal Affine Scaling Method In-Reply-To: References: Message-ID: <52580A7F.2010208@scilab-enterprises.com> Hello Jennifer, Are you certain that our problems are worrectly written? For intstance, why is there a "2" alone in a line of the first problem ? And why do your right-hand side elements all have "x" ("0x", "1x", "15x")? I cannot rewrite them but I can tell you that yes, karmarkar allows to solve such problems. Just have a look at its help page : http://help.scilab.org/docs/5.4.1/fr_FR/karmarkar.html Your first problem should look something like this: c = [1 -2 0 0 4]'; // Main problem Aeq = [1 0 -1 0 0 ; ? ? ? ? ? ; 1 -2 4 0 -4 ; ? 2 0 1 -4 ; ? 1 1 1 1]; // Equations beq = [0 ? 0 0 1]; // Right-hand side [xopt, fopt, exitflag, iter, yopt] = karmarkar(Aeq, beq, c) If the solution is not all positive (inequality constraint), add an inequality matrix A, like in the help page. Hope that helps, Paul. On 10/10/2013 05:38 AM, Jennifer Basbas wrote: > Dear All, > > I am new to Scilab and I'm wondering if anyone can help me solve the > following minimization problem in linear programming using Scilab: > > 1. Apply Karmarkar's algorithm to solve > Minimize - > x1 - 2x2 + 4x5subject to > x2 - x3 = 0 > 2 > x1 - 2x2 + 4x3 - 4x5 = 0x > 1 + 2x2 + x4 - 4x5 = 0x > 1 + x2 + x3 + x4 + x5 = 1x > 1, x2, x3, x4, x5 >= 0 > > 2. Apply the primal affne scaling algorithm to solve > Minimize - > 2x1 + x2subject to > x1 - x2 + x3 = 15x > 2 + x4 = 15x > 1, x2, x3, x4 >= 0 > Hint: The optimal solution is > x* = [30 15 0 0]T with optimal value -45. > Any inputs will be greatly appreciated. Thank you. > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Paul BIGNIER Scilab Engineer & Xcos Developer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.69 http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Fri Oct 11 21:20:57 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 11 Oct 2013 21:20:57 +0200 Subject: [Scilab-users] RGB color plot, trying to color each mark with its respective color In-Reply-To: <5255FE1B.1010001@gmail.com> References: <5255FE1B.1010001@gmail.com> Message-ID: <52584F99.3090902@free.fr> Hello, Le 10/10/2013 03:08, William Drago a ?crit : > All, > > I have made a 3d plot of some colors in the RGB color space. Currently > the marks are all the same color. I would like each mark to be the > color it represents in the space. So, a mark in the red corner of the > plot should be red, etc... > > The code I have so far is below. . The implementation of new features as this one has been started here: https://codereview.scilab.org/#/c/10582/ For the time being, as far as i know, the only possibility is to use param3d1(). Herebelow is an example. HTH Samuel // Data nc = 100; // number of colors n = 500; // number of points x = rand(1,n); y = rand(1,n); z = rand(1,n); w = rand(1,n)*nc; // Display : clf f = gcf(); f.color_map = jetcolormap(nc); drawlater param3d1([x ; x],[y ; y],[z ; z]) // Display and size of points : e = gce(); e.children.mark_mode = "on"; e.children.mark_size_unit = "point"; e.children.mark_size = 5; // Assigning colors to the points: for i = 1:length(e.children) e.children(i).mark_foreground = w(i); end drawnow -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: jghbicfe.png Type: image/png Size: 19161 bytes Desc: not available URL: From Peter.Fabo at dynamag.com Sun Oct 13 20:55:23 2013 From: Peter.Fabo at dynamag.com (pf) Date: Sun, 13 Oct 2013 20:55:23 +0200 Subject: [Scilab-users] Xcos custom block - icon path problem Message-ID: <1381690523.3053.35.camel@pf-X58-USB3> Hi all, small problem with Xcos palette export (Scilab 5.5.0, Ubuntu 12.04): If I want to create a new palette with Xcos block with graphic icon in 'builder.sce' pal=xcosPal("MyPalette"); pal=xcosPalAddBlock(pal, MyInterface("define"), [], mypath +"../macros/icons/myIcon.svg"); then macro 'xcosPalAddBlock' create/generate GIF icon in TEMP directory. If I then export palette to file xcosPalExport(pal, mypath + '/MyPalette.pal'); in file 'MyPalette.pal' path to GIF icon indicates to TEMP directory (!!!) And when I load palette with a.e. XcosMyModule.start (after new start etc.) with macro xcosPalAdd(mypath + '/MyPalette.pal'); icons no longer exists (old TEMP was meantime deleted) and I get block in Palette browser without icons ... :-( I think that the GIF icon would be created in the same directory as original (a.e *.svg, *.jpg ....) image(s) and path in exported palette (*.pal) should point to this directory. ================================== Temporary problem solution - not ideal, but works: -> palette can be created at startup in *.start file, without export, Palette browser load icons from TEMP directory With regards Peter From stavrossoultanis at gmail.com Sun Oct 13 02:28:14 2013 From: stavrossoultanis at gmail.com (Stavros Soultanis) Date: Sun, 13 Oct 2013 03:28:14 +0300 Subject: [Scilab-users] help Message-ID: Dear Sir or Mandam Hello, I am a beginner to Scilab. I want to convert a Matlab project to skilab with 3 m files and 1 fig. It is possible? I try the command mfile2sci, but I have errors in one m file. I want your help for a school project. Thanks in advance S.S. -------------- next part -------------- An HTML attachment was scrubbed... URL: From hi_life4 at yahoo.in Mon Oct 14 10:34:50 2013 From: hi_life4 at yahoo.in (hilife5) Date: Mon, 14 Oct 2013 01:34:50 -0700 (PDT) Subject: [Scilab-users] Not able to get the scilab variable value from VB.Net Message-ID: <1381739690616-4027610.post@n3.nabble.com> DLL is made with these function. Kindly correct the code where i am doing error . [DllImport(API_SCILAB_DLL, CharSet = CharSet.Ansi)] public unsafe static extern int getNamedScalarInteger32([In]IntPtr _pvCtx, [In] String _pstName, [In,Out] Int32 _piData); [DllImport(API_SCILAB_DLL, CharSet = CharSet.Ansi)] public static extern api_Err createNamedScalarInteger32([In]IntPtr pvApiCtx, [In]String _pstName,[In] int _iData); These are two function that has been used to create and access scilab valiable. public unsafe int getNamedScalarInteger32(string name) { int data=0 ; System.IntPtr ptrEmpty = new System.IntPtr(); int iret = Scilab_cs_wrapper.getNamedScalarInteger32(ptrEmpty, name, data); return data; } public unsafe int createNamedScalarInteger32(string varname, int iData) { System.IntPtr ptrEmpty = new System.IntPtr(); Scilab_cs_wrapper.api_Err SciErr = Scilab_cs_wrapper.createNamedScalarInteger32(ptrEmpty, varname, iData); return SciErr.iErr; } When creating a variable from vb application , not able to access its value. the code that i have tried is obj1.SendScilabJob("x = 5;") obj1.SendScilabJob("y=x+1;") Dim out As Integer = obj1.getNamedScalarInteger32("y") -- View this message in context: http://mailinglists.scilab.org/Not-able-to-get-the-scilab-variable-value-from-VB-Net-tp4027610.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From clement.david at scilab-enterprises.com Mon Oct 14 11:27:14 2013 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 14 Oct 2013 11:27:14 +0200 Subject: [Scilab-users] Xcos custom block - icon path problem In-Reply-To: <1381690523.3053.35.camel@pf-X58-USB3> References: <1381690523.3053.35.camel@pf-X58-USB3> Message-ID: <1381742834.1654.24.camel@paros> Hello Peter, In my view, the palette should be created on toolbox loading (eg. on the .start file) because, as you highlight, path may vary between built-time and load-time. Furthermore, palette creation does not require many computation time and perform only runtime consistency checks. As a reference, please take a look at the xcos_toolbox_skeleton on the SCI/contrib directory. Regards, -- Cl?ment Le dimanche 13 octobre 2013 ? 20:55 +0200, pf a ?crit : > Hi all, > > small problem with Xcos palette export (Scilab 5.5.0, Ubuntu 12.04): > > If I want to create a new palette with Xcos block with graphic icon in > 'builder.sce' > > pal=xcosPal("MyPalette"); > pal=xcosPalAddBlock(pal, MyInterface("define"), [], mypath > +"../macros/icons/myIcon.svg"); > > then macro 'xcosPalAddBlock' create/generate GIF icon in TEMP directory. > > If I then export palette to file > > xcosPalExport(pal, mypath + '/MyPalette.pal'); > > in file 'MyPalette.pal' path to GIF icon indicates to TEMP directory > (!!!) > And when I load palette with a.e. XcosMyModule.start (after new start > etc.) with macro > > xcosPalAdd(mypath + '/MyPalette.pal'); > > icons no longer exists (old TEMP was meantime deleted) and I get block > in Palette browser without icons ... :-( > > I think that the GIF icon would be created in the same directory as > original (a.e *.svg, *.jpg ....) image(s) and path in exported palette > (*.pal) should point to this directory. > > ================================== > > Temporary problem solution - not ideal, but works: > > -> palette can be created at startup in *.start file, without export, > Palette browser load icons from TEMP directory > > > With regards > Peter > > > > > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From hinow at uwm.edu Tue Oct 15 17:46:49 2013 From: hinow at uwm.edu (Peter Hinow) Date: Tue, 15 Oct 2013 10:46:49 -0500 (CDT) Subject: [Scilab-users] ode malfunction In-Reply-To: <831963116.1093535.1381851841796.JavaMail.root@uwm.edu> Message-ID: <1616388101.1094464.1381852009916.JavaMail.root@uwm.edu> Dear fellows, my goal is to solve numerically an ODE which contains a time-dependent parameter using 'ode'. I get a confusing result depending on whether the signal (it's called h) is on for 10 or 20 seconds. The two results are attached. Regardless of the model and the code, there should be a response in the variable w as soon as h switches from 0 to 1. I can provide any other information as needed. Should I use bugzilla to report this? I am not doing this very often, so I need some instruction how to proceed. Thank you and best regards, Peter -- Peter Hinow, PhD Department of Mathematical Sciences University of Wisconsin - Milwaukee P.O. Box 413 Milwaukee, WI 53201-0413 USA phone: ++1 414 229 6886 https://pantherfile.uwm.edu/hinow/www/ -------------- next part -------------- A non-text attachment was scrubbed... Name: h_60_70.pdf Type: application/pdf Size: 27000 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: h_60_80.pdf Type: application/pdf Size: 29287 bytes Desc: not available URL: From omorr at uns.ac.rs Tue Oct 15 18:34:36 2013 From: omorr at uns.ac.rs (Radovan Omorjan) Date: Tue, 15 Oct 2013 18:34:36 +0200 Subject: [Scilab-users] ode malfunction In-Reply-To: <1616388101.1094464.1381852009916.JavaMail.root@uwm.edu> References: <1616388101.1094464.1381852009916.JavaMail.root@uwm.edu> Message-ID: <525D6E9C.7060904@uns.ac.rs> Hello Peter, I think that your code might be useful. You might get some discontinuities when ode solver might get confused, or you have chosen the wrong solver. Regards, Radovan On 10/15/2013 5:46 PM, Peter Hinow wrote: > Dear fellows, > > my goal is to solve numerically an ODE which contains a time-dependent parameter using 'ode'. I get a confusing result depending on whether the signal (it's called h) is on for 10 or 20 seconds. The two results are attached. Regardless of the model and the code, there should be a response in the variable w as soon as h switches from 0 to 1. I can provide any other information as needed. > > Should I use bugzilla to report this? I am not doing this very often, so I need some instruction how to proceed. > Thank you and best regards, > Peter > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Peter.Fabo at dynamag.com Tue Oct 15 22:51:51 2013 From: Peter.Fabo at dynamag.com (pf) Date: Tue, 15 Oct 2013 22:51:51 +0200 Subject: [Scilab-users] Xcos custom block - icon path problem In-Reply-To: <1381742834.1654.24.camel@paros> References: <1381690523.3053.35.camel@pf-X58-USB3> <1381742834.1654.24.camel@paros> Message-ID: <1381870311.6242.8.camel@pf-X58-USB3> Hello Cl?ment, thank you for confirmation process creating palette during load-time. (I tried procedure described in the "Xcos Hybrid dynamic systems modeler and simulator" from 16. june 2010, but template from xcos toolbox skeleton is probably fresher :-) ) With regards Peter Mon, 2013-10-14 at 11:27 +0200, Cl?ment David wrote: > Hello Peter, > > In my view, the palette should be created on toolbox loading (eg. on > the .start file) because, as you highlight, path may vary between > built-time and load-time. Furthermore, palette creation does not require > many computation time and perform only runtime consistency checks. > > As a reference, please take a look at the xcos_toolbox_skeleton on the > SCI/contrib directory. > > Regards, > > -- > Cl?ment > > Le dimanche 13 octobre 2013 ? 20:55 +0200, pf a ?crit : > > Hi all, > > > > small problem with Xcos palette export (Scilab 5.5.0, Ubuntu 12.04): > > > > If I want to create a new palette with Xcos block with graphic icon in > > 'builder.sce' > > > > pal=xcosPal("MyPalette"); > > pal=xcosPalAddBlock(pal, MyInterface("define"), [], mypath > > +"../macros/icons/myIcon.svg"); > > > > then macro 'xcosPalAddBlock' create/generate GIF icon in TEMP directory. > > > > If I then export palette to file > > > > xcosPalExport(pal, mypath + '/MyPalette.pal'); > > > > in file 'MyPalette.pal' path to GIF icon indicates to TEMP directory > > (!!!) > > And when I load palette with a.e. XcosMyModule.start (after new start > > etc.) with macro > > > > xcosPalAdd(mypath + '/MyPalette.pal'); > > > > icons no longer exists (old TEMP was meantime deleted) and I get block > > in Palette browser without icons ... :-( > > > > I think that the GIF icon would be created in the same directory as > > original (a.e *.svg, *.jpg ....) image(s) and path in exported palette > > (*.pal) should point to this directory. > > > > ================================== > > > > Temporary problem solution - not ideal, but works: > > > > -> palette can be created at startup in *.start file, without export, > > Palette browser load icons from TEMP directory > > > > > > With regards > > Peter > > > > > > > > > > > > > > > > > > _______________________________________________ > > 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 Serge.Steer at inria.fr Wed Oct 16 09:46:47 2013 From: Serge.Steer at inria.fr (Serge Steer) Date: Wed, 16 Oct 2013 09:46:47 +0200 Subject: [Scilab-users] ode malfunction In-Reply-To: <1616388101.1094464.1381852009916.JavaMail.root@uwm.edu> References: <1616388101.1094464.1381852009916.JavaMail.root@uwm.edu> Message-ID: <525E4467.2020308@inria.fr> Take care that the ode requires the function being at least continuous and differentiable If your input signal has singularities (points where it nos differentiable) you must stop the integration at this point and restart it just after taking the last state value as the intial point for the second run. Serge Steer Le 15/10/2013 17:46, Peter Hinow a ?crit : > Dear fellows, > > my goal is to solve numerically an ODE which contains a time-dependent parameter using 'ode'. I get a confusing result depending on whether the signal (it's called h) is on for 10 or 20 seconds. The two results are attached. Regardless of the model and the code, there should be a response in the variable w as soon as h switches from 0 to 1. I can provide any other information as needed. > > Should I use bugzilla to report this? I am not doing this very often, so I need some instruction how to proceed. > Thank you and best regards, > Peter > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From vogt at centre-cired.fr Wed Oct 16 17:57:28 2013 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Wed, 16 Oct 2013 11:57:28 -0400 Subject: [Scilab-users] ode malfunction In-Reply-To: <525E4467.2020308@inria.fr> References: <1616388101.1094464.1381852009916.JavaMail.root@uwm.edu> <525E4467.2020308@inria.fr> Message-ID: <525EB768.60302@centre-cired.fr> Serge, I suggest that an optional argument for ode would be a set of dates where the function is singular, so ode manages this by itself. What do you think? BR Adrien On 16/10/2013 03:46, Serge Steer wrote: > Take care that the ode requires the function being at least > continuous and differentiable > If your input signal has singularities (points where it nos > differentiable) you must stop the integration at this point and > restart it just after taking the last state value as the intial point > for the second run. > > Serge Steer > > Le 15/10/2013 17:46, Peter Hinow a ?crit : >> Dear fellows, >> >> my goal is to solve numerically an ODE which contains a time-dependent parameter using 'ode'. I get a confusing result depending on whether the signal (it's called h) is on for 10 or 20 seconds. The two results are attached. Regardless of the model and the code, there should be a response in the variable w as soon as h switches from 0 to 1. I can provide any other information as needed. >> >> Should I use bugzilla to report this? I am not doing this very often, so I need some instruction how to proceed. >> Thank you and best regards, >> Peter >> >> >> >> _______________________________________________ >> 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 -- Adrien Vogt-Schilb PhD Student (Cired) and Consultant (The World Bank) 1 202 473 79 80 -------------- next part -------------- An HTML attachment was scrubbed... URL: From hi_life4 at yahoo.in Fri Oct 18 11:37:35 2013 From: hi_life4 at yahoo.in (hilife5) Date: Fri, 18 Oct 2013 02:37:35 -0700 (PDT) Subject: [Scilab-users] Is there any way to supress th plot() output. Message-ID: <1382089055494-4027647.post@n3.nabble.com> I want to know, is there any way exist to suppress the output for the plot command, when i run x=[1:2:10] y=[1:2:10] plot(x,y); Graphic window number 0 is opened. i dont want to open this window. How this can be done? Can we change the name of scilab plot window? -- View this message in context: http://mailinglists.scilab.org/Is-there-any-way-to-supress-th-plot-output-tp4027647.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From vogt at centre-cired.fr Fri Oct 18 14:31:25 2013 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Fri, 18 Oct 2013 08:31:25 -0400 Subject: [Scilab-users] Is there any way to supress th plot() output. In-Reply-To: <1382089055494-4027647.post@n3.nabble.com> References: <1382089055494-4027647.post@n3.nabble.com> Message-ID: <52612A1D.3020802@centre-cired.fr> Hi Why do you plot if not to get a plot? Maybe you want yourplot to be written in a file directly? In this case use driver and xinit/xend driver("pdf") xinit("paf.pdf") plot() xend() winopen(pwd()) Adrien On 18/10/2013 05:37, hilife5 wrote: > I want to know, is there any way exist to suppress the output for the plot > command, when i run > > x=[1:2:10] > y=[1:2:10] > plot(x,y); > > Graphic window number 0 is opened. i dont want to open this window. How this > can be done? > > Can we change the name of scilab plot window? > > > > -- > View this message in context: http://mailinglists.scilab.org/Is-there-any-way-to-supress-th-plot-output-tp4027647.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 -- Adrien Vogt-Schilb PhD Student (Cired) and Consultant (The World Bank) 1 202 473 79 80 From Peter.Fabo at dynamag.com Sat Oct 19 08:41:57 2013 From: Peter.Fabo at dynamag.com (pf) Date: Sat, 19 Oct 2013 08:41:57 +0200 Subject: [Scilab-users] Xcos custom block - icon path problem In-Reply-To: <1381742834.1654.24.camel@paros> References: <1381690523.3053.35.camel@pf-X58-USB3> <1381742834.1654.24.camel@paros> Message-ID: <1382164917.2864.19.camel@pf-X58-USB3> Hello Cl?ment, > As a reference, please take a look at the xcos_toolbox_skeleton on the > SCI/contrib directory. sorry for spam, I tried used oridinal xcos_toolbox_skeleton template (ver. 5.4.0-1-src, scilab 5.5.0, ubuntu 12.04), but I get some problems, probably I made some mistakes: 1. building is without problems (see below) 2. loading (xcos_toolbox_skeleton.start executed from SciNotes - is this correct ?) generate error message ================================== Temporary problem solution I have created simple (a.e. MyBlock.start) script (in */etc) like LIB_HOME=get_absolute_file_path('MyBlocks.start'); exec(LIB_HOME+'../src/c/'+'loader.sce'); exec(LIB_HOME+'../macros/'+'TestBlock.sci'); pal = xcosPal("MyPalette"); pal = xcosPalAddBlock(pal,TestBlock("define"),[], LIB_HOME +"../images/svg/TestBlock.svg"); xcosPalAdd(pal); With regards Peter ============================================== building ============================================== ->exec('/home/pf/Work/xcos_toolbox_skeleton/builder.sce', -1) Building macros... -- Creation of [xcos_toolbox_skeletonlib] (Macros) -- genlib: Processing file: TBX_MUT_STYLE.sci genlib: Processing file: TBX_SUM_c.sci genlib: Regenerate names and lib Building blocks... Building sources... Generate a loader file Generate a Makefile ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR ilib_gen_Make: Copy block_sum.c to TMPDIR ilib_gen_Make: Copy business_sum.c to TMPDIR ilib_gen_Make: configure : Generate Makefile. ilib_gen_Make: Modification of the Makefile in TMPDIR. Running the Makefile Generate a cleaner file Building gateway... Generate a gateway file Generate a loader file Generate a Makefile ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR ilib_gen_Make: Copy libxcos_toolbox_skeleton_c.c to TMPDIR ilib_gen_Make: Copy sci_tbx_sum.c to TMPDIR ilib_gen_Make: configure : Generate Makefile. ilib_gen_Make: Modification of the Makefile in TMPDIR. Running the makefile Generate a cleaner file Generating loader_gateway.sce... Generating cleaner_gateway.sce... Building help... Building the master document: /home/pf/Work/xcos_toolbox_skeleton/help/en_US Building the manual file [javaHelp] in /home/pf/Work/xcos_toolbox_skeleton/help/en_US. Generating loader.sce... Generating unloader.sce... Generating cleaner.sce... ============================================== starting & loading ============================================== -->exec('/home/pf/Work/xcos_toolbox_skeleton/etc/xcos_toolbox_skeleton.start', -1) Start Xcos toolbox skeleton Load macros Load palette Load simulations functions Load gateways Load help Load demos xcos_skeletonlib = startModule(); !--error 13 Redefining permanent variable. at line 89 of exec file called by : exec('/home/pf/Work/xcos_toolbox_skeleton/etc/xcos_toolbox_skeleton.start', -1) ============================================== using blocks ============================================== Undefined variable: TBX_MUT_STYLE Undefined variable: TBX_SUM_c From hi_life4 at yahoo.in Mon Oct 21 07:24:50 2013 From: hi_life4 at yahoo.in (hilife5) Date: Sun, 20 Oct 2013 22:24:50 -0700 (PDT) Subject: [Scilab-users] Is there any way to supress th plot() output. In-Reply-To: <52612A1D.3020802@centre-cired.fr> References: <1382089055494-4027647.post@n3.nabble.com> <52612A1D.3020802@centre-cired.fr> Message-ID: <1382333090404-4027656.post@n3.nabble.com> yes i want the plot output in file directly..I will use this plot in my vb application,. Thanks for your response. -- View this message in context: http://mailinglists.scilab.org/scilab-users-Is-there-any-way-to-supress-the-plot-command-output-tp4027647p4027656.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From paul.bignier at scilab-enterprises.com Mon Oct 21 09:04:50 2013 From: paul.bignier at scilab-enterprises.com (Paul BIGNIER) Date: Mon, 21 Oct 2013 09:04:50 +0200 Subject: [Scilab-users] Is there any way to supress th plot() output. In-Reply-To: <1382333090404-4027656.post@n3.nabble.com> References: <1382089055494-4027647.post@n3.nabble.com> <52612A1D.3020802@centre-cired.fr> <1382333090404-4027656.post@n3.nabble.com> Message-ID: <5264D212.2030006@scilab-enterprises.com> Hello, Did you try to Export the graph via the File menu? Have a good day, Paul. On 10/21/2013 07:24 AM, hilife5 wrote: > yes i want the plot output in file directly..I will use this plot in my vb > application,. Thanks for your response. > > > > -- > View this message in context: http://mailinglists.scilab.org/scilab-users-Is-there-any-way-to-supress-the-plot-command-output-tp4027647p4027656.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 -- Paul BIGNIER Scilab Engineer & Xcos Developer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.69 http://www.scilab-enterprises.com From hi_life4 at yahoo.in Mon Oct 21 09:10:37 2013 From: hi_life4 at yahoo.in (hilife5) Date: Mon, 21 Oct 2013 00:10:37 -0700 (PDT) Subject: [Scilab-users] Is there any way to supress th plot() output. In-Reply-To: <5264D212.2030006@scilab-enterprises.com> References: <1382089055494-4027647.post@n3.nabble.com> <52612A1D.3020802@centre-cired.fr> <1382333090404-4027656.post@n3.nabble.com> <5264D212.2030006@scilab-enterprises.com> Message-ID: <1382339437606-4027658.post@n3.nabble.com> My query has been solved. I have to save the plot through VB programming with open the plot window -- View this message in context: http://mailinglists.scilab.org/scilab-users-Is-there-any-way-to-supress-the-plot-command-output-tp4027647p4027658.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From clement.david at scilab-enterprises.com Mon Oct 21 09:49:40 2013 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 21 Oct 2013 09:49:40 +0200 Subject: [Scilab-users] Xcos custom block - icon path problem In-Reply-To: <1382164917.2864.19.camel@pf-X58-USB3> References: <1381690523.3053.35.camel@pf-X58-USB3> <1381742834.1654.24.camel@paros> <1382164917.2864.19.camel@pf-X58-USB3> Message-ID: <1382341780.1661.11.camel@paros> Hello Peter, > 2. loading (xcos_toolbox_skeleton.start executed from SciNotes - is > this > correct ?) generate error message I checked "exec ('builder.sce'); exec ('loader.sce')" using scilab-5.5.0-beta1 with xcos_toolbox_skeleton from Scilab 5.5.0-beta1 and Scilab 5.4.1 and everything seems to be fine. Can you track the 'permanent variable' issue ? what's the variable ? did you define it ? -- Cl?ment DAVID Development Engineer / Account Manager ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Mobile: +33.6.26.26.51.90 Phone: +33.2.90.22.78.96 http://www.scilab-enterprises.com From Peter.Fabo at dynamag.com Mon Oct 21 10:49:09 2013 From: Peter.Fabo at dynamag.com (pf) Date: Mon, 21 Oct 2013 10:49:09 +0200 Subject: [Scilab-users] Xcos custom block - icon path problem In-Reply-To: <1382341780.1661.11.camel@paros> References: <1381690523.3053.35.camel@pf-X58-USB3> <1381742834.1654.24.camel@paros> <1382164917.2864.19.camel@pf-X58-USB3> <1382341780.1661.11.camel@paros> Message-ID: <1382345349.2969.10.camel@pf-X58-USB3> Hello Cl?ment, I found that this variable (xcos_skeletonlib) is defined in XCPL toolbox (ScicosPowerLab, XCPL.start) that I install via Atom. After uninstalling XCLP everything works fine. I think the return variable of each macro *.start should have its own name (to prevent similar conflicts) ... Thanks for helping, with regards Peter On Mon, 2013-10-21 at 09:49 +0200, Cl?ment David wrote: > Hello Peter, > > > 2. loading (xcos_toolbox_skeleton.start executed from SciNotes - is > > this > > correct ?) generate error message > > I checked "exec ('builder.sce'); exec ('loader.sce')" using > scilab-5.5.0-beta1 with xcos_toolbox_skeleton from Scilab 5.5.0-beta1 > and Scilab 5.4.1 and everything seems to be fine. > > Can you track the 'permanent variable' issue ? what's the variable ? did > you define it ? > > From paul.carrico at esterline.com Mon Oct 21 14:29:33 2013 From: paul.carrico at esterline.com (Carrico, Paul) Date: Mon, 21 Oct 2013 14:29:33 +0200 Subject: [Scilab-users] Matrix of characters conversion Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B10C@exchsrv.auxitrol.ad> Dear All How can I convert a matrix of characters into integers when the separator has different number of spaces ? The spaces come probably from a printf format such as : printf("%10d\n",var) I 'm currently using csvTextScan and I've some troubles/errors with csvRead ... Example : ! 300006 12799 24678 17504 21558 212801 24680 17508 21560 ! NB: - I read first an ascii file - I removed some specific lines directly in the matrix - Then I'm trying to convert the matrix of characters into a matrix of intergers Thanks for any suggestion Paul ######################################### PATH_FILE = get_absolute_file_path("lecture.sce"); FILE_NAME = 'topology_elem.rad'; stacksize('max'); M = mopen(PATH_FILE + "/" + FILE_NAME,'r'); record = mgetl(M); [nl,nc] = size(record); nbre_elem = (nl / 3); Nodes_char(1:nbre_elem) = record(1:3:nl); // convert Nodes = csvTextScan(Nodes_char," "); // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! mclose(M) -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.bignier at scilab-enterprises.com Mon Oct 21 14:50:33 2013 From: paul.bignier at scilab-enterprises.com (Paul BIGNIER) Date: Mon, 21 Oct 2013 14:50:33 +0200 Subject: [Scilab-users] Matrix of characters conversion In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B10C@exchsrv.auxitrol.ad> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B10C@exchsrv.auxitrol.ad> Message-ID: <52652319.2010803@scilab-enterprises.com> Dear Paul, How about manually editing your file to standardize the spacing between the numbers? For instance, using your editor's "Find and Replace" tool to replace two spaces " " with one space " " until you get only one space between each number? Hope this helps, Have a good day, Paul. On 10/21/2013 02:29 PM, Carrico, Paul wrote: > > Dear All > > How can I convert a matrix of characters into integers when the > separator has different number of spaces ? > > The spaces come probably from a printf format such as : > printf("%10d\n",var) > > I 'm currently using*_csvTextScan_* and I've some troubles/errors with*_csvRead_* ... > > _Example_: > > ! 300006 12799 24678 17504 21558 212801 24680 > 17508 21560 ! > > NB: > > -I read first an ascii file > > -I removed some specific lines directly in the matrix > > -Then I'm trying to convert the matrix of characters into a matrix of > intergers > > Thanks for any suggestion > > Paul > > ######################################### > > PATH_FILE = get_absolute_file_path("lecture.sce"); > FILE_NAME = 'topology_elem.rad'; > > stacksize('max'); > M = mopen(PATH_FILE + "/" + FILE_NAME,'r'); > record = mgetl(M); > [nl,nc] = size(record); > > nbre_elem = (nl / 3); > Nodes_char(1:nbre_elem) = record(1:3:nl); > > /// convert/ > Nodes = csvTextScan(Nodes_char," ");/// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!/ > > mclose(M) > > -------------------------------------------------------------------------------- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -- Paul BIGNIER Scilab Engineer & Xcos Developer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.69 http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Mon Oct 21 15:02:45 2013 From: paul.carrico at esterline.com (Carrico, Paul) Date: Mon, 21 Oct 2013 15:02:45 +0200 Subject: [Scilab-users] Matrix of characters conversion In-Reply-To: <52652319.2010803@scilab-enterprises.com> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B10C@exchsrv.auxitrol.ad> <52652319.2010803@scilab-enterprises.com> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B10E@exchsrv.auxitrol.ad> Dear Paul Yes, you're right ... it can be done easily under vi for example ... but it remains a trick ! Is it out of Scilab scope to directly manage the number of spaces (as separator) ? Paul De : Paul BIGNIER [mailto:paul.bignier at scilab-enterprises.com] Envoy? : lundi 21 octobre 2013 14:51 ? : International users mailing list for Scilab.; Carrico, Paul Objet : Re: [Scilab-users] Matrix of characters conversion Dear Paul, How about manually editing your file to standardize the spacing between the numbers? For instance, using your editor's "Find and Replace" tool to replace two spaces " " with one space " " until you get only one space between each number? Hope this helps, Have a good day, Paul. On 10/21/2013 02:29 PM, Carrico, Paul wrote: Dear All How can I convert a matrix of characters into integers when the separator has different number of spaces ? The spaces come probably from a printf format such as : printf("%10d\n",var) I 'm currently using csvTextScan and I've some troubles/errors with csvRead ... Example : ! 300006 12799 24678 17504 21558 212801 24680 17508 21560 ! NB: - I read first an ascii file - I removed some specific lines directly in the matrix - Then I'm trying to convert the matrix of characters into a matrix of intergers Thanks for any suggestion Paul ######################################### PATH_FILE = get_absolute_file_path("lecture.sce"); FILE_NAME = 'topology_elem.rad'; stacksize('max'); M = mopen(PATH_FILE + "/" + FILE_NAME,'r'); record = mgetl(M); [nl,nc] = size(record); nbre_elem = (nl / 3); Nodes_char(1:nbre_elem) = record(1:3:nl); // convert Nodes = csvTextScan(Nodes_char," "); // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! mclose(M) -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -- Paul BIGNIER Scilab Engineer & Xcos Developer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.69 http://www.scilab-enterprises.com -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Mon Oct 21 15:21:04 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 21 Oct 2013 15:21:04 +0200 Subject: [Scilab-users] Matrix of characters conversion In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B10C@exchsrv.auxitrol.ad> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B10C@exchsrv.auxitrol.ad> Message-ID: <52652A40.7020500@free.fr> Hello, Le 21/10/2013 14:29, Carrico, Paul a ?crit : > > Dear All > > How can I convert a matrix of characters into integers when the > separator has different number of spaces ? > > The spaces come probably from a printf format such as : > printf("%10d\n",var) > > I 'm currently using*_csvTextScan_* and I've some troubles/errors with*_csvRead_* ... > > _Example_: > > ! 300006 12799 24678 17504 21558 212801 24680 > 17508 21560 ! > ligne = "300006 12799 24678 17504 21558 212801 24680 17508 21560" evstr(tokens(ligne)) // yields: -->evstr(tokens(ligne)) ans = 300006. 12799. 24678. 17504. 21558. 212801. 24680. 17508. 21560. HTH Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From vogt at centre-cired.fr Mon Oct 21 15:31:03 2013 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Mon, 21 Oct 2013 09:31:03 -0400 Subject: [Scilab-users] Matrix of characters conversion In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B10E@exchsrv.auxitrol.ad> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B10C@exchsrv.auxitrol.ad> <52652319.2010803@scilab-enterprises.com> <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B10E@exchsrv.auxitrol.ad> Message-ID: <52652C97.2020803@centre-cired.fr> I would read the string matrix, trying to obtain a 1x1 string matrix (or at least a 1 column string matri, eg with csvRead) then use *regexp *to replace several spaces by only one, i guess you have to replace " *" by "*" (without the quotes: replace [SPACE][STAR] by [SPACE]) then split the matrix where the single spaces are separtors with *csvTextScan* On 21/10/2013 09:02, Carrico, Paul wrote: > > Dear Paul > > Yes, you're right ... it can be done easily under vi for example ... > but it remains a trick ! > > Is it out of Scilab scope to directly manage the number of spaces (as > separator) ? > > Paul > > *De :*Paul BIGNIER [mailto:paul.bignier at scilab-enterprises.com] > *Envoy? :* lundi 21 octobre 2013 14:51 > *? :* International users mailing list for Scilab.; Carrico, Paul > *Objet :* Re: [Scilab-users] Matrix of characters conversion > > Dear Paul, > > How about manually editing your file to standardize the spacing > between the numbers? > > For instance, using your editor's "Find and Replace" tool to replace > two spaces " " with one space " " until you get only one space > between each number? > > Hope this helps, > Have a good day, > Paul. > > > On 10/21/2013 02:29 PM, Carrico, Paul wrote: > > Dear All > > How can I convert a matrix of characters into integers when the > separator has different number of spaces ? > > The spaces come probably from a printf format such as : > printf("%10d\n",var) > > I 'm currently using*_csvTextScan_* and I've some troubles/errors with*_csvRead_* ... > > _Example_: > > ! 300006 12799 24678 17504 21558 212801 24680 > 17508 21560 ! > > NB: > > -I read first an ascii file > > -I removed some specific lines directly in the matrix > > -Then I'm trying to convert the matrix of characters into a matrix > of intergers > > Thanks for any suggestion > > Paul > > ######################################### > > PATH_FILE= get_absolute_file_path("lecture.sce"); > > FILE_NAME= 'topology_elem.rad'; > > > > stacksize('max'); > > M= mopen(PATH_FILE+ "/" + FILE_NAME,'r'); > > record= mgetl(M); > > [nl,nc] = size(record); > > > > nbre_elem= (nl/ 3); > > Nodes_char(1:nbre_elem) = record(1:3:nl); > > > > /// convert/ > > Nodes= csvTextScan(Nodes_char," ");/// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!/ > > > > mclose(M) > > -------------------------------------------------------------------------------- > > > > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > > > > > > > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > > > > > > > > > -- > Paul BIGNIER > Scilab Engineer & Xcos Developer > ----------------------------------------------------------- > Scilab Enterprises > 143bis rue Yves Le Coz - 78000 Versailles, France > Phone: +33.1.80.77.04.69 > http://www.scilab-enterprises.com > -------------------------------------------------------------------------------- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -- Adrien Vogt-Schilb PhD Student (Cired) and Consultant (The World Bank) 1 202 473 79 80 -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Mon Oct 21 16:13:09 2013 From: paul.carrico at esterline.com (Carrico, Paul) Date: Mon, 21 Oct 2013 16:13:09 +0200 Subject: [Scilab-users] Matrix of characters conversion In-Reply-To: <52652A40.7020500@free.fr> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B10C@exchsrv.auxitrol.ad> <52652A40.7020500@free.fr> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B110@exchsrv.auxitrol.ad> It works well with one line, but I do not figure out how to use it with a matrix without using a loop ????? //i = [1 : nbre_elem]'; //A = zeros(nbre_elem,9); //A(i,:) = evstr(tokens(Nodes_char(i)))' ? doesn't work // works for i = 1 : 10 A(i,:) = evstr(tokens(Nodes_char(i)))'; end NB: I've some troubles with csvTextScan for example when the first character is a separator ... De : users [mailto:users-bounces at lists.scilab.org] De la part de Samuel Gougeon Envoy? : lundi 21 octobre 2013 15:21 ? : International users mailing list for Scilab. Objet : Re: [Scilab-users] Matrix of characters conversion Hello, Le 21/10/2013 14:29, Carrico, Paul a ?crit : Dear All How can I convert a matrix of characters into integers when the separator has different number of spaces ? The spaces come probably from a printf format such as : printf("%10d\n",var) I 'm currently using csvTextScan and I've some troubles/errors with csvRead ... Example : ! 300006 12799 24678 17504 21558 212801 24680 17508 21560 ! ligne = "300006 12799 24678 17504 21558 212801 24680 17508 21560" evstr(tokens(ligne)) // yields: -->evstr(tokens(ligne)) ans = 300006. 12799. 24678. 17504. 21558. 212801. 24680. 17508. 21560. HTH Samuel -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From osvaldo at dcc.ufmg.br Mon Oct 21 16:04:59 2013 From: osvaldo at dcc.ufmg.br (Osvaldo Sergio Farhat de Carvalho) Date: Mon, 21 Oct 2013 12:04:59 -0200 Subject: [Scilab-users] Matrix of characters conversion In-Reply-To: <52652C97.2020803@centre-cired.fr> References: <52652C97.2020803@centre-cired.fr>, <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B10C@exchsrv.auxitrol.ad> <52652319.2010803@scilab-enterprises.com> <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B10E@exchsrv.auxitrol.ad> Message-ID: An HTML attachment was scrubbed... URL: From Serge.Steer at inria.fr Mon Oct 21 16:19:34 2013 From: Serge.Steer at inria.fr (Serge Steer) Date: Mon, 21 Oct 2013 16:19:34 +0200 Subject: [Scilab-users] Matrix of characters conversion In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B10C@exchsrv.auxitrol.ad> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B10C@exchsrv.auxitrol.ad> Message-ID: <526537F6.3050800@inria.fr> You can use evstr for that example M=["1 2 5.54" "3.45 8 -123" "0 -432.512 -0.435"] -->evstr(M) ans = 1. 2. 5.54 3.45 8. - 123. 0. - 432.512 - 0.435 Serge Le 21/10/2013 14:29, Carrico, Paul a ?crit : > > Dear All > > How can I convert a matrix of characters into integers when the > separator has different number of spaces ? > > The spaces come probably from a printf format such as : > printf("%10d\n",var) > > I 'm currently using*_csvTextScan_* and I've some troubles/errors with*_csvRead_* ... > > _Example_: > > ! 300006 12799 24678 17504 21558 212801 24680 > 17508 21560 ! > > NB: > > -I read first an ascii file > > -I removed some specific lines directly in the matrix > > -Then I'm trying to convert the matrix of characters into a matrix of > intergers > > Thanks for any suggestion > > Paul > > ######################################### > > PATH_FILE = get_absolute_file_path("lecture.sce"); > FILE_NAME = 'topology_elem.rad'; > > stacksize('max'); > M = mopen(PATH_FILE + "/" + FILE_NAME,'r'); > record = mgetl(M); > [nl,nc] = size(record); > > nbre_elem = (nl / 3); > Nodes_char(1:nbre_elem) = record(1:3:nl); > > /// convert/ > Nodes = csvTextScan(Nodes_char," ");/// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!/ > > mclose(M) > > -------------------------------------------------------------------------------- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > > > > _______________________________________________ > 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 esterline.com Mon Oct 21 16:23:45 2013 From: paul.carrico at esterline.com (Carrico, Paul) Date: Mon, 21 Oct 2013 16:23:45 +0200 Subject: [Scilab-users] Matrix of characters conversion In-Reply-To: References: <52652C97.2020803@centre-cired.fr>, <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B10C@exchsrv.auxitrol.ad> <52652319.2010803@scilab-enterprises.com> <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B10E@exchsrv.auxitrol.ad> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B111@exchsrv.auxitrol.ad> Hi Osvaldo I absolutely want to avoid a loop in order to convert fast my ascii file into a matrix of integer ... I might be possible to use vectorization .... For example, my matrix has more than a 100 000 lines ..... De : users [mailto:users-bounces at lists.scilab.org] De la part de Osvaldo Sergio Farhat de Carvalho Envoy? : lundi 21 octobre 2013 16:05 ? : International users mailing list for Scilab. Objet : Re: [Scilab-users] Matrix of characters conversion Hi Paul, Suppose lines is a column vector of strings, each element being a meaningful line of your input file. Try m = []; [nl,nc] = lines; for i = 1:nl tks = tokens(lines(i)); intValues = (eval(tks))'; // transpose in order to get a row m = [m;intValues]; end Hope it works. Osvaldo -----"users" escreveu: ----- Para: "International users mailing list for Scilab." De: Adrien Vogt-Schilb Enviado por: "users" Data: 21/10/2013 11:32 AM Assunto: Re: [Scilab-users] Matrix of characters conversion I would read the string matrix, trying to obtain a 1x1 string matrix (or at least a 1 column string matri, eg with csvRead) then use regexp to replace several spaces by only one, i guess you have to replace " *" by "*" (without the quotes: replace [SPACE][STAR] by [SPACE]) then split the matrix where the single spaces are separtors with csvTextScan On 21/10/2013 09:02, Carrico, Paul wrote: Dear Paul Yes, you're right ... it can be done easily under vi for example ... but it remains a trick ! Is it out of Scilab scope to directly manage the number of spaces (as separator) ? Paul De : Paul BIGNIER [ mailto:paul.bignier at scilab-enterprises.com ] Envoy? : lundi 21 octobre 2013 14:51 ? : International users mailing list for Scilab.; Carrico, Paul Objet : Re: [Scilab-users] Matrix of characters conversion Dear Paul, How about manually editing your file to standardize the spacing between the numbers? For instance, using your editor's "Find and Replace" tool to replace two spaces " " with one space " " until you get only one space between each number? Hope this helps, Have a good day, Paul. On 10/21/2013 02:29 PM, Carrico, Paul wrote: Dear All How can I convert a matrix of characters into integers when the separator has different number of spaces ? The spaces come probably from a printf format such as : printf("%10d\n",var) I 'm currently using csvTextScan and I've some troubles/errors with csvRead ... Example : ! 300006 12799 24678 17504 21558 212801 24680 17508 21560 ! NB: - I read first an ascii file - I removed some specific lines directly in the matrix - Then I'm trying to convert the matrix of characters into a matrix of intergers Thanks for any suggestion Paul ######################################### PATH_FILE = get_absolute_file_path ( "lecture.sce" ) ; FILE_NAME = 'topology_elem.rad' ; stacksize ( 'max' ) ; M = mopen ( PATH_FILE + "/" + FILE_NAME, 'r' ) ; record = mgetl ( M ) ; [ nl,nc ] = size ( record ) ; nbre_elem = ( nl / 3 ) ; Nodes_char ( 1 : nbre_elem ) = record ( 1 : 3 : nl ) ; // convert Nodes = csvTextScan ( Nodes_char, " " ) ; // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! mclose ( M ) -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -- Paul BIGNIER Scilab Engineer & Xcos Developer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.69 http://www.scilab-enterprises.com -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -- Adrien Vogt-Schilb PhD Student (Cired) and Consultant (The World Bank) 1 202 473 79 80 _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Mon Oct 21 16:30:36 2013 From: paul.carrico at esterline.com (Carrico, Paul) Date: Mon, 21 Oct 2013 16:30:36 +0200 Subject: [Scilab-users] Matrix of characters conversion In-Reply-To: <526537F6.3050800@inria.fr> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B10C@exchsrv.auxitrol.ad> <526537F6.3050800@inria.fr> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B112@exchsrv.auxitrol.ad> Thanks It works for small matrix ... but troubles with huge ones .... L De : users [mailto:users-bounces at lists.scilab.org] De la part de Serge Steer Envoy? : lundi 21 octobre 2013 16:20 ? : International users mailing list for Scilab. Objet : Re: [Scilab-users] Matrix of characters conversion You can use evstr for that example M=["1 2 5.54" "3.45 8 -123" "0 -432.512 -0.435"] -->evstr(M) ans = 1. 2. 5.54 3.45 8. - 123. 0. - 432.512 - 0.435 Serge Le 21/10/2013 14:29, Carrico, Paul a ?crit : Dear All How can I convert a matrix of characters into integers when the separator has different number of spaces ? The spaces come probably from a printf format such as : printf("%10d\n",var) I 'm currently using csvTextScan and I've some troubles/errors with csvRead ... Example : ! 300006 12799 24678 17504 21558 212801 24680 17508 21560 ! NB: - I read first an ascii file - I removed some specific lines directly in the matrix - Then I'm trying to convert the matrix of characters into a matrix of intergers Thanks for any suggestion Paul ######################################### PATH_FILE = get_absolute_file_path("lecture.sce"); FILE_NAME = 'topology_elem.rad'; stacksize('max'); M = mopen(PATH_FILE + "/" + FILE_NAME,'r'); record = mgetl(M); [nl,nc] = size(record); nbre_elem = (nl / 3); Nodes_char(1:nbre_elem) = record(1:3:nl); // convert Nodes = csvTextScan(Nodes_char," "); // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! mclose(M) -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From vogt at centre-cired.fr Mon Oct 21 16:43:28 2013 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Mon, 21 Oct 2013 10:43:28 -0400 Subject: [Scilab-users] Matrix of characters conversion In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B112@exchsrv.auxitrol.ad> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B10C@exchsrv.auxitrol.ad> <526537F6.3050800@inria.fr> <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B112@exchsrv.auxitrol.ad> Message-ID: <52653D90.5070305@centre-cired.fr> Did you try fscanfMat? It could work On 21/10/2013 10:30, Carrico, Paul wrote: > > Thanks > > It works for small matrix ... but troubles with huge ones .... L > > *De :*users [mailto:users-bounces at lists.scilab.org] *De la part de* > Serge Steer > *Envoy? :* lundi 21 octobre 2013 16:20 > *? :* International users mailing list for Scilab. > *Objet :* Re: [Scilab-users] Matrix of characters conversion > > You can use evstr for that > example > M=["1 2 5.54" > "3.45 8 -123" > "0 -432.512 -0.435"] > > -->evstr(M) > ans = > > 1. 2. 5.54 > 3.45 8. - 123. > 0. - 432.512 - 0.435 > > Serge > > Le 21/10/2013 14:29, Carrico, Paul a ?crit : > > Dear All > > How can I convert a matrix of characters into integers when the > separator has different number of spaces ? > > The spaces come probably from a printf format such as : > printf("%10d\n",var) > > I 'm currently using*_csvTextScan_* and I've some troubles/errors with*_csvRead_* ... > > _Example_: > > ! 300006 12799 24678 17504 21558 212801 24680 > 17508 21560 ! > > NB: > > -I read first an ascii file > > -I removed some specific lines directly in the matrix > > -Then I'm trying to convert the matrix of characters into a matrix > of intergers > > Thanks for any suggestion > > Paul > > ######################################### > > PATH_FILE= get_absolute_file_path("lecture.sce"); > > FILE_NAME= 'topology_elem.rad'; > > > > stacksize('max'); > > M= mopen(PATH_FILE+ "/" + FILE_NAME,'r'); > > record= mgetl(M); > > [nl,nc] = size(record); > > > > nbre_elem= (nl/ 3); > > Nodes_char(1:nbre_elem) = record(1:3:nl); > > > > /// convert/ > > Nodes= csvTextScan(Nodes_char," ");/// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!/ > > > > mclose(M) > > -------------------------------------------------------------------------------- > > > > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > > > > > > > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > > > > > > -------------------------------------------------------------------------------- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -- Adrien Vogt-Schilb PhD Student (Cired) and Consultant (The World Bank) 1 202 473 79 80 -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Mon Oct 21 16:47:43 2013 From: paul.carrico at esterline.com (Carrico, Paul) Date: Mon, 21 Oct 2013 16:47:43 +0200 Subject: [Scilab-users] Matrix of characters conversion In-Reply-To: <52653D90.5070305@centre-cired.fr> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B10C@exchsrv.auxitrol.ad> <526537F6.3050800@inria.fr> <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B112@exchsrv.auxitrol.ad> <52653D90.5070305@centre-cired.fr> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B114@exchsrv.auxitrol.ad> Erreur de l'API : dans getAllocatedSingleString : Type erron? de l'argument d'entr?e n?1 : Une seule cha?ne de caract?res attendue. toto = fscanfMat(Nodes_char) !--error 999 fscanfMat : Erreur d'allocation m?moire. De : users [mailto:users-bounces at lists.scilab.org] De la part de Adrien Vogt-Schilb Envoy? : lundi 21 octobre 2013 16:43 ? : International users mailing list for Scilab. Objet : Re: [Scilab-users] Matrix of characters conversion Did you try fscanfMat? It could work On 21/10/2013 10:30, Carrico, Paul wrote: Thanks It works for small matrix ... but troubles with huge ones .... L De : users [mailto:users-bounces at lists.scilab.org] De la part de Serge Steer Envoy? : lundi 21 octobre 2013 16:20 ? : International users mailing list for Scilab. Objet : Re: [Scilab-users] Matrix of characters conversion You can use evstr for that example M=["1 2 5.54" "3.45 8 -123" "0 -432.512 -0.435"] -->evstr(M) ans = 1. 2. 5.54 3.45 8. - 123. 0. - 432.512 - 0.435 Serge Le 21/10/2013 14:29, Carrico, Paul a ?crit : Dear All How can I convert a matrix of characters into integers when the separator has different number of spaces ? The spaces come probably from a printf format such as : printf("%10d\n",var) I 'm currently using csvTextScan and I've some troubles/errors with csvRead ... Example : ! 300006 12799 24678 17504 21558 212801 24680 17508 21560 ! NB: - I read first an ascii file - I removed some specific lines directly in the matrix - Then I'm trying to convert the matrix of characters into a matrix of intergers Thanks for any suggestion Paul ######################################### PATH_FILE = get_absolute_file_path("lecture.sce"); FILE_NAME = 'topology_elem.rad'; stacksize('max'); M = mopen(PATH_FILE + "/" + FILE_NAME,'r'); record = mgetl(M); [nl,nc] = size(record); nbre_elem = (nl / 3); Nodes_char(1:nbre_elem) = record(1:3:nl); // convert Nodes = csvTextScan(Nodes_char," "); // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! mclose(M) -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -- Adrien Vogt-Schilb PhD Student (Cired) and Consultant (The World Bank) 1 202 473 79 80 -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Mon Oct 21 22:51:22 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 21 Oct 2013 22:51:22 +0200 Subject: [Scilab-users] Matrix of characters conversion In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B110@exchsrv.auxitrol.ad> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B10C@exchsrv.auxitrol.ad> <52652A40.7020500@free.fr> <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B110@exchsrv.auxitrol.ad> Message-ID: <526593CA.6090400@free.fr> Le 21/10/2013 16:13, Carrico, Paul a ?crit : > > It works well with one line, but I do not figure out how to use it > with a matrix without using a loop ????? > -->M M = !300006 12799 24678 17504 21558 212801 24680 17508 21560 ! !300006 12799 24678 17504 21558 212801 24680 17508 21560 ! -->mputl(M,"mat.txt"); -->fscanfMat("mat.txt") ans = 300006. 12799. 24678. 17504. 21558. 212801. 24680. 17508. 21560. 300006. 12799. 24678. 17504. 21558. 212801. 24680. 17508. 21560. -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Tue Oct 22 13:58:16 2013 From: paul.carrico at esterline.com (Carrico, Paul) Date: Tue, 22 Oct 2013 13:58:16 +0200 Subject: [Scilab-users] Advice from Scilab community Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B11C@exchsrv.auxitrol.ad> Dear All I'm asking here an advice from the community in order to find a (fast and clean) solution ; I've the following issue : - I've a (n x 4) matrix where n may be huge (several hundred thousand of lines is common ) - I need to find and to remove the line wich has the same numbers (but different in order) - I know that there's only one occurrence ... thus when it has been found, not necessary to continue Example : A = [ X X X X X X X X 1 9 1000 994423 X X X X X X X X X X X X 1000 994423 1 9 ... or 994423 1 9 1000 ... or 9 1000 994423 ... only 3 possible permutations X X X X X X X X X X X X ] Any suggestion that avoids the use of (intensive ugly) loops ? NB: additional question : - If t = [1 2 3 4] - If v = [1 2 3 4] - If z = [0 2 3 9] - Then (t == v) provides [T T T T] - Then (z == v) provides [F T T F] - .... Is it possible to have a single Boolean with all the cells met the requirement (T) and when it's not the case (F) ? Thanks in advance Paul -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.cheze at cea.fr Tue Oct 22 14:14:58 2013 From: david.cheze at cea.fr (CHEZE David 227480) Date: Tue, 22 Oct 2013 12:14:58 +0000 Subject: [Scilab-users] Advice from Scilab community In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B11C@exchsrv.auxitrol.ad> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B11C@exchsrv.auxitrol.ad> Message-ID: Hi Paul, You may have a look at the function find() which is a serialized function and then you may test the size of the result which will tell you if there's a match and where. At first sight you'll have to test sequentially with the 4 different permutations (only 4 iterations). David De : users [mailto:users-bounces at lists.scilab.org] De la part de Carrico, Paul Envoy? : mardi 22 octobre 2013 13:58 ? : users at lists.scilab.org Objet : [Scilab-users] Advice from Scilab community Dear All I'm asking here an advice from the community in order to find a (fast and clean) solution ; I've the following issue : - I've a (n x 4) matrix where n may be huge (several hundred thousand of lines is common ) - I need to find and to remove the line wich has the same numbers (but different in order) - I know that there's only one occurrence ... thus when it has been found, not necessary to continue Example : A = [ X X X X X X X X 1 9 1000 994423 X X X X X X X X X X X X 1000 994423 1 9 ... or 994423 1 9 1000 ... or 9 1000 994423 ... only 3 possible permutations X X X X X X X X X X X X ] Any suggestion that avoids the use of (intensive ugly) loops ? NB: additional question : - If t = [1 2 3 4] - If v = [1 2 3 4] - If z = [0 2 3 9] - Then (t == v) provides [T T T T] - Then (z == v) provides [F T T F] - .... Is it possible to have a single Boolean with all the cells met the requirement (T) and when it's not the case (F) ? Thanks in advance Paul -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.cheze at cea.fr Tue Oct 22 14:17:37 2013 From: david.cheze at cea.fr (CHEZE David 227480) Date: Tue, 22 Oct 2013 12:17:37 +0000 Subject: [Scilab-users] Advice from Scilab community In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B11C@exchsrv.auxitrol.ad> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B11C@exchsrv.auxitrol.ad> Message-ID: The vectorfind function seems to perform this work too. David De : users [mailto:users-bounces at lists.scilab.org] De la part de Carrico, Paul Envoy? : mardi 22 octobre 2013 13:58 ? : users at lists.scilab.org Objet : [Scilab-users] Advice from Scilab community Dear All I'm asking here an advice from the community in order to find a (fast and clean) solution ; I've the following issue : - I've a (n x 4) matrix where n may be huge (several hundred thousand of lines is common ) - I need to find and to remove the line wich has the same numbers (but different in order) - I know that there's only one occurrence ... thus when it has been found, not necessary to continue Example : A = [ X X X X X X X X 1 9 1000 994423 X X X X X X X X X X X X 1000 994423 1 9 ... or 994423 1 9 1000 ... or 9 1000 994423 ... only 3 possible permutations X X X X X X X X X X X X ] Any suggestion that avoids the use of (intensive ugly) loops ? NB: additional question : - If t = [1 2 3 4] - If v = [1 2 3 4] - If z = [0 2 3 9] - Then (t == v) provides [T T T T] - Then (z == v) provides [F T T F] - .... Is it possible to have a single Boolean with all the cells met the requirement (T) and when it's not the case (F) ? Thanks in advance Paul -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdr at durietz.se Tue Oct 22 14:42:26 2013 From: sdr at durietz.se (Stefan Du Rietz) Date: Tue, 22 Oct 2013 14:42:26 +0200 Subject: [Scilab-users] Advice from Scilab community In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B11C@exchsrv.auxitrol.ad> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B11C@exchsrv.auxitrol.ad> Message-ID: <526672B2.30902@durietz.se> You can use vectorfind() three times to get the line number. Regards Stefan. On 2013-10-22 13:58, Carrico, Paul wrote: -------------------- > Dear All > > I?m asking here an advice from the community in order to find a (fast > and clean) solution ; I?ve the following issue : > > -I?ve a (n x 4) matrix where n may be huge (several hundred thousand > of lines is common ) > > -I need to find and to remove the line wich has the same numbers (but > different in order) > > -I know that there?s only one occurrence ? thus when it has been > found, not necessary to continue > > Example : > > A = [ > > X X X X > > X X X X > > 1 9 1000 994423 > > X X X X > > X X X X > > X X X X > > 1000 994423 1 9 ? or 994423 1 9 1000 ? or 9 1000 994423 ? only 3 > possible permutations > > X X X X > > X X X X > > X X X X > > ] > > Any suggestion that avoids the use of (intensive ugly) loops ? > > NB: > > additional question : > > -If t = [1 2 3 4] > > -If v = [1 2 3 4] > > -If z = [0 2 3 9] > > -Then (t == v) provides [T T T T] > > -Then (z == v) provides [F T T F] > > -?. Is it possible to have a single Boolean with all the cells met the > requirement (T) and when it?s not the case (F) ? > > Thanks in advance > > Paul > > -------------------------------------------------------------------------------- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From sdr at durietz.se Tue Oct 22 15:11:41 2013 From: sdr at durietz.se (Stefan Du Rietz) Date: Tue, 22 Oct 2013 15:11:41 +0200 Subject: [Scilab-users] Advice from Scilab community In-Reply-To: <526672B2.30902@durietz.se> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B11C@exchsrv.auxitrol.ad> <526672B2.30902@durietz.se> Message-ID: <5266798D.5010704@durietz.se> Your second question: -->(t == v) ans = T T T T -->and(t == v) ans = T -->(z == v) ans = F T T F -->and(z == v) ans = F PS I didn't quite understand your first question, but you only have to use vectorfind with each possible permutation until it is found ;-) /Stefan On 2013-10-22 14:42, Stefan Du Rietz wrote: -------------------- > You can use vectorfind() three times to get the line number. > > Regards > Stefan. > > > > On 2013-10-22 13:58, Carrico, Paul wrote: > -------------------- >> Dear All >> >> I?m asking here an advice from the community in order to find a (fast >> and clean) solution ; I?ve the following issue : >> >> -I?ve a (n x 4) matrix where n may be huge (several hundred thousand >> of lines is common ) >> >> -I need to find and to remove the line wich has the same numbers (but >> different in order) >> >> -I know that there?s only one occurrence ? thus when it has been >> found, not necessary to continue >> >> Example : >> >> A = [ >> >> X X X X >> >> X X X X >> >> 1 9 1000 994423 >> >> X X X X >> >> X X X X >> >> X X X X >> >> 1000 994423 1 9 ? or 994423 1 9 1000 ? or 9 1000 994423 ? only 3 >> possible permutations >> >> X X X X >> >> X X X X >> >> X X X X >> >> ] >> >> Any suggestion that avoids the use of (intensive ugly) loops ? >> >> NB: >> >> additional question : >> >> -If t = [1 2 3 4] >> >> -If v = [1 2 3 4] >> >> -If z = [0 2 3 9] >> >> -Then (t == v) provides [T T T T] >> >> -Then (z == v) provides [F T T F] >> >> -?. Is it possible to have a single Boolean with all the cells met the >> requirement (T) and when it?s not the case (F) ? >> >> Thanks in advance >> >> Paul >> >> -------------------------------------------------------------------------------- >> >> >> >> Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s >> ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u >> cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur >> et effacer le message de votre syst?me. Toute divulgation, copie ou >> distribution de cet e-mail est strictement interdite. >> >> This email and any files transmitted with it are confidential and >> intended solely for the use of the individual or entity to whom they >> are addressed. If you have received this email in error, please >> contact the sender and delete the email from your system. If you are >> not the named addressee you should not disseminate, distribute or >> copy this email. >> >> >> >> _______________________________________________ >> 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 Christophe.Dang at sidel.com Tue Oct 22 15:13:40 2013 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Tue, 22 Oct 2013 15:13:40 +0200 Subject: [Scilab-users] Advice from Scilab community In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B11C@exchsrv.auxitrol.ad> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B11C@exchsrv.auxitrol.ad> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F31F7DC4E9@301EX00100.sidel.com> Hello, > De la part de > Carrico, Paul > Envoy? : mardi 22 octobre 2013 13:58 > > I need to find and to remove the line wich has the same numbers > (but different in order) Do you know the numbers you're looking for at the beginning, or do you look for twin rows with a blind search? In the second case, I'm afraid you'll have to sort the matrix... -- 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 Christophe.Dang at sidel.com Tue Oct 22 15:28:42 2013 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Tue, 22 Oct 2013 15:28:42 +0200 Subject: [Scilab-users] Advice from Scilab community In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F31F7DC4E9@301EX00100.sidel.com> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B11C@exchsrv.auxitrol.ad> <3B5FFC67498DFF49AE7271A584867D16F31F7DC4E9@301EX00100.sidel.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F31F7DC53F@301EX00100.sidel.com> > In the second case, I'm afraid you'll have to sort the matrix... Or you might generate a hashcode for every row, that is not sensitive to the order of the elements. You spend time computing this hashcode, but it makes the search faster because you only have to scan one value, and then discriminate the false results (collisions). A very simple, and probably not so efficient, solution would be to compute the sum of every line. You should investigate which solution is "less worse". -- 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 paul.carrico at esterline.com Tue Oct 22 16:15:53 2013 From: paul.carrico at esterline.com (Carrico, Paul) Date: Tue, 22 Oct 2013 16:15:53 +0200 Subject: [Scilab-users] Advice from Scilab community Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B11D@exchsrv.auxitrol.ad> Thanks everybody for the advances ... let me now having a look on it Paul -----Message d'origine----- De?: users [mailto:users-bounces at lists.scilab.org] De la part de Dang, Christophe Envoy??: mardi 22 octobre 2013 15:29 ??: International users mailing list for Scilab. Objet?: Re: [Scilab-users] Advice from Scilab community > In the second case, I'm afraid you'll have to sort the matrix... Or you might generate a hashcode for every row, that is not sensitive to the order of the elements. You spend time computing this hashcode, but it makes the search faster because you only have to scan one value, and then discriminate the false results (collisions). A very simple, and probably not so efficient, solution would be to compute the sum of every line. You should investigate which solution is "less worse". -- Christophe Dang Ngoc Chan Mechanical calculation engineer ______________________________________________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ______________________________________________________________________ _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. From sgougeon at free.fr Tue Oct 22 23:14:52 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 22 Oct 2013 23:14:52 +0200 Subject: [Scilab-users] Advice from Scilab community In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B11C@exchsrv.auxitrol.ad> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B11C@exchsrv.auxitrol.ad> Message-ID: <5266EACC.90100@free.fr> Le 22/10/2013 13:58, Carrico, Paul a ?crit : > .../.. > > -I need to find and to remove the line wich has the same numbers (but > different in order) > If you know them, you may use the function members() available since Scilab 5.5.0, with the options "rows" and "shuffle" Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From florian.wuerflinger at students.fh-wels.at Wed Oct 23 14:56:15 2013 From: florian.wuerflinger at students.fh-wels.at (=?UTF-8?Q?Florian_W=C3=BCrflinger?=) Date: Wed, 23 Oct 2013 05:56:15 -0700 (PDT) Subject: [Scilab-users] Number of plots limited in Xcos scope? Message-ID: <1382532975200-4027686.post@n3.nabble.com> Hello, im using scilab 5.4.1 and I tried to display more than four plots in one Xcos scope. The first four plots are displayed, all further plots remains emty. Could it be that the numer of plots in a Xcos scope is limited, or is there a bug. Thanks in advance Florian -- View this message in context: http://mailinglists.scilab.org/Number-of-plots-limited-in-Xcos-scope-tp4027686.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From paul.bignier at scilab-enterprises.com Wed Oct 23 16:13:01 2013 From: paul.bignier at scilab-enterprises.com (Paul BIGNIER) Date: Wed, 23 Oct 2013 16:13:01 +0200 Subject: [Scilab-users] Number of plots limited in Xcos scope? In-Reply-To: <1382532975200-4027686.post@n3.nabble.com> References: <1382532975200-4027686.post@n3.nabble.com> Message-ID: <5267D96D.7030000@scilab-enterprises.com> Hi, Did you try to run your links through a MUX block? The Xcos -> Control Systems -> Inverted Pendulum demo shows more than 4 plots in one graphic window. Hope this helps, Paul On 10/23/2013 02:56 PM, Florian W?rflinger wrote: > Hello, > > im using scilab 5.4.1 and I tried to display more than four plots in one > Xcos scope. The first four plots are displayed, all further plots remains > emty. Could it be that the numer of plots in a Xcos scope is limited, or is > there a bug. > > Thanks in advance > > Florian > > > > -- > View this message in context: http://mailinglists.scilab.org/Number-of-plots-limited-in-Xcos-scope-tp4027686.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 -- Paul BIGNIER Scilab Engineer & Xcos Developer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.69 http://www.scilab-enterprises.com From grivet at cnrs-orleans.fr Wed Oct 23 17:49:14 2013 From: grivet at cnrs-orleans.fr (grivet) Date: Wed, 23 Oct 2013 17:49:14 +0200 Subject: [Scilab-users] using "mesh" In-Reply-To: <52584F99.3090902@free.fr> References: <5255FE1B.1010001@gmail.com> <52584F99.3090902@free.fr> Message-ID: <5267EFFA.2030501@cnrs-orleans.fr> Hi, I have a data matrix M (64x128) which I plot in 3-D using mesh(x,y,M). this produces a nice plot. However, when I export this plot as an .eps file, I notice two problems: -the process is very long (several minutes) -the resulting file is large (3.1 Mo) If I choose export to .pdf, the transfer to disk is somewhat faster and the resulting file half as large. Is this behaviour normal or is there a way to obtain a smaller file (in eps or pdf format) in a shorter time ? Is it possible, using mesh, to plot a subset of the data, as is done with plot3d using ebox ? There is an annoying discrepancy between mesh and contour2d: if mesh(x,y,M) works, then I must write contour2d(y,x,M) to obtain a contour plot, ie lines and columns are switched. I use win XP, SP3 and Scilab 5.4.1 Thank you in advance for your help JP Grivet From laurie.dhulst at gmail.com Thu Oct 24 19:33:50 2013 From: laurie.dhulst at gmail.com (Laurie) Date: Thu, 24 Oct 2013 10:33:50 -0700 (PDT) Subject: [Scilab-users] I can't see the results of work in the console Message-ID: <1382636030212-4027697.post@n3.nabble.com> Hi, I am stuck !! I already read in the forum that there is bugs in 5.4.0 with the mode of exec. I am using 5.4.1 but I still have a problem. There is 2 lines from my code disp("hello") disp("test") and this is what I get -->exec('/Users/Laurie/Documents/Polytech/Donnees_TD_Stat/essaiexo2td2.sci', -1) hello the second disp isn't showed. Does somebody have any idea ?? Thank you in advance -- View this message in context: http://mailinglists.scilab.org/I-can-t-see-the-results-of-work-in-the-console-tp4027697.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Fri Oct 25 00:59:25 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 25 Oct 2013 00:59:25 +0200 Subject: [Scilab-users] I can't see the results of work in the console In-Reply-To: <1382636030212-4027697.post@n3.nabble.com> References: <1382636030212-4027697.post@n3.nabble.com> Message-ID: <5269A64D.9090008@free.fr> Le 24/10/2013 19:33, Laurie a ?crit : > Hi, > > I am stuck !! > > I already read in the forum that there is bugs in 5.4.0 with the mode of > exec. > I am using 5.4.1 but I still have a problem. > > There is 2 lines from my code > disp("hello") > disp("test") > > and this is what I get > -->exec('/Users/Laurie/Documents/Polytech/Donnees_TD_Stat/essaiexo2td2.sci', > -1) > > hello > > the second disp isn't showed. > > Does somebody have any idea ?? After some tests with Scilab 5.4.1 and 5.5.0-b1 on win7, i confirm this bug: It occurs only when the Line Endings is set to Mac Classic (CR) and it consists in executing only the first line of the script run. So, you may try with Linux or Windows Line Endings, even if you work on a Mac. Regards Samuel From sylvestre.ledru at scilab-enterprises.com Fri Oct 25 02:11:32 2013 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Fri, 25 Oct 2013 02:11:32 +0200 Subject: [Scilab-users] call_scilab (from 5.4.1) on linux In-Reply-To: References: Message-ID: <5269B734.8050303@scilab-enterprises.com> On 25/09/2013 22:31, vincent guffens wrote: > > It used to work with -lscilab but recently I had to change the linker > arguments to explicitely include more dependencies: > > -Wl,--no-as-needed -lscilab -lsciapi_scilab -lscicall_scilab > -lscioutput_stream -lscicore -lscilinear_algebra -lsciconsole > -lscilocalization -lscipolynomials -lsciio -lscielementary_functions > -lscisparse -lscihistory_manager -lscihistory_browser -lscigraphics > -lscicompletion -lscifunctions -lsciboolean -lsciwindows_tools > -lscitime -lscifftw -lsciintersci -lscidouble -lscicommons That was a bug in Scilab build process under Ubuntu. The linker packaged in Ubuntu is enabling the --as-needed option as default. For some reasons, libscilab.so and libscilab-cli.so did not have this option set. I fixed that in commit c4fa8db4c4e207ee89a0b5cd8cd5b66b788dee39 It should now work in the current nightly builds. Sylvestre From simon.mayr at gmail.com Fri Oct 25 12:47:37 2013 From: simon.mayr at gmail.com (simi99) Date: Fri, 25 Oct 2013 03:47:37 -0700 (PDT) Subject: [Scilab-users] Duration time of Xcos simulation In-Reply-To: <1374752788115-4027090.post@n3.nabble.com> References: <1374144723036-4027041.post@n3.nabble.com> <51E7D826.2020501@inria.fr> <1374499219184-4027063.post@n3.nabble.com> <51EEE985.9060009@inria.fr> <1374752788115-4027090.post@n3.nabble.com> Message-ID: <1382698057378-4027712.post@n3.nabble.com> Anybody who can help me? -- View this message in context: http://mailinglists.scilab.org/Duration-time-of-Xcos-simulation-tp4027041p4027712.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From laurie.dhulst at gmail.com Fri Oct 25 13:19:22 2013 From: laurie.dhulst at gmail.com (Laurie) Date: Fri, 25 Oct 2013 04:19:22 -0700 (PDT) Subject: [Scilab-users] I can't see the results of work in the console In-Reply-To: <5269A64D.9090008@free.fr> References: <1382636030212-4027697.post@n3.nabble.com> <5269A64D.9090008@free.fr> Message-ID: <1382699962871-4027713.post@n3.nabble.com> Hi I forgive to tell that I am using a Mac under Mountain Lion And a friend of mine is using a mac under Lion and it Scilab is working perfectly! I don't what the difference because we are using the same version Scilab 5.4.1 Regards Laurie -- View this message in context: http://mailinglists.scilab.org/I-can-t-see-the-results-of-work-in-the-console-tp4027697p4027713.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From paul.carrico at free.fr Fri Oct 25 23:40:10 2013 From: paul.carrico at free.fr (Paul Carrico) Date: Fri, 25 Oct 2013 23:40:10 +0200 Subject: [Scilab-users] Advice from Scilab community In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0BF9A9DC@exchsrv.auxitrol.ad> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B11C@exchsrv.auxitrol.ad> <5266EACC.90100@free.fr> <55A12CBC06A8C9459DCE0BBEF8122FDC0BF9A9DC@exchsrv.auxitrol.ad> Message-ID: <000601ced1ca$c8834c50$5989e4f0$@carrico@free.fr> Dear All First of all thanks for all the advices I had ; the use of ?members? works fine and fast in a general case, but not completely applicable in the study Due to the big size of my matrix (more than 400 000 rows with 4 columns ... even greater than a million of rows) , I?ve a stacksize issue; I tried 2 different ways in order to look for duplicates in the matrix: 1- Each line is compared to the global matrix ? see example 1 2- The matrix is splitted into blocks of 1000 rows (maximum number of lines without stacksize issue) ? see example 2 better/faster solution from the previous one Nevertheless I haven?t seen any way to avoid the use of (ugly) loops that drastically slow down the numerical resolution . Can vectorization be used instead of loops in the current study ? Once again, any additional advices will be greatly appreciated from the community Have a good WE Paul ############################################################################ # mode(0); clear all; stacksize('max'); n = 425053; //5021 A = rand(n,4); tic(); i = 1; while (i <= n) [nb,loc] = members(A(i,:),A, "rows","shuffle","last"); Faces_tmp(i,:) = A(i,:); A(i,:) = []; A(loc(find(nb == 2)),:) = []; // the duplicated is removed from the matrix in order to decrease the number of search [n,nc]=size(A); i = i +1; end time = toc() NB : ?members? function goes quite fast . ########################################################################### mode(0); clear all; stacksize('max'); n = 425053; //5021 A = rand(n,4); block_size = 1000; rest = modulo(n,block_size); number_of_blocks = (n - rest)/block_size; printf("A splitted into blocks............\n"); k=0; tic() if (rest <> 0 ) then k = 1; s0 = "... splited" + string(number_of_blocks + k)+" = A($ - rest +1 : $,:) , .... "; execstr(s0); end for h = 1 : number_of_blocks s1 = "... splited" + string(h) + " = A(block_size * (" + string(h) + " - 1) + 1 : " + string(h) + " * block_size , :), ... "; execstr(s1); end split_time=toc() printf("Search for duplicates............\n"); // NB: when the block is compared to itself ?members? gives back 2 for duplicates // otherwise 1 is returned since 2 different blocks are compared // duplicates are removed from the tested block tic() for i = 1 : (number_of_blocks + k) printf("block ref %d ...\n",i); for j = 1 : (number_of_blocks + k) s2 = "... if (j == i) then , ... [nb,loc] = members(splited" + string(i) + ",splited" + string(j) + ", ""rows"",""shuffle"",""last"") , ... splited" + string(j) + "(loc(find(nb == 2)),:) = [] , .... else , ... [nb,loc] = members(splited" + string(i) + ",splited" + string(j) + ", ""rows"",""shuffle"") , ... splited" + string(j) + "(loc(find(nb == 1)),:) = [] , .... end , ... "; execstr(s2); end end time = toc() A_final = []; for i = 1 : (number_of_blocks + k) s3 = " ... A_final = [A_final ; splited" + string(i) + "], ... "; execstr(s3); end -------- Message d'origine-------- De: users de la part de Samuel Gougeon Date: mar. 22/10/2013 23:14 ?: International users mailing list for Scilab. Objet : Re: [Scilab-users] Advice from Scilab community Le 22/10/2013 13:58, Carrico, Paul a ?crit : > .../.. > > -I need to find and to remove the line wich has the same numbers (but > different in order) > If you know them, you may use the function members() available since Scilab 5.5.0, with the options "rows" and "shuffle" Samuel ---------------------------------------------------------------------------- ---- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. --- Ce courrier ?lectronique ne contient aucun virus ou logiciel malveillant parce que la protection avast! Antivirus est active. http://www.avast.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Nora.Lecoeur at rhul.ac.uk Sat Oct 26 01:45:24 2013 From: Nora.Lecoeur at rhul.ac.uk (Lecoeur, Nora) Date: Fri, 25 Oct 2013 23:45:24 +0000 Subject: [Scilab-users] Batch to export a graph to PNG automatically Message-ID: <2775114b5ee24a1ebc29a6a4afd8ef52@DBXPR03MB189.eurprd03.prod.outlook.com> Hello, What would be the program to write if I want to export a graph to PNG automatically with scilab ? Thanks, N.L. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab-enterprises.com Sat Oct 26 02:59:06 2013 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Sat, 26 Oct 2013 02:59:06 +0200 Subject: [Scilab-users] Batch to export a graph to PNG automatically In-Reply-To: <2775114b5ee24a1ebc29a6a4afd8ef52@DBXPR03MB189.eurprd03.prod.outlook.com> References: <2775114b5ee24a1ebc29a6a4afd8ef52@DBXPR03MB189.eurprd03.prod.outlook.com> Message-ID: <526B13DA.2030803@scilab-enterprises.com> On 26/10/2013 01:45, Lecoeur, Nora wrote: > > Hello, > > > > What would be the program to write if I want to export a graph to PNG > automatically with scilab ? > > > driver & xinit are probably what you are looking for: http://help.scilab.org/docs/5.4.1/en_US/driver.html http://help.scilab.org/docs/5.4.1/en_US/xinit.html Sylvestre -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Sat Oct 26 11:08:04 2013 From: paul.carrico at free.fr (Paul Carrico) Date: Sat, 26 Oct 2013 11:08:04 +0200 Subject: [Scilab-users] Advice from Scilab community (including parallelization) References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B11C@exchsrv.auxitrol.ad> <5266EACC.90100@free.fr> <55A12CBC06A8C9459DCE0BBEF8122FDC0BF9A9DC@exchsrv.auxitrol.ad> <000601ced1ca$c8834c50$5989e4f0$@carrico@free.fr> Message-ID: <001201ced22a$e1e6c5e0$a5b451a0$@carrico@free.fr> Dear All I think the example hereafter is quite interesting since it shows the speed quickly increase . but it remains too long for my application L Thus an additional question : is the only way is to use parallelization (I've 8 cores on my working station) ? what about Scilab today on that specific issue ? Regards Paul ############################################################################ ############# mode(0); clear all; stacksize('max'); n = 5*5031; As = rand(n,4); Bs = rand(n,4); A = [As ; Bs ; Bs ; As ; As ; As ; Bs]; [nl,nc]=size(A) block_size = 1000; rest = modulo(nl,block_size); number_of_blocks = (nl - rest)/block_size; printf("A splitted into blocks............\n"); k=0; tic() if (rest <> 0 ) then k = 1; s0 = "... splited" + string(number_of_blocks + k)+" = A($ - rest +1 : $,:) , ... "; execstr(s0); end for h = 1 : number_of_blocks s1 = "... splited" + string(h) + " = A(block_size * (" + string(h) + " - 1) + 1 : " + string(h) + " * block_size , :), ... "; execstr(s1); end split_time=toc() printf("Search for duplicates............\n"); //tic() for i = 1 : (number_of_blocks + k) printf("block ref %d/%d ...\n",i,(number_of_blocks+k)); tic() for j = 1 : (number_of_blocks + k) s2 = "... if (j == i) then , ... [nb,loc] = members(splited" + string(i) + ",splited" + string(j) + ", ""rows"",""shuffle"",""last"") , ... splited" + string(j) + "(loc(find(nb >= 2)),:) = [] , ... else , ... [nb,loc] = members(splited" + string(i) + ",splited" + string(j) + ", ""rows"",""shuffle"") , ... splited" + string(j) + "(loc(find(nb >= 1)),:) = [] , ... end , ... "; execstr(s2); end time=toc(); printf("..... time on this loop= %g\n",time) end //time = toc() //tic() A_final = []; for i = 1 : (number_of_blocks + k) s3 = " ... A_final = [A_final ; splited" + string(i) + "], ... "; execstr(s3); end //time2 = toc() [nl2,nc2] = size(A_final) ################################################ nc = 4. nl = 176085. A splitted into blocks............ split_time = 0.032 Search for duplicates............ block ref 1/177 ... ...... time on this loop= 36.535 block ref 2/177 ... ...... time on this loop= 35.833 block ref 3/177 ... .. block ref 10/177 ... ...... time on this loop= 30.591 block ref 11/177 ... ...... time on this loop= 30.03 block ref 12/177 ... ...... time on this loop= 29.39 block ref 13/177 ... ...... time on this loop= 28.782 block ref 14/177 ... ...... time on this loop= 28.143 block ref 15/177 ... .. ...... time on this loop= 19.905 block ref 29/177 ... ...... time on this loop= 19.5 block ref 30/177 ... ...... time on this loop= 19.079 block ref 31/177 ... ...... time on this loop= 18.658 block ref 32/177 ... ...... time on this loop= 18.252 block ref 33/177 ... ...... time on this loop= 17.831 block ref 34/177 ... ...... time on this loop= 17.456 .. ...... time on this loop= 12.511 block ref 47/177 ... ...... time on this loop= 12.075 block ref 48/177 ... ...... time on this loop= 11.669 .. ...... time on this loop= 0.032 block ref 58/177 ... .. ... block ref 177/177 ... ...... time on this loop= 0.032 nc2 = 4. nl2 = 50310. --- Ce courrier ?lectronique ne contient aucun virus ou logiciel malveillant parce que la protection avast! Antivirus est active. http://www.avast.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sat Oct 26 15:18:42 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 26 Oct 2013 15:18:42 +0200 Subject: [Scilab-users] Advice from Scilab community (including parallelization) In-Reply-To: <001201ced22a$e1e6c5e0$a5b451a0$@carrico@free.fr> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B11C@exchsrv.auxitrol.ad> <5266EACC.90100@free.fr> <55A12CBC06A8C9459DCE0BBEF8122FDC0BF9A9DC@exchsrv.auxitrol.ad> <000601ced1ca$c8834c50$5989e4f0$@carrico@free.fr> <001201ced22a$e1e6c5e0$a5b451a0$@carrico@free.fr> Message-ID: <526BC132.1000908@free.fr> Le 26/10/2013 11:08, Paul Carrico a ?crit : > > printf("Search for duplicates............\n"); > > ///tic()/ > > fori = 1 : (number_of_blocks + k) > > printf("block ref %d/%d ...\n",i,(number_of_blocks+k)); > > _tic_() > > for j = 1 : (number_of_blocks + k) > > s2 = "... > > if (j == i) then , ... > > [nb,loc] = members(splited"+ string(i) + ",splited" + > string(j) + ", ""rows"",""shuffle"",""last"") , ... > > splited"+ string(j) + "(loc(find(nb >= 2)),:) = [] , ... > > else , ... > > [nb,loc] = members(splited"+ string(i) + ",splited" + > string(j) + ", ""rows"",""shuffle"") , ... > > splited"+ string(j) + "(loc(find(nb >= 1)),:) = [] , ... > > end , ... > > "; > > execstr(s2); > > end > > time=_toc_(); > > printf("..... time on this loop= %g\n",time) > > end > > ///time = toc()/ > Removing lines duplicated through permutations may be done without members() but using the same remark & strategy: // generating an example m = grand(10,2,"uin",0,2) // for each line, sorting the columns : ms = gsort(m,"c","i") // Then applying unique() row-wise: [mu, k] = unique(ms,"r") // Finally picking the related rows in the original matrix: m(k,:) -->m = grand(10,2,"uin",0,2) m = 0. 1. 2. 2. 2. 0. 2. 1. 1. 1. 0. 0. 1. 1. 1. 2. 1. 0. 0. 2. -->ms = gsort(m,"c","i") ms = 0. 1. 2. 2. 0. 2. 1. 2. 1. 1. 0. 0. 1. 1. 1. 2. 0. 1. 0. 2. -->[mu, k] = unique(ms,"r") k = 6. 9. 3. 5. 8. 2. mu = 0. 0. 0. 1. 0. 2. 1. 1. 1. 2. 2. 2. -->m(k,:) ans = 0. 0. 1. 0. 2. 0. 1. 1. 1. 2. 2. 2. -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Sat Oct 26 19:56:04 2013 From: paul.carrico at free.fr (Paul Carrico) Date: Sat, 26 Oct 2013 19:56:04 +0200 Subject: [Scilab-users] Advice from Scilab community (including parallelization) In-Reply-To: <526BC132.1000908@free.fr> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0BA9B11C@exchsrv.auxitrol.ad> <5266EACC.90100@free.fr> <55A12CBC06A8C9459DCE0BBEF8122FDC0BF9A9DC@exchsrv.auxitrol.ad> <000601ced1ca$c8834c50$5989e4f0$@carrico@free.fr> <001201ced22a$e1e6c5e0$a5b451a0$@carrico@free.fr> <526BC132.1000908@free.fr> Message-ID: <000001ced274$a4d16a30$ee743e90$@carrico@free.fr> Thanks Samuel brillant Much less complicated than I developed . And much much faster !!!!! paul De : users [mailto:users-bounces at lists.scilab.org] De la part de Samuel Gougeon Envoy? : samedi 26 octobre 2013 15:19 ? : International users mailing list for Scilab. Objet : Re: [Scilab-users] Advice from Scilab community (including parallelization) Le 26/10/2013 11:08, Paul Carrico a ?crit : printf("Search for duplicates............\n"); //tic() for i = 1 : (number_of_blocks + k) printf("block ref %d/%d ...\n",i,(number_of_blocks+k)); tic() for j = 1 : (number_of_blocks + k) s2 = "... if (j == i) then , ... [nb,loc] = members(splited" + string(i) + ",splited" + string(j) + ", ""rows"",""shuffle"",""last"") , ... splited" + string(j) + "(loc(find(nb >= 2)),:) = [] , .... else , ... [nb,loc] = members(splited" + string(i) + ",splited" + string(j) + ", ""rows"",""shuffle"") , ... splited" + string(j) + "(loc(find(nb >= 1)),:) = [] , .... end , ... "; execstr(s2); end time=toc(); printf("..... time on this loop= %g\n",time) end //time = toc() Removing lines duplicated through permutations may be done without members() but using the same remark & strategy: // generating an example m = grand(10,2,"uin",0,2) // for each line, sorting the columns : ms = gsort(m,"c","i") // Then applying unique() row-wise: [mu, k] = unique(ms,"r") // Finally picking the related rows in the original matrix: m(k,:) -->m = grand(10,2,"uin",0,2) m = 0. 1. 2. 2. 2. 0. 2. 1. 1. 1. 0. 0. 1. 1. 1. 2. 1. 0. 0. 2. -->ms = gsort(m,"c","i") ms = 0. 1. 2. 2. 0. 2. 1. 2. 1. 1. 0. 0. 1. 1. 1. 2. 0. 1. 0. 2. -->[mu, k] = unique(ms,"r") k = 6. 9. 3. 5. 8. 2. mu = 0. 0. 0. 1. 0. 2. 1. 1. 1. 2. 2. 2. -->m(k,:) ans = 0. 0. 1. 0. 2. 0. 1. 1. 1. 2. 2. 2. --- Ce courrier ?lectronique ne contient aucun virus ou logiciel malveillant parce que la protection avast! Antivirus est active. http://www.avast.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From denis.crete at thalesgroup.com Sun Oct 27 11:59:07 2013 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Sun, 27 Oct 2013 11:59:07 +0100 Subject: [Scilab-users] Batch to export a graph to PNG automatically In-Reply-To: <526B13DA.2030803@scilab-enterprises.com> References: <2775114b5ee24a1ebc29a6a4afd8ef52@DBXPR03MB189.eurprd03.prod.outlook.com> <526B13DA.2030803@scilab-enterprises.com> Message-ID: <5880_1382871551_526CF1FF_5880_16614_1_8F1D40232A0E68409E3FC23A30C326620168D2F2C2A6@THSONEA01CMS04P.one.grp> Hello, I tried the code given in example for the function "driver", on a PC with Windows XP and Scilab 5.5.0: the report has a warning message given below. -->current_driver = driver() current_driver = Rec -->driver("Pos") ans = Rec -->xinit(TMPDIR+"/foo.ps") -->plot2d() -->xend() Warning !!! Scilab has found a critical error (Unknown exception) with "xend" function. Save your data and restart Scilab. !--error 1 Affectation erron?e. Now, I issue the "driver" command twice: -->current_driver = driver() current_driver = Rec -->driver("Pos") ans = Rec -->driver("Pos") ans = Pos -->xinit(TMPDIR+"/foo.ps") -->plot2d() -->xend() and I get the graph in ps format correctly in TMPDIR. Is this to be correlated to the behaviour that I observed (only with Scilab) when I try to switch between windows with Alt+Tab (I have to repeat the command twice) ? Should we consider this a bug ? Best regards Denis De : users [mailto:users-bounces at lists.scilab.org] De la part de Sylvestre Ledru Envoy? : samedi 26 octobre 2013 02:59 ? : users at lists.scilab.org Objet : Re: [Scilab-users] Batch to export a graph to PNG automatically On 26/10/2013 01:45, Lecoeur, Nora wrote: Hello, What would be the program to write if I want to export a graph to PNG automatically with scilab ? driver & xinit are probably what you are looking for: http://help.scilab.org/docs/5.4.1/en_US/driver.html http://help.scilab.org/docs/5.4.1/en_US/xinit.html Sylvestre -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sun Oct 27 13:06:26 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 27 Oct 2013 13:06:26 +0100 Subject: [Scilab-users] Batch to export a graph to PNG automatically In-Reply-To: <5880_1382871551_526CF1FF_5880_16614_1_8F1D40232A0E68409E3FC23A30C326620168D2F2C2A6@THSONEA01CMS04P.one.grp> References: <2775114b5ee24a1ebc29a6a4afd8ef52@DBXPR03MB189.eurprd03.prod.outlook.com> <526B13DA.2030803@scilab-enterprises.com> <5880_1382871551_526CF1FF_5880_16614_1_8F1D40232A0E68409E3FC23A30C326620168D2F2C2A6@THSONEA01CMS04P.one.grp> Message-ID: <526D01C2.9030002@free.fr> Hello Denis, I am using Scilab 5.5.0-b1 on win_x64. This error does not occur with it. The PS file is well generated (but the figure is at the bottom of the page). Regards Samuel Le 27/10/2013 11:59, CRETE Denis a ?crit : > > Hello, > > I tried the code given in example for the function "driver", on a PC > with Windows XP and Scilab 5.5.0: the report has a warning message > given below. > > -->current_driver = driver() > > current_driver = > > Rec > > -->driver("Pos") > > ans = > > Rec > > -->xinit(TMPDIR+"/foo.ps") > > -->plot2d() > > -->xend() > > Warning !!! > > Scilab has found a critical error (Unknown exception) > > with "xend" function. > > Save your data and restart Scilab. > > !--error 1 > > Affectation erron?e. > > Now, I issue the "driver" command twice: > > -->current_driver = driver() > > current_driver = > > Rec > > -->driver("Pos") > > ans = > > Rec > > -->driver("Pos") > > ans = > > Pos > > -->xinit(TMPDIR+"/foo.ps") > > -->plot2d() > > -->xend() > > and I get the graph in ps format correctly in TMPDIR. Is this to be > correlated to the behaviour that I observed (only with Scilab) when I > try to switch between windows with Alt+Tab (I have to repeat the > command twice) ? Should we consider this a bug ? > > Best regards > > Denis > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rei.listas at yahoo.com Sun Oct 27 22:33:50 2013 From: rei.listas at yahoo.com (Reinaldo) Date: Sun, 27 Oct 2013 14:33:50 -0700 (PDT) Subject: [Scilab-users] I find problem to run "Scilab demonstration examples" on Scilab 5.4.1 over Mac OS X Mavericks. Message-ID: <1382909630.52310.YahooMailNeo@web121605.mail.ne1.yahoo.com> Hi Scilab users, I find problem to run "Scilab demonstration examples" on Scilab 5.4.1 over Mac OS X Mavericks. I had the same problem when I had Mac OS X 10.8.x. I have the newest Xcode 5.0.1 for Mac OS X Mavericks. For example, I had problem to run Xcos->Electrical system-> RLC circuit. The result is: --------------------------------------------\ ?Main Modelica : /private/var/folders/2f/h_gm23n545z04r1nxczf1jq80000gn/T/SCI_TMP_2701_29yEL1/RLC_Modelica_im.mo ?Flat Modelica : /private/var/folders/2f/h_gm23n545z04r1nxczf1jq80000gn/T/SCI_TMP_2701_29yEL1/RLC_Modelica_imf.mo ?Simulation C code :/private/var/folders/2f/h_gm23n545z04r1nxczf1jq80000gn/T/SCI_TMP_2701_29yEL1/RLC_Modelica_im.c ? ?Gerar um arquivo de carga ? ?Gerar um Makefile ? ?ilib_gen_Make: Copia os arquivos de compila??o (Makefile*, libtool...) para TMPDIR ? ?ilib_gen_Make: Copia RLC_Modelica_im.c para TMPDIR ? ?ilib_gen_Make: Configurar: Gerar Makefile. ? ?ilib_gen_Make: Modifica??o do Makefile em TMPDIR. ? ?Executando o Makefile ? !sorry compiling problem ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?! ! ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ! ! Function not defines por the data types of arguments ? ?! ! ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ! ! ?verify the arguments or define the function %s_grep for overload. ?! c_pass1: build the modelica meta-block failed? ? ?xcos_simulate: Error during updating the parameter blocks. ?? Thank you in advance. All best, Reinaldo. -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.bignier at scilab-enterprises.com Mon Oct 28 12:19:47 2013 From: paul.bignier at scilab-enterprises.com (Paul BIGNIER) Date: Mon, 28 Oct 2013 12:19:47 +0100 Subject: [Scilab-users] I find problem to run "Scilab demonstration examples" on Scilab 5.4.1 over Mac OS X Mavericks. In-Reply-To: <1382909630.52310.YahooMailNeo@web121605.mail.ne1.yahoo.com> References: <1382909630.52310.YahooMailNeo@web121605.mail.ne1.yahoo.com> Message-ID: <526E4853.4090206@scilab-enterprises.com> Hi Reinaldo, Could you please test the Xcos -> Modelica, Xcos -> Electrical Systems and Xcos -> Control Systems demos and tell us which ones work and which ones don't? We would be more able to target your problem then. Thank you, Paul. On 10/27/2013 10:33 PM, Reinaldo wrote: > Hi Scilab users, > > I find problem to run "Scilab demonstration examples" on Scilab 5.4.1 > over Mac OS X Mavericks. I had the same problem > when I had Mac OS X 10.8.x. > > I have the newest Xcode 5.0.1 for Mac OS X Mavericks. > > For example, I had problem to run Xcos->Electrical system-> RLC circuit. > > The result is: > > --------------------------------------------\ > Main Modelica : > /private/var/folders/2f/h_gm23n545z04r1nxczf1jq80000gn/T/SCI_TMP_2701_29yEL1/RLC_Modelica_im.mo > > Flat Modelica : > /private/var/folders/2f/h_gm23n545z04r1nxczf1jq80000gn/T/SCI_TMP_2701_29yEL1/RLC_Modelica_imf.mo > Simulation C code > :/private/var/folders/2f/h_gm23n545z04r1nxczf1jq80000gn/T/SCI_TMP_2701_29yEL1/RLC_Modelica_im.c > Gerar um arquivo de carga > Gerar um Makefile > ilib_gen_Make: Copia os arquivos de compila??o (Makefile*, > libtool...) para TMPDIR > ilib_gen_Make: Copia RLC_Modelica_im.c para TMPDIR > ilib_gen_Make: Configurar: Gerar Makefile. > ilib_gen_Make: Modifica??o do Makefile em TMPDIR. > Executando o Makefile > !sorry compiling problem > ! > ! ! > ! Function not defines por the data types of arguments ! > ! ! > ! verify the arguments or define the function %s_grep for overload. ! > c_pass1: build the modelica meta-block failed > xcos_simulate: Error during updating the parameter blocks. > > Thank you in advance. > > All best, > Reinaldo. > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Paul BIGNIER Scilab Engineer & Xcos Developer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.69 http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From communication at scilab-enterprises.com Mon Oct 28 12:21:25 2013 From: communication at scilab-enterprises.com (Scilab Communications) Date: Mon, 28 Oct 2013 12:21:25 +0100 Subject: [Scilab-users] Scilab under Mac OS X 10.9 Mavericks Message-ID: <526E48B5.5000606@scilab-enterprises.com> Dear Scilab Users, Following the release of Mac OS X 10.9 Mavericks operating system and until the release of Scilab 5.5.0 final version, Scilab users working under Mac OS X 10.9 Mavericks can use: * Scilab 5.4.1 (a warning message is displayed indicating that this version is not supported but Scilab starts and is functional). Download is available at http://www.scilab.org/download/5.4. 1 * Nighlty Buildsversions of Scilab. Download available at http://www.scilab.org/development/nightly_builds/master Scilab 5.5.0 beta 1 does not work under this operating system. These versions are provisionally recommended pending the release of Scilab 5.5.0 final version because all features could not have been tested under this environment. The list of open bugs on Scilab and Mac OS X 10.9 is available at http://bugzilla.scilab.org/buglist.cgi?list_id=23260&op_sys=Mac%20OS%20X%2010.9&query_format=advanced&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED Best Regards -- Communication Department, Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles (France) http://www.scilab-enterprises.com - http://www.scilab.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From Nora.Lecoeur at rhul.ac.uk Mon Oct 28 13:21:14 2013 From: Nora.Lecoeur at rhul.ac.uk (eleo) Date: Mon, 28 Oct 2013 05:21:14 -0700 (PDT) Subject: [Scilab-users] Batch to export a graph to PNG automatically In-Reply-To: <2775114b5ee24a1ebc29a6a4afd8ef52@DBXPR03MB189.eurprd03.prod.outlook.com> References: <2775114b5ee24a1ebc29a6a4afd8ef52@DBXPR03MB189.eurprd03.prod.outlook.com> Message-ID: <1382962874462-4027738.post@n3.nabble.com> Hello, I have written the program attached below in order to plot and export a simple graph (y=cos(x)) in the "PNG" Format. current_driver = driver() driver("PNG") xinit(TMPDIR+"/file.png") x=-10:0.25:10 y=cos(x) plot2d(x,y,2) xend(); driver(current_driver) I have obtained the following message: xend(); !--error 999 xend: An error occurred: Unable to create export file, permission denied. at line 7 of exec file called by : exec(%fileToExec); disp(msprintf(gettext("Execution done.\n while executing a callback If I change the path where I want the file to be written (for instance I want to write it in Document), I obtain the same message. How can I modify this program in order to export the file in PNG Format ok ? Thank you for your help. Regards, Eleo -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Batch-to-export-a-graph-to-PNG-automatically-tp4027719p4027738.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Mon Oct 28 13:38:07 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 28 Oct 2013 13:38:07 +0100 Subject: [Scilab-users] Batch to export a graph to PNG automatically In-Reply-To: <1382962874462-4027738.post@n3.nabble.com> References: <2775114b5ee24a1ebc29a6a4afd8ef52@DBXPR03MB189.eurprd03.prod.outlook.com> <1382962874462-4027738.post@n3.nabble.com> Message-ID: <526E5AAF.1060203@free.fr> Hello, In windows mode, have you tried with xs2png() in the TMPDIR or elsewhere? Samuel From NHu at ecpi.edu Mon Oct 28 13:28:27 2013 From: NHu at ecpi.edu (Hu, Ning (Virginia Beach)) Date: Mon, 28 Oct 2013 12:28:27 +0000 Subject: [Scilab-users] Batch to export a graph to PNG automatically In-Reply-To: <1382962874462-4027738.post@n3.nabble.com> References: <2775114b5ee24a1ebc29a6a4afd8ef52@DBXPR03MB189.eurprd03.prod.outlook.com> <1382962874462-4027738.post@n3.nabble.com> Message-ID: <15AB2799C0D58B49A4A55E745BE246E621DC55A1@adminmbx2.ecpivab.edu> Eleo: The following is my code for exporting the plot to different files. It works for me. //plot two functions in one window function f = myquadratic ( x ) f = x^2 endfunction function f = myquadratic2 ( x ) f = 2 * x^2 endfunction xdata = linspace ( 1 , 10 , 50 ); ydata = myquadratic ( xdata ); plot ( xdata , ydata , "v-r") ydata2 = myquadratic2 ( xdata ); plot ( xdata , ydata2 , "o-m" ) xtitle ( "My title " , "X axis " , "Y axis " ); legend ( "x^2", "2x^2"); xs2png ( 0, "C:\Math Software\Scilab Scripts\Graph Plots\Plot2Functions.png" ); xs2jpg ( 0, "C:\Math Software\Scilab Scripts\Graph Plots\Plot2Functions.jpg" ); xs2pdf ( 0, "C:\Math Software\Scilab Scripts\Graph Plots\Plot2Functions"); Ning Hu, D.Sc. EET Faculty ECPI University | 5555 Greenwich Road | Virginia Beach, VA 23462 (Phone) 757-671-7171 x55499 | NHu at ecpi.edu | www.ecpi.edu -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of eleo Sent: Monday, October 28, 2013 8:21 AM To: users at lists.scilab.org Subject: Re: [Scilab-users] Batch to export a graph to PNG automatically Hello, I have written the program attached below in order to plot and export a simple graph (y=cos(x)) in the "PNG" Format. current_driver = driver() driver("PNG") xinit(TMPDIR+"/file.png") x=-10:0.25:10 y=cos(x) plot2d(x,y,2) xend(); driver(current_driver) I have obtained the following message: xend(); !--error 999 xend: An error occurred: Unable to create export file, permission denied. at line 7 of exec file called by : exec(%fileToExec); disp(msprintf(gettext("Execution done.\n while executing a callback If I change the path where I want the file to be written (for instance I want to write it in Document), I obtain the same message. How can I modify this program in order to export the file in PNG Format ok ? Thank you for your help. Regards, Eleo -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Batch-to-export-a-graph-to-PNG-automatically-tp4027719p4027738.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 rei.listas at yahoo.com Mon Oct 28 19:09:42 2013 From: rei.listas at yahoo.com (Reinaldo) Date: Mon, 28 Oct 2013 11:09:42 -0700 (PDT) Subject: [Scilab-users] I find problem to run "Scilab demonstration examples" on Scilab 5.4.1 over Mac OS X Mavericks. In-Reply-To: <526E4853.4090206@scilab-enterprises.com> References: <1382909630.52310.YahooMailNeo@web121605.mail.ne1.yahoo.com> <526E4853.4090206@scilab-enterprises.com> Message-ID: <1382983782.53439.YahooMailNeo@web121603.mail.ne1.yahoo.com> Hi Paul, Examples don't work: Xcos->Modelica->(all examples) & Xcos->Electrical Systems->(all examples), and the error messages are the same which I reported before. Examples work: Xcos->Control Systems->(all examples) I would like to tell you that when I click to Scilab 5.4.1, appears the message: "This version of Scilab will probably fail on this system (10.9): Scilab requires 10.6.5 (Snow Leopard) or newer system". And then when I click to "Try anyway", appears new icon called "Scilab-bin". All best, Reinaldo. Em Segunda-feira, 28 de Outubro de 2013 9:19, Paul BIGNIER escreveu: Hi Reinaldo, Could you please test the Xcos -> Modelica, Xcos -> Electrical Systems and Xcos -> Control Systems demos and tell us which ones work and which ones don't? We would be more able to target your problem then. Thank you, Paul. On 10/27/2013 10:33 PM, Reinaldo wrote: Hi Scilab users, > > >I find problem to run "Scilab demonstration examples" on Scilab 5.4.1 over Mac OS X Mavericks. I had the same problem > >when I had Mac OS X 10.8.x. > > >I have the newest Xcode 5.0.1 for Mac OS X Mavericks. > > >For example, I had problem to run Xcos->Electrical system-> RLC circuit. > > >The result is: > > >--------------------------------------------\ >?Main Modelica : /private/var/folders/2f/h_gm23n545z04r1nxczf1jq80000gn/T/SCI_TMP_2701_29yEL1/RLC_Modelica_im.mo > > >?Flat Modelica : /private/var/folders/2f/h_gm23n545z04r1nxczf1jq80000gn/T/SCI_TMP_2701_29yEL1/RLC_Modelica_imf.mo >?Simulation C code :/private/var/folders/2f/h_gm23n545z04r1nxczf1jq80000gn/T/SCI_TMP_2701_29yEL1/RLC_Modelica_im.c >? ?Gerar um arquivo de carga >? ?Gerar um Makefile >? ?ilib_gen_Make: Copia os arquivos de compila??o (Makefile*, libtool...) para TMPDIR >? ?ilib_gen_Make: Copia RLC_Modelica_im.c para TMPDIR >? ?ilib_gen_Make: Configurar: Gerar Makefile. >? ?ilib_gen_Make: Modifica??o do Makefile em TMPDIR. >? ?Executando o Makefile >? >!sorry compiling problem ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?! >! ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ! >! Function not defines por the data types of arguments ? ?! >! ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ! >! ?verify the arguments or define the function %s_grep for overload. ?! >c_pass1: build the modelica meta-block failed? >? >?xcos_simulate: Error during updating the parameter blocks. ?? > > >Thank you in advance. > > >All best, >Reinaldo. > > >_______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -- Paul BIGNIER Scilab Engineer & Xcos Developer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.69 http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sandro.fisica at gmail.com Mon Oct 28 13:03:38 2013 From: sandro.fisica at gmail.com (Sandro De Souza) Date: Mon, 28 Oct 2013 05:03:38 -0700 (PDT) Subject: [Scilab-users] Fortran Compilation (ilib_for_link) In-Reply-To: References: Message-ID: <1382961818843-4027737.post@n3.nabble.com> My english not good. :( ================== Delete: /usr/local/bin/gfortran Delete: /Applications/scilab-5.4.1.app/Contents/MacOS/share/scilab/modules/dynamic_link/src/scripts/Makefile.orig create link "gfortran" in /usr/bin: ln -s /usr/local/gfortran/bin/gfortran restart scilab ================== ps: 1) Scilab find (by default) fortran (gfortran) in /usr/bin (but not in /usr/local/bin). If you want check, just look /Applications/scilab-5.4.1.app/Contents/MacOS/share/scilab/modules/dynamic_link/src/scripts/config.log 2) Scilab create new Makefile, and put the gfortran there. 3) My fortran is in /usr/local/gfortran/bin/gfortran Sandro. -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Fortran-Compilation-ilib-for-link-tp4025899p4027737.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From florian.wuerflinger at students.fh-wels.at Wed Oct 30 09:40:28 2013 From: florian.wuerflinger at students.fh-wels.at (=?UTF-8?Q?Florian_W=C3=BCrflinger?=) Date: Wed, 30 Oct 2013 01:40:28 -0700 (PDT) Subject: [Scilab-users] Number of plots limited in Xcos scope? In-Reply-To: <5267D96D.7030000@scilab-enterprises.com> References: <1382532975200-4027686.post@n3.nabble.com> <5267D96D.7030000@scilab-enterprises.com> Message-ID: <1383122428514-4027747.post@n3.nabble.com> Hello, Thanks for your prompt reply. The Inverted Pendulum demo shows many signals in one diagram, but I want to display only one signal per diagram, but more than four digrams in one figure. I am using no MUX because there is an input for each signal. The problem is that only the first four signals are displayed. Thanks in advance Florian -- View this message in context: http://mailinglists.scilab.org/Number-of-plots-limited-in-Xcos-scope-tp4027686p4027747.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From paul.bignier at scilab-enterprises.com Wed Oct 30 13:36:45 2013 From: paul.bignier at scilab-enterprises.com (Paul BIGNIER) Date: Wed, 30 Oct 2013 13:36:45 +0100 Subject: [Scilab-users] Number of plots limited in Xcos scope? In-Reply-To: <1383122428514-4027747.post@n3.nabble.com> References: <1382532975200-4027686.post@n3.nabble.com> <5267D96D.7030000@scilab-enterprises.com> <1383122428514-4027747.post@n3.nabble.com> Message-ID: <5270FD5D.1050906@scilab-enterprises.com> Hi Florian, So you want an ouput that looks like a subplot ? If it is the case, did you try using a CMSCOPE block? If this doesn't work, could you please provide us with your diagram? Have a good day, Paul On 10/30/2013 09:40 AM, Florian W?rflinger wrote: > Hello, > > Thanks for your prompt reply. > > The Inverted Pendulum demo shows many signals in one diagram, but I want to > display only one signal per diagram, but more than four digrams in one > figure. I am using no MUX because there is an input for each signal. The > problem is that only the first four signals are displayed. > > Thanks in advance > > Florian > > > > > -- > View this message in context: http://mailinglists.scilab.org/Number-of-plots-limited-in-Xcos-scope-tp4027686p4027747.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 -- Paul BIGNIER Scilab Engineer & Xcos Developer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.69 http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From florian.wuerflinger at students.fh-wels.at Wed Oct 30 15:10:55 2013 From: florian.wuerflinger at students.fh-wels.at (=?UTF-8?Q?Florian_W=C3=BCrflinger?=) Date: Wed, 30 Oct 2013 07:10:55 -0700 (PDT) Subject: [Scilab-users] Number of plots limited in Xcos scope? In-Reply-To: <5270FD5D.1050906@scilab-enterprises.com> References: <1382532975200-4027686.post@n3.nabble.com> <5267D96D.7030000@scilab-enterprises.com> <1383122428514-4027747.post@n3.nabble.com> <5270FD5D.1050906@scilab-enterprises.com> Message-ID: <1383142255688-4027749.post@n3.nabble.com> Hello, Yes, it should look like a subplot. I am using a CMSCOPE. The image shows the Scope with no signal in the fifth subplot. The Xcos diagram: measTwoMassOsc_ParIdentRLS.zcos Thanks! Florian -- View this message in context: http://mailinglists.scilab.org/Number-of-plots-limited-in-Xcos-scope-tp4027686p4027749.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From alexander_weinig at yahoo.de Thu Oct 31 16:53:57 2013 From: alexander_weinig at yahoo.de (Alexander Weinig) Date: Thu, 31 Oct 2013 15:53:57 +0000 (GMT) Subject: [Scilab-users] Scilab Xcos Datatips Message-ID: <1383234837.91822.YahooMailNeo@web171405.mail.ir2.yahoo.com> Dear Ms / Miss, i have a question about using the datatips in Scilab's Xcos. I tried to simulate a PID-Controller and i want to use some datatips. My Problem is, that i need more decimal places for the Y-Axis. The problem is only if the datatip is over "1". It would be most helpful if there is a possibility to show the position of de datatip in a way like this for example: "Y: 1.05" or "Y: 1.005"? it only shows "Y: 1.1" (not very) For a better understanding look at the attechment. Yours sincerely, Alexander Weinig alexander_weinig at yahoo.de -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PID.JPG Type: image/jpeg Size: 98683 bytes Desc: not available URL: