From krys at polarlights.net Mon May 2 12:56:01 2011 From: krys at polarlights.net (krys at polarlights.net) Date: Mon, 2 May 2011 06:56:01 -0400 (EDT) Subject: Formula simplification Message-ID: <1304333761.24934901@mail.polarlights.net> Hi, I'm just a beginner but I'm searching a way to "simplify" and optimize the following formula with SciLab. dv10 = v1-v0 dv20 = v2-v0 dv20 = v2-v1 f = dv20 * (b0 * (n1 - n0) - b2 * (n2 - n1)) + dv21 * (b1 * (n1 - n0) + b2 * (n2 - n0)) + dv10 * (b0 * (n2 - n0) - b1 * (n2 - n1)) I'm searching for a "compact" form... can you tell if it is possible to do ? Thanks From tiraduvidascefet at yahoo.com Mon May 2 16:05:48 2011 From: tiraduvidascefet at yahoo.com (Prof. Dr. Reinaldo Golmia Dante) Date: Mon, 2 May 2011 07:05:48 -0700 (PDT) Subject: Hybrid Automata Module Message-ID: <263303.84265.qm@web45504.mail.sp1.yahoo.com> Hi Scilab users, ? I downloaded Scilab 5.3.1 64 bits and installed it. ? I do not know if it is necessary in this Scilab version to install Hybrid Automata Module. However, I installed it through Applications -> Module ATOMS and when I started Scilab appeared the following message: ? Start Hybrid Automata Module for Scilab/Xcos ?Load macros Warning : redefining function: DSUPER????????????????? . Use funcprot(0) to avoid this message ?Load gateways ?Load help ?Load demos ? Is it correct to appear that "warning" and "redefining function DSUPER" ? Or is it better drop it ? ? Thank you. ? All best, Reinaldo. -------------- next part -------------- An HTML attachment was scrubbed... URL: From clement.david at scilab.org Mon May 2 16:14:36 2011 From: clement.david at scilab.org (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 02 May 2011 16:14:36 +0200 Subject: [scilab-Users] Hybrid Automata Module In-Reply-To: <263303.84265.qm@web45504.mail.sp1.yahoo.com> References: <263303.84265.qm@web45504.mail.sp1.yahoo.com> Message-ID: <1304345676.3330.5.camel@pinarellu.inria.fr> Hello, For the use of standard functionnality of Xcos, please do not install external modules. Some of them improve Xcos features by hidding them but problems would be harder to find. For exemple "Hybrid Automata Module", redefine features of a masked super-blocks and thus disable this standard feature. Regards, -- Cl?ment DAVID Le lundi 02 mai 2011 ? 07:05 -0700, Prof. Dr. Reinaldo Golmia Dante a ?crit : > Hi Scilab users, > > I downloaded Scilab 5.3.1 64 bits and installed it. > > I do not know if it is necessary in this Scilab version to install > Hybrid Automata Module. > However, I installed it through Applications -> Module ATOMS and when > I started > Scilab appeared the following message: > > Start Hybrid Automata Module for Scilab/Xcos > Load macros > Warning : redefining function: DSUPER . Use > funcprot(0) to avoid this message > Load gateways > Load help > Load demos > > > Is it correct to appear that "warning" and "redefining function > DSUPER" ? > Or is it better drop it ? > > Thank you. > > All best, > Reinaldo. -- Cl?ment David From tiraduvidascefet at yahoo.com Mon May 2 16:36:13 2011 From: tiraduvidascefet at yahoo.com (Prof. Dr. Reinaldo Golmia Dante) Date: Mon, 2 May 2011 07:36:13 -0700 (PDT) Subject: [scilab-Users] Hybrid Automata Module In-Reply-To: <1304345676.3330.5.camel@pinarellu.inria.fr> References: <263303.84265.qm@web45504.mail.sp1.yahoo.com> <1304345676.3330.5.camel@pinarellu.inria.fr> Message-ID: <510575.381.qm@web45504.mail.sp1.yahoo.com> Hello Clem?nt, When I access Applications->Module ATOMS, which of them could I download ? I do not know if those modules disable or not my Scilab 5.3.1. I suggest that?the description of those?modules could specify?the exact Scilab?version (e.g., upper 5.3.1) instead of showing the?date of its development. So, it could be easier to Scilab user decides if it is convenient to install it or not. Thank you. RGD From: Cl?ment David To: users at lists.scilab.org Sent: Monday, May 2, 2011 11:14 AM Subject: Re: [scilab-Users] Hybrid Automata Module Hello, For the use of standard functionnality of Xcos, please do not install external modules. Some of them improve Xcos features by hidding them but problems would be harder to find. For exemple "Hybrid Automata Module", redefine features of a masked super-blocks and thus disable this standard feature. Regards, -- Cl?ment DAVID Le lundi 02 mai 2011 ? 07:05 -0700, Prof. Dr. Reinaldo Golmia Dante a ?crit : > Hi Scilab users, >? > I downloaded Scilab 5.3.1 64 bits and installed it. >? > I do not know if it is necessary in this Scilab version to install > Hybrid Automata Module. > However, I installed it through Applications -> Module ATOMS and when > I started > Scilab appeared the following message: >? > Start Hybrid Automata Module for Scilab/Xcos >? Load macros > Warning : redefining function: DSUPER? ? ? ? ? ? ? ? ? . Use > funcprot(0) to avoid this message >? Load gateways >? Load help >? Load demos > >? > Is it correct to appear that "warning" and "redefining function > DSUPER" ? > Or is it better drop it ? >? > Thank you. >? > All best, > Reinaldo. -- Cl?ment David -------------- next part -------------- An HTML attachment was scrubbed... URL: From Angel.Rodriguez at inegi.org.mx Mon May 2 16:37:13 2011 From: Angel.Rodriguez at inegi.org.mx (RODRIGUEZ SILVA JOSE LUIS ANGEL) Date: Mon, 2 May 2011 09:37:13 -0500 Subject: =?iso-8859-1?Q?A_question_about_Erd=F6s-R=E9nyi_network?= Message-ID: <6BC99E262581EF4AA883FF3F47D0A188035222CB@CORREOAGS02.inegi.gob.mx> Good morning. I would like to know if anyone has a Scilab code about how to graph the Erd?s-R?nyi network, in 2D and 3D. Thank you very much. Best regards. Luis ?ngel (M?xico). -------------- next part -------------- An HTML attachment was scrubbed... URL: From clement.david at scilab.org Mon May 2 17:12:54 2011 From: clement.david at scilab.org (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 02 May 2011 17:12:54 +0200 Subject: [scilab-Users] Hybrid Automata Module In-Reply-To: <510575.381.qm@web45504.mail.sp1.yahoo.com> References: <263303.84265.qm@web45504.mail.sp1.yahoo.com> <1304345676.3330.5.camel@pinarellu.inria.fr> <510575.381.qm@web45504.mail.sp1.yahoo.com> Message-ID: <1304349174.3330.9.camel@pinarellu.inria.fr> Hello, On the details header, you have a version number for any atoms module. http://atoms.scilab.org/toolboxes/hyb_auto_module/0.2 Supported Scilab Versions >= 5.3 Quality informations can be left on any module by living a rating comment. Regards, -- Cl?ment Le lundi 02 mai 2011 ? 07:36 -0700, Prof. Dr. Reinaldo Golmia Dante a ?crit : > > > Hello Clem?nt, > > When I access Applications->Module ATOMS, which of them could I > download ? > > I do not know if those modules disable or not my Scilab 5.3.1. I > suggest that the description of those modules > could specify the exact Scilab version (e.g., upper 5.3.1) instead of > showing the date of its development. > So, it could be easier to Scilab user decides if it is convenient to > install it or not. > > Thank you. > RGD > > > From: Cl?ment David > To: users at lists.scilab.org > Sent: Monday, May 2, 2011 11:14 AM > Subject: Re: [scilab-Users] Hybrid Automata Module > > Hello, > > For the use of standard functionnality of Xcos, please do not install > external modules. Some of them improve Xcos features by hidding them > but > problems would be harder to find. > > For exemple "Hybrid Automata Module", redefine features of a masked > super-blocks and thus disable this standard feature. > > Regards, > > -- > Cl?ment DAVID > > Le lundi 02 mai 2011 ? 07:05 -0700, Prof. Dr. Reinaldo Golmia Dante a > ?crit : > > Hi Scilab users, > > > > I downloaded Scilab 5.3.1 64 bits and installed it. > > > > I do not know if it is necessary in this Scilab version to install > > Hybrid Automata Module. > > However, I installed it through Applications -> Module ATOMS and > when > > I started > > Scilab appeared the following message: > > > > Start Hybrid Automata Module for Scilab/Xcos > > Load macros > > Warning : redefining function: DSUPER . Use > > funcprot(0) to avoid this message > > Load gateways > > Load help > > Load demos > > > > > > Is it correct to appear that "warning" and "redefining function > > DSUPER" ? > > Or is it better drop it ? > > > > Thank you. > > > > All best, > > Reinaldo. > > -- > Cl?ment David > > > > -- Cl?ment David From tiraduvidascefet at yahoo.com Tue May 3 04:55:56 2011 From: tiraduvidascefet at yahoo.com (Prof. Dr. Reinaldo Golmia Dante) Date: Mon, 2 May 2011 19:55:56 -0700 (PDT) Subject: Problem: Gcc compiler / Scilab 5.3.1 version - 64 bits / MinGW / Scilab demonstrations Message-ID: <280394.65556.qm@web45510.mail.sp1.yahoo.com> ? Hi Scilab users, ? I uninstalled my Scilab 5.3 version 32 bits for?Win 7 Home Edition?to exchange to Scilab 5.3.1 version 64 bits, and I simply deleted the?gcc 32bits?folder to install gcc 64bits through?gcc-4.5.2-64.exe. ? I executed gcc-4.5.2-64.exe and loggoff and login again my notebook. ? Then, I tried to install MinGW typing: ? << -->atomsInstall('mingw') ?ans? = ? !mingw? 0.8-1? user? SCIHOME\atoms\mingw\0.8-1? I? ! ? >> ? I restarted Scilab again and appeared the message: << Startup execution: ? loading initial environment ? Mingw Compiler support for Scilab ?Load macros ?Load help ?>> ? It seems that works well until I try to run a Scilab demonstration: I select "RCL circuit" and click "START". The Scilab console appears the message: ? <<--------------------------------------------\ ?Main Modelica : C:\Users\Rei\AppData\Local\Temp\SCI_TMP_5572_\RLC_Modelica_im.mo ?Flat Modelica : C:\Users\Rei\AppData\Local\Temp\SCI_TMP_5572_\RLC_Modelica_imf.mo ?Simulation C code :C:\Users\Rei\AppData\Local\Temp\SCI_TMP_5572_\RLC_Modelica_im.c ?? Generate a loader file ?? Generate a Makefile ?? Running the Makefile ?? Compilation of RLC_Modelica_im.c ?? Building shared library (be patient) ? !------------- Link files --------------?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ! !???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ? ! !x86_64-w64-mingw32-gcc.exe --shared RLC_Modelica_im.o? -L"c:\users\rei\gcc\x86_64-w64-mingw32\lib" -LC:\Users\Rei\AppData\Roaming\Scilab\scilab-5.3.1\mingwlib_x64! !????? -lstdc++ -lgfortran -lMALLOC -lblasplus -lf2c -llapack -lscilab -lintersci -loutput_stream -ldynamic_link -linteger -loptimization_f -ljvm -lscilocalization! !????? -lintl -llinpack_f -lcall_scilab -ltime -lapi_scilab -lhashtable -lscilab_windows -lscicos -lscicos_blocks -lscicos_blocks_f -lscicos_f -o libRLC_Modelica_i! !???? m.dll? -Wl,--out-implib=libRLC_Modelica_im.a -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl?????????????????????????????????????????????????????????? ! !???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ? ! !C:\Users\Rei\AppData\Roaming\Scilab\scilab-5.3.1\mingwlib_x64/libMALLOC.a: file not recognized: File truncated??????????????????????????????????????????????????? ! !???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ? ! !collect2: ld returned 1 exit status?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ! !???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ? ! !make: *** [libRLC_Modelica_im.dll] Error 1??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ! ? !sorry compiling problem?????????????????????? ! !????????????????????????????????????????????? ! !ilib_compile: Error while executing Makelib.? ! >> ? I think that gcc?does not run properly.?When I installed it, appeared a message that gcc was installed successfully ! When I used Scilab 5.3.0 and gcc-4.5.1-32.exe, all Scilab demonstrations worked very well .. But now with Scilab 5.3.1 version - 64 bits and gcc-4.5.2-64.exe ...?they don't ... ? Isn't it enough to run gcc-4.5.2-64.exe?to install gcc compiler in my Windows?7 Home edition 64 bits ? How can I set up my Windows to recognize gcc compiler ? And if there is a file like "makefile", how can I find it in Win 7 ? ? Thank you in advance. ? All best, Reinaldo. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tiraduvidascefet at yahoo.com Tue May 3 05:45:17 2011 From: tiraduvidascefet at yahoo.com (Prof. Dr. Reinaldo Golmia Dante) Date: Mon, 2 May 2011 20:45:17 -0700 (PDT) Subject: Continue .. Problem: Gcc compiler / Scilab 5.3.1 version - 64 bits / MinGW / Scilab demonstrations Message-ID: <262554.87178.qm@web45504.mail.sp1.yahoo.com> ?Continue ... When I restarted Scilab 5.3.1 version 64 bits, it did not convert the libraries of MinGW. Appeared the messages that the conversion failed for each library lib*.a Then, I decided to uninstall that Scilab version and deleted the gcc 4-5-2. I installed Scilab 5.3.0 version 32 bits and installed gcc-4.5.1-32.exe again. Then I installed MinGW 0.6 instead of MinGW 0.8 and all libraries were converted, and Scilab demonstrations restarted to run again ... :-)) See the following messages: Startup execution: ? loading initial environment Mingw Compiler support for Scilab ?Load macros Converting Libraries. Build libblasplus.a Build liblapack.a Build libMALLOC.a Build libf2c.a Build liblapack.a Build libintersci.a Build liboutput_stream.a Build libdynamic_link.a Build libinteger.a Build liboptimization_f.a Build libjvm.a Build libscilocalization.a Build libintl.a Build liblinpack_f.a Build libcall_scilab.a Build libtime.a Build libapi_scilab.a Build libhashtable.a Build libscilab_windows.a Build libscicos.a Build libscicos_f.a Build libscicos_blocks.a Build libscicos_blocks_f.a Build libscilab.a ?Load help ?--------------------------------------------\ ?Main Modelica : C:\Users\Rei\AppData\Local\Temp\SCI_TMP_3744_\RLC_Modelica_im.mo ?Flat Modelica : C:\Users\Rei\AppData\Local\Temp\SCI_TMP_3744_\RLC_Modelica_imf.mo ?Simulation C code :C:\Users\Rei\AppData\Local\Temp\SCI_TMP_3744_\RLC_Modelica_im.c ?? Generate a loader file ?? Generate a Makefile ?? Running the Makefile ?? Compilation of RLC_Modelica_im.c ?? Building shared library (be patient) ?? Generate a cleaner file Shared archive loaded. Link done. All of above libraries failed when I used Scilab 5.3.1 64 bits, and gcc-4.5.2-64.exe and MinGW 0.8. Do you think that gcc 4.5-2 has problem ? All best, Reinaldo. PS: When I copied mingw_0.6 folder to paste inside the?Scilab 5.3.0 -> module folder, I typed: atomsInstall('mingw') instead of atomsInstall(['mingw','0.6']). I thought MinGW 0.8 was installed, but the mingw_0.6 folder was still inside module folder. I didn't understand how it could work ! -------------- next part -------------- An HTML attachment was scrubbed... URL: From allan.cornet at scilab.org Tue May 3 06:11:17 2011 From: allan.cornet at scilab.org (Allan CORNET) Date: Tue, 3 May 2011 06:11:17 +0200 Subject: [scilab-Users] Continue .. Problem: Gcc compiler / Scilab 5.3.1 version - 64 bits / MinGW / Scilab demonstrations In-Reply-To: <262554.87178.qm@web45504.mail.sp1.yahoo.com> References: <262554.87178.qm@web45504.mail.sp1.yahoo.com> Message-ID: <001b01cc0948$2673f290$735bd7b0$@scilab.org> Hi, Bug reported to me @ http://forge.scilab.org/index.php/p/MinGW-toolbox/issues/419 In fact, you need to remove converted .a (32 bit) because you switch to 64 bit. Remove directory SCIHOME/mingwlib Best regards Allan De : Prof. Dr. Reinaldo Golmia Dante [mailto:tiraduvidascefet at yahoo.com] Envoy? : mardi 3 mai 2011 05:45 ? : Lista Scilab Cc : Scilab Support Team Objet : [scilab-Users] Continue .. Problem: Gcc compiler / Scilab 5.3.1 version - 64 bits / MinGW / Scilab demonstrations Continue ... When I restarted Scilab 5.3.1 version 64 bits, it did not convert the libraries of MinGW. Appeared the messages that the conversion failed for each library lib*.a Then, I decided to uninstall that Scilab version and deleted the gcc 4-5-2. I installed Scilab 5.3.0 version 32 bits and installed gcc-4.5.1-32.exe again. Then I installed MinGW 0.6 instead of MinGW 0.8 and all libraries were converted, and Scilab demonstrations restarted to run again ... :-)) See the following messages: Startup execution: loading initial environment Mingw Compiler support for Scilab Load macros Converting Libraries. Build libblasplus.a Build liblapack.a Build libMALLOC.a Build libf2c.a Build liblapack.a Build libintersci.a Build liboutput_stream.a Build libdynamic_link.a Build libinteger.a Build liboptimization_f.a Build libjvm.a Build libscilocalization.a Build libintl.a Build liblinpack_f.a Build libcall_scilab.a Build libtime.a Build libapi_scilab.a Build libhashtable.a Build libscilab_windows.a Build libscicos.a Build libscicos_f.a Build libscicos_blocks.a Build libscicos_blocks_f.a Build libscilab.a Load help --------------------------------------------\ Main Modelica : C:\Users\Rei\AppData\Local\Temp\SCI_TMP_3744_\RLC_Modelica_im.mo Flat Modelica : C:\Users\Rei\AppData\Local\Temp\SCI_TMP_3744_\RLC_Modelica_imf.mo Simulation C code :C:\Users\Rei\AppData\Local\Temp\SCI_TMP_3744_\RLC_Modelica_im.c Generate a loader file Generate a Makefile Running the Makefile Compilation of RLC_Modelica_im.c Building shared library (be patient) Generate a cleaner file Shared archive loaded. Link done. All of above libraries failed when I used Scilab 5.3.1 64 bits, and gcc-4.5.2-64.exe and MinGW 0.8. Do you think that gcc 4.5-2 has problem ? All best, Reinaldo. PS: When I copied mingw_0.6 folder to paste inside the Scilab 5.3.0 -> module folder, I typed: atomsInstall('mingw') instead of atomsInstall(['mingw','0.6']). I thought MinGW 0.8 was installed, but the mingw_0.6 folder was still inside module folder. I didn't understand how it could work ! -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmsachs at gmail.com Tue May 3 01:25:10 2011 From: jmsachs at gmail.com (Jason S) Date: Mon, 2 May 2011 16:25:10 -0700 (PDT) Subject: using java libraries Message-ID: <1304378710615-2891822.post@n3.nabble.com> I notice there are a few functions under the JVM section (http://help.scilab.org/docs/5.3.0/en_US/section_f8f1bd70815cb2faaa863b8b04e39f3e.html) including javaclasspath. I have a java library I would like to use within Scilab. Is there any way I can do this by adding it to the javaclasspath? MATLAB supports this mode of operation http://www.mathworks.com/help/techdoc/matlab_external/f44062.html e.g. if I have a "class Foo" in package "com.example.foolib" in foolib.jar, is there a way to instantiate Foo objects and call their methods from within Scilab? -- View this message in context: http://mailinglists.scilab.org/using-java-libraries-tp2891822p2891822.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sylvestre.ledru at scilab.org Tue May 3 09:22:13 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 03 May 2011 09:22:13 +0200 Subject: [scilab-Users] using java libraries In-Reply-To: <1304378710615-2891822.post@n3.nabble.com> References: <1304378710615-2891822.post@n3.nabble.com> Message-ID: <1304407333.26584.9.camel@korcula.inria.fr> Hello, Le lundi 02 mai 2011 ? 16:25 -0700, Jason S a ?crit : > I notice there are a few functions under the JVM section > (http://help.scilab.org/docs/5.3.0/en_US/section_f8f1bd70815cb2faaa863b8b04e39f3e.html) > including javaclasspath. > > I have a java library I would like to use within Scilab. Is there any way I > can do this by adding it to the javaclasspath? MATLAB supports this mode of > operation http://www.mathworks.com/help/techdoc/matlab_external/f44062.html For this, you can use: http://forge.scilab.org/index.php/p/JIMS/ It is an ongoing development. Don't hesitate to report bugs. Sylvestre From jmsachs at gmail.com Tue May 3 15:40:09 2011 From: jmsachs at gmail.com (Jason S) Date: Tue, 3 May 2011 06:40:09 -0700 (PDT) Subject: using java libraries In-Reply-To: <1304407333.26584.9.camel@korcula.inria.fr> References: <1304378710615-2891822.post@n3.nabble.com> <1304407333.26584.9.camel@korcula.inria.fr> Message-ID: <1304430009445-2894283.post@n3.nabble.com> sylvestre wrote: > >> I have a java library I would like to use within Scilab. Is there any way >> I >> can do this by adding it to the javaclasspath? MATLAB supports this mode >> of >> operation >> http://www.mathworks.com/help/techdoc/matlab_external/f44062.html > For this, you can use: > http://forge.scilab.org/index.php/p/JIMS/ > How do I use it? There are no downloads and no documentation. -- View this message in context: http://mailinglists.scilab.org/using-java-libraries-tp2891822p2894283.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From calixte at contrib.scilab.org Tue May 3 15:57:12 2011 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Tue, 03 May 2011 15:57:12 +0200 Subject: [scilab-Users] Re: using java libraries In-Reply-To: <1304430009445-2894283.post@n3.nabble.com> References: <1304378710615-2891822.post@n3.nabble.com> <1304407333.26584.9.camel@korcula.inria.fr> <1304430009445-2894283.post@n3.nabble.com> Message-ID: <1304431032.1097.64.camel@Calixte-Dell> Le mardi 03 mai 2011 ? 06:40 -0700, Jason S a ?crit : > sylvestre wrote: > > > >> I have a java library I would like to use within Scilab. Is there any way > >> I > >> can do this by adding it to the javaclasspath? MATLAB supports this mode > >> of > >> operation > >> http://www.mathworks.com/help/techdoc/matlab_external/f44062.html > > For this, you can use: > > http://forge.scilab.org/index.php/p/JIMS/ > > > > How do I use it? There are no downloads and no documentation. > Hi You can clone the git repo, or download the sources tree: http://forge.scilab.org/index.php/p/JIMS/source/download/master/ or download it from Atoms page: http://atoms.scilab.org/toolboxes/JIMS/0.1 Calixte > > -- > View this message in context: http://mailinglists.scilab.org/using-java-libraries-tp2891822p2894283.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From allan.cornet at scilab.org Tue May 3 16:05:16 2011 From: allan.cornet at scilab.org (Allan CORNET) Date: Tue, 3 May 2011 16:05:16 +0200 Subject: [scilab-Users] Re: using java libraries In-Reply-To: <1304431032.1097.64.camel@Calixte-Dell> References: <1304378710615-2891822.post@n3.nabble.com> <1304407333.26584.9.camel@korcula.inria.fr> <1304430009445-2894283.post@n3.nabble.com> <1304431032.1097.64.camel@Calixte-Dell> Message-ID: <003b01cc099b$20f59cd0$62e0d670$@scilab.org> Hi, To install JIMS: atomsSystemUpdate() atomsInstall("JIMS") Allan -----Message d'origine----- De : Calixte Denizet [mailto:calixte at contrib.scilab.org] Envoy? : mardi 3 mai 2011 15:57 ? : users at lists.scilab.org Objet : Re: [scilab-Users] Re: using java libraries Le mardi 03 mai 2011 ? 06:40 -0700, Jason S a ?crit : > sylvestre wrote: > > > >> I have a java library I would like to use within Scilab. Is there > >> any way I can do this by adding it to the javaclasspath? MATLAB > >> supports this mode of operation > >> http://www.mathworks.com/help/techdoc/matlab_external/f44062.html > > For this, you can use: > > http://forge.scilab.org/index.php/p/JIMS/ > > > > How do I use it? There are no downloads and no documentation. > Hi You can clone the git repo, or download the sources tree: http://forge.scilab.org/index.php/p/JIMS/source/download/master/ or download it from Atoms page: http://atoms.scilab.org/toolboxes/JIMS/0.1 Calixte > > -- > View this message in context: > http://mailinglists.scilab.org/using-java-libraries-tp2891822p2894283. > html Sent from the Scilab users - Mailing Lists Archives mailing list > archive at Nabble.com. From pacaud.damien at gmail.com Thu May 5 14:38:29 2011 From: pacaud.damien at gmail.com (Damien) Date: Thu, 5 May 2011 05:38:29 -0700 (PDT) Subject: Installing Scilab with the Intel MKL Library thru a proxy Message-ID: <1304599109005-2903216.post@n3.nabble.com> Hi everybody, I would like to install Scilab 5.3.1 with the Intel Math Kernel Library (MKL). I have an internet connection thru a proxy that requires a password for connection. But the Scilab installer doesn't ask me for the password, cannot access to the server and cannot download the MKL library (error sending request) even if an internet connection is already active in internet explorer. How to do ? Regards Damien -- View this message in context: http://mailinglists.scilab.org/Installing-Scilab-with-the-Intel-MKL-Library-thru-a-proxy-tp2903216p2903216.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From allan.cornet at scilab.org Thu May 5 14:53:28 2011 From: allan.cornet at scilab.org (Allan CORNET) Date: Thu, 5 May 2011 14:53:28 +0200 Subject: [scilab-Users] Installing Scilab with the Intel MKL Library thru a proxy In-Reply-To: <1304599109005-2903216.post@n3.nabble.com> References: <1304599109005-2903216.post@n3.nabble.com> Message-ID: <002801cc0b23$6ddcf5a0$4996e0e0$@scilab.org> Hi, Please do a bug report @ http://bugzilla.scilab.org Can you download this file from Internet Explorer: http://www.scilab.org/download/5.3.1/x86/readme-mkl.txt ? ? Thanks Allan -----Message d'origine----- De?: Damien [mailto:pacaud.damien at gmail.com] Envoy??: jeudi 5 mai 2011 14:38 ??: users at lists.scilab.org Objet?: [scilab-Users] Installing Scilab with the Intel MKL Library thru a proxy Hi everybody, I would like to install Scilab 5.3.1 with the Intel Math Kernel Library (MKL). I have an internet connection thru a proxy that requires a password for connection. But the Scilab installer doesn't ask me for the password, cannot access to the server and cannot download the MKL library (error sending request) even if an internet connection is already active in internet explorer. How to do ? Regards Damien -- View this message in context: http://mailinglists.scilab.org/Installing-Scilab-with-the-Intel-MKL-Library- thru-a-proxy-tp2903216p2903216.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sylvestre.ledru at scilab.org Fri May 6 09:56:30 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 06 May 2011 09:56:30 +0200 Subject: [scilab-Users] xcos not work In-Reply-To: <4DB6D5CB.8040606@scilab.org> References: <4DB6CBBA.1010105@fing.edu.uy> <4DB6D5CB.8040606@scilab.org> Message-ID: <1304668590.3302.27.camel@losinj.inria.fr> Ivan ? Le mardi 26 avril 2011 ? 16:25 +0200, Cl?ment DAVID a ?crit : > Hello, > > Can you open a bug report on [1] with informations about your system and > the produced backtrace please ? > > Regards, > > [1]: http://bugzilla.scilab.org > From Luca.Marcato at telit.com Fri May 6 16:13:56 2011 From: Luca.Marcato at telit.com (Luca Marcato) Date: Fri, 6 May 2011 14:13:56 +0000 Subject: need help on winXp Message-ID: <22538808E51996439C2EC688ED6ECCE2024E27D4@SRV-ITS-XCH01.tmt.telital.com> Hi Guys, I installed Scilab 5.3.1 and try to write a simple function to build a library. The load('C:\Program Files\scilab-5.3.1\Library') fail as follow: !--error 241 File "C:\Program Files\scilab-5.3.1\Library" read access denied. I'm not able to change permission of the library folder ( don't know why .) What can I do to cope with my files? Thanks in advance BR Luca -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 8.gif Type: image/gif Size: 47792 bytes Desc: not available URL: From pacaud.damien at gmail.com Fri May 6 17:45:46 2011 From: pacaud.damien at gmail.com (Damien) Date: Fri, 6 May 2011 08:45:46 -0700 (PDT) Subject: Installing Scilab with the Intel MKL Library thru a proxy In-Reply-To: <002801cc0b23$6ddcf5a0$4996e0e0$@scilab.org> References: <1304599109005-2903216.post@n3.nabble.com> <002801cc0b23$6ddcf5a0$4996e0e0$@scilab.org> Message-ID: <1304696746591-2908746.post@n3.nabble.com> Yes I can download this file. -- View this message in context: http://mailinglists.scilab.org/Installing-Scilab-with-the-Intel-MKL-Library-thru-a-proxy-tp2903216p2908746.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From scheiber at unitbv.ro Fri May 6 20:08:41 2011 From: scheiber at unitbv.ro (scheiber) Date: Fri, 6 May 2011 11:08:41 -0700 (PDT) Subject: Scilab called within a Java thread Message-ID: <1304705321018-2909258.post@n3.nabble.com> Hi, My problem is the Scilab calling within a Java thread. The bellow example works when the number of threads (noThreads) is 1 but increasing this number it crashes. import org.scilab.modules.javasci.Scilab; import org.scilab.modules.types.ScilabType; import org.scilab.modules.types.ScilabDouble; import java.util.concurrent.*; public class TestThreadScilab{ static Scilab sci; static int noThreads=1; public static void main(String... args){ try{ sci=new Scilab(); } catch(org.scilab.modules.javasci.JavasciException e) { System.err.println("An exception occured: " + e.getLocalizedMessage()); System.exit(1); } ExecutorService executor=Executors.newFixedThreadPool(noThreads); for(int i=0;i Hello excuse me for my poor English. I tried to calculate a Sun spectra from black body formula - http://en.wikipedia.org/wiki/Planck%27s_law as function of frequency. Here is my code: ny1=[1.5:1.5:30]; x=ny1*10^14; k=1.38*10^(-24); T=5800; h=6.63*10^(-34); c=3*10^(17); deff('[y]=f(x)',['y=(2*h*x^3)/(c^2)*(exp((h*x)/(k*T))-1)^(-1)']); fplot2d( log10(x) , log10(f), style=-1 ) I have learned Scilab basics from this document: http://www.google.com/url?sa=t&source=web&cd=1&ved=0CBkQFjAA&url=http%3A%2F%2Fcomptlsci.anu.edu.au%2FScilab%2Fprimer.pdf&ei=sYHFTaWrLMOXOra46KII&usg=AFQjCNE3leJn4EbYxSBJetjEJp7Q8EGpcg&sig2=iQp2w7SANLRGZhJgQiRoZg (or not so long link : http://comptlsci.anu.edu.au/Scilab/primer.pdf ) But I can not understand, why I always become a error : Function not defined for given argument type(s). In a PDF examples shows, that this way need to be working. Next, I can not understand, why, if I change last line to - fplot2d( x , f) - scilab plots a graph, but I do not get a something like this: http://en.wikipedia.org/wiki/File:Wiens_law.svg Excuse me for a links in letter. Next - EXISTS somewhere a RIGHT and FOR ABSOLUTE BEGINNERS documentation? -- Pagarbiai Egidijus Kamarauskas egidijus.kamarauskas at gmail.com +37060707356 From sylvestre.ledru at scilab.org Sat May 7 20:56:22 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Sat, 07 May 2011 20:56:22 +0200 Subject: [scilab-Users] Scilab called within a Java thread In-Reply-To: <1304705321018-2909258.post@n3.nabble.com> References: <1304705321018-2909258.post@n3.nabble.com> Message-ID: <1304794582.7147.18.camel@losinj.inria.fr> Hello, Which version of Scilab are you using ? What do you mean by "crashes" ? Due to constraints with Scilab family 5, Javasci is not designed to manage several versions of Scilab at the same time. This has been reported here: http://bugzilla.scilab.org/show_bug.cgi?id=6069 However, you should get an error saying that Scilab is already started. Sylvestre Le vendredi 06 mai 2011 ? 11:08 -0700, scheiber a ?crit : > Hi, > > My problem is the Scilab calling within a Java thread. The bellow example > works when the number of threads (noThreads) is 1 but increasing this > number it crashes. > > import org.scilab.modules.javasci.Scilab; > import org.scilab.modules.types.ScilabType; > import org.scilab.modules.types.ScilabDouble; > import java.util.concurrent.*; > > public class TestThreadScilab{ > static Scilab sci; > static int noThreads=1; > > public static void main(String... args){ > try{ > sci=new Scilab(); > } > catch(org.scilab.modules.javasci.JavasciException e) { > System.err.println("An exception occured: " + > e.getLocalizedMessage()); > System.exit(1); > } > ExecutorService executor=Executors.newFixedThreadPool(noThreads); > for(int i=0;i Fir fir=new Fir(i); > executor.execute(fir); > } > try{ > executor.shutdown(); > while(!executor.isTerminated()); > sci.close(); > } > catch(Exception e){} > System.out.println("Finished"); > } > > static class Fir extends Thread{ > private int index; > > Fir(int index){ > this.index=index; > } > > public void run(){ > System.out.println("Thread "+index+" started"); > try{ > if(sci.open()){ > double ind=index*1.0d; > ScilabDouble sci_ind=new ScilabDouble(ind); > sci.put("u",sci_ind); > sci.exec(new String[]{"v=u+10","disp(v)"}); > ScilabDouble sci_v=(ScilabDouble)sci.get("v"); > if(!sci_v.isEmpty()){ > double[][] v=sci_v.getRealPart(); > System.out.println("Index "+index+" : "+v[0][0]); > } > } > else{ > System.out.println("Could not start Scilab "); > } > } > catch(org.scilab.modules.javasci.JavasciException e) { > System.err.println("An exception occured: " + > e.getLocalizedMessage()); > } > } > } > } > > > > -- > View this message in context: http://mailinglists.scilab.org/Scilab-called-within-a-Java-thread-tp2909258p2909258.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From dylanfairbanks at gmail.com Sat May 7 03:08:36 2011 From: dylanfairbanks at gmail.com (dylan fairbanks) Date: Fri, 6 May 2011 18:08:36 -0700 Subject: csv_readwrite install problems Message-ID: I just installed scilab-5.3.1, installed csv_readwrite using -->atomsGui(), and restarted scilab. I get the following error: -------------------------------------------- Startup execution: loading initial environment Start CSV read write Load macros Load gateways atomsLoad: An error occurred while loading 'csv_readwrite-0.4-1': link: The shared archive was not loaded: The specified procedure could not be found. -------------------------------------------- I've tried uninstalling and reinstalling it. No luck. Can you help? Regards, -Dylan -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Sat May 7 21:06:11 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Sat, 07 May 2011 21:06:11 +0200 Subject: [scilab-Users] Scilab does not working as expected In-Reply-To: <4DC58455.5030008@gmail.com> References: <4DC58455.5030008@gmail.com> Message-ID: <1304795171.7967.0.camel@losinj.inria.fr> Hello Egidijus, Le samedi 07 mai 2011 ? 20:41 +0300, Egidijus Kamarauskas a ?crit : > > > Next - EXISTS somewhere a RIGHT and FOR ABSOLUTE BEGINNERS > documentation? Yes. Please see "Introduction to Scilab" available here: http://www.scilab.org/support/documentation/tutorials Sylvestre From detlef at schmitz-du.de Sun May 8 10:56:36 2011 From: detlef at schmitz-du.de (Detlef Schmitz) Date: Sun, 8 May 2011 10:56:36 +0200 Subject: Installation of Scilab 5.3.1 and MinGW Compiler Suite Message-ID: <000001cc0d5d$d6e95fc0$84bc1f40$@schmitz-du.de> Dear All, I installed Scilab 5.3.1 (32 bit) and the Min GW Compiler Suite (32 bit) on a Windows XP (SP3) machine. Scilab 5.3.1 runs fine without any problems. Also xcos made no problems. After that I tried to use some blocks of the electrical palette in xcos. The modelica compiler runs but after that the linker (ld.exe) could not find some functions like for example imalloc. I looked into the the defined folder and no library was stored there. A comparison with another machine (Windows 7 64 bit) made it very clear that there must be much more files stored in the library folder. What can I do to create the libraries? Mit freundlichen Gr??en Detlef Schmitz mailto: detlef at schmitz-du.de -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 2950 bytes Desc: not available URL: From thierry.robert at u-bordeaux4.fr Sun May 8 11:06:50 2011 From: thierry.robert at u-bordeaux4.fr (Thierry) Date: Sun, 8 May 2011 02:06:50 -0700 (PDT) Subject: Transfer function of RLC circuit and its simulation In-Reply-To: <465625.25059.qm@web45513.mail.sp1.yahoo.com> References: <465625.25059.qm@web45513.mail.sp1.yahoo.com> Message-ID: <1304845610161-2914762.post@n3.nabble.com> hello, an example in that link, regards http://mailinglists.scilab.org/file/n2914762/rlc.xcos rlc.xcos -- View this message in context: http://mailinglists.scilab.org/Transfer-function-of-RLC-circuit-and-its-simulation-tp2864415p2914762.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Samuel.Gougeon at univ-lemans.fr Sun May 8 18:22:13 2011 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Sun, 08 May 2011 18:22:13 +0200 Subject: [scilab-Users] Scilab does not working as expected In-Reply-To: <4DC58455.5030008@gmail.com> References: <4DC58455.5030008@gmail.com> Message-ID: <4DC6C335.4020300@univ-lemans.fr> Hello, ----- Message d'origine ----- De : Egidijus Kamarauskas Date : 07/05/2011 19:41: > Hello > excuse me for my poor English. > I tried to calculate a Sun spectra from black body formula - > http://en.wikipedia.org/wiki/Planck%27s_law > as function of frequency. > Here is my code: > > ny1=[1.5:1.5:30]; > x=ny1*10^14; > k=1.38*10^(-24); > T=5800; > h=6.63*10^(-34); > c=3*10^(17); > deff('[y]=f(x)',['y=(2*h*x^3)/(c^2)*(exp((h*x)/(k*T))-1)^(-1)']); > fplot2d( log10(x) , log10(f), style=-1 ) > > .../... > But I can not understand, why I always become a error : Function not defined > for given argument type(s). You cannot get the log10 of a function (by itself) but of its results. By the way, you were providing log10(x) to f(), instead of x. A proper way to do what you are expecting is by changing the 2 last lines in: deff('[y]=f(x)',['y=(2*h*x^3)/(c^2)./(exp((h*x)/(k*T))-1)']); plot2d("ll",x ,f(x), style=-1 ) or in a more documented way: nu = (1:300)*1e13; // [Hz] k = 1.38e-23; // Boltzmann [J/K] T = 5800; // [K] h = 6.63e-34; // [J.s] c = 3e8; // [m/s] clf plot2d("ll",nu ,2*h/c^2*nu^3 ./(exp(h*nu/(k*T))-1)) xtitle("Black body emission for T = 5800 K","Frequency [Hz]",.. "$\mbox{Spectral luminance }[W/m^2/sr/Hz]$") HTH Samuel From allan.cornet at scilab.org Mon May 9 08:56:14 2011 From: allan.cornet at scilab.org (Allan CORNET) Date: Mon, 9 May 2011 08:56:14 +0200 Subject: [scilab-Users] need help on winXp In-Reply-To: <22538808E51996439C2EC688ED6ECCE2024E27D4@SRV-ITS-XCH01.tmt.telital.com> References: <22538808E51996439C2EC688ED6ECCE2024E27D4@SRV-ITS-XCH01.tmt.telital.com> Message-ID: <002501cc0e16$30234930$9069db90$@scilab.org> Hi, See your administration rights in C:\Program Files\scilab-5.3.1\Library Please notice that ?C:\Program Files? is by default protected by Windows and requires some superuser rights Try in another directory where you are sure that you can read and write Allan De : Luca Marcato [mailto:Luca.Marcato at telit.com] Envoy? : vendredi 6 mai 2011 16:14 ? : users at lists.scilab.org Objet : [scilab-Users] need help on winXp Hi Guys, I installed Scilab 5.3.1 and try to write a simple function to build a library. The load('C:\Program Files\scilab-5.3.1\Library') fail as follow: !--error 241 File "C:\Program Files\scilab-5.3.1\Library" read access denied. I?m not able to change permission of the library folder ( don?t know why ..) What can I do to cope with my files? Thanks in advance BR Luca -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 47792 bytes Desc: not available URL: From Mike at Page-One.Waitrose.com Mon May 9 18:11:13 2011 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Mon, 9 May 2011 17:11:13 +0100 Subject: Link error 236 Message-ID: Hi, I have a problem loading a DLL from Scilab. I have successfully loaded other DLLs, but this one fails to load. It gives the error: --> link ("foo.dll", func, "c"); "link: The file foo.dll does not exist" " !--error 236" "link: The shared archive was not loaded: Unknown error" If I enter the command "ls", the file foo.dll is listed, so it does exist. If I run depends.exe on the DLL, the entry points match the list in "func". Any suggestions for what might cause this error? Thanks, Mike. From dean.parsons at att.net Mon May 9 19:27:03 2011 From: dean.parsons at att.net (Dean Parsons) Date: Mon, 9 May 2011 12:27:03 -0500 Subject: z^(-1/2) half cycle delay in discrete time Message-ID: Hello, I want to add a half cycle delay to a discrete time transfer function by multiplying the transfer function by z^(-0.5). It seems Scilab doesn't allow non-integer exponents with the discrete time variable z: -->z=poly(0,"z"); -->a = z^(-0.5); !--error 30 Invalid exponent. Is there a work around for this? Is there another way to create the discrete time delay z^(-1/2)? Thank you for your help with this. Dean Parsons -------------- next part -------------- An HTML attachment was scrubbed... URL: From allan.cornet at scilab.org Mon May 9 20:07:41 2011 From: allan.cornet at scilab.org (allan.cornet at scilab.org) Date: Mon, 09 May 2011 20:07:41 +0200 Subject: [scilab-Users] Link error 236 In-Reply-To: References: Message-ID: <580ae5d3ccc14f4cb836d7f4ff9945cf@scilab.org> Hi, Can you attach and send to (as .zip) your dll ? I suspect a trouble of dependencies but in this case, error message is wrong Thanks Allan On Mon, 9 May 2011 17:11:13 +0100, "Mike Page" wrote: > Hi, > > I have a problem loading a DLL from Scilab. I have successfully > loaded > other DLLs, but this one fails to load. It gives the error: > > --> link ("foo.dll", func, "c"); > "link: The file foo.dll does not exist" > " !--error 236" > "link: The shared archive was not loaded: Unknown error" > > If I enter the command "ls", the file foo.dll is listed, so it does > exist. > If I run depends.exe on the DLL, the entry points match the list in > "func". > > Any suggestions for what might cause this error? > > Thanks, > Mike. From sumit.adhikari at gmail.com Mon May 9 20:08:17 2011 From: sumit.adhikari at gmail.com (Sumit Adhikari) Date: Mon, 9 May 2011 20:08:17 +0200 Subject: [scilab-Users] z^(-1/2) half cycle delay in discrete time In-Reply-To: References: Message-ID: In case of discrete time solver there is nothing called non-integral delay. This cannot be resolved in an usual way. In many other solvers ac or noise simulation is possible with non-integral delays but transient simulation will not be possible. One possible solution could be: If the sampling time is known, then an CT delay of the half of the sampling time can be used as a half delay. I do not have any idea if it is possible in SCILAB. This can be possible using SystemC-AMS. Regards, Sumit On Mon, May 9, 2011 at 7:27 PM, Dean Parsons wrote: > *Hello,* > ** > *I want to add a half cycle delay to a discrete time transfer function by > multiplying the transfer function by z^(-0.5). It seems Scilab doesn't allow > non-integer exponents with the discrete time variable z:* > ** > *-->z=poly(0,"z"); > > -->a = z^(-0.5); > !--error 30 > Invalid exponent. > * > *Is there a work around for this? Is there another way to create the > discrete time delay z^(-1/2)?* > ** > *Thank you for your help with this.* > ** > *Dean Parsons* > -- Sumit Adhikari, Institute of Computer Technology, Faculty of Electrical Engineering, Vienna University of Technology, Gu?hausstra?e 27-29,1040 Vienna -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mike at Page-One.Waitrose.com Mon May 9 21:24:03 2011 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Mon, 9 May 2011 20:24:03 +0100 Subject: [scilab-Users] Link error 236 In-Reply-To: <580ae5d3ccc14f4cb836d7f4ff9945cf@scilab.org> Message-ID: Hi Allan, Thanks for your reply. Unfortunately the source for the DLL belongs to a client so I cannot publish it. I will try to strip the source back to some essential part that removes anything proprietary and try that. If it gives the same error, then I will zip it up and put it here for you to look at. I'm not sure about the dependency problem. When I analyse it with depends.exe, there are only two unresolved (delay loaded) DLLs and these are also present in a DLL that loads correctly without error. I'm sure they are never loaded and so would not cause a problem. Do you know if there is anywhere that logging information would be written that might give me a clue? Regards, Mike. -----Original Message----- From: allan.cornet at scilab.org [mailto:allan.cornet at scilab.org] Sent: 09 May 2011 19:08 To: users at lists.scilab.org Subject: Re: [scilab-Users] Link error 236 Hi, Can you attach and send to (as .zip) your dll ? I suspect a trouble of dependencies but in this case, error message is wrong Thanks Allan On Mon, 9 May 2011 17:11:13 +0100, "Mike Page" wrote: > Hi, > > I have a problem loading a DLL from Scilab. I have successfully > loaded > other DLLs, but this one fails to load. It gives the error: > > --> link ("foo.dll", func, "c"); > "link: The file foo.dll does not exist" > " !--error 236" > "link: The shared archive was not loaded: Unknown error" > > If I enter the command "ls", the file foo.dll is listed, so it does > exist. > If I run depends.exe on the DLL, the entry points match the list in > "func". > > Any suggestions for what might cause this error? > > Thanks, > Mike. No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.900 / Virus Database: 271.1.1/3622 - Release Date: 05/08/11 19:34:00 From toocool244 at hotmail.com Mon May 9 22:23:19 2011 From: toocool244 at hotmail.com (Arcadio Fernandez) Date: Mon, 9 May 2011 16:23:19 -0400 Subject: ejecutable de scilab Message-ID: estimados de la comunidad de scila les escribo porque tengo una inquietud con este programa. hace tiempo estoy desarrolando un sofwaare en la plataforma de scilab, pero ahora que lo tengo me encuentro que no se puede realizar un ejecutable desde scilab o por lo menos yo no he enco0ntrado la manera de compilarlo. He visto que en matlab se puede hacer esto ahora yo quisiera saber si ustedes tienen algunna solucion para conseguir un ejecutable de matlab. saludos Arcadio Fernandez -------------- next part -------------- An HTML attachment was scrubbed... URL: From berns.buenaobra at gmail.com Tue May 10 03:40:07 2011 From: berns.buenaobra at gmail.com (Berns Buenaobra) Date: Tue, 10 May 2011 09:40:07 +0800 Subject: [scilab-Users] ejecutable de scilab In-Reply-To: References: Message-ID: Senor Fernandez: Please write in English so we could comment. Berns B. 2011/5/10 Arcadio Fernandez > estimados de la comunidad de scila les escribo porque tengo una inquietud > con este programa. hace tiempo estoy desarrolando un sofwaare en la > plataforma de scilab, pero ahora que lo tengo me encuentro que no se puede > realizar un ejecutable desde scilab o por lo menos yo no he enco0ntrado la > manera de compilarlo. He visto que en matlab se puede hacer esto ahora yo > quisiera saber si ustedes tienen algunna solucion para conseguir un > ejecutable de matlab. > > saludos > Arcadio Fernandez > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From allan.cornet at scilab.org Tue May 10 08:18:30 2011 From: allan.cornet at scilab.org (Allan CORNET) Date: Tue, 10 May 2011 08:18:30 +0200 Subject: [scilab-Users] Link error 236 In-Reply-To: References: <580ae5d3ccc14f4cb836d7f4ff9945cf@scilab.org> Message-ID: <001801cc0eda$153bed10$3fb3c730$@scilab.org> Hi, Please attach result of [a,b]=getdebuginfo() from scilab And from a dos shell dumpbin /all foo.dll > dump.txt and send to me dump.txt file Thanks Allan -----Message d'origine----- De : Mike Page [mailto:Mike at Page-One.Waitrose.com] Envoy? : lundi 9 mai 2011 21:24 ? : users at lists.scilab.org Objet : RE: [scilab-Users] Link error 236 Hi Allan, Thanks for your reply. Unfortunately the source for the DLL belongs to a client so I cannot publish it. I will try to strip the source back to some essential part that removes anything proprietary and try that. If it gives the same error, then I will zip it up and put it here for you to look at. I'm not sure about the dependency problem. When I analyse it with depends.exe, there are only two unresolved (delay loaded) DLLs and these are also present in a DLL that loads correctly without error. I'm sure they are never loaded and so would not cause a problem. Do you know if there is anywhere that logging information would be written that might give me a clue? Regards, Mike. -----Original Message----- From: allan.cornet at scilab.org [mailto:allan.cornet at scilab.org] Sent: 09 May 2011 19:08 To: users at lists.scilab.org Subject: Re: [scilab-Users] Link error 236 Hi, Can you attach and send to (as .zip) your dll ? I suspect a trouble of dependencies but in this case, error message is wrong Thanks Allan On Mon, 9 May 2011 17:11:13 +0100, "Mike Page" wrote: > Hi, > > I have a problem loading a DLL from Scilab. I have successfully > loaded other DLLs, but this one fails to load. It gives the error: > > --> link ("foo.dll", func, "c"); > "link: The file foo.dll does not exist" > " !--error 236" > "link: The shared archive was not loaded: Unknown error" > > If I enter the command "ls", the file foo.dll is listed, so it does > exist. > If I run depends.exe on the DLL, the entry points match the list in > "func". > > Any suggestions for what might cause this error? > > Thanks, > Mike. No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.900 / Virus Database: 271.1.1/3622 - Release Date: 05/08/11 19:34:00 From d.picard at opgc.univ-bpclermont.fr Tue May 10 09:42:08 2011 From: d.picard at opgc.univ-bpclermont.fr (David PICARD) Date: Tue, 10 May 2011 09:42:08 +0200 Subject: [scilab-Users] z^(-1/2) half cycle delay in discrete time In-Reply-To: References: Message-ID: <4DC8EC50.7060600@opgc.univ-bpclermont.fr> An HTML attachment was scrubbed... URL: From Mike at Page-One.Waitrose.com Tue May 10 10:28:35 2011 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Tue, 10 May 2011 09:28:35 +0100 Subject: [scilab-Users] Link error 236 In-Reply-To: <001801cc0eda$153bed10$3fb3c730$@scilab.org> Message-ID: Hi Allan, Here are the two results. I have snipped out the "RAW DATA" sections from the dumpbin output to keep the size of the zip file small. Let me know if you want to see them. I have to say that this dumpbin output does look quite different from a DLL file that loads correctly, so I guess I have a compiler setting wrong somewhere... Regards, Mike. -----Original Message----- From: Allan CORNET [mailto:allan.cornet at scilab.org] Sent: 10 May 2011 07:19 To: users at lists.scilab.org Subject: RE: [scilab-Users] Link error 236 Hi, Please attach result of [a,b]=getdebuginfo() from scilab And from a dos shell dumpbin /all foo.dll > dump.txt and send to me dump.txt file Thanks Allan -----Message d'origine----- De : Mike Page [mailto:Mike at Page-One.Waitrose.com] Envoy? : lundi 9 mai 2011 21:24 ? : users at lists.scilab.org Objet : RE: [scilab-Users] Link error 236 Hi Allan, Thanks for your reply. Unfortunately the source for the DLL belongs to a client so I cannot publish it. I will try to strip the source back to some essential part that removes anything proprietary and try that. If it gives the same error, then I will zip it up and put it here for you to look at. I'm not sure about the dependency problem. When I analyse it with depends.exe, there are only two unresolved (delay loaded) DLLs and these are also present in a DLL that loads correctly without error. I'm sure they are never loaded and so would not cause a problem. Do you know if there is anywhere that logging information would be written that might give me a clue? Regards, Mike. -----Original Message----- From: allan.cornet at scilab.org [mailto:allan.cornet at scilab.org] Sent: 09 May 2011 19:08 To: users at lists.scilab.org Subject: Re: [scilab-Users] Link error 236 Hi, Can you attach and send to (as .zip) your dll ? I suspect a trouble of dependencies but in this case, error message is wrong Thanks Allan On Mon, 9 May 2011 17:11:13 +0100, "Mike Page" wrote: > Hi, > > I have a problem loading a DLL from Scilab. I have successfully > loaded other DLLs, but this one fails to load. It gives the error: > > --> link ("foo.dll", func, "c"); > "link: The file foo.dll does not exist" > " !--error 236" > "link: The shared archive was not loaded: Unknown error" > > If I enter the command "ls", the file foo.dll is listed, so it does > exist. > If I run depends.exe on the DLL, the entry points match the list in > "func". > > Any suggestions for what might cause this error? > > Thanks, > Mike. No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.900 / Virus Database: 271.1.1/3622 - Release Date: 05/08/11 19:34:00 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.900 / Virus Database: 271.1.1/3626 - Release Date: 05/09/11 07:35:00 -------------- next part -------------- A non-text attachment was scrubbed... Name: debuginfo.zip Type: application/x-zip-compressed Size: 28074 bytes Desc: not available URL: From laurent.berger at univ-lemans.fr Tue May 10 14:38:44 2011 From: laurent.berger at univ-lemans.fr (Laurent Berger) Date: Tue, 10 May 2011 14:38:44 +0200 Subject: Atan function Message-ID: <4DC931D4.5090902@univ-lemans.fr> In this program clear; N=256; n=0:N-1; Xr=zeros(1,N); f0=2; Xr(f0+1)=1/(2*%i); Xr(N-(f0+1)+2)=-1/(2*%i); Xr=Xr.*exp(%i*%pi*2*6*n/N); xr=ifft(Xr); disp (atan(imag(Xr(11:12)),real(Xr(11:12)))) disp (Xr(11)-Xr(12)) results are 0. 3.1415927 0 I don't understand why two numbers with a difference of 0 can have a numerical phase of 0 or pi . In matlab results are 0 0 0 !Scilab Version: 5.3.1.1299160056 ! ! ! !Operating System: Windows XP 5.1 ! ! ! !Java version : 1.6.0_18 ! ! ! !Java runtime information : Java(TM) SE Runtime Environment (build 1.6.0_18-b07) ! ! ! !Java vm information : Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode) ! ! ! !Vendor specification: Sun Microsystems Inc. ! From vogt at centre-cired.fr Tue May 10 15:20:56 2011 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Tue, 10 May 2011 15:20:56 +0200 Subject: [scilab-Users] Atan function In-Reply-To: <4DC931D4.5090902@univ-lemans.fr> References: <4DC931D4.5090902@univ-lemans.fr> Message-ID: <4DC93BB8.5020000@centre-cired.fr> it looks like a bug, which could be linked to the fact that even if Xr(11:12)==[0 0], Xr(11:12) are complex number for scilab (try isreal(Xr(11:12))). are you trying to get the phase of thoses complex numbers? if yes, i suggest you to use something like imag(log(Xr(11:12)+%eps)) as a crapy workaround (instead of atan(imag(xr),real(xr))) Le 10/05/2011 14:38, Laurent Berger a ?crit : > In this program > > clear; > N=256; > n=0:N-1; > Xr=zeros(1,N); > f0=2; > Xr(f0+1)=1/(2*%i); > Xr(N-(f0+1)+2)=-1/(2*%i); > Xr=Xr.*exp(%i*%pi*2*6*n/N); > xr=ifft(Xr); > disp (atan(imag(Xr(11:12)),real(Xr(11:12)))) > disp (Xr(11)-Xr(12)) > > results are > 0. 3.1415927 > > 0 > > > I don't understand why two numbers with a difference of 0 can have a > numerical phase of 0 or pi . > In matlab results are > 0 0 > 0 > > > !Scilab Version: 5.3.1.1299160056 ! > ! ! > !Operating System: Windows XP 5.1 ! > ! ! > !Java version : 1.6.0_18 ! > ! ! > !Java runtime information : Java(TM) SE Runtime Environment (build > 1.6.0_18-b07) ! > ! ! > !Java vm information : Java HotSpot(TM) Client VM (build > 16.0-b13, mixed mode) ! > ! ! > !Vendor specification: Sun Microsystems Inc. ! -- *Adrien Vogt-Schilb* Research Fellow vogt at centre-cired.fr Tel: (+33) 1 43 94 73 96 Fax: (+33) 1 43 94 73 70 CIRED 45 bis, Av de la Belle Gabrielle F-94736 Nogent-sur-Marne http://www.centre-cired.fr/ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logocired.png Type: image/png Size: 4092 bytes Desc: not available URL: From antoine.monmayrant at laas.fr Tue May 10 15:26:51 2011 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 10 May 2011 15:26:51 +0200 Subject: [scilab-Users] Atan function In-Reply-To: <4DC93BB8.5020000@centre-cired.fr> References: <4DC931D4.5090902@univ-lemans.fr> <4DC93BB8.5020000@centre-cired.fr> Message-ID: <4DC93D1B.1050700@laas.fr> Le 10/05/2011 15:20, Adrien Vogt-Schilb a ?crit : > it looks like a bug, which could be linked to the fact that even if > Xr(11:12)==[0 0], Xr(11:12) are complex number for scilab (try isreal(Xr(11:12))). > > are you trying to get the phase of thoses complex numbers? > if yes, i suggest you to use something like imag(log(Xr(11:12)+%eps)) as a crapy > workaround (instead of atan(imag(xr),real(xr))) > > > > Le 10/05/2011 14:38, Laurent Berger a ?crit : > > In this program > > > > clear; > > N=256; > > n=0:N-1; > > Xr=zeros(1,N); > > f0=2; > > Xr(f0+1)=1/(2*%i); > > Xr(N-(f0+1)+2)=-1/(2*%i); > > Xr=Xr.*exp(%i*%pi*2*6*n/N); > > xr=ifft(Xr); > > disp (atan(imag(Xr(11:12)),real(Xr(11:12)))) > > disp (Xr(11)-Xr(12)) > > > > results are > > 0. 3.1415927 > > > > 0 > > > > > > I don't understand why two numbers with a difference of 0 can have a numerical > > phase of 0 or pi . > > In matlab results are > > 0 0 > > 0 > > > > > > !Scilab Version: 5.3.1.1299160056 ! > > ! ! > > !Operating System: Windows XP 5.1 ! > > ! ! > > !Java version : 1.6.0_18 ! > > ! ! > > !Java runtime information : Java(TM) SE Runtime Environment (build > > 1.6.0_18-b07) ! > > ! ! > > !Java vm information : Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode) ! > > ! ! > > !Vendor specification: Sun Microsystems Inc. ! > > > -- > > *Adrien Vogt-Schilb* > > Research Fellow > > vogt at centre-cired.fr > > Tel: (+33) 1 43 94 73 96 > > Fax: (+33) 1 43 94 73 70 > > CIRED > > > > 45 bis, Av de la Belle Gabrielle > > F-94736 Nogent-sur-Marne > > http://www.centre-cired.fr/ > Definitely a bug that I encountered last year: a complex number with an imaginary part that is strictly 0 is not real (or at least not always). I ended up with a couple of thisnumberisreal=real(thisnumberisreal) inside my code as a workaround. It took me some time to understand what was going on. Antoine From d.picard at opgc.univ-bpclermont.fr Tue May 10 16:00:17 2011 From: d.picard at opgc.univ-bpclermont.fr (David PICARD) Date: Tue, 10 May 2011 16:00:17 +0200 Subject: Scilab graphics crash Message-ID: <4DC944F1.30903@opgc.univ-bpclermont.fr> Hello, In a plot window, when I start the entity picker and click on a curve, Scilab crashes quite often with the message : Warning !!! Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION) with "TCL_EvalStr" function. Save your data and restart Scilab. Warning !!! Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION) with "TCL_EvalStr" function. Save your data and restart Scilab. Platform : WinXP, Scilab 5.3.1 From sylvestre.ledru at scilab.org Tue May 10 16:05:09 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 10 May 2011 16:05:09 +0200 Subject: [scilab-Users] Scilab graphics crash In-Reply-To: <4DC944F1.30903@opgc.univ-bpclermont.fr> References: <4DC944F1.30903@opgc.univ-bpclermont.fr> Message-ID: <1305036309.1873.6.camel@korcula.inria.fr> Le mardi 10 mai 2011 ? 16:00 +0200, David PICARD a ?crit : > Hello, > > In a plot window, when I start the entity picker and click on a curve, > Scilab crashes quite often with the message : > > Warning !!! > Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION) > with "TCL_EvalStr" function. > Save your data and restart Scilab. > Warning !!! > Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION) > with "TCL_EvalStr" function. > Save your data and restart Scilab. See: http://bugzilla.scilab.org/show_bug.cgi?id=7954 This bug fix will be available with Scilab 5.3.2 (which should be available this week) Sylvestre From d.picard at opgc.univ-bpclermont.fr Tue May 10 16:07:27 2011 From: d.picard at opgc.univ-bpclermont.fr (David PICARD) Date: Tue, 10 May 2011 16:07:27 +0200 Subject: Xcos CMSCOPE and staircase plot Message-ID: <4DC9469F.4000404@opgc.univ-bpclermont.fr> Hi, I am testing discrete controllers with Xcos and I plot the results with the CMSCOPE block. By default, the curves are interpolated. But as the system is discrete, I'd prefer a staircase plot. How can I change this, except with the entity picker ? That's a hassle, since I run the simulation many times a day ! Thanks. From dean.parsons at att.net Tue May 10 18:18:40 2011 From: dean.parsons at att.net (Dean Parsons) Date: Tue, 10 May 2011 11:18:40 -0500 Subject: [scilab-Users] z^(-1/2) half cycle delay in discrete time References: <4DC8EC50.7060600@opgc.univ-bpclermont.fr> Message-ID: David, Thanks for your prompt response. Let me ask my question in a different way. In MATLAB I can add a delay to the input of a continuous time system with the following code sequence: time_delay = 0.5; sys_continuous_time = ss(A,B,C,D); set(sys_continuous_time,'InputDelay',time_delay*[1 1 1]); In transfer funtion representation my sys_continuous_time = -1 - 1/s - 1/s^2 I believe the third line of code above multiples sys_continuous_time by [exp(-0.5*s) exp(-0.5*s) exp(-0.5*s)] which is equivalent to multiplying by [z^(-1/2) z^(-1/2) z^(-1/2)] I know how to write Scilab code for the first 2 lines of code above. My question is: Is there a way in Scilab to do what the 3rd line of code above does? If I try to create a term like exp(-0.5*s) or z^(-1/2) in Scilab in order to do this multiplication, I get the following error messages: -->s=poly(0,"s"); -->a = exp(-0.5*s); !--error 246 Function not defined for given argument type(s), check arguments or define function %p_exp for overloading. -->z = poly(0,"z"); -->a = z^(-1/2); !--error 30 Invalid exponent. How can I add a half clock cycle of delay to the input of a continuous time system in Scilab? (I am modeling a sigma delta modulator which uses continuous time integrators as well as a sampling quantizer which has a half clock cycle of delay - all in the same loop. This is why it is necessary to have a mixture of continuous time & discrete time math in the same system.) Dean Parsons ----- Original Message ----- From: David PICARD To: users at lists.scilab.org Sent: Tuesday, May 10, 2011 2:42 AM Subject: Re: [scilab-Users] z^(-1/2) half cycle delay in discrete time z^-1 is the value of the system 1 sampling period in the past. But as sampling is discrete, does it make sense to reference a value that is between 2 samples, but that does not exist in your model, since, by definition, it is not sampled ? Le 09/05/2011 19:27, Dean Parsons a ?crit : Hello, I want to add a half cycle delay to a discrete time transfer function by multiplying the transfer function by z^(-0.5). It seems Scilab doesn't allow non-integer exponents with the discrete time variable z: -->z=poly(0,"z"); -->a = z^(-0.5); !--error 30 Invalid exponent. Is there a work around for this? Is there another way to create the discrete time delay z^(-1/2)? Thank you for your help with this. Dean Parsons -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Tue May 10 20:54:49 2011 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Tue, 10 May 2011 20:54:49 +0200 Subject: [scilab-Users] Atan function In-Reply-To: <4DC931D4.5090902@univ-lemans.fr> References: <4DC931D4.5090902@univ-lemans.fr> Message-ID: <4DC989F9.4080802@univ-lemans.fr> Hi, ----- Message d'origine ----- De : Laurent Berger Date : 10/05/2011 14:38: > In this program > > clear; > N=256; > n=0:N-1; > Xr=zeros(1,N); > f0=2; > Xr(f0+1)=1/(2*%i); > Xr(N-(f0+1)+2)=-1/(2*%i); > Xr=Xr.*exp(%i*%pi*2*6*n/N); > xr=ifft(Xr); > disp (atan(imag(Xr(11:12)),real(Xr(11:12)))) > disp (Xr(11)-Xr(12)) > > results are > 0. 3.1415927 > > 0 > > I don't understand why two numbers with a difference of 0 can have a numerical > phase of 0 or pi . > In matlab results are > 0 0 > 0 This result is mathematically possible, since the phase of the origin 0 -- that is here considered -- is undefined (or conventional). So any phase is possible, provided that the modulus is zero. The issue is that both Xr(11) and Xr(12) are apparently (complex: ok) (really) null, with the same actually null real parts and imaginary parts, with no epsilon-machine residues: -->format("e",15) -->real(Xr(11:12)) ans = 0.00000000D+00 0.00000000D+00 -->imag(Xr(11:12)) ans = 0.00000000D+00 0.00000000D+00 -->imag(Xr(11:12))==[0 0] ans = T T -->real(Xr(11:12))==[0 0] ans = T T // BUT -->atan(imag(Xr(11:12)),real(Xr(11:12))) ans = 0.00000000D+00 3.14159265D+00 // whereas -->atan([0 0],[0 0]) ans = 0.00000000D+00 0.00000000D+00 // !!!!! The issue may come from real() or/and imag(), instead of atan(). Or from somewhere else. Regards Samuel From osvaldo at dcc.ufmg.br Tue May 10 20:24:18 2011 From: osvaldo at dcc.ufmg.br (Osvaldo Carvalho) Date: Tue, 10 May 2011 18:24:18 +0000 (UTC) Subject: plotting maps in scilab 5.2.1 does not work References: <4B9CDBC5.10701@wolffdata.se> <4B9D0835.8050002@free.fr> Message-ID: Fran?ois Vogel writes: > > Peter Wolff said on 14/03/2010 13:51: > > Replace > > > txt=strsubst(txt,'NaN','%inf'); // subst %inf for NaN > > by: > > txt=strsubst(txt,'NaN','%nan'); > > and it will work in all Scilab flavours (including Scicoslab if you > additionally replace uigetfile by tk_getfile) > > Besides: I'm interested by your data file WorldStrip_NaN.txt. Where > does this come from? What is the license for these data? > > Francois > > Hello, I've tried the pen up-down program in Scilab 5.3.1 with the suggested modification, and I got extraneous long straight lines over the world map, as you can see in http://dl.dropbox.com/u/1267826/Temp/PenUpPenDown_bug.pdf What's happening? Thanks, Osvaldo From Samuel.Gougeon at univ-lemans.fr Tue May 10 21:18:43 2011 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Tue, 10 May 2011 21:18:43 +0200 Subject: [scilab-Users] Atan function In-Reply-To: <4DC931D4.5090902@univ-lemans.fr> References: <4DC931D4.5090902@univ-lemans.fr> Message-ID: <4DC98F93.9030302@univ-lemans.fr> Look at that: -->atan(0, 0) ans = 0.00000000D+00 -->atan(0, -0) ans = 3.14159265D+00 --> -0 == 0 ans = T :-(( Funny, isn't it ?! There may be no connexion with your result, or there may. Samuel From fvogelnew1 at free.fr Tue May 10 21:58:36 2011 From: fvogelnew1 at free.fr (=?UTF-8?B?RnJhbsOnb2lzIFZvZ2Vs?=) Date: Tue, 10 May 2011 21:58:36 +0200 Subject: [scilab-Users] Re: plotting maps in scilab 5.2.1 does not work In-Reply-To: References: <4B9CDBC5.10701@wolffdata.se> <4B9D0835.8050002@free.fr> Message-ID: <4DC998EC.4040005@free.fr> Osvaldo Carvalho said on 10/05/2011 20:24: > I've tried the pen up-down program in Scilab 5.3.1 with the suggested > modification, and I got extraneous long straight lines over the world map, as > you can see in > > http://dl.dropbox.com/u/1267826/Temp/PenUpPenDown_bug.pdf > > What's happening? Uh? It works for me... F. From Serge.Steer at inria.fr Tue May 10 22:46:05 2011 From: Serge.Steer at inria.fr (Serge Steer) Date: Tue, 10 May 2011 22:46:05 +0200 Subject: [scilab-Users] z^(-1/2) half cycle delay in discrete time In-Reply-To: References: <4DC8EC50.7060600@opgc.univ-bpclermont.fr> Message-ID: <4DC9A40D.9000708@inria.fr> You can used the following toolbox http://www.scilab.org/contrib/index_contrib.php?page=displayContribution&fileID=1189 Serge Steer Le 10/05/2011 18:18, Dean Parsons a ?crit : > *David,* > ** > *Thanks for your prompt response. Let me ask my question in a > different way.* > ** > *In MATLAB I can add a delay to the input of a continuous time system > with the following code sequence:* > ** > *time_delay = 0.5;* > *sys_continuous_time = ss(A,B,C,D);* > *set(sys_continuous_time,'InputDelay',time_delay*[1 1 1]);* > ** > *In transfer funtion representation my sys_continuous_time = -1 - 1/s > - 1/s^2* > *I believe the third line of code above multiples sys_continuous_time > by [exp(-0.5*s) exp(-0.5*s) exp(-0.5*s)] which is equivalent to > multiplying by [z^(-1/2) z^(-1/2) z^(-1/2)]* > ** > *I know how to write Scilab code for the first 2 lines of code above. > My question is: Is there a way in Scilab to do what the 3rd line of > code above does?* > ** > *If I try to create a term like exp(-0.5*s) or z^(-1/2) in Scilab in > order to do this multiplication, I get the following error messages:* > ** > ** > *-->s=poly(0,"s"); > > -->a = exp(-0.5*s); > !--error 246 > Function not defined for given argument type(s),* > ** > ** > * check arguments or define function %p_exp for overloading. > * > *-->z = poly(0,"z"); > > -->a = z^(-1/2); > !--error 30 > Invalid exponent.* > ** > ** > *How can I add a half clock cycle of delay to the input of a > continuous time system in Scilab? (I am modeling a sigma delta > modulator which uses continuous time integrators as well as a sampling > quantizer which has a half clock cycle of delay - all in the same > loop. This is why it is necessary to have a mixture of continuous time > & discrete time math in the same system.)* > * > * > ** > *Dean Parsons* > ** > **** > > ----- Original Message ----- > *From:* David PICARD > *To:* users at lists.scilab.org > *Sent:* Tuesday, May 10, 2011 2:42 AM > *Subject:* Re: [scilab-Users] z^(-1/2) half cycle delay in > discrete time > > z^-1 is the value of the system 1 sampling period in the past. > But as sampling is discrete, does it make sense to reference a > value that is between 2 samples, but that does not exist in your > model, since, by definition, it is not sampled ? > > > Le 09/05/2011 19:27, Dean Parsons a ?crit : >> *Hello,* >> ** >> *I want to add a half cycle delay to a discrete time transfer >> function by multiplying the transfer function by z^(-0.5). It >> seems Scilab doesn't allow non-integer exponents with the >> discrete time variable z:* >> ** >> *-->z=poly(0,"z"); >> >> -->a = z^(-0.5); >> !--error 30 >> Invalid exponent. >> * >> *Is there a work around for this? Is there another way to create >> the discrete time delay z^(-1/2)?* >> ** >> *Thank you for your help with this.* >> ** >> *Dean Parsons* >> ** > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Serge.Steer at inria.fr Tue May 10 22:57:07 2011 From: Serge.Steer at inria.fr (Serge Steer) Date: Tue, 10 May 2011 22:57:07 +0200 Subject: [scilab-Users] Atan function In-Reply-To: <4DC98F93.9030302@univ-lemans.fr> References: <4DC931D4.5090902@univ-lemans.fr> <4DC98F93.9030302@univ-lemans.fr> Message-ID: <4DC9A6A3.5040609@inria.fr> Le 10/05/2011 21:18, Samuel GOUGEON a ?crit : > Look at that: > > -->atan(0, 0) > ans = > 0.00000000D+00 > > -->atan(0, -0) > ans = > 3.14159265D+00 > > --> -0 == 0 > ans = > T > > :-(( Funny, isn't it ?! This later result is really quite funny, but the atan result is just due to the branch cut definition for that function Serge From osvaldo at dcc.ufmg.br Wed May 11 01:28:26 2011 From: osvaldo at dcc.ufmg.br (Osvaldo Sergio Farhat de Carvalho) Date: Tue, 10 May 2011 20:28:26 -0300 Subject: [scilab-Users] Re: plotting maps in scilab 5.2.1 does not work In-Reply-To: <4DC998EC.4040005@free.fr> References: <4B9CDBC5.10701@wolffdata.se> <4B9D0835.8050002@free.fr> , <4DC998EC.4040005@free.fr> Message-ID: An HTML attachment was scrubbed... URL: From ray at aarden.us Wed May 11 02:28:59 2011 From: ray at aarden.us (ray joseph) Date: Tue, 10 May 2011 19:28:59 -0500 Subject: [scilab-Users] z^(-1/2) half cycle delay in discrete time In-Reply-To: <4DC8EC50.7060600@opgc.univ-bpclermont.fr> Message-ID: <003f01cc0f72$6c68d600$4401a8c0@ROXANNE> Sample twice as fast and that sample will be there. _____ From: David PICARD [mailto:d.picard at opgc.univ-bpclermont.fr] Sent: Tuesday, May 10, 2011 2:42 AM To: users at lists.scilab.org Subject: Re: [scilab-Users] z^(-1/2) half cycle delay in discrete time z^-1 is the value of the system 1 sampling period in the past. But as sampling is discrete, does it make sense to reference a value that is between 2 samples, but that does not exist in your model, since, by definition, it is not sampled ? Le 09/05/2011 19:27, Dean Parsons a ?crit : Hello, I want to add a half cycle delay to a discrete time transfer function by multiplying the transfer function by z^(-0.5). It seems Scilab doesn't allow non-integer exponents with the discrete time variable z: -->z=poly(0,"z"); -->a = z^(-0.5); !--error 30 Invalid exponent. Is there a work around for this? Is there another way to create the discrete time delay z^(-1/2)? Thank you for your help with this. Dean Parsons -------------- next part -------------- An HTML attachment was scrubbed... URL: From fvogelnew1 at free.fr Wed May 11 06:16:38 2011 From: fvogelnew1 at free.fr (=?utf-8?Q?Fran=C3=A7ois_Vogel?=) Date: Wed, 11 May 2011 06:16:38 +0200 (CEST) Subject: [scilab-Users] Re: plotting maps in scilab 5.2.1 does not work In-Reply-To: Message-ID: <475849273.7121451305087398652.JavaMail.root@zimbra15-e2.priv.proxad.net> I have no idea what's wrong on your end. This works for me, either on Vista or on XP, with either Scilab 5.3.1 or Scicoslab 4.4.1. I would suggest you try Scicoslab. Your problem might be due to the famous Intel driver issue that made Scilab 5.x unusable for a lot of people. http://www.scicoslab.org F. ----- "Osvaldo Sergio Farhat de Carvalho" a ?crit : > Thanks, Fran?ois, but unfortunately it does not work for me. I got > exactly the same spurious straight lines with Windows 7 and Scilab > 5.3.1, and with XP and Scilab 5.2.2. I will be very grateful if you > tell me what is wrong here. > Here is the program code: > > http://dl.dropbox.com/u/1267826/Temp/World_NaN.sce > > and the data file: > > http://dl.dropbox.com/u/1267826/Temp/WorldNaN.txt > > Thanks again. > Osvaldo > > > -----Fran?ois Vogel wrote: ----- > > > > To: users at lists.scilab.org > From: Fran?ois Vogel > Date: 10/05/2011 04:58 PM > Subject: Re: [scilab-Users] Re: plotting maps in scilab 5.2.1 does not > work > > Osvaldo Carvalho said on 10/05/2011 20:24: > > I've tried the pen up-down program in Scilab 5.3.1 with the > suggested > > modification, and I got extraneous long straight lines over the > world map, as > > you can see in > > > > http://dl.dropbox.com/u/1267826/Temp/PenUpPenDown_bug.pdf > > > > What's happening? > > Uh? It works for me... > > F. From Mike at Page-One.Waitrose.com Wed May 11 11:05:41 2011 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Wed, 11 May 2011 10:05:41 +0100 Subject: [scilab-Users] Link error 236 In-Reply-To: Message-ID: Hi, After some experimentation and some great suggestions from Allan Cornet (thanks, Allan!) this problem seems to be due to the following scenario: My C code includes the FFTW library libfftw3-3.dll, so this is referenced within my DLL (foo.dll). Scilab itself uses the same FFTW library. When Scilab tries to load my DLL, it also tries to load my FFTW library, but this is already loaded. This gives rise to duplicate DLL entry points. The simple workaround is to use a different library - this can be done by rebuilding FFTW with a different name (e.g. MyFftw.dll and MyFftw.lib) and then using that within my C code. Scilab could be a bit more discriminating in its choice of error message when a DLL fails to load. "File does not exist" is a bit misleading here... Regards, Mike. -----Original Message----- From: Mike Page [mailto:Mike at Page-One.Waitrose.com] Sent: 10 May 2011 09:29 To: users at lists.scilab.org Subject: RE: [scilab-Users] Link error 236 Hi Allan, Here are the two results. I have snipped out the "RAW DATA" sections from the dumpbin output to keep the size of the zip file small. Let me know if you want to see them. I have to say that this dumpbin output does look quite different from a DLL file that loads correctly, so I guess I have a compiler setting wrong somewhere... Regards, Mike. -----Original Message----- From: Allan CORNET [mailto:allan.cornet at scilab.org] Sent: 10 May 2011 07:19 To: users at lists.scilab.org Subject: RE: [scilab-Users] Link error 236 Hi, Please attach result of [a,b]=getdebuginfo() from scilab And from a dos shell dumpbin /all foo.dll > dump.txt and send to me dump.txt file Thanks Allan -----Message d'origine----- De : Mike Page [mailto:Mike at Page-One.Waitrose.com] Envoy? : lundi 9 mai 2011 21:24 ? : users at lists.scilab.org Objet : RE: [scilab-Users] Link error 236 Hi Allan, Thanks for your reply. Unfortunately the source for the DLL belongs to a client so I cannot publish it. I will try to strip the source back to some essential part that removes anything proprietary and try that. If it gives the same error, then I will zip it up and put it here for you to look at. I'm not sure about the dependency problem. When I analyse it with depends.exe, there are only two unresolved (delay loaded) DLLs and these are also present in a DLL that loads correctly without error. I'm sure they are never loaded and so would not cause a problem. Do you know if there is anywhere that logging information would be written that might give me a clue? Regards, Mike. -----Original Message----- From: allan.cornet at scilab.org [mailto:allan.cornet at scilab.org] Sent: 09 May 2011 19:08 To: users at lists.scilab.org Subject: Re: [scilab-Users] Link error 236 Hi, Can you attach and send to (as .zip) your dll ? I suspect a trouble of dependencies but in this case, error message is wrong Thanks Allan On Mon, 9 May 2011 17:11:13 +0100, "Mike Page" wrote: > Hi, > > I have a problem loading a DLL from Scilab. I have successfully > loaded other DLLs, but this one fails to load. It gives the error: > > --> link ("foo.dll", func, "c"); > "link: The file foo.dll does not exist" > " !--error 236" > "link: The shared archive was not loaded: Unknown error" > > If I enter the command "ls", the file foo.dll is listed, so it does > exist. > If I run depends.exe on the DLL, the entry points match the list in > "func". > > Any suggestions for what might cause this error? > > Thanks, > Mike. No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.900 / Virus Database: 271.1.1/3622 - Release Date: 05/08/11 19:34:00 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.900 / Virus Database: 271.1.1/3626 - Release Date: 05/09/11 07:35:00 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.900 / Virus Database: 271.1.1/3626 - Release Date: 05/09/11 07:35:00 From jasper at amsterchem.com Wed May 11 11:42:31 2011 From: jasper at amsterchem.com (jasper van baten) Date: Wed, 11 May 2011 11:42:31 +0200 Subject: [scilab-Users] Link error 236 In-Reply-To: References: Message-ID: <201105110942.p4B9g9AW007213@dutch35.digitalus.nl> Hello Mike, At 11:05 5/11/2011, Mike Page wrote: >My C code includes the FFTW library libfftw3-3.dll, so this is >referenced within my DLL (foo.dll). Scilab itself uses the same >FFTW library. When Scilab tries to load my DLL, it also tries to >load my FFTW library, but this is already loaded. This gives rise >to duplicate DLL entry points. > >The simple workaround is to use a different library - this can be >done by rebuilding FFTW with a different name (e.g. MyFftw.dll and >MyFftw.lib) and then using that within my C code. DLLs that reference a DLL that is already loaded should not have problem loading (e.g. your DLL will also reference kernel32.dll, etc). So Scilab's libfftw3-3.dll must be different than yours... Hence, you could also resolve the problem by referencing the import lib that matches Scilab's libfftw3-3.dll. Best wishes, Jasper. From Mike at Page-One.Waitrose.com Wed May 11 11:50:58 2011 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Wed, 11 May 2011 10:50:58 +0100 Subject: [scilab-Users] Link error 236 In-Reply-To: <201105110942.p4B9g9AW007213@dutch35.digitalus.nl> Message-ID: Hi Jasper, Yes, I agree. Scilab's DLL is the one supplied in the distribution, so it would have been built in a different environment I guess. As far as I can see, the LIB file is not included in the Scilab distribution, just the DLL. Is that right? If so, I can't build my C code against the Scilab version of the library. I guess I could substitute my DLL for the one in the Scilab distribution instead? But that sounds even harder... Mike. -----Original Message----- From: jasper van baten [mailto:jasper at amsterchem.com] Sent: 11 May 2011 10:43 To: users at lists.scilab.org; users at lists.scilab.org Subject: RE: [scilab-Users] Link error 236 Hello Mike, At 11:05 5/11/2011, Mike Page wrote: >My C code includes the FFTW library libfftw3-3.dll, so this is >referenced within my DLL (foo.dll). Scilab itself uses the same >FFTW library. When Scilab tries to load my DLL, it also tries to >load my FFTW library, but this is already loaded. This gives rise >to duplicate DLL entry points. > >The simple workaround is to use a different library - this can be >done by rebuilding FFTW with a different name (e.g. MyFftw.dll and >MyFftw.lib) and then using that within my C code. DLLs that reference a DLL that is already loaded should not have problem loading (e.g. your DLL will also reference kernel32.dll, etc). So Scilab's libfftw3-3.dll must be different than yours... Hence, you could also resolve the problem by referencing the import lib that matches Scilab's libfftw3-3.dll. Best wishes, Jasper. No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.900 / Virus Database: 271.1.1/3628 - Release Date: 05/10/11 07:35:00 From jasper at amsterchem.com Wed May 11 11:55:44 2011 From: jasper at amsterchem.com (jasper van baten) Date: Wed, 11 May 2011 11:55:44 +0200 Subject: [scilab-Users] Link error 236 In-Reply-To: References: <201105110942.p4B9g9AW007213@dutch35.digitalus.nl> Message-ID: <201105110955.p4B9tLv5009821@dutch35.digitalus.nl> Hello Mike, >Yes, I agree. Scilab's DLL is the one supplied in the distribution, so it >would have been built in a different environment I guess. As far as I can >see, the LIB file is not included in the Scilab distribution, just the DLL. >Is that right? If so, I can't build my C code against the Scilab version of >the library. I guess I could substitute my DLL for the one in the Scilab >distribution instead? But that sounds even harder... You can make the lib from the DLL supplied with Scilab: 1) use dumpbin to get the exported symbols (dumpbin /symbols libfftw3-3.dll) 2) make a def file out of those (first line EXPORTS, each following line an exported symbol name) 3) use the lib utility to generate the import lib (lib /def:libfftw3-3.def /out:libfftw3-3.lib /machine:x86) Hope that helps, Best wishes, Jasper. From laurent.berger at univ-lemans.fr Wed May 11 11:56:45 2011 From: laurent.berger at univ-lemans.fr (laurent berger) Date: Wed, 11 May 2011 02:56:45 -0700 (PDT) Subject: Atan function In-Reply-To: <4DC9A6A3.5040609@inria.fr> References: <4DC931D4.5090902@univ-lemans.fr> <4DC98F93.9030302@univ-lemans.fr> <4DC9A6A3.5040609@inria.fr> Message-ID: <1305107805157-2926655.post@n3.nabble.com> Thanks you for yours answer So atan(0,-0) is 3.1415927 If I write x=-0 atan(0,x) is still 3.1415927 atan(x,x) is -3.1415927 Only for fun , I wonder how can I program this fucntion using scilab ? How can I guess that variable x is -0 and not 0? Regards -- View this message in context: http://mailinglists.scilab.org/Atan-function-tp2922891p2926655.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Mike at Page-One.Waitrose.com Wed May 11 12:23:26 2011 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Wed, 11 May 2011 11:23:26 +0100 Subject: [scilab-Users] Link error 236 In-Reply-To: <201105110955.p4B9tLv5009821@dutch35.digitalus.nl> Message-ID: Hi again, That doesn't seem to work for me. dumpbin produces the following output: Microsoft (R) COFF/PE Dumper Version 10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved. Dump of file libfftw3-3.dll File Type: DLL Summary 66000 .data 52000 .rdata 35000 .reloc 1000 .rsrc 806000 .text No symbol information seems to be produced for Scilab's version. If I do the same on my version of the DLL file it does work. I guess this is because my dumpbin program is part of Visual C++ Express 10, which is not the same as the version used to make the original DLL. Regards, Mike. -----Original Message----- From: jasper van baten [mailto:jasper at amsterchem.com] Sent: 11 May 2011 10:56 To: users at lists.scilab.org; users at lists.scilab.org Subject: RE: [scilab-Users] Link error 236 Hello Mike, >Yes, I agree. Scilab's DLL is the one supplied in the distribution, so it >would have been built in a different environment I guess. As far as I can >see, the LIB file is not included in the Scilab distribution, just the DLL. >Is that right? If so, I can't build my C code against the Scilab version of >the library. I guess I could substitute my DLL for the one in the Scilab >distribution instead? But that sounds even harder... You can make the lib from the DLL supplied with Scilab: 1) use dumpbin to get the exported symbols (dumpbin /symbols libfftw3-3.dll) 2) make a def file out of those (first line EXPORTS, each following line an exported symbol name) 3) use the lib utility to generate the import lib (lib /def:libfftw3-3.def /out:libfftw3-3.lib /machine:x86) Hope that helps, Best wishes, Jasper. No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.900 / Virus Database: 271.1.1/3628 - Release Date: 05/10/11 07:35:00 From jasper at amsterchem.com Wed May 11 12:43:34 2011 From: jasper at amsterchem.com (jasper van baten) Date: Wed, 11 May 2011 12:43:34 +0200 Subject: [scilab-Users] Link error 236 In-Reply-To: References: <201105110955.p4B9tLv5009821@dutch35.digitalus.nl> Message-ID: <201105111043.p4BAhBGG022084@dutch35.digitalus.nl> Hello Mike, Without the symbols it won't be possible to create the import lib of course. The original DLL comes from MKL by the looks of it. The import libs are mkl_core*.lib. Sorry - not so easy to link against that without an MKL installation. Best wishes, Jasper. At 12:23 5/11/2011, Mike Page wrote: >Hi again, > >That doesn't seem to work for me. dumpbin produces the following output: > >Microsoft (R) COFF/PE Dumper Version 10.00.30319.01 >Copyright (C) Microsoft Corporation. All rights reserved. > > >Dump of file libfftw3-3.dll > >File Type: DLL > > Summary > > 66000 .data > 52000 .rdata > 35000 .reloc > 1000 .rsrc > 806000 .text > >No symbol information seems to be produced for Scilab's version. If I do >the same on my version of the DLL file it does work. I guess this is >because my dumpbin program is part of Visual C++ Express 10, which is not >the same as the version used to make the original DLL. > >Regards, >Mike. > > >-----Original Message----- >From: jasper van baten [mailto:jasper at amsterchem.com] >Sent: 11 May 2011 10:56 >To: users at lists.scilab.org; users at lists.scilab.org >Subject: RE: [scilab-Users] Link error 236 > > >Hello Mike, > > > >Yes, I agree. Scilab's DLL is the one supplied in the distribution, so it > >would have been built in a different environment I guess. As far as I can > >see, the LIB file is not included in the Scilab distribution, just the DLL. > >Is that right? If so, I can't build my C code against the Scilab version >of > >the library. I guess I could substitute my DLL for the one in the Scilab > >distribution instead? But that sounds even harder... > >You can make the lib from the DLL supplied with Scilab: > >1) use dumpbin to get the exported symbols (dumpbin /symbols libfftw3-3.dll) >2) make a def file out of those (first line EXPORTS, each following >line an exported symbol name) >3) use the lib utility to generate the import lib (lib >/def:libfftw3-3.def /out:libfftw3-3.lib /machine:x86) > >Hope that helps, > >Best wishes, > >Jasper. > > > >No virus found in this incoming message. >Checked by AVG - www.avg.com >Version: 9.0.900 / Virus Database: 271.1.1/3628 - Release Date: 05/10/11 >07:35:00 From Samuel.Gougeon at univ-lemans.fr Wed May 11 15:49:19 2011 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Wed, 11 May 2011 15:49:19 +0200 Subject: [scilab-Users] Atan function In-Reply-To: <4DC9A6A3.5040609@inria.fr> References: <4DC931D4.5090902@univ-lemans.fr> <4DC98F93.9030302@univ-lemans.fr> <4DC9A6A3.5040609@inria.fr> Message-ID: <4DCA93DF.4060106@univ-lemans.fr> ----- Message d'origine ----- De : Serge Steer Date : 10/05/2011 22:57: > Le 10/05/2011 21:18, Samuel GOUGEON a ?crit : >> Look at that: >> >> -->atan(0, 0) >> ans = >> 0.00000000D+00 >> >> -->atan(0, -0) >> ans = >> 3.14159265D+00 >> >> --> -0 == 0 >> ans = >> T >> >> :-(( Funny, isn't it ?! > This later result is really quite funny, but the atan result is just due to > the branch cut definition for that function The "special" branching cut is used only when atan() is used with a single argument. It is not the case here. The help page states: The range of atan(y,x) is (-pi, pi]. while : atan(-0,-0)== -%pi => %T By the way, how is it possible to explain that the sign of -0 looks to be recorded in floating point mode?? This "feature" makes Scilab somewhat unconsistent: -->floor(-0) ans = 0. // -1 would instead be expected! -->sign(-0) ans = 0. -->sign(-number_properties("tiniest")) ans = - 1. This is why atan(y,x) should return always the same result if x and y are reals and null. -->help minus // does not document this special feature, no more than -->help sign Finally, to answer to Laurent: How can I guess that variable x is -0 and not 0? is_0minus = (x==0 & atan(0,x)==%pi); but we should hope that this puzzling feature will be fixed. Samuel From asko.rouvinen at mevea.com Thu May 12 11:53:11 2011 From: asko.rouvinen at mevea.com (Asko Rouvinen) Date: Thu, 12 May 2011 02:53:11 -0700 (PDT) Subject: Xcos flag 5 (Ending) call Message-ID: <1305193991686-2931172.post@n3.nabble.com> Hi, I've done a simple socket interface to Xcos. There is a problem related to closing the socket. Does anyone know when exactly the flag value 5 (Ending) is called. I've tried to test it and it seems that the call is only done when the simulation time is full. Should this call also be made when simulation is stopped from user interface? This would enable easier opening of new socket and also enable restarting the simulation without waiting untill ending time. Asko -- MeVEA Oy Laserkatu 6, 53850 Lappeenranta www.mevea.com -- View this message in context: http://mailinglists.scilab.org/Xcos-flag-5-Ending-call-tp2931172p2931172.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From communication at scilab.org Thu May 12 13:43:56 2011 From: communication at scilab.org (Scilab Communication) Date: Thu, 12 May 2011 13:43:56 +0200 Subject: Release of Scilab 5.3.2 Message-ID: <4DCBC7FC.5090501@scilab.org> Dear Scilab Users, The Scilab R&D Team is pleased to announce the release of Scilab 5.3.2. Download and information can be found at: http://www.scilab.org/en/products/scilab/download Best Regards ----------------------------------------------- The Scilab Consortium R&D Team ----------------------------------------------- Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex - France From laurent.berger at univ-lemans.fr Thu May 12 14:05:22 2011 From: laurent.berger at univ-lemans.fr (Laurent Berger) Date: Thu, 12 May 2011 14:05:22 +0200 Subject: Clipboard problem with SciNotes Message-ID: <4DCBCD02.7010707@univ-lemans.fr> Hi, If I try to paste source code from SciNotes in libre office 3.3 I have got error message "le format de presse-papiers souhait? n'est pas disponible" (Clipboard format is not available). There is no problem with word. Now I paste first in word and copy from word and paste in libre office every thing is fine. Laurent Berger !Scilab Version: 5.3.1.1299160056 ! ! ! !Operating System: Windows XP 5.1 ! ! ! !Java version : 1.6.0_18 ! ! ! !Java runtime information : Java(TM) SE Runtime Environment (build 1.6.0_18-b07) ! ! ! !Java vm information : Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode) ! ! ! !Vendor specification: Sun Microsystems Inc. ! From calixte at contrib.scilab.org Thu May 12 15:54:11 2011 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Thu, 12 May 2011 15:54:11 +0200 Subject: [scilab-Users] Clipboard problem with SciNotes In-Reply-To: <4DCBCD02.7010707@univ-lemans.fr> References: <4DCBCD02.7010707@univ-lemans.fr> Message-ID: <1305208451.31095.403.camel@Calixte-Dell> Le jeudi 12 mai 2011 ? 14:05 +0200, Laurent Berger a ?crit : > Hi, > Hi, Could you report a bug ? http://bugzilla.scilab.org Thanks Calixte > If I try to paste source code from SciNotes in libre office 3.3 I have > got error message "le format de presse-papiers souhait? n'est pas > disponible" (Clipboard format is not available). > There is no problem with word. > Now I paste first in word and copy from word and paste in libre office > every thing is fine. > > > Laurent Berger > > !Scilab Version: 5.3.1.1299160056 > ! > ! > ! > !Operating System: Windows XP 5.1 > ! > ! > ! > !Java version : 1.6.0_18 > ! > ! > ! > !Java runtime information : Java(TM) SE Runtime Environment (build > 1.6.0_18-b07) ! > ! > ! > !Java vm information : Java HotSpot(TM) Client VM (build 16.0-b13, > mixed mode) ! > ! > ! > !Vendor specification: Sun Microsystems Inc. > ! From clement.david at scilab.org Thu May 12 16:27:56 2011 From: clement.david at scilab.org (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Thu, 12 May 2011 16:27:56 +0200 Subject: [scilab-Users] Xcos flag 5 (Ending) call In-Reply-To: <1305193991686-2931172.post@n3.nabble.com> References: <1305193991686-2931172.post@n3.nabble.com> Message-ID: <1305210476.3068.14.camel@pinarellu.inria.fr> Hello, Could you report a bug on http://bugzilla.scilab.org please (priority wishlist) ? Le jeudi 12 mai 2011 ? 02:53 -0700, Asko Rouvinen a ?crit : > Hi, > > I've done a simple socket interface to Xcos. There is a problem related to > closing the socket. Does anyone know when exactly the flag value 5 (Ending) > is called. I've tried to test it and it seems that the call is only done > when the simulation time is full. Should this call also be made when > simulation is stopped from user interface? This would enable easier opening > of new socket and also enable restarting the simulation without waiting > untill ending time. > > Asko > -- Cl?ment David From guylaine.collewet at cemagref.fr Thu May 12 19:05:27 2011 From: guylaine.collewet at cemagref.fr (Collewet Guylaine) Date: Thu, 12 May 2011 19:05:27 +0200 Subject: use of lsqrsolve In-Reply-To: <1305210476.3068.14.camel@pinarellu.inria.fr> References: <1305193991686-2931172.post@n3.nabble.com> <1305210476.3068.14.camel@pinarellu.inria.fr> Message-ID: Hello, I would like to use [x ,v ,info]=lsqrsolve(x0,fct,m ,fjac ,stop ,diag) If the number of data is D and the number of parameters to be found is P what size should the output of fjac be ? (D,P) ? or (P,D) ? And for fct ? (D,1) ? or (1,D) ? Thank you Guylaine From vipulb at cdacb.ernet.in Fri May 13 10:25:33 2011 From: vipulb at cdacb.ernet.in (vipulb) Date: Fri, 13 May 2011 13:55:33 +0530 Subject: scilab breaks down when using VNC Message-ID: <4DCCEAFD.3040904@cdacb.ernet.in> Hello, I am running scilab and vnc on Fedora12 machine. When i start scilab the console comes properly. When i do plot it breaks down saying following error message: ./bin/scilab: line 644: 17343 Segmentation fault (core dumped) "$SCILABBIN" "$@" Any ideas on this: I am using scilab-5.3.1.bin.linux-i686.tar.gz package. Thanks Vipul -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From sylvestre.ledru at scilab.org Fri May 13 13:47:10 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 13 May 2011 13:47:10 +0200 Subject: [scilab-Users] scilab breaks down when using VNC In-Reply-To: <4DCCEAFD.3040904@cdacb.ernet.in> References: <4DCCEAFD.3040904@cdacb.ernet.in> Message-ID: <1305287230.22757.16.camel@korcula.inria.fr> Hello, Le vendredi 13 mai 2011 ? 13:55 +0530, vipulb a ?crit : > Hello, > > I am running scilab and vnc on Fedora12 machine. When i start scilab the > console comes properly. > > When i do plot it breaks down saying following error message: > > ./bin/scilab: line 644: 17343 Segmentation fault (core dumped) > "$SCILABBIN" "$@" > > > Any ideas on this: I am using scilab-5.3.1.bin.linux-i686.tar.gz package. Could you try with Scilab 5.3.2 and report a bug on http://bugzilla.scilab.org/ if it still occurs. Thanks Sylvestre From eduardoback at hotmail.com Fri May 13 16:09:23 2011 From: eduardoback at hotmail.com (Eduardo Clasen Back) Date: Fri, 13 May 2011 11:09:23 -0300 Subject: How the convol() works Message-ID: Hello, Where I can find a description of how the command convol() works? I would like to perform a convolution of two signals without using the command convol (), how could I do that? More specifically, as the command convol () is implemented? Thank you, Eduardo. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Fri May 13 17:08:02 2011 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Fri, 13 May 2011 17:08:02 +0200 Subject: [scilab-Users] How the convol() works In-Reply-To: References: Message-ID: <4DCD4952.2020705@univ-lemans.fr> Hello, ----- Message d'origine ----- De : Eduardo Clasen Back Date : 13/05/2011 16:09: > Hello, > Where I can find a description of how the command convol() works? I would like > to perform a convolution of two signals without using the command convol (), > how could I do that? More specifically, as the command convol () is implemented? > Thank you, > > Eduardo. You may have some insight about it by editing it, since it is implemented as a macro: --> edit convol As expected (for algorithmic reason about FastFT and the FT(convol) property), it uses fft(). HTH Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From ierturk at ieee.org Sat May 14 01:54:36 2011 From: ierturk at ieee.org (ierturk) Date: Fri, 13 May 2011 16:54:36 -0700 (PDT) Subject: Additional Palette and Custom Palette Problem with Xcos Message-ID: <1305330876628-2936600.post@n3.nabble.com> I have created a new palette and block. When new block is added, graphic or image of block is seen on it, but when Xcos file is saved, graphic is lost. I added another xcos palette from ATOM (hybrid automata) for checking whether this case emerges with my custom palette or not, and same problem emerges with it. My configuration Windows Vista 32Bit Scilab 5.3.2 Is there anybody who is try it under given configuration? ierturk -- View this message in context: http://mailinglists.scilab.org/Additional-Palette-and-Custom-Palette-Problem-with-Xcos-tp2936600p2936600.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From ierturk at ieee.org Sat May 14 03:36:41 2011 From: ierturk at ieee.org (ierturk) Date: Fri, 13 May 2011 18:36:41 -0700 (PDT) Subject: =?UTF-8?Q?Induction_Machine_Per_Unit_d-q_?= =?UTF-8?Q?Model_ScicosLab_and_Scilab/Xco=E2=80=8Bs?= Message-ID: <1305337001218-2936771.post@n3.nabble.com> Induction machine per-unit dq model which was created using Generic C Block Generic model was improved with add ScicosLab interface function for input machine parameters. Improved model can be downloaded from below link. Update: May, 14, 2011 Model developed for ScicosLab is updated for Scilab/Xcos. It can be downloaded from link below. http://www.stargate-tr.com/?p=814 ierturk -- View this message in context: http://mailinglists.scilab.org/Induction-Machine-Per-Unit-d-q-Model-ScicosLab-and-Scilab-Xco-s-tp2936771p2936771.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From ychattah at iai.co.il Mon May 16 06:58:14 2011 From: ychattah at iai.co.il (computidoo) Date: Sun, 15 May 2011 21:58:14 -0700 (PDT) Subject: loadmatfile Message-ID: <1305521894108-2946482.post@n3.nabble.com> Hello, I have a mat file from matlab with stracture and binary .how do i open it on scilab? i tried to use loadmarfile but its look that i dont understand how to use it. http://mailinglists.scilab.org/file/n2946482/materials.mat materials.mat -- View this message in context: http://mailinglists.scilab.org/loadmatfile-tp2946482p2946482.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From vincent.couvert at scilab.org Mon May 16 10:21:49 2011 From: vincent.couvert at scilab.org (Vincent COUVERT) Date: Mon, 16 May 2011 10:21:49 +0200 Subject: [scilab-Users] loadmatfile In-Reply-To: <1305521894108-2946482.post@n3.nabble.com> References: <1305521894108-2946482.post@n3.nabble.com> Message-ID: <4DD0DE9D.4080409@scilab.org> Hi, loadmatile("yourfilename") should work if your file as .mat extension. Else you can try using loadmatfile("yourfilename", "-mat") Regards. Le 16/05/11 06:58, computidoo a ?crit : > Hello, > I have a mat file from matlab with stracture and binary .how do i open it on > scilab? i tried to use loadmarfile but its look that i dont understand how > to use it. > > > http://mailinglists.scilab.org/file/n2946482/materials.mat materials.mat > > -- > View this message in context: http://mailinglists.scilab.org/loadmatfile-tp2946482p2946482.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Samuel.Gougeon at univ-lemans.fr Mon May 16 10:27:03 2011 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Mon, 16 May 2011 10:27:03 +0200 Subject: [scilab-Users] loadmatfile In-Reply-To: <1305521894108-2946482.post@n3.nabble.com> References: <1305521894108-2946482.post@n3.nabble.com> Message-ID: <4DD0DFD7.7030907@univ-lemans.fr> Hello, ----- Message d'origine ----- De : computidoo Date : 16/05/2011 06:58: > Hello, > I have a mat file from matlab with stracture and binary .how do i open it on > scilab? i tried to use loadmarfile but its look that i dont understand how > to use it. The following works (the file must be in the working directory): who_user loadmatfile materials.mat materials materials.name materials.er materials.tande materials.mpr materials.m2pr HTH Samuel From berns.buenaobra at gmail.com Tue May 17 07:35:50 2011 From: berns.buenaobra at gmail.com (Berns Buenaobra) Date: Tue, 17 May 2011 13:35:50 +0800 Subject: [scilab-Users] help scilab In-Reply-To: <615806F65B3C41FDA1CAF801639232DB@PC> References: <615806F65B3C41FDA1CAF801639232DB@PC> Message-ID: Hello Alejandro: Looks fine to me (see attached). Actually worked on my recently installed 3.5.2 version. Seemed to me your computer crashes when Scilab calls the plot routine. Have you selectively downloaded the modules or use the default? Also check your math library you choosed when downloading and installing. How about checking the redistributable Microsoft 2005 C++ installation? (see on a control panel)? What running on the tasks before running this? (CTRL+ALT DEL). I'm going to introduce the software to my lecturing work for undergraduate applied physics classes by June 2011 and kind of brushing up on it these last few days. Regards, Berns B. On Mon, Feb 21, 2011 at 9:31 AM, ATTe.: Alejandro Aldaco < rida.alekxe.hansamu at gmail.com> wrote: > hello, my name is Alejandro, i?m using scilab for college. > i downloaded scilab 6 days ago, and when i ran it there was a problem when > i tried to plot a function. the code that i used was: > > -->x=0:0.1:15; > -->y=x^2 > -->plot(x,y) > > when i type enter, the program simply closes. > i really need to get the graphics, for which i require to solve this > problem but i really don?t know how. > thas is why i call for advice about what should i check on my sistem. > > i shoul mention that already tried reinstalling the program > > I await your response. in advance, thanks > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: motordatasheet_01 17-May-11 13.32.jpg Type: image/jpeg Size: 114310 bytes Desc: not available URL: From ierturk at ieee.org Tue May 17 03:14:13 2011 From: ierturk at ieee.org (ierturk) Date: Mon, 16 May 2011 18:14:13 -0700 (PDT) Subject: Modelling, Simulation and Controlling of Brushless DC Machine under Scilab/Xcos Message-ID: <1305594853527-2950717.post@n3.nabble.com> In this study, The model which is previously developed under Java environment is ported to Scilab/Xcos. Two model is developed to simulation as BLDC Machine and BLDC Controller. All parameters can be changed via an interface. In BLDC Machine Model, rotor flux rotor is trapezoidal. Instead of hall sensor, a output is added to model as indicate step. Model is based on Matlab SimPowerSystem Blockset. Detailed information about model can be found at link below. In BLDC Controller Model, Speed control is done. It based on 6-step control, and DC bus voltage is adjusted by PI controller to acheive required speed. Required simulation files can be downloaded from links below. Also, It includes source files of models. To run model, it is sufficient execute RunFirst.sce after extract archive in Scilab/Xcos enviroment. Script creates libraries and interfaces and open xcos model. Model Developed under Below Configuration ?Scilab 5.3.2 Stable ?Windows Vista 32Bit ?Microsoft Visual C++ 2010 Express http://www.stargate-tr.com/?p=1262 ierturk -- View this message in context: http://mailinglists.scilab.org/Modelling-Simulation-and-Controlling-of-Brushless-DC-Machine-under-Scilab-Xcos-tp2950717p2950717.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From antoine.monmayrant at laas.fr Tue May 17 08:39:27 2011 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 17 May 2011 08:39:27 +0200 Subject: [scilab-Users] help scilab In-Reply-To: <615806F65B3C41FDA1CAF801639232DB@PC> References: <615806F65B3C41FDA1CAF801639232DB@PC> Message-ID: <4DD2181F.2010507@laas.fr> Le 21/02/2011 02:31, ATTe.: Alejandro Aldaco a ?crit : > hello, my name is Alejandro, i?m using scilab for college. > i downloaded scilab 6 days ago, and when i ran it there was a problem when i tried to plot a function. the code that i used was: > > -->x=0:0.1:15; > -->y=x^2 > -->plot(x,y) > > when i type enter, the program simply closes. > i really need to get the graphics, for which i require to solve this problem but i really don?t know how. > thas is why i call for advice about what should i check on my sistem. > > i shoul mention that already tried reinstalling the program > > I await your response. in advance, thanks > > Hi Alejandro, Are you using the very last version of scilab ( 5.3.2 ) ? If not, you should try with this version. Anyway, this kind of problem is usually related to your video driver. You should try to update it. Cheers, Antoine From vogt at centre-cired.fr Tue May 17 10:10:56 2011 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Tue, 17 May 2011 10:10:56 +0200 Subject: [scilab-Users] help scilab In-Reply-To: <615806F65B3C41FDA1CAF801639232DB@PC> References: <615806F65B3C41FDA1CAF801639232DB@PC> Message-ID: <4DD22D90.90009@centre-cired.fr> Hi Are you trying to use scilab on MacOS ? If yes, which version of scilab and which version of MacOS do you have? Le 21/02/2011 02:31, ATTe.: Alejandro Aldaco a ?crit : > hello, my name is Alejandro, i?m using scilab for college. > i downloaded scilab 6 days ago, and when i ran it there was a problem > when i tried to plot a function. the code that i used was: > -->x=0:0.1:15; > -->y=x^2 > -->plot(x,y) > when i type enter, the program simply closes. > i really need to get the graphics, for which i require to solve this > problem but i really don?t know how. > thas is why i call for advice about what should i check on my sistem. > i shoul mention that already tried reinstalling the program > I await yourresponse.inadvance,thanks -- *Adrien Vogt-Schilb* Research Fellow vogt at centre-cired.fr Tel: (+33) 1 43 94 73 96 Fax: (+33) 1 43 94 73 70 CIRED 45 bis, Av de la Belle Gabrielle F-94736 Nogent-sur-Marne http://www.centre-cired.fr/ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logocired.png Type: image/png Size: 4092 bytes Desc: not available URL: From michael.baudin at scilab.org Wed May 18 10:52:09 2011 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Wed, 18 May 2011 10:52:09 +0200 Subject: [scilab-Users] Atan function In-Reply-To: <4DCA93DF.4060106@univ-lemans.fr> References: <4DC931D4.5090902@univ-lemans.fr> <4DC98F93.9030302@univ-lemans.fr> <4DC9A6A3.5040609@inria.fr> <4DCA93DF.4060106@univ-lemans.fr> Message-ID: <4DD388B9.5090004@scilab.org> Hi, I do not see any bug in Scilab in this thread except, perhaps, in Matlab. At first, we can inspect the plot of the atan(y,x) function: scf(); N=20; y=linspace(-4,4,N); x=linspace(-4,4,N); Z=(feval(y,x,myatan))'; surf (y ,x ,Z); h = gcf (); cmap = graycolormap (10); h. color_map = cmap ; xtitle("atan(y,x)","y","x"); There is a discontinuity on the line y=0 for x<0. The following session: -->atan(0,+0) ans = 0. -->atan(0,-0) ans = 3.1415927 is caused by the signed zeros of the IEEE floating point arithmetic. The values returned by atan are consistent with the mathematical limit of the atan(0,x) function. The signed zero exists because there are two ways of representing zero in a floating point format: * (-1)^0 * 0 * 2^-1022 * (-1)^1 * 0 * 2^-1022 In both case, the significant is zero and the exponent is set to the minimum. But in the first case, the sign bit is set to 0, while in the second it is set to 1. This topic is covered in "Floating point numbers in Scilab", section 3.8 "Signed zeros": http://forge.scilab.org/index.php/p/docscifloat/downloads/ These signed zeros can be consistently used to make branch cuts of inverse trigonometric function consistent, as emphasized by Kahan in "Branch cuts for complex elementary functions, or much ado about nothing's sign bit". Exactly the same session can be reproduced in Octave, although Scilab atan(y,x) is called atan2(y,x) in Octave: octave-3.2.4.exe:5> atan2([+0 -0 +0 -0],[+0 +0 -0 -0]) ans = 0.00000 -0.00000 3.14159 -3.14159 This is the same result as in Scilab: -->atan([+0 -0 +0 -0],[+0 +0 -0 -0]) ans = 0. 0. 3.1415927 - 3.1415927 These values are consistent with the values given in the ISO C99 standard (see the section F.9.1.4 "The atan2 functions"). These values are also consistent with the wikipedia page: http://en.wikipedia.org/wiki/Atan2 See the "Variations" section and the note on the FPATAN function. On the other hand, it seems to me that Matlab has a chosen to set zero on output whenever one of the inputs x or y is zero: >> atan2([+0 -0 +0 -0],[+0 +0 -0 -0]) ans = 0 0 0 0 My point of view is that this is a bug, but it seems that this is on purpose: http://www.mathworks.com/support/solutions/en/data/1-1CBTV/index.html?product=ML Most functions consistently take into account for signed zeros in Scilab. The fact that -->-0==+0 ans = T is not really surprising: it is consistent with the mathematical definition of the zero. The "sign" function in Scilab does not allow to distinguish these two zeros: -->sign(+0) ans = 0. -->sign(-0) ans = 0. This is consistent with the mathematical definition of the "sign" function, which is zero when x is zero. The missing function in Scilab is "signbit", which returns the sign bit of the given number. A implementation is available in the floating point module : http://forge.scilab.org/index.php/p/floatingpoint/source/tree/HEAD/macros/flps_signbit.sci This implementation is based on the fact that the most simple way to know the sign bit of a real number is to invert it, as shown in the following session: -->ieee(2) -->1/-0 ans = - Inf -->1/+0 ans = Inf Using this function is simple with ATOMS: -->atomsInstall("floatingpoint"); -->atomsLoad("floatingpoint"); -->b = flps_signbit ( +0 ) b = F -->b = flps_signbit ( -0 ) b = T There are a couple of functions also missing in this category, including: copysign, hypot, isfinite, pow2. Best regards, Micha?l Baudin PS Here are a couple of plots. // 2D plots scf(); subplot(2,2,1); z2=atan(y,-4*ones(y)); plot(y,z2) xtitle("atan(y,-4)","y"); // subplot(2,2,2); z2=atan(y,-2*ones(y)); plot(y,z2) xtitle("atan(y,-2)","y"); // subplot(2,2,3); z2=atan(y,+2*ones(y)); plot(y,z2) xtitle("atan(y,2)","y"); // subplot(2,2,4); z2=atan(y,+4*ones(y)); plot(y,z2) xtitle("atan(y,4)","y"); Le 11/05/2011 15:49, Samuel GOUGEON a ?crit : > ----- Message d'origine ----- > De : Serge Steer > Date : 10/05/2011 22:57: >> Le 10/05/2011 21:18, Samuel GOUGEON a ?crit : >>> Look at that: >>> >>> -->atan(0, 0) >>> ans = >>> 0.00000000D+00 >>> >>> -->atan(0, -0) >>> ans = >>> 3.14159265D+00 >>> >>> --> -0 == 0 >>> ans = >>> T >>> >>> :-(( Funny, isn't it ?! >> This later result is really quite funny, but the atan result is just >> due to the branch cut definition for that function > The "special" branching cut is used only when atan() is used with a > single argument. > It is not the case here. The help page states: The range of atan(y,x) > is (-pi, pi]. > while : atan(-0,-0)== -%pi => %T > > By the way, how is it possible to explain that the sign of -0 looks to > be recorded > in floating point mode?? This "feature" makes Scilab somewhat > unconsistent: > -->floor(-0) > ans = > 0. > // -1 would instead be expected! > -->sign(-0) > ans = > 0. > -->sign(-number_properties("tiniest")) > ans = > - 1. > This is why atan(y,x) should return always the same result if x and y > are reals and null. > -->help minus // does not document this special feature, no more than > -->help sign > > Finally, to answer to Laurent: > > How can I guess that variable x is -0 and not 0? > > is_0minus = (x==0 & atan(0,x)==%pi); > > but we should hope that this puzzling feature will be fixed. > > Samuel > -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 From gilles.gobillot at cea.fr Wed May 18 10:59:58 2011 From: gilles.gobillot at cea.fr (GOBILLOT Gilles 116128) Date: Wed, 18 May 2011 10:59:58 +0200 Subject: [scilab-Users] Synthetic Aperture reconstruction In-Reply-To: <1305193991686-2931172.post@n3.nabble.com> References: <1305193991686-2931172.post@n3.nabble.com> Message-ID: <144DEAFF92B8634BBDB7765C0DAE4B75D48CEF@TOURVES.intra.cea.fr> Hi, I try to rebuild images starting from ultrasonic measurements. The techniques using aperture synthesis (SAFT or SAR) seem to be appropriate: on the basis of a N by N points measurement one can represent an image of M by M To accelerate the treatment I try to use a frequential method (FD-SAFT). The algorithm is simple, but I do not manage how to change the scale of the image: G=fft(measurement); B=exp(%i*2*kz*(1-(kx/2/K)^2-(ky/2/K)^2)); Gprime=G*B; FSAFT=fft-1(Gprime); Where measurement is N by N And FSAFT would be M by M Can somebody help me? Gilles From michael.baudin at scilab.org Wed May 18 12:04:32 2011 From: michael.baudin at scilab.org (=?UTF-8?B?TWljaGHDq2wgQmF1ZGlu?=) Date: Wed, 18 May 2011 12:04:32 +0200 Subject: [scilab-Users] Atan function In-Reply-To: <4DD388B9.5090004@scilab.org> References: <4DC931D4.5090902@univ-lemans.fr> <4DC98F93.9030302@univ-lemans.fr> <4DC9A6A3.5040609@inria.fr> <4DCA93DF.4060106@univ-lemans.fr> <4DD388B9.5090004@scilab.org> Message-ID: <4DD399B0.80806@scilab.org> Hi, I also looked in the Language Independent Arithmetic 2 "Elementary functions". The section 5.3.9.15 "Radian angle from Cartesian Co-ordinates" focuses on the atan2 function. We notice that the LIA standard switches the x and y arguments. Moreover, we see the line : arcF (x, y)= downF (pi) if x = ?0 and y = 0 which is exactly what is executed in the session: -->y=+0; -->x=-0; -->atan(y,x) ans = 3.1415927 Therefore, Scilab's atan is compatible with LIA 2 for this input. Regards, Micha?l Baudin Le 18/05/2011 10:52, Micha?l Baudin a ?crit : > Hi, > > I do not see any bug in Scilab in this thread except, perhaps, in Matlab. > > At first, we can inspect the plot of the atan(y,x) function: > > scf(); > N=20; > y=linspace(-4,4,N); > x=linspace(-4,4,N); > Z=(feval(y,x,myatan))'; > surf (y ,x ,Z); > h = gcf (); > cmap = graycolormap (10); > h. color_map = cmap ; > xtitle("atan(y,x)","y","x"); > > There is a discontinuity on the line y=0 for x<0. > > The following session: > > -->atan(0,+0) > ans = > 0. > -->atan(0,-0) > ans = > 3.1415927 > > is caused by the signed zeros of the IEEE floating point arithmetic. > The values returned by atan are consistent with the mathematical limit > of the atan(0,x) function. > > The signed zero exists because there are two ways of representing zero > in a floating point format: > > * (-1)^0 * 0 * 2^-1022 > * (-1)^1 * 0 * 2^-1022 > > In both case, the significant is zero and the exponent is set to the > minimum. But in the first case, the sign bit is set to 0, while in the > second it is set to 1. This topic is covered in "Floating point > numbers in Scilab", section 3.8 "Signed zeros": > > http://forge.scilab.org/index.php/p/docscifloat/downloads/ > > These signed zeros can be consistently used to make branch cuts of > inverse trigonometric function consistent, as emphasized by Kahan in > "Branch cuts for complex elementary functions, or much ado about > nothing's sign bit". > > Exactly the same session can be reproduced in Octave, although Scilab > atan(y,x) is called atan2(y,x) in Octave: > > octave-3.2.4.exe:5> atan2([+0 -0 +0 -0],[+0 +0 -0 -0]) > ans = > > 0.00000 -0.00000 3.14159 -3.14159 > > This is the same result as in Scilab: > > -->atan([+0 -0 +0 -0],[+0 +0 -0 -0]) > ans = > 0. 0. 3.1415927 - 3.1415927 > > These values are consistent with the values given in the ISO C99 > standard (see the section F.9.1.4 "The atan2 functions"). These values > are also consistent with the wikipedia page: > > http://en.wikipedia.org/wiki/Atan2 > > See the "Variations" section and the note on the FPATAN function. > > On the other hand, it seems to me that Matlab has a chosen to set zero > on output whenever one of the inputs x or y is zero: > > >> atan2([+0 -0 +0 -0],[+0 +0 -0 -0]) > ans = > 0 0 0 0 > > My point of view is that this is a bug, but it seems that this is on > purpose: > > http://www.mathworks.com/support/solutions/en/data/1-1CBTV/index.html?product=ML > > > Most functions consistently take into account for signed zeros in > Scilab. The fact that > > -->-0==+0 > ans = > T > > is not really surprising: it is consistent with the mathematical > definition of the zero. > > The "sign" function in Scilab does not allow to distinguish these two > zeros: > > -->sign(+0) > ans = > 0. > -->sign(-0) > ans = > 0. > > This is consistent with the mathematical definition of the "sign" > function, which is zero when x is zero. > > The missing function in Scilab is "signbit", which returns the sign > bit of the given number. A implementation is available in the floating > point module : > > http://forge.scilab.org/index.php/p/floatingpoint/source/tree/HEAD/macros/flps_signbit.sci > > > This implementation is based on the fact that the most simple way to > know the sign bit of a real number is to invert it, as shown in the > following session: > > -->ieee(2) > -->1/-0 > ans = > - Inf > -->1/+0 > ans = > Inf > > Using this function is simple with ATOMS: > > -->atomsInstall("floatingpoint"); > -->atomsLoad("floatingpoint"); > -->b = flps_signbit ( +0 ) > b = > F > -->b = flps_signbit ( -0 ) > b = > T > > There are a couple of functions also missing in this category, > including: copysign, hypot, isfinite, pow2. > > Best regards, > > Micha?l Baudin > > PS > Here are a couple of plots. > > // 2D plots > scf(); > subplot(2,2,1); > z2=atan(y,-4*ones(y)); > plot(y,z2) > xtitle("atan(y,-4)","y"); > // > subplot(2,2,2); > z2=atan(y,-2*ones(y)); > plot(y,z2) > xtitle("atan(y,-2)","y"); > // > subplot(2,2,3); > z2=atan(y,+2*ones(y)); > plot(y,z2) > xtitle("atan(y,2)","y"); > // > subplot(2,2,4); > z2=atan(y,+4*ones(y)); > plot(y,z2) > xtitle("atan(y,4)","y"); > > > > Le 11/05/2011 15:49, Samuel GOUGEON a ?crit : >> ----- Message d'origine ----- >> De : Serge Steer >> Date : 10/05/2011 22:57: >>> Le 10/05/2011 21:18, Samuel GOUGEON a ?crit : >>>> Look at that: >>>> >>>> -->atan(0, 0) >>>> ans = >>>> 0.00000000D+00 >>>> >>>> -->atan(0, -0) >>>> ans = >>>> 3.14159265D+00 >>>> >>>> --> -0 == 0 >>>> ans = >>>> T >>>> >>>> :-(( Funny, isn't it ?! >>> This later result is really quite funny, but the atan result is just >>> due to the branch cut definition for that function >> The "special" branching cut is used only when atan() is used with a >> single argument. >> It is not the case here. The help page states: The range of atan(y,x) >> is (-pi, pi]. >> while : atan(-0,-0)== -%pi => %T >> >> By the way, how is it possible to explain that the sign of -0 looks >> to be recorded >> in floating point mode?? This "feature" makes Scilab somewhat >> unconsistent: >> -->floor(-0) >> ans = >> 0. >> // -1 would instead be expected! >> -->sign(-0) >> ans = >> 0. >> -->sign(-number_properties("tiniest")) >> ans = >> - 1. >> This is why atan(y,x) should return always the same result if x and y >> are reals and null. >> -->help minus // does not document this special feature, no more than >> -->help sign >> >> Finally, to answer to Laurent: >> >> How can I guess that variable x is -0 and not 0? >> >> is_0minus = (x==0 & atan(0,x)==%pi); >> >> but we should hope that this puzzling feature will be fixed. >> >> Samuel >> > > -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 From laurent.berger at univ-lemans.fr Wed May 18 14:05:33 2011 From: laurent.berger at univ-lemans.fr (laurent berger) Date: Wed, 18 May 2011 05:05:33 -0700 (PDT) Subject: Atan function In-Reply-To: <4DD399B0.80806@scilab.org> References: <4DC931D4.5090902@univ-lemans.fr> <4DC98F93.9030302@univ-lemans.fr> <4DC9A6A3.5040609@inria.fr> <4DCA93DF.4060106@univ-lemans.fr> <4DD388B9.5090004@scilab.org> <4DD399B0.80806@scilab.org> Message-ID: <1305720333000-2956645.post@n3.nabble.com> Hi, Thanks you for yours answers I didn't write that's a bug only that I didn't understand results. For an end user like me I have learn at school that atan is a function (a function give only one result) and atan(0) is equal to atan(-0). Scilab results are mathematically stange. In libre office results are like in Scilab so compatible with LIA 2. best regards Laurent Berger -- View this message in context: http://mailinglists.scilab.org/Atan-function-tp2922891p2956645.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From ierturk at ieee.org Wed May 18 16:21:47 2011 From: ierturk at ieee.org (ierturk) Date: Wed, 18 May 2011 07:21:47 -0700 (PDT) Subject: Modelling, Simulation and Controlling of Permanent Magnet Synchronous Machine under Scilab/Xcos Message-ID: <1305728507038-2957144.post@n3.nabble.com> In this study, The model which is previously developed under ScicosLab PMSM d-q model is ported to Scilab/Xcos. Two model is developed to simulation as PMSM Machine and PMSM Controller. While, PMSM model is developed as a C-Block, standart Xcos blocks is used to create PMSM Controler. Also, previous Xcos models (BLDC Machine and BLDC controler) are available in this study. In PMSM Machine Model, rotor flux is sinusoidal. Instead of hall sensor, an output is added to model as indicate rotor position. Model is based on Matlab SimPowerSystem Blockset. Detailed information about model can be found at link below. In PMSM Controller Model, Speed control is done. It based on filed oriented control (FOC), and DC bus voltage is adjusted by PI controller to acheive required speed. Required simulation files can be downloaded from links below. Also, It includes source files of models. To run model, it is sufficient execute RunFirst.sce after extract archive in Scilab/Xcos enviroment. Script creates libraries and interfaces and open xcos model. Model Developed under Below Configuration ? Scilab 5.3.2 Stable ? Windows Vista 32Bit ? Microsoft Visual C++ 2010 Express http://www.stargate-tr.com/?p=1279 ierturk -- View this message in context: http://mailinglists.scilab.org/Modelling-Simulation-and-Controlling-of-Permanent-Magnet-Synchronous-Machine-under-Scilab-Xcos-tp2957144p2957144.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From antoine.monmayrant at laas.fr Thu May 19 15:23:22 2011 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Thu, 19 May 2011 15:23:22 +0200 Subject: parallel run not working (scilab 5.3.2 under centos 5.6) Message-ID: <4DD519CA.6050305@laas.fr> Hi everyone, I just upgraded the scilab version we use in our lab to 5.3.2. It seemed to work fine until we tried to use parallel_run. This fails miserably on both our real case scenario and on the first example found in the help for parallel_run. It seems to be linked to the version of Glibc (2.5) that is too old. Do you know any workaround or any way to install in local another version of Glibc (2.6) to be used by scilab? Cheers, Antoine PS: here is what I got when trying to run the example: -->function make_compiled_function(name, ext, code) --> filename=name+ext; --> mputl(code, filename); --> ilib_for_link(fun_name,filename,[],"c"); --> exec loader.sce; --> mdelete(filename); -->endfunction --> -->fun_name='test_fun'; -->c_prog=['#include ' -->'void '+fun_name+'(void const* const* args, void *const* res) {' -->'*((double*)*res)= (((double*)args[0])[0])*(((double*)args[0])[0]);' -->'}']; -->make_compiled_function(fun_name, '.c',c_prog); Generate a loader file Generate a Makefile ilib_gen_Make: configure : Generate Makefile. ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR ilib_gen_Make: Copy test_fun.c to TMPDIR ilib_gen_Make: Modification of the Makefile in TMPDIR. Running the Makefile Generate a cleaner file Shared archive loaded. Link done. --> -->res=parallel_run(1:10, fun_name);// res = [1., 4., 9., 16., 25., 36., 49., 64., 81., 100.]; A previous error has been detected while loading libsciparallel.so: cannot open shared object file !--error 999 Impossible to load libsciparallel.so library: /usr/local/diodesLASER/softs/scilab-5.3.2/share/scilab/modules/parallel/.libs/libsciparallel.so: cannot open shared object file: No such file or directory From sylvestre.ledru at scilab.org Thu May 19 15:25:49 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 19 May 2011 15:25:49 +0200 Subject: [scilab-Users] parallel run not working (scilab 5.3.2 under centos 5.6) In-Reply-To: <4DD519CA.6050305@laas.fr> References: <4DD519CA.6050305@laas.fr> Message-ID: <1305811549.3802.20.camel@korcula.inria.fr> Le jeudi 19 mai 2011 ? 15:23 +0200, Antoine Monmayrant a ?crit : > Hi everyone, > > I just upgraded the scilab version we use in our lab to 5.3.2. > It seemed to work fine until we tried to use parallel_run. > This fails miserably on both our real case scenario and on the first > example found in the help for parallel_run. > It seems to be linked to the version of Glibc (2.5) that is too old. > Do you know any workaround or any way to install in local another > version of Glibc (2.6) to be used by scilab? This issue has been reported here: http://bugzilla.scilab.org/show_bug.cgi?id=9381 For now, I didn't find the time to try the solution detailed in the comment #1. Sylvestre From auteur at amedialit.com Thu May 19 15:25:45 2011 From: auteur at amedialit.com (auteur at amedialit.com) Date: 19 May 2011 15:25:45 +0200 Subject: AUTO REPLY Message-ID: <20110519132545.425.qmail@dns4.french-connexion.com> Bonjour a tous L'agence n'accepte plus de nouveaux clients pour le moment. Merci de visiter www.amedialit.com pour les prochaines dates d'appel ? manuscrits. Hello The agency no longer accepts queries. Please visit our website www.amedialit.com for further information. A. Mediation Litteraire From mjesus at ualg.pt Thu May 19 23:54:32 2011 From: mjesus at ualg.pt (=?iso-8859-1?b?TeFyaW8=?= Jesus) Date: Thu, 19 May 2011 22:54:32 +0100 Subject: [DEC] metanet for linux dist Message-ID: <20110519225432.18745w55vzjwbj40@wmail.ualg.pt> Hello there! I'm having some trouble with scilab 5.3.0 / .1 / .2 because I can find the toolbox metanet in the ATOMS installation modules. I need that toolbox with some urgency. Is there any date to resolve the problem? Can you give a bypass sugestion? Thanks. M?rio Jesus (Professor) Universidade do Algarve / ISE / DEC Gab 1.49 - Ext. 6732 ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From sylvestre.ledru at scilab.org Thu May 19 23:57:01 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 19 May 2011 23:57:01 +0200 Subject: [scilab-Users] [DEC] metanet for linux dist In-Reply-To: <20110519225432.18745w55vzjwbj40@wmail.ualg.pt> References: <20110519225432.18745w55vzjwbj40@wmail.ualg.pt> Message-ID: <1305842221.7712.5.camel@losinj.inria.fr> Le jeudi 19 mai 2011 ? 22:54 +0100, M?rio Jesus a ?crit : > Hello there! > > I'm having some trouble with scilab 5.3.0 / .1 / .2 because I can find > the toolbox metanet in the ATOMS installation modules. I need that > toolbox with some urgency. Is there any date to resolve the problem? > Can you give a bypass sugestion? Hello Mario, You can get it from the git repository here: http://forge.scilab.org/index.php/p/metanet/source/help/ Please note that there are some critical bugs (which explains why we removed it from ATOMS) but most of the features are available. We hope we will be able to put in back in ATOMS soon. Sylvestre From auteur at amedialit.com Fri May 20 00:09:48 2011 From: auteur at amedialit.com (auteur at amedialit.com) Date: 20 May 2011 00:09:48 +0200 Subject: AUTO REPLY Message-ID: <20110519220948.13503.qmail@dns4.french-connexion.com> Bonjour a tous L'agence n'accepte plus de nouveaux clients pour le moment. Merci de visiter www.amedialit.com pour les prochaines dates d'appel ? manuscrits. Hello The agency no longer accepts queries. Please visit our website www.amedialit.com for further information. A. Mediation Litteraire From aloui_houssem at hotmail.fr Fri May 20 00:55:54 2011 From: aloui_houssem at hotmail.fr (Houssem Eddine ALOUI) Date: Fri, 20 May 2011 00:55:54 +0200 Subject: traduction algorithme marq de matlab en scilab Message-ID: Hello, I wanted to translate the algorithm marq (learning and training of neural networks) inmatlab scilab. I translated everything I could translate it but I still how to translate 'settrain'and 'trparms'scilab in to finish the program or find an equivalent for it to work. It's a bit urgent for me because it's in my project. I send you attached the two files and matlab scilab algorithm marq if you're interestedand can help you give me a solution to my problem urgently! NB: As I send you the file application testing on matlab ... and I want to translate it intoscilab to the application but I failed too. Thank you answer me on my address: aloui_houssem at hotmail.fr Thank you. Houssam Bonjour, Je voulais traduire l?algorithme de marq (apprentissage et entrainement de r?seaux de neurones)de matlab en scilab.J?ai traduit tout ce que j?ai pu traduire mais il me reste comment traduire ?settrain? et ?trparms? en scilab pour fini ce programme ou bien trouver un ?quivalent pour que ?a fonctionne.C?est un peu urgent pour moi parce que c?est dans mon projet. Je vous transmets en pi?ce jointe les deux fichiers matlab et scilab de l?algorithme marq si ?a vous int?resse et pourra vous aider ? me donner une solution ? mon probl?me urgent !! NB : Aussi je vous transmets le fichier test d?application sur matlab?et je voudrai le traduire en scilab pour faire l?application mais je n?ai pas r?ussi aussi. Merci de me r?pondre sur mon adresse : aloui_houssem at hotmail.fr Je vous remercie. Houssam Cordialement, ALOUI HOUSSEM EDDINE ?l?ve Ing?nieur ESIAL NANCY Pr?sident ATUGE EST (Association des TUnisiens des Grandes ?coles de l'EST de la France) t?l: 06 67 92 58 46 adresse mail: aloui_houssem at hotmail.fr aloui.houssemeddine at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: marq.sci Type: application/octet-stream Size: 11661 bytes Desc: not available URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: marq.m URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: test1.m URL: From aloui_houssem at hotmail.fr Fri May 20 01:01:56 2011 From: aloui_houssem at hotmail.fr (clubiste1111) Date: Thu, 19 May 2011 16:01:56 -0700 (PDT) Subject: traduction algorithme marq(neurone network) from Matlab to scilab Message-ID: <1305846116837-2963572.post@n3.nabble.com> Hello, I wanted to translate the algorithm marq (learning and training of neural networks) inmatlab scilab. I translated everything I could translate it but I still how to translate 'settrain'and 'trparms'scilab in to finish the program or find an equivalent for it to work. It's a bit urgent for me because it's in my project. I send you attached the two files and matlab scilab algorithm marq if you're interestedand can help you give me a solution to my problem urgently! NB: As I send you the file application testing on matlab ... and I want to translate it intoscilab to the application but I failed too. Thank you answer me on my address: aloui_houssem at hotmail.fr Thank you. http://mailinglists.scilab.org/file/n2963572/marq.sci marq.sci http://mailinglists.scilab.org/file/n2963572/marq.m marq.m http://mailinglists.scilab.org/file/n2963572/test1.m test1.m -- View this message in context: http://mailinglists.scilab.org/traduction-algorithme-marq-neurone-network-from-Matlab-to-scilab-tp2963572p2963572.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From fvogelnew1 at free.fr Fri May 20 08:23:36 2011 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Fri, 20 May 2011 08:23:36 +0200 Subject: [ANN]: Scipad-8.64 Message-ID: <4DD608E8.9020908@free.fr> ANNOUNCE: Scipad version 8.64 ============================= A new version of the Scipad text editor for Scilab and Scicoslab is available. CHANGES SINCE PREVIOUS VERSION ============================== NEW: * Added a margin showing which lines are currently modified in the edited file * Contents of comboboxes of the find/replace dialog is kept across Scipad sessions * Added command "Revert all colors to default" FIXED BUGS: * Execution of strings containing "//" (this was reported in Scilab as bug 9132) * Indent selection did not work for lines containing exactly one character * Commenting empty lines did no longer work since Scipad 8.62 * Open source of... quickly after closing a buffer could propose obsolete function names because the most recent colorization run for user functions was not yet done * Changing a preference color triggered an error if there was hidden textareas * Behaviour of block paste was not correct when a block selection was existing when calling block paste * When closing Scilab or Scicoslab while an unsaved file was open in Scipad, a Tcl error could pop up or Scipad could be killed by Scilab exit process before the data in Scipad could be saved - This bug had been introduced in Scipad 8.49 * Reworked button-2 copy/paste WHAT IS SCIPAD ? ================ Scipad is a powerful editor and graphical debugger for programs written in Scilab language. It is a mature and highly configurable programmer's editor, including features like syntax colorization, regexp search/replace, parentheses matching, logical/physical line numbering, peer windows, line and block text editing, and much more. Scipad can be used along with Scicoslab or Scilab, but even as a standalone text editor. Used as internal Sci(cos)lab editor, it interacts tightly with the interpreter, allowing - Scilab code execution control - conditional breakpointing - variable retrieval and tooltip display - Scilab help lookup - access to source code of Scilab library function - control of Scilab facilities for Matlab code and creation of help documents - and much more Scipad also includes basic Modelica and XML syntax colorization; it is currently localized in 13 languages and further localizations can easily be added. Scipad is entirely written in Tcl/Tk and Scilab language. It has been tested and developed under various versions of Windows and Linux. WHERE CAN SCIPAD BE FOUND? ========================== Project page @ SourceForge.net: http://sourceforge.net/p/scipad/ Direct download: - for Scilab: http://sourceforge.net/projects/scipad/files/scipad-8.64/scipad-8.64-Scilab5.zip/download - for Scicoslab: http://sourceforge.net/projects/scipad/files/scipad-8.64/scipad-8.64-Scicoslab.zip/download Installation instructions: http://sourceforge.net/p/scipad/wiki/Installation/ Details regarding the tested platforms: http://sourceforge.net/p/scipad/wiki/Tested%20on/ LICENSE ======= Scipad is a free software distributed under the terms of the GPL (V2) license. From Serge.Steer at inria.fr Fri May 20 09:25:31 2011 From: Serge.Steer at inria.fr (Serge Steer) Date: Fri, 20 May 2011 09:25:31 +0200 Subject: [scilab-Users] traduction algorithme marq de matlab en scilab In-Reply-To: References: Message-ID: <4DD6176B.9040408@inria.fr> le code de settrain.m (http://www.mathworks.com/matlabcentral/fileexchange/87-nnsysid/content/NNSYSID20/settrain.m) ne semble pas difficile a traduire... Serge Steer Le 20/05/2011 00:55, Houssem Eddine ALOUI a ?crit : > Hello, > > I wanted > to translate the algorithm marq (learning and training of neural networks) inmatlab scilab. > I translated everything I could translate it but I still how to > translate 'settrain'and 'trparms'scilab in to finish the program or find an equivalent for > it to work. > It's a bit urgent for me because it's in my project. > > I send you attached the two files and matlab scilab algorithm marq if > you're interestedand can help you give me a > solution to my problem urgently! > > NB: As I send you the file application testing on matlab ... and I > want to translate it intoscilab to the application but I failed too. > > Thank you answer me on my address: aloui_houssem at hotmail.fr > > Thank you. > > Houssam > > > Bonjour, > > Je voulais traduire l?algorithme de marq (apprentissage et > entrainement de r?seaux de neurones)de matlab en scilab. > J?ai traduit tout ce que j?ai pu traduire mais il me reste comment > traduire ?settrain? et ?trparms? en scilab pour fini ce programme ou > bien trouver un ?quivalent pour que ?a fonctionne. > C?est un peu urgent pour moi parce que c?est dans mon projet. > > Je vous transmets en pi?ce jointe les deux fichiers matlab et scilab > de l?algorithme marq si ?a vous int?resse et pourra vous aider ? me > donner une solution ? mon probl?me urgent !! > > NB : Aussi je vous transmets le fichier test d?application sur > matlab?et je voudrai le traduire en scilab pour faire l?application > mais je n?ai pas r?ussi aussi. > > Merci de me r?pondre sur mon adresse : aloui_houssem at hotmail.fr > > Je vous remercie. > > Houssam > > > Cordialement, > > > _*ALOUI HOUSSEM EDDINE*_ > > * ?l?ve Ing?nieur* > ESIAL NANCY > > *Pr?sident ATUGE EST (Association des TUnisiens des Grandes ?coles de > l'EST de la France) > * > > > *t?l: 06 67 92 58 46* > * > adresse mail: aloui_houssem at hotmail.fr* > * aloui.houssemeddine at gmail.com* > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ginters.buss at gmail.com Fri May 20 13:09:01 2011 From: ginters.buss at gmail.com (=?UTF-8?Q?Ginters_Bu=C5=A1s?=) Date: Fri, 20 May 2011 14:09:01 +0300 Subject: intg: results differ substantially from those from Wolfram Alpha, which are correct? Message-ID: Dear all, Let's integrate: function y=f(x, a, sigma),y=(1/sqrt(2*%pi))*log(abs(a+sigma*x))*exp(-(x^2)/2),endfunction out=intg(-1e+2,1e+2,list(f,1,.1)) out=8.605D-49 but Wolfram Alpha gives out= -0.111 which is a totally different answer. I've noticed that intg and integrate incline to give values close to zero when boundaries tend to infinity. So, I trust Wolfram Alpha more. How to get around the apparent mistakes in intg, integrate (particularly, I'm interested in indefinite integrals)? Gin. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ginters.buss at gmail.com Fri May 20 13:15:26 2011 From: ginters.buss at gmail.com (=?UTF-8?Q?Ginters_Bu=C5=A1s?=) Date: Fri, 20 May 2011 14:15:26 +0300 Subject: intg: results differ substantially from those from Wolfram Alpha, which are correct? In-Reply-To: References: Message-ID: On Fri, May 20, 2011 at 2:09 PM, Ginters Bu?s wrote: > Dear all, > > Let's integrate: > > function y=f(x, a, > sigma),y=(1/sqrt(2*%pi))*log(abs(a+sigma*x))*exp(-(x^2)/2),endfunction > > out=intg(-1e+2,1e+2,list(f,1,.1)) > > out=8.605D-49 > > but Wolfram Alpha gives out= -0.111 > > which is a totally different answer. > > I've noticed that intg and integrate incline to give values close to zero > when boundaries tend to infinity. So, I trust Wolfram Alpha more. How to > get around the apparent mistakes in intg, integrate (particularly, I'm > interested in indefinite integrals)? > > Gin. > > Pardon, Wolfram alpha gives -0.005; if the 2nd argument 0.1 is increase to 0.4, then intg gives 1.555D-47, and Wolfram Alpha gives -0.111, the difference increases. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ginters.buss at gmail.com Fri May 20 13:49:59 2011 From: ginters.buss at gmail.com (=?UTF-8?Q?Ginters_Bu=C5=A1s?=) Date: Fri, 20 May 2011 14:49:59 +0300 Subject: intg: results differ substantially from those from Wolfram Alpha, which are correct? In-Reply-To: References: Message-ID: On Fri, May 20, 2011 at 2:15 PM, Ginters Bu?s wrote: > > > On Fri, May 20, 2011 at 2:09 PM, Ginters Bu?s wrote: > >> Dear all, >> >> Let's integrate: >> >> function y=f(x, a, >> sigma),y=(1/sqrt(2*%pi))*log(abs(a+sigma*x))*exp(-(x^2)/2),endfunction >> >> out=intg(-1e+2,1e+2,list(f,1,.1)) >> >> out=8.605D-49 >> >> but Wolfram Alpha gives out= -0.111 >> >> > which is a totally different answer. >> >> I've noticed that intg and integrate incline to give values close to zero >> when boundaries tend to infinity. So, I trust Wolfram Alpha more. How to >> get around the apparent mistakes in intg, integrate (particularly, I'm >> interested in indefinite integrals)? >> >> Gin. >> >> Pardon, Wolfram alpha gives -0.005; if the 2nd argument 0.1 is increase to > 0.4, then intg gives 1.555D-47, and Wolfram Alpha gives -0.111, the > difference increases. > ok, for normal distribution I found a cure - folded normal dist ( http://en.wikipedia.org/wiki/Folded_normal_distribution) that avoids the abs() in the integral; but what about other cases? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jean-yves.baudais at insa-rennes.fr Fri May 20 15:05:21 2011 From: jean-yves.baudais at insa-rennes.fr (Jean-Yves Baudais) Date: Fri, 20 May 2011 15:05:21 +0200 Subject: [scilab-Users] Re: intg: results differ substantially from those from Wolfram Alpha, which are correct? In-Reply-To: References: Message-ID: <4DD66711.3050402@insa-rennes.fr> Hello, > ok, for normal distribution I found a cure - folded normal dist ( > http://en.wikipedia.org/wiki/Folded_normal_distribution) that avoids the > abs() in the integral; but what about other cases? But in the folded normal dist there is no log function as in your function. Your problem is the same as --> function y=f(x),y=exp(-x), endfunction --> intg(0,1e10,f) ans= 0 The integral calculation is performed with Monte-Carlo method (I think), so the probability to obtain non zero contribution, when the upper limit increases, decreases. With lower upper limit the result is good --> intg(0,1e2,f) ans= 1 When lim(x->0) f(x)=0, you must pay attention to the upper limit. It is your case. From brawad68 at yahoo.com Fri May 20 15:09:10 2011 From: brawad68 at yahoo.com (Bassam Awad) Date: Fri, 20 May 2011 06:09:10 -0700 (PDT) Subject: [scilab-Users] Re: intg: results differ substantially from those from Wolfram Alpha, which are correct? In-Reply-To: <4DD66711.3050402@insa-rennes.fr> Message-ID: <473161.91049.qm@web113102.mail.gq1.yahoo.com> Any one knows how to unsubscribe to the list? --- On Fri, 5/20/11, Jean-Yves Baudais wrote: From: Jean-Yves Baudais Subject: Re: [scilab-Users] Re: intg: results differ substantially from those from Wolfram Alpha, which are correct? To: users at lists.scilab.org Date: Friday, May 20, 2011, 1:05 PM Hello, > ok, for normal distribution I found a cure - folded normal dist ( > http://en.wikipedia.org/wiki/Folded_normal_distribution) that avoids the > abs() in the integral; but what about other cases? ? But in the folded normal dist there is no log function as in your function. Your problem is the same as --> function y=f(x),y=exp(-x), endfunction --> intg(0,1e10,f) ans= 0 The integral calculation is performed with Monte-Carlo method (I think), so the probability to obtain non zero contribution, when the upper limit increases, decreases. With lower upper limit the result is good --> intg(0,1e2,f) ans= 1 When lim(x->0) f(x)=0, you must pay attention to the upper limit. It is your case. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Fri May 20 15:16:25 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 20 May 2011 15:16:25 +0200 Subject: [scilab-Users] Re: intg: results differ substantially from those from Wolfram Alpha, which are correct? In-Reply-To: <473161.91049.qm@web113102.mail.gq1.yahoo.com> References: <473161.91049.qm@web113102.mail.gq1.yahoo.com> Message-ID: <1305897385.4211.9.camel@losinj.inria.fr> You received an email when you subscribed. or click here: http://www.scilab.org/communities/developer_zone/tools/mailing_list and send the email with the address you subscribed with. S Le vendredi 20 mai 2011 ? 06:09 -0700, Bassam Awad a ?crit : > Any one knows how to unsubscribe to the list? > > > > --- On Fri, 5/20/11, Jean-Yves Baudais > wrote: > > From: Jean-Yves Baudais > Subject: Re: [scilab-Users] Re: intg: results differ > substantially from those from Wolfram Alpha, which are > correct? > To: users at lists.scilab.org > Date: Friday, May 20, 2011, 1:05 PM > > Hello, > > > ok, for normal distribution I found a cure - folded normal > dist ( > > http://en.wikipedia.org/wiki/Folded_normal_distribution) > that avoids the > > abs() in the integral; but what about other cases? > > But in the folded normal dist there is no log function as in > your function. Your problem is the same as > > --> function y=f(x),y=exp(-x), endfunction > --> intg(0,1e10,f) > ans= > 0 > > The integral calculation is performed with Monte-Carlo method > (I think), so the probability to obtain non zero contribution, > when the upper limit increases, decreases. With lower upper > limit the result is good > > --> intg(0,1e2,f) > ans= > 1 > > When lim(x->0) f(x)=0, you must pay attention to the upper > limit. It is your case. > From ray at aarden.us Sat May 21 01:18:43 2011 From: ray at aarden.us (ray at aarden.us) Date: Fri, 20 May 2011 16:18:43 -0700 Subject: [scilab-Users] Re: intg: results differ substantially from those from Wolfram Alpha, which are =?UTF-8?Q?correct=3F?= Message-ID: <20110520161843.1753ead7c2b35a7d15c5b99498690bcc.3c2b5fbce7.wbe@email11.secureserver.net> An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Sat May 21 12:20:46 2011 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Sat, 21 May 2011 12:20:46 +0200 Subject: [scilab-Users] intg: results differ substantially from those from Wolfram Alpha, which are correct? In-Reply-To: References: Message-ID: <4DD791FE.7030903@univ-lemans.fr> Hello, The following thread on Bugzilla may also feed the present discussion: http://bugzilla.scilab.org/show_bug.cgi?id=5728 Regards Samuel ----- Message d'origine ----- De : Ginters Bu?s Date : 20/05/2011 13:09: > Dear all, > > Let's integrate: > > function y=f(x, a, > sigma),y=(1/sqrt(2*%pi))*log(abs(a+sigma*x))*exp(-(x^2)/2),endfunction > > out=intg(-1e+2,1e+2,list(f,1,.1)) > > out=8.605D-49 > > but Wolfram Alpha gives out= -0.111 > > which is a totally different answer. > > I've noticed that intg and integrate incline to give values close to zero when > boundaries tend to infinity. So, I trust Wolfram Alpha more. How to get around > the apparent mistakes in intg, integrate (particularly, I'm interested in > indefinite integrals)? > > Gin. > > From gilad.orr at mail.huji.ac.il Sun May 22 08:10:44 2011 From: gilad.orr at mail.huji.ac.il (Gilad Orr) Date: Sun, 22 May 2011 09:10:44 +0300 Subject: cftool like functionality Message-ID: Dear All, Is there anything similar to cftool in SciLab? If not, I think that such a project can benefit most SciLab users and draw some new ones. Keep up the good work, Gilad -------------- next part -------------- An HTML attachment was scrubbed... URL: From julio.gonzalez at ymail.com Sun May 22 20:37:36 2011 From: julio.gonzalez at ymail.com (Julio Gonzalez-Saenz) Date: Sun, 22 May 2011 19:37:36 +0100 (BST) Subject: muPAD and muLAB Message-ID: <693115.85084.qm@web28308.mail.ukl.yahoo.com> Dear?Colleagues, With regards to the Computer Algebra System used by scilab, do you know if muPAD is still supported? ?Any comments about muMath? Is there information about the Computer Algebra engine used by scilab? Regards, Julio Gonzalez PTS GmbH? -------------- next part -------------- An HTML attachment was scrubbed... URL: From rida.alekxe.hansamu at gmail.com Sun May 22 21:42:10 2011 From: rida.alekxe.hansamu at gmail.com (josshimar aldaco) Date: Sun, 22 May 2011 14:42:10 -0500 Subject: trouble with scilab Message-ID: Hello and good day. I'm Scilab user. I'm student and i use scilab for solving equations and analysis, but when i use some instructions like plot, plot2d, fplot2d... etc. Scilab simply closes losing all my unsaved codes. I have searched in forums for a solution to my problem, but nothing has been resolved. That is why I turn now to a professional assistance in product. Waiting for your prompt reply, thank you for your attention. -- ALDACO GIR?N J. ALEJANDRO ING. BIOTECHNOLOGY UPIIG LE?N, GTO. rida.alekxe.hansamu at gmail.com j0s5h1m4r at hotmail.com +524646397604 +524773305482 -------------- next part -------------- An HTML attachment was scrubbed... URL: From eddy.pdu at gmail.com Mon May 23 01:26:07 2011 From: eddy.pdu at gmail.com (Peng Du) Date: Mon, 23 May 2011 00:26:07 +0100 Subject: Accessing array element Message-ID: Hello everyone, Is there anyway in Scilab that I can access specific array elements using variable as index? For example: i=1; holder= [0 0 0 0 0 0 0 0]; holder[i]=2; Thanks very much. Best regards, Peng From mathieu.dubois at limsi.fr Mon May 23 03:32:15 2011 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Mon, 23 May 2011 03:32:15 +0200 Subject: [scilab-Users] Accessing array element In-Reply-To: References: Message-ID: <4DD9B91F.3060603@limsi.fr> Dear Peng, In scilab the operator to access the element of an array is: (). With this your example works. Mathieu Le 23/05/2011 01:26, Peng Du a ?crit : > Hello everyone, > > Is there anyway in Scilab that I can access specific array elements > using variable as index? > > For example: > i=1; > holder= [0 0 0 0 0 0 0 0]; > > holder[i]=2; > > Thanks very much. > > Best regards, > > Peng From mathieu.dubois at limsi.fr Mon May 23 03:34:53 2011 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Mon, 23 May 2011 03:34:53 +0200 Subject: [scilab-Users] trouble with scilab In-Reply-To: References: Message-ID: <4DD9B9BD.2010501@limsi.fr> Hello, Problems with graphics are usually related to drivers: http://wiki.scilab.org/Troubleshooting%20for%20Scilab%205.0%20beta Mathieu Le 22/05/2011 21:42, josshimar aldaco a ?crit : > > Hello and good day. > > I'm Scilab user. I'm student and i use scilab > forsolvingequationsandanalysis, but when i use some instructions like > plot, plot2d, fplot2d... etc. Scilab simply closes losing all my > unsaved codes. I have searched inforumsfor a solution tomyproblem, but > nothinghas been resolved.That is whyI turnnowto aprofessional > assistancein product. > > Waiting for your prompt reply, thank you for your attention. > > -- > ALDACO GIR?N J. ALEJANDRO > ING. BIOTECHNOLOGY > UPIIG > > LE?N, GTO. > rida.alekxe.hansamu at gmail.com > j0s5h1m4r at hotmail.com > +524646397604 > +524773305482 > From manivannan.siyamalan at inria.fr Mon May 23 10:11:09 2011 From: manivannan.siyamalan at inria.fr (manishiyam) Date: Mon, 23 May 2011 01:11:09 -0700 (PDT) Subject: Matrix division for linear system solvers Message-ID: <1306138269682-2974413.post@n3.nabble.com> Hi, How the matrix division operator for solving Ax=b is implemented in SciLab. Where A is sparse symmetric matrix. What is the technique behind that? Is it finding the inverse of A or is it using any direct solvers to solve this system? -- View this message in context: http://mailinglists.scilab.org/Matrix-division-for-linear-system-solvers-tp2974413p2974413.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From hkondja at yahoo.com Mon May 23 21:52:03 2011 From: hkondja at yahoo.com (Henoch) Date: Mon, 23 May 2011 12:52:03 -0700 (PDT) Subject: Simulate the quarter-car model Message-ID: <1306180323903-2976741.post@n3.nabble.com> http://mailinglists.scilab.org/file/n2976741/Equation_of_motion.docx Equation_of_motion.docx I would like to simulate the quarter vehicle with use of scilab, and could anyone please assist me on the attached document about how do i run those four equations on Scilab, or how do I construct the Xcos diagram with those equations, please assist, it is very urgent. -- View this message in context: http://mailinglists.scilab.org/Simulate-the-quarter-car-model-tp2976741p2976741.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From ychattah at iai.co.il Tue May 24 08:06:12 2011 From: ychattah at iai.co.il (computidoo) Date: Mon, 23 May 2011 23:06:12 -0700 (PDT) Subject: colorbar Message-ID: <1306217172860-2978444.post@n3.nabble.com> how do i change the font size of the colorbar in the side of Sgrayplot thanks -- View this message in context: http://mailinglists.scilab.org/colorbar-tp2978444p2978444.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Serge.Steer at inria.fr Tue May 24 09:14:23 2011 From: Serge.Steer at inria.fr (Serge Steer) Date: Tue, 24 May 2011 09:14:23 +0200 Subject: [scilab-Users] colorbar In-Reply-To: <1306217172860-2978444.post@n3.nabble.com> References: <1306217172860-2978444.post@n3.nabble.com> Message-ID: <4DDB5ACF.9060903@inria.fr> Le 24/05/2011 08:06, computidoo a ?crit : > how do i change the font size of the colorbar in the side of Sgrayplot > thanks > > -- > View this message in context: http://mailinglists.scilab.org/colorbar-tp2978444p2978444.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > > the colorbar lives in a particular axes. The value are the y tick labels of this axes so you can chage it this way fig=gcf() cb=fig.children(1) //the handle on the colorbaraxes cb.font_size=5; Serge Steer From ginters.buss at gmail.com Tue May 24 09:34:06 2011 From: ginters.buss at gmail.com (=?UTF-8?Q?Ginters_Bu=C5=A1s?=) Date: Tue, 24 May 2011 10:34:06 +0300 Subject: [scilab-Users] intg: results differ substantially from those from Wolfram Alpha, which are correct? In-Reply-To: <4DD791FE.7030903@univ-lemans.fr> References: <4DD791FE.7030903@univ-lemans.fr> Message-ID: ----- Message d'origine ----- De : Ginters Bu?s Date : 20/05/2011 13:09: > Dear all, > > Let's integrate: > > function y=f(x, a, > sigma),y=(1/sqrt(2*%pi))*log(abs(a+sigma*x))*exp(-(x^2)/2),endfunction > > out=intg(-1e+2,1e+2,list(f,1,.1)) > > out=8.605D-49 > > but Wolfram Alpha gives out= -0.111 > > which is a totally different answer. > > I've noticed that intg and integrate incline to give values close to zero > when boundaries tend to infinity. So, I trust Wolfram Alpha more. How to get > around the apparent mistakes in intg, integrate (particularly, I'm > interested in indefinite integrals)? > > Gin. > > > On Sat, May 21, 2011 at 1:20 PM, Samuel GOUGEON < Samuel.Gougeon at univ-lemans.fr> wrote: > Hello, > The following thread on Bugzilla may also feed the present discussion: > http://bugzilla.scilab.org/show_bug.cgi?id=5728 > Regards > Samuel > > > Thanks. I like your insistance in that discussion, Sam. Although a "known-limitation-of-current-algorithm" might be a correct description of the current algorithm, it nevertheless does not help much when one wants the algorithm to give the correct solution and observes that a guy like Wolfram has apparently has done something about this issue: for y given function, Scilab's intg/integrate gives ok value for bounds (-50,50), but screws up for (-100,100) and larger bounds, which I consider still pretty narrow. On the contrary, Wolfram Alpha http://www.wolframalpha.com/input/?i=integration&a=*C.integration-_*Calculator.dflt-&f2=%281%2Fsqrt%282*pi%29%29*log%28abs%281%2B.1*x%29%29*exp%28-%28x ^2%29%2F2%29&x=0&y=0&f=Integral.integrand_%281%2Fsqrt%282*pi%29%29*log%28abs%281%2B.1*x%29%29*exp%28-%28x^2%29%2F2%29&f3=-infinity&f=Integral.rangestart_-infinity&f4=%2Binfinity&f=Integral.rangeend_%2Binfinity&a=*FVarOpt.1-_**-.***Integral.variable---.**Integral.rangestart-.*Integral.rangeend--- gives ok values for bounds (-50,50), (-100,100), (-1000,1000) and it allows to directly use infinite bounds and get ok result (interim bounds like (-1e9,1e9) are not ok). I consider this a superior solution. If Wolfram can, why shouldn't Scilab try? The status quo might hurt Scilab's reputation in the domain in long run. Gin. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mike at Page-One.Waitrose.com Tue May 24 10:35:10 2011 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Tue, 24 May 2011 09:35:10 +0100 Subject: [scilab-Users] Simulate the quarter-car model In-Reply-To: <1306180323903-2976741.post@n3.nabble.com> Message-ID: Hi, A simple way would be to define your system states (w, v, Tb, ...) and the inputs and outputs. Then write your equations as a standard set of state-space matrices (A, B, C, D). You can use Scilab's syslin function to make a linear system and csim to simulate it. The help text explains how to do it. Cheers, Mike. -----Original Message----- From: Henoch [mailto:hkondja at yahoo.com] Sent: 23 May 2011 20:52 To: users at lists.scilab.org Subject: [scilab-Users] Simulate the quarter-car model http://mailinglists.scilab.org/file/n2976741/Equation_of_motion.docx Equation_of_motion.docx I would like to simulate the quarter vehicle with use of scilab, and could anyone please assist me on the attached document about how do i run those four equations on Scilab, or how do I construct the Xcos diagram with those equations, please assist, it is very urgent. -- View this message in context: http://mailinglists.scilab.org/Simulate-the-quarter-car-model-tp2976741p2976 741.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.901 / Virus Database: 271.1.1/3654 - Release Date: 05/22/11 19:33:00 From calixte at contrib.scilab.org Tue May 24 11:07:32 2011 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Tue, 24 May 2011 11:07:32 +0200 Subject: [scilab-Users] intg: results differ substantially from those from Wolfram Alpha, which are correct? In-Reply-To: References: <4DD791FE.7030903@univ-lemans.fr> Message-ID: <1306228052.16796.72.camel@Calixte-Dell> Hi Ginters, You could use something like: subintlen=1; xmin=-1e2; xmax=1e2; out=0; l=list(f,1,.1);// to avoid to create again the list for i=xmin:subintlen:(xmax-subintlen);out=out+intg(i,i+subintlen,l);end; out Calixte > > Thanks. I like your insistance in that discussion, Sam. > > Although a "known-limitation-of-current-algorithm" might be a correct > description of the current algorithm, it nevertheless does not help > much when one wants the algorithm to give the correct solution and > observes that a guy like Wolfram has apparently has done something > about this issue: for y given function, Scilab's intg/integrate gives > ok value for bounds (-50,50), but screws up for (-100,100) and larger > bounds, which I consider still pretty narrow. On the contrary, Wolfram > Alpha > > http://www.wolframalpha.com/input/?i=integration&a=*C.integration-_*Calculator.dflt-&f2=%281%2Fsqrt%282*pi%29%29*log%28abs%281%2B.1*x%29%29*exp%28-%28x^2%29%2F2%29&x=0&y=0&f=Integral.integrand_%281%2Fsqrt%282*pi%29%29*log%28abs%281%2B.1*x%29%29*exp%28-%28x^2%29%2F2%29&f3=-infinity&f=Integral.rangestart_-infinity&f4=%2Binfinity&f=Integral.rangeend_%2Binfinity&a=*FVarOpt.1-_**-.***Integral.variable---.**Integral.rangestart-.*Integral.rangeend--- > > gives ok values for bounds (-50,50), (-100,100), (-1000,1000) and it > allows to directly use infinite bounds and get ok result (interim > bounds like (-1e9,1e9) are not ok). I consider this a superior > solution. If Wolfram can, why shouldn't Scilab try? The status quo > might hurt Scilab's reputation in the domain in long run. > > Gin. From michael.baudin at scilab.org Tue May 24 12:02:47 2011 From: michael.baudin at scilab.org (=?UTF-8?B?TWljaGHDq2wgQmF1ZGlu?=) Date: Tue, 24 May 2011 12:02:47 +0200 Subject: [scilab-Users] intg: results differ substantially from those from Wolfram Alpha, which are correct? In-Reply-To: References: <4DD791FE.7030903@univ-lemans.fr> Message-ID: <4DDB8247.9060401@scilab.org> Hi, Please notice that Mathematica and Scilab have very few in common: Scilab is a numerical system, while Wolfram is an algebraic (symbolic) system. Mathematica first computes the exact integral formula, then evaluates it with a given number of digits (by default something like 200 hundred decimal digits, if I remember well). This is completely different in Scilab, which always uses limited precision binary floating point numbers. On one hand, this has drawbacks, on the other hand, this is much faster, given that these floating point computations are supported by the processor (and not by software, as in Mathematica). We may find another integration algorithm, but this type of problem will always appear, whatever the algorithm we choose. Imagine a 1 dimensional function which is nonzero only for 2 of the 2^64 possible doubles. Suppose that we integrate this function with the largest possible bounds, that is with ~ -1.e308 and ~1.e308 as minimum and maximum bounds. To integrate this function, the algorithm would have to parse through all 2^64 doubles to find the only 2 nonzero values: this requires a large amount of time. If Scilab did that, we would complain about it speed... Best regards, Micha?l Baudin Le 24/05/2011 09:34, Ginters Bu?s a ?crit : > Thanks. I like your insistance in that discussion, Sam. > > Although a "known-limitation-of-current-algorithm" might be a correct > description of the current algorithm, it nevertheless does not help > much when one wants the algorithm to give the correct solution and > observes that a guy like Wolfram has apparently has done something > about this issue: for y given function, Scilab's intg/integrate gives > ok value for bounds (-50,50), but screws up for (-100,100) and larger > bounds, which I consider still pretty narrow. On the contrary, Wolfram > Alpha > > http://www.wolframalpha.com/input/?i=integration&a=*C.integration-_*Calculator.dflt-&f2=%281%2Fsqrt%282*pi%29%29*log%28abs%281%2B.1*x%29%29*exp%28-%28x > ^2%29%2F2%29&x=0&y=0&f=Integral.integrand_%281%2Fsqrt%282*pi%29%29*log%28abs%281%2B.1*x%29%29*exp%28-%28x^2%29%2F2%29&f3=-infinity&f=Integral.rangestart_-infinity&f4=%2Binfinity&f=Integral.rangeend_%2Binfinity&a=*FVarOpt.1-_**-.***Integral.variable---.**Integral.rangestart-.*Integral.rangeend--- > > gives ok values for bounds (-50,50), (-100,100), (-1000,1000) and it > allows to directly use infinite bounds and get ok result (interim > bounds like (-1e9,1e9) are not ok). I consider this a superior > solution. If Wolfram can, why shouldn't Scilab try? The status quo > might hurt Scilab's reputation in the domain in long run. > > Gin. -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 From michael.baudin at scilab.org Tue May 24 12:11:24 2011 From: michael.baudin at scilab.org (=?UTF-8?B?TWljaGHDq2wgQmF1ZGlu?=) Date: Tue, 24 May 2011 12:11:24 +0200 Subject: [scilab-Users] intg: results differ substantially from those from Wolfram Alpha, which are correct? In-Reply-To: <4DDB8247.9060401@scilab.org> References: <4DD791FE.7030903@univ-lemans.fr> <4DDB8247.9060401@scilab.org> Message-ID: <4DDB844C.1020705@scilab.org> Sorry: read "200 decimal digits", and *not* "200 hundred decimal digits". Micha?l Le 24/05/2011 12:02, Micha?l Baudin a ?crit : > Hi, > > Please notice that Mathematica and Scilab have very few in common: > Scilab is a numerical system, while Wolfram is an algebraic (symbolic) > system. Mathematica first computes the exact integral formula, then > evaluates it with a given number of digits (by default something like > 200 hundred decimal digits, if I remember well). This is completely > different in Scilab, which always uses limited precision binary > floating point numbers. On one hand, this has drawbacks, on the other > hand, this is much faster, given that these floating point > computations are supported by the processor (and not by software, as > in Mathematica). > > We may find another integration algorithm, but this type of problem > will always appear, whatever the algorithm we choose. Imagine a 1 > dimensional function which is nonzero only for 2 of the 2^64 possible > doubles. Suppose that we integrate this function with the largest > possible bounds, that is with ~ -1.e308 and ~1.e308 as minimum and > maximum bounds. To integrate this function, the algorithm would have > to parse through all 2^64 doubles to find the only 2 nonzero values: > this requires a large amount of time. If Scilab did that, we would > complain about it speed... > > Best regards, > > Micha?l Baudin > > Le 24/05/2011 09:34, Ginters Bu?s a ?crit : >> Thanks. I like your insistance in that discussion, Sam. >> >> Although a "known-limitation-of-current-algorithm" might be a correct >> description of the current algorithm, it nevertheless does not help >> much when one wants the algorithm to give the correct solution and >> observes that a guy like Wolfram has apparently has done something >> about this issue: for y given function, Scilab's intg/integrate gives >> ok value for bounds (-50,50), but screws up for (-100,100) and larger >> bounds, which I consider still pretty narrow. On the contrary, >> Wolfram Alpha >> >> http://www.wolframalpha.com/input/?i=integration&a=*C.integration-_*Calculator.dflt-&f2=%281%2Fsqrt%282*pi%29%29*log%28abs%281%2B.1*x%29%29*exp%28-%28x >> ^2%29%2F2%29&x=0&y=0&f=Integral.integrand_%281%2Fsqrt%282*pi%29%29*log%28abs%281%2B.1*x%29%29*exp%28-%28x^2%29%2F2%29&f3=-infinity&f=Integral.rangestart_-infinity&f4=%2Binfinity&f=Integral.rangeend_%2Binfinity&a=*FVarOpt.1-_**-.***Integral.variable---.**Integral.rangestart-.*Integral.rangeend--- >> >> >> gives ok values for bounds (-50,50), (-100,100), (-1000,1000) and it >> allows to directly use infinite bounds and get ok result (interim >> bounds like (-1e9,1e9) are not ok). I consider this a superior >> solution. If Wolfram can, why shouldn't Scilab try? The status quo >> might hurt Scilab's reputation in the domain in long run. >> >> Gin. > > -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 From ginters.buss at gmail.com Tue May 24 13:39:10 2011 From: ginters.buss at gmail.com (=?UTF-8?Q?Ginters_Bu=C5=A1s?=) Date: Tue, 24 May 2011 14:39:10 +0300 Subject: [scilab-Users] intg: results differ substantially from those from Wolfram Alpha, which are correct? In-Reply-To: <1306228052.16796.72.camel@Calixte-Dell> References: <4DD791FE.7030903@univ-lemans.fr> <1306228052.16796.72.camel@Calixte-Dell> Message-ID: > > > > Thanks. I like your insistance in that discussion, Sam. > > > > Although a "known-limitation-of-current-algorithm" might be a correct > > description of the current algorithm, it nevertheless does not help > > much when one wants the algorithm to give the correct solution and > > observes that a guy like Wolfram has apparently has done something > > about this issue: for y given function, Scilab's intg/integrate gives > > ok value for bounds (-50,50), but screws up for (-100,100) and larger > > bounds, which I consider still pretty narrow. On the contrary, Wolfram > > Alpha > > > > > http://www.wolframalpha.com/input/?i=integration&a=*C.integration-_*Calculator.dflt-&f2=%281%2Fsqrt%282*pi%29%29*log%28abs%281%2B.1*x%29%29*exp%28-%28x > ^2%29%2F2%29&x=0&y=0&f=Integral.integrand_%281%2Fsqrt%282*pi%29%29*log%28abs%281%2B.1*x%29%29*exp%28-%28x^2%29%2F2%29&f3=-infinity&f=Integral.rangestart_-infinity&f4=%2Binfinity&f=Integral.rangeend_%2Binfinity&a=*FVarOpt.1-_**-.***Integral.variable---.**Integral.rangestart-.*Integral.rangeend--- > > > > gives ok values for bounds (-50,50), (-100,100), (-1000,1000) and it > > allows to directly use infinite bounds and get ok result (interim > > bounds like (-1e9,1e9) are not ok). I consider this a superior > > solution. If Wolfram can, why shouldn't Scilab try? The status quo > > might hurt Scilab's reputation in the domain in long run. > > > > Gin. > > On Tue, May 24, 2011 at 12:07 PM, Calixte Denizet < > calixte at contrib.scilab.org> wrote: > Hi Ginters, > > You could use something like: > subintlen=1; > xmin=-1e2; > xmax=1e2; > out=0; > l=list(f,1,.1);// to avoid to create again the list > for i=xmin:subintlen:(xmax-subintlen);out=out+intg(i,i+subintlen,l);end; > >> out >> >> Calixte > > > > This is a natural, direct treatment of the problem and seems absolutely sufficient for my current applications. Thanks to all. Gin. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Serge.Steer at inria.fr Tue May 24 16:51:38 2011 From: Serge.Steer at inria.fr (Serge Steer) Date: Tue, 24 May 2011 16:51:38 +0200 Subject: [scilab-Users] intg: results differ substantially from those from Wolfram Alpha, which are correct? In-Reply-To: References: <4DD791FE.7030903@univ-lemans.fr> Message-ID: <4DDBC5FA.5000605@inria.fr> Le 24/05/2011 09:34, Ginters Bu?s a ?crit : > ----- Message d'origine ----- > De : Ginters Bu?s > Date : 20/05/2011 13:09: > > Dear all, > > Let's integrate: > > function y=f(x, a, > sigma),y=(1/sqrt(2*%pi))*log(abs(a+sigma*x))*exp(-(x^2)/2),endfunction > > out=intg(-1e+2,1e+2,list(f,1,.1)) > > out=8.605D-49 > > but Wolfram Alpha gives out= -0.111 > > which is a totally different answer. > > I've noticed that intg and integrate incline to give values close > to zero when boundaries tend to infinity. So, I trust Wolfram > Alpha more. How to get around the apparent mistakes in intg, > integrate (particularly, I'm interested in indefinite integrals)? > > Gin. > > > > > On Sat, May 21, 2011 at 1:20 PM, Samuel GOUGEON > > > wrote: > > Hello, > The following thread on Bugzilla may also feed the present discussion: > http://bugzilla.scilab.org/show_bug.cgi?id=5728 > Regards > Samuel > > > Thanks. I like your insistance in that discussion, Sam. > > Although a "known-limitation-of-current-algorithm" might be a correct > description of the current algorithm, it nevertheless does not help > much when one wants the algorithm to give the correct solution and > observes that a guy like Wolfram has apparently has done something > about this issue: for y given function, Scilab's intg/integrate gives > ok value for bounds (-50,50), but screws up for (-100,100) and larger > bounds, which I consider still pretty narrow. On the contrary, Wolfram > Alpha > > http://www.wolframalpha.com/input/?i=integration&a=*C.integration-_*Calculator.dflt-&f2=%281%2Fsqrt%282*pi%29%29*log%28abs%281%2B.1*x%29%29*exp%28-%28x > ^2%29%2F2%29&x=0&y=0&f=Integral.integrand_%281%2Fsqrt%282*pi%29%29*log%28abs%281%2B.1*x%29%29*exp%28-%28x^2%29%2F2%29&f3=-infinity&f=Integral.rangestart_-infinity&f4=%2Binfinity&f=Integral.rangeend_%2Binfinity&a=*FVarOpt.1-_**-.***Integral.variable---.**Integral.rangestart-.*Integral.rangeend--- > > gives ok values for bounds (-50,50), (-100,100), (-1000,1000) and it > allows to directly use infinite bounds and get ok result (interim > bounds like (-1e9,1e9) are not ok). I consider this a superior > solution. If Wolfram can, why shouldn't Scilab try? The status quo > might hurt Scilab's reputation in the domain in long run. > > Gin. WolframAlpha is based on a symbolic computation engine that furnishes much more tools for integration. In particular it is possible for it doing serie expansion near the infinity. If one remarks that for x>35 and x<-35 the function evaluates to zero it it possible to reduce the integration interval and obtain a good result -->intg(-35,35,myfun) ans = - 0.0050776 but without symbolic computation facilities it is difficult to automatically determine that such integration interval reduction can be done... Serge Steer INRIA -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjamin.eibenberger at nomura.com Wed May 25 14:03:19 2011 From: benjamin.eibenberger at nomura.com (eben92) Date: Wed, 25 May 2011 05:03:19 -0700 (PDT) Subject: Fmincon Message-ID: <1306324999421-2984026.post@n3.nabble.com> Hi, I am trying to use the Fmincon package (it is written that it is available for scilab versions>=5.2) I do have the 5.2 version. It is written that this package needs the Sci-IPOpt package. Unfortunately that last package require a 5.3 version of scilab ( at least that is what is written on the website of atoms) How do I solve this problem knowing that I cannot upgrade my scilab version to 5.3? Thanks -- View this message in context: http://mailinglists.scilab.org/Fmincon-tp2984026p2984026.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From david.cheze at cea.fr Wed May 25 15:12:34 2011 From: david.cheze at cea.fr (CHEZE David 227480) Date: Wed, 25 May 2011 15:12:34 +0200 Subject: loadmatfile verbose mode Message-ID: Hi, I need to load external '.mat' files from which I don't know exactly the content: I mean that I don't know how many variables have been defined inside and then don't either their name. Is there something like a verbose mode of loadmatfile in order to get these infos ? Thanks for your advice to handle this point, David -------------- next part -------------- An HTML attachment was scrubbed... URL: From vincent.couvert at scilab.org Wed May 25 16:16:09 2011 From: vincent.couvert at scilab.org (Vincent COUVERT) Date: Wed, 25 May 2011 16:16:09 +0200 Subject: [scilab-Users] loadmatfile verbose mode In-Reply-To: References: Message-ID: <4DDD0F29.8070403@scilab.org> Hi, There is no verbose mode for loadmatfile function but the function matfile_listvar [1] can do what you need. Regards. Vincent [1] http://help.scilab.org/docs/5.3.2/en_US/matfile_listvar.html Le 25/05/11 15:12, CHEZE David 227480 a ?crit : > > Hi, > > I need to load external '.mat' files from which I don't know exactly > the content: I mean that I don't know how many variables have been > defined inside and then don't either their name. Is there something > like a verbose mode of loadmatfile in order to get these infos ? > > Thanks for your advice to handle this point, > > David > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.cheze at cea.fr Wed May 25 16:27:24 2011 From: david.cheze at cea.fr (CHEZE David 227480) Date: Wed, 25 May 2011 16:27:24 +0200 Subject: 2D surface plot : color scale adjustments Message-ID: hi, i would like to force the upper and lower bounds of color scale in a surface plot (not automatic min/max adjustment): for quick visual comparison between multiple plots, with the same reference but min max value that can vary over a wide range of values. Is it possible to do it through a dedicated functions rather than by inserting artificial min max values in the data that i want to plot ? for example I have an array A of value ranging from 0 to 10 and and another from 0 to 1000 : if I plot this 2 sets of values in 2 different plots, color related to 10 in A-plot and related to 1000 in B-plot is the same for a given colormap. I would like to force the colormap 'scale' of B-plot to these of A-plot. Thanks for your help, David -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Wed May 25 16:40:58 2011 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Wed, 25 May 2011 22:40:58 +0800 Subject: [scilab-Users] 2D surface plot : color scale adjustments In-Reply-To: References: Message-ID: <4DDD14FA.2020808@utc.fr> Le 25/05/2011 22:27, CHEZE David 227480 a ?crit : > > hi, > > i would like to force the upper and lower bounds of color scale in a > surface plot (not automatic min/max adjustment): for quick visual > comparison between multiple plots, with the same reference but min max > value that can vary over a wide range of values. Is it possible to do > it through a dedicated functions rather than by inserting artificial > min max values in the data that i want to plot ? > > for example I have an array A of value ranging from 0 to 10 and and > another from 0 to 1000 : if I plot this 2 sets of values in 2 > different plots, color related to 10 in A-plot and related to 1000 in > B-plot is the same for a given colormap. I would like to force the > colormap 'scale' of B-plot to these of A-plot. > > Thanks for your help, > > David > Hello, what you want to do is very easy with the plotlib, here is an example : A=2*rand(10,10); B=rand(10,10); subplot(2,1,1); pcolor(A); caxis([0,2]); colorbar; subplot(2,1,2) pcolor(B); caxis([0,2]); colorbar; To install the plotlib : atomsInstall('plotlib'); S. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mike at Page-One.Waitrose.com Wed May 25 19:48:09 2011 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Wed, 25 May 2011 18:48:09 +0100 Subject: Correlation of sine waves over non-integral number of cycles Message-ID: Hi, I know this isn't strictly a Scilab question, but I wonder if anyone out there can help me? I remember from somewhere that there is a formula for finding the real and imaginary parts of a sine wave that doesn't have an integral number of cycles over the set of samples. Obviously with a whole number of cycles, I can just multiply by a sine and a cosine and take the sums. When there are not a whole number of cycles, there is another more complicated formula (or maybe it is an approximation?). Does anyone know what it is, or where I can find it? I seem to remember it involved sums of sines squared and cosines squared and maybe sines times cosines, but I can't remember the detail. Thanks, Mike. From vogt at centre-cired.fr Fri May 27 14:16:46 2011 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Fri, 27 May 2011 14:16:46 +0200 Subject: seeding grand In-Reply-To: References: Message-ID: <4DDF962E.7080507@centre-cired.fr> Hi everyone I am not able to "seed" grand help grand says i should use rand("seed",getdate("s")) in order to avoid my random numbers to be equal accros each simulation but using the following code in a new scilab console returns each time 0.4388861. Any idea what am i doing wrong ? rand("seed",getdate("s")) grand(1,1,"nor",0,1) AVS (PS: sorry bugzilla.admin, i meant to send this mail to this list) -- *Adrien Vogt-Schilb* Research Fellow vogt at centre-cired.fr Tel: (+33) 1 43 94 73 96 Fax: (+33) 1 43 94 73 70 CIRED 45 bis, Av de la Belle Gabrielle F-94736 Nogent-sur-Marne http://www.centre-cired.fr/ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logocired.png Type: image/png Size: 4092 bytes Desc: not available URL: From Samuel.Gougeon at univ-lemans.fr Fri May 27 15:57:18 2011 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Fri, 27 May 2011 15:57:18 +0200 Subject: [scilab-Users] seeding grand In-Reply-To: <4DDF962E.7080507@centre-cired.fr> References: <4DDF962E.7080507@centre-cired.fr> Message-ID: <4DDFADBE.1000806@univ-lemans.fr> Hello Adrien, > help grand says i should use > > rand("seed",getdate("s")) > > in order to avoid my random numbers to be equal accros each simulation > but using the following code in a new scilab console returns each time > 0.4388861. Any idea what am i doing wrong ? > rand("seed",getdate("s")) > grand(1,1,"nor",0,1) Did you try grand("setsd",...) From vogt at centre-cired.fr Fri May 27 16:02:15 2011 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Fri, 27 May 2011 16:02:15 +0200 Subject: [scilab-Users] seeding grand In-Reply-To: <4DDFADBE.1000806@univ-lemans.fr> References: <4DDF962E.7080507@centre-cired.fr> <4DDFADBE.1000806@univ-lemans.fr> Message-ID: <4DDFAEE7.9070809@centre-cired.fr> thank you, it works reported the bad advice in the doc page : http://bugzilla.scilab.org/show_bug.cgi?id=9553 Le 27/05/2011 15:57, Samuel GOUGEON a ?crit : > Hello Adrien, > >> help grand says i should use >> >> rand("seed",getdate("s")) >> >> in order to avoid my random numbers to be equal accros each simulation >> but using the following code in a new scilab console returns each >> time 0.4388861. Any idea what am i doing wrong ? >> rand("seed",getdate("s")) >> grand(1,1,"nor",0,1) > Did you try > grand("setsd",...) > -- *Adrien Vogt-Schilb* Research Fellow vogt at centre-cired.fr Tel: (+33) 1 43 94 73 96 Fax: (+33) 1 43 94 73 70 CIRED 45 bis, Av de la Belle Gabrielle F-94736 Nogent-sur-Marne http://www.centre-cired.fr/ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logocired.png Type: image/png Size: 4092 bytes Desc: not available URL: From Andrea.Amorosi76 at gmail.com Sat May 28 00:20:17 2011 From: Andrea.Amorosi76 at gmail.com (Andrea.Amorosi76 at gmail.com) Date: Sat, 28 May 2011 00:20:17 +0200 Subject: Questions about XCOS licensing and code generation Message-ID: <4DE023A1.700@gmail.com> Hi to all, I have some questions regarding the license to use with XCOS models and generated C: 1) the C code generated from a XCOS model should be released with the same license? 2) what kind of license should be used if the XCOS model contains some models/palettes released under the GPL license? Practically speaking I'm wondering if the code generated from an XCOS model can be used in project with non GPl licences. Moreover I would like to have some hints on how to interface XCOS with a joystick and how to send data via UDP. Thank you, Andrea From hkondja at yahoo.com Sun May 29 23:51:22 2011 From: hkondja at yahoo.com (Henoch) Date: Sun, 29 May 2011 14:51:22 -0700 (PDT) Subject: Simulate the quarter-car model In-Reply-To: References: <1306180323903-2976741.post@n3.nabble.com> Message-ID: <34495.72238.qm@web160806.mail.bf1.yahoo.com> Dear Mike' I am here in Africa-Namibia, and I am honestly ?in a very difficult position, whereby I would like to finish my study, and this is the only thing that is holding me behind.I would therefore like to request you very humbly, please do assist me and write for me all ?those equations as you explained and try to run and email me the functions or the result, please Mike.I honestly do NOT know where to start with this project, and I am running out of time. Please, please Mike, could you please check how you can assist me in this with your good knowledge of Scilab. I was never?taught?Scilab and it is my first time to use it, and I have got a very limited time. Your?urgent?assistance will be highly?appreciated?my brother. Thank you million times for your help Regards Henoch --- On Tue, 5/24/11, Mike Page [via Scilab / Xcos - Mailing Lists Archives] wrote: From: Mike Page [via Scilab / Xcos - Mailing Lists Archives] Subject: RE: Simulate the quarter-car model To: "Henoch" Date: Tuesday, May 24, 2011, 1:35 AM Hi, A simple way would be to define your system states (w, v, Tb, ...) and the inputs and outputs. ?Then write your equations as a standard set of state-space matrices (A, B, C, D). ?You can use Scilab's syslin function to make a linear system and csim to simulate it. ?The help text explains how to do it. Cheers, Mike. -----Original Message----- From: Henoch [mailto:[hidden email]] Sent: 23 May 2011 20:52 To: [hidden email] Subject: [scilab-Users] Simulate the quarter-car model http://mailinglists.scilab.org/file/n2976741/Equation_of_motion.docx Equation_of_motion.docx I would like to simulate the quarter vehicle with use of scilab, and could anyone please assist me on the attached document about how do i run those four equations on Scilab, or how do I construct the Xcos diagram with those equations, please assist, it is very urgent. -- View this message in context: http://mailinglists.scilab.org/Simulate-the-quarter-car-model-tp2976741p2976 741.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.901 / Virus Database: 271.1.1/3654 - Release Date: 05/22/11 19:33:00 If you reply to this email, your message will be added to the discussion below: http://mailinglists.scilab.org/Simulate-the-quarter-car-model-tp2976741p2978756.html To unsubscribe from Simulate the quarter-car model, click here. -- View this message in context: http://mailinglists.scilab.org/Simulate-the-quarter-car-model-tp2976741p3000150.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Sun May 29 23:55:55 2011 From: sylvestre.ledru at scilab.org (sylvestre Ledru) Date: Sun, 29 May 2011 23:55:55 +0200 Subject: [scilab-Users] RE: Simulate the quarter-car model In-Reply-To: <34495.72238.qm@web160806.mail.bf1.yahoo.com> References: <1306180323903-2976741.post@n3.nabble.com> <34495.72238.qm@web160806.mail.bf1.yahoo.com> Message-ID: Dear Henoch, Please restraint yourself for sending such requests. Your project looks like a university project. You should work on this instead of asking Mike to do it for you... Thanks, Sylvestre On Sun, 29 May 2011 14:51:22 -0700 (PDT), Henoch wrote: > Dear Mike' > > I am here in Africa-Namibia, and I am honestly in a very difficult > position, whereby I would like to finish my study, and this is the > only thing that is holding me behind. > I would therefore like to request you very humbly, please do assist > me > and write for me all those equations as you explained and try to run > and email me the functions or the result, please Mike. > I honestly do NOT know where to start with this project, and I am > running out of time. > > Please, please Mike, could you please check how you can assist me in > this with your good knowledge of Scilab. I was never taught Scilab > and > it is my first time to use it, and I have got a very limited time. > > Your urgent assistance will be highly appreciated my brother. > > Thank you million times for your help > > Regards > > Henoch > > --- On TUE, 5/24/11, MIKE PAGE [VIA SCILAB / XCOS - MAILING LISTS > ARCHIVES] __ wrote: > > From: Mike Page [via Scilab / Xcos - Mailing Lists Archives] > Subject: RE: Simulate the quarter-car model > To: "Henoch" > Date: Tuesday, May 24, 2011, 1:35 AM > > Hi, > > A simple way would be to define your system states (w, v, Tb, ...) > and > the > inputs and outputs. Then write your equations as a standard set of > state-space matrices (A, B, C, D). You can use Scilab's syslin > function to > make a linear system and csim to simulate it. The help text explains > how to > do it. > > Cheers, > Mike. > > -----Original Message----- > From: Henoch [mailto:[hidden email]] > Sent: 23 May 2011 20:52 > To: [hidden email] > Subject: [scilab-Users] Simulate the quarter-car model > > http://mailinglists.scilab.org/file/n2976741/Equation_of_motion.docx > [3] > Equation_of_motion.docx > > I would like to simulate the quarter vehicle with use of scilab, and > could > anyone please assist me on the attached document about how do i run > those > four equations on Scilab, or how do I construct the Xcos diagram with > those > equations, please assist, it is very urgent. > > -- > View this message in context: > > http://mailinglists.scilab.org/Simulate-the-quarter-car-model-tp2976741p2976 > [4] > 741.html > Sent from the Scilab users - Mailing Lists Archives mailing list > archive at > Nabble.com. > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 9.0.901 / Virus Database: 271.1.1/3654 - Release Date: > 05/22/11 > 19:33:00 > > ------------------------- > > If you reply to this email, your message will be added to the > discussion below: > > http://mailinglists.scilab.org/Simulate-the-quarter-car-model-tp2976741p2978756.html > [5] > To unsubscribe from Simulate the quarter-car model, click here. > > ------------------------- > View this message in context: RE: Simulate the quarter-car model [6] > Sent from the Scilab users - Mailing Lists Archives mailing list > archive [7] at Nabble.com. > > > Links: > ------ > [1] > > http://webmail.scilab.org/user/SendEmail.jtp?type=node&node=3000150&i=1 > [2] > > http://webmail.scilab.org/user/SendEmail.jtp?type=node&node=3000150&i=2 > [3] > http://mailinglists.scilab.org/file/n2976741/Equation_of_motion.docx > [4] > > http://mailinglists.scilab.org/Simulate-the-quarter-car-model-tp2976741p2976 > [5] > > http://mailinglists.scilab.org/Simulate-the-quarter-car-model-tp2976741p2978756.html > [6] > > http://mailinglists.scilab.org/Simulate-the-quarter-car-model-tp2976741p3000150.html > [7] > > http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From mruggeri at frh.utn.edu.ar Mon May 30 06:10:43 2011 From: mruggeri at frh.utn.edu.ar (Marcos C. Ruggeri) Date: Mon, 30 May 2011 01:10:43 -0300 Subject: Maintain configuration of windows in Scilab Message-ID: <000001cc1e7f$9549e6b0$bfddb410$@utn.edu.ar> Whenever I exit Scilab 5.3.2 and restart it, all the windows that had been opened and sorted are no longer visible. How can I maintain the configuration of the windows in Scilab 5.3.2 forever? Thanks in advance. Marcos C. Ruggeri Universidad Tecnol?gica Nacional Facultad Regional Haedo mruggeri at frh.utn.edu.ar www.frh.utn.edu.ar -------------- next part -------------- An HTML attachment was scrubbed... URL: From calixte at contrib.scilab.org Mon May 30 08:29:52 2011 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Mon, 30 May 2011 08:29:52 +0200 Subject: [scilab-Users] Maintain configuration of windows in Scilab In-Reply-To: <000001cc1e7f$9549e6b0$bfddb410$@utn.edu.ar> References: <000001cc1e7f$9549e6b0$bfddb410$@utn.edu.ar> Message-ID: <1306736992.27686.140.camel@Calixte-Dell> Hi Marcos, Currently it is not possible... it is a work in progress (probably available in the 5.4 version) Regards, Calixte Le lundi 30 mai 2011 ? 01:10 -0300, Marcos C. Ruggeri a ?crit : > Whenever I exit Scilab 5.3.2 and restart it, all the windows that had > been opened and sorted are no longer visible. > > > > How can I maintain the configuration of the windows in Scilab 5.3.2 > forever? > > > > Thanks in advance. > > > > Marcos C. Ruggeri > > Universidad Tecnol?gica Nacional > Facultad Regional Haedo > mruggeri at frh.utn.edu.ar > www.frh.utn.edu.ar > > > > > > From amorosi.andrea at tiscali.it Sat May 28 00:18:46 2011 From: amorosi.andrea at tiscali.it (Andrea Amorosi) Date: Sat, 28 May 2011 00:18:46 +0200 Subject: Questions about XCOS licensing and code generation Message-ID: <4DE02346.2020704@tiscali.it> Hi to all, I have some questions regarding the license to use with XCOS models and generated C: 1) the C code generated from a XCOS model should be released with the same license? 2) what kind of license should be used if the XCOS model contains some models/palettes released under the GPL license? Practically speaking I'm wondering if the code generated from an XCOS model can be used in project with non GPl licences. Moreover I would like to have some hints on how to interface XCOS with a joystick and how to send data via UDP. Thank you, Andrea From andreika-sacred at mail.ru Sat May 28 19:37:41 2011 From: andreika-sacred at mail.ru (=?utf-8?Q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9_=D0=9C=D0=B5=D0=BB=D1=8C=D0=BD=D0=B8=D0=BA=D0=BE=D0=B2?=) Date: Sat, 28 May 2011 21:37:41 +0400 Subject: Problems with construction of schedules Message-ID: At start scilab there were problems of following character - schedules aren't under construction. ?? completely the worker and conflicts with scilab isn't observed. Calculations scilab makes without any problems, and here the drawing isn't deduced. How to correct this problem?? -------------- next part -------------- An HTML attachment was scrubbed... URL: From goepfert.benoit at gmail.com Mon May 30 09:26:15 2011 From: goepfert.benoit at gmail.com (Benoit Goepfert) Date: Mon, 30 May 2011 16:26:15 +0900 Subject: [scilab-Users] api scilab Message-ID: Hello, I'm currently working on the creation of a gateway so I want to use correctly the last functions of the API scilab. To this end, does someone know what is the difference between the functions "getAllocatedSparseMatrix" and "getSparseMatrix", if there is one? Moreover, I can't find any allocation function (such as "allocMatrixOfDouble" for example) in the API help pages ( http://help.scilab.org/docs/5.3.2/en_US/section_204636e951f595409bc6782bb8e1d2d9.html), whereas those functions are existing according to my knoweldge. Is it normal? Thank you for your answers. Best regards, -- Benoit Goepfert -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.elias at scilab.org Mon May 30 10:29:01 2011 From: antoine.elias at scilab.org (Antoine ELIAS) Date: Mon, 30 May 2011 10:29:01 +0200 Subject: [scilab-Users] api scilab In-Reply-To: References: Message-ID: <4DE3554D.2070506@scilab.org> Hello Benoit, It seems we have a lack in documention to explain this. getAllocated* functions return a independent pointer on data whereas get* functions return pointer on Scilab memory But to do that, API needs to allocate some memories. So after call any getAllocated* functions you have to call correspondant free* function to release memory. allocMatrixOfDouble is in "Double management writing" page : http://help.scilab.org/docs/5.3.2/en_US/Double_management_writing_API.html Regards, Antoine Le 30/05/2011 09:26, Benoit Goepfert a ?crit : > Hello, > > I'm currently working on the creation of a gateway so I want to use > correctly the last functions of the API scilab. > To this end, does someone know what is the difference between the > functions "getAllocatedSparseMatrix" and "getSparseMatrix", if there > is one? > Moreover, I can't find any allocation function (such as > "allocMatrixOfDouble" for example) in the API help pages > (http://help.scilab.org/docs/5.3.2/en_US/section_204636e951f595409bc6782bb8e1d2d9.html), > whereas those functions are existing according to my knoweldge. Is it > normal? > Thank you for your answers. > > Best regards, > > -- > Benoit Goepfert > -- Antoine ELIAS Sofware developer ----------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay France Phone : +33.1.93.63.50.63 From goepfert.benoit at gmail.com Mon May 30 11:16:48 2011 From: goepfert.benoit at gmail.com (Benoit Goepfert) Date: Mon, 30 May 2011 18:16:48 +0900 Subject: [scilab-Users] api scilab In-Reply-To: <4DE3554D.2070506@scilab.org> References: <4DE3554D.2070506@scilab.org> Message-ID: Thank you Antoine for your answer, it's clearer now (and indeed, i didn't see the functions below on the webpage on double management writing, my apologies). Best regards, 2011/5/30 Antoine ELIAS > Hello Benoit, > > It seems we have a lack in documention to explain this. > > getAllocated* functions return a independent pointer on data whereas get* > functions return pointer on Scilab memory > But to do that, API needs to allocate some memories. So after call any > getAllocated* functions you have to call correspondant free* function to > release memory. > > allocMatrixOfDouble is in "Double management writing" page : > http://help.scilab.org/docs/5.3.2/en_US/Double_management_writing_API.html > > Regards, > Antoine > > > Le 30/05/2011 09:26, Benoit Goepfert a ?crit : > > Hello, >> >> I'm currently working on the creation of a gateway so I want to use >> correctly the last functions of the API scilab. >> To this end, does someone know what is the difference between the >> functions "getAllocatedSparseMatrix" and "getSparseMatrix", if there is one? >> Moreover, I can't find any allocation function (such as >> "allocMatrixOfDouble" for example) in the API help pages ( >> http://help.scilab.org/docs/5.3.2/en_US/section_204636e951f595409bc6782bb8e1d2d9.html), >> whereas those functions are existing according to my knoweldge. Is it >> normal? >> Thank you for your answers. >> >> Best regards, >> >> -- >> Benoit Goepfert >> >> > > -- > Antoine ELIAS > Sofware developer > ----------------------- > The Scilab Consortium > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay France > Phone : +33.1.93.63.50.63 > > -- Benoit Goepfert -------------- next part -------------- An HTML attachment was scrubbed... URL: From iberezovik at yahoo.com Tue May 31 03:12:34 2011 From: iberezovik at yahoo.com (Irina Berezovik) Date: Mon, 30 May 2011 18:12:34 -0700 (PDT) Subject: Question Message-ID: <192513.59265.qm@web161813.mail.bf1.yahoo.com> From: Irina Berezovik Subject: Question To: users at lists.scilab.org Date: Monday, May 30, 2011, 9:01 PM Hello, My friend gave some Scilab files created on PC (extension .sce).?I have Mac. I downloaded Scilab on my Mac but I still can't open his files on my computer.Is it possible to read files created on PC on Mac? Thank you,?Irina -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mike at Page-One.Waitrose.com Tue May 31 11:12:09 2011 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Tue, 31 May 2011 10:12:09 +0100 Subject: [scilab-Users] RE: Simulate the quarter-car model In-Reply-To: Message-ID: Hi Henoch, I'm afraid Sylvestre is right. Actually, setting up a state-space representation is very easy and is a fundamental aspect of modern control theory. If you honestly have no idea how to do this, maybe you are tackling a problem that is outside your specialist area. If you need a refresher on state space theory, you will find a good one on Wikipedia (http://en.wikipedia.org/wiki/State_space_%28controls%29). I suggest you do this and try to implement the equations in Scilab. This is also very easy and Scilab provides a good help system and many examples and documents to get started. Contact the user group again when you have some Scilab code and want some help getting it to work. Everyone here is very willing to assist you, but we can't create your solution for you. Best regards, Mike. -----Original Message----- From: sylvestre Ledru [mailto:sylvestre.ledru at scilab.org] Sent: 29 May 2011 22:56 To: users at lists.scilab.org Subject: Re: [scilab-Users] RE: Simulate the quarter-car model Dear Henoch, Please restraint yourself for sending such requests. Your project looks like a university project. You should work on this instead of asking Mike to do it for you... Thanks, Sylvestre On Sun, 29 May 2011 14:51:22 -0700 (PDT), Henoch wrote: > Dear Mike' > > I am here in Africa-Namibia, and I am honestly in a very difficult > position, whereby I would like to finish my study, and this is the > only thing that is holding me behind. > I would therefore like to request you very humbly, please do assist > me > and write for me all those equations as you explained and try to run > and email me the functions or the result, please Mike. > I honestly do NOT know where to start with this project, and I am > running out of time. > > Please, please Mike, could you please check how you can assist me in > this with your good knowledge of Scilab. I was never taught Scilab > and > it is my first time to use it, and I have got a very limited time. > > Your urgent assistance will be highly appreciated my brother. > > Thank you million times for your help > > Regards > > Henoch > > --- On TUE, 5/24/11, MIKE PAGE [VIA SCILAB / XCOS - MAILING LISTS > ARCHIVES] __ wrote: > > From: Mike Page [via Scilab / Xcos - Mailing Lists Archives] > Subject: RE: Simulate the quarter-car model > To: "Henoch" > Date: Tuesday, May 24, 2011, 1:35 AM > > Hi, > > A simple way would be to define your system states (w, v, Tb, ...) > and > the > inputs and outputs. Then write your equations as a standard set of > state-space matrices (A, B, C, D). You can use Scilab's syslin > function to > make a linear system and csim to simulate it. The help text explains > how to > do it. > > Cheers, > Mike. > > -----Original Message----- > From: Henoch [mailto:[hidden email]] > Sent: 23 May 2011 20:52 > To: [hidden email] > Subject: [scilab-Users] Simulate the quarter-car model > > http://mailinglists.scilab.org/file/n2976741/Equation_of_motion.docx > [3] > Equation_of_motion.docx > > I would like to simulate the quarter vehicle with use of scilab, and > could > anyone please assist me on the attached document about how do i run > those > four equations on Scilab, or how do I construct the Xcos diagram with > those > equations, please assist, it is very urgent. > > -- > View this message in context: > > http://mailinglists.scilab.org/Simulate-the-quarter-car-model-tp2976741p2976 > [4] > 741.html > Sent from the Scilab users - Mailing Lists Archives mailing list > archive at > Nabble.com. > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 9.0.901 / Virus Database: 271.1.1/3654 - Release Date: > 05/22/11 > 19:33:00 > > ------------------------- > > If you reply to this email, your message will be added to the > discussion below: > > http://mailinglists.scilab.org/Simulate-the-quarter-car-model-tp2976741p2978756.html > [5] > To unsubscribe from Simulate the quarter-car model, click here. > > ------------------------- > View this message in context: RE: Simulate the quarter-car model [6] > Sent from the Scilab users - Mailing Lists Archives mailing list > archive [7] at Nabble.com. > > > Links: > ------ > [1] > > http://webmail.scilab.org/user/SendEmail.jtp?type=node&node=3000150&i=1 > [2] > > http://webmail.scilab.org/user/SendEmail.jtp?type=node&node=3000150&i=2 > [3] > http://mailinglists.scilab.org/file/n2976741/Equation_of_motion.docx > [4] > > http://mailinglists.scilab.org/Simulate-the-quarter-car-model-tp2976741p2976 > [5] > > http://mailinglists.scilab.org/Simulate-the-quarter-car-model-tp2976741p2978756.html > [6] > > http://mailinglists.scilab.org/Simulate-the-quarter-car-model-tp2976741p3000150.html > [7] > > http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.901 / Virus Database: 271.1.1/3665 - Release Date: 05/28/11 07:34:00 From vogt at centre-cired.fr Tue May 31 11:40:23 2011 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Tue, 31 May 2011 11:40:23 +0200 Subject: [scilab-Users] Question In-Reply-To: <192513.59265.qm@web161813.mail.bf1.yahoo.com> References: <192513.59265.qm@web161813.mail.bf1.yahoo.com> Message-ID: <4DE4B787.8030705@centre-cired.fr> Hi Scilab files are simply text files. Text files created in PC can be opened Mac and vice versa. You might have issues with end of lines [1]. In your case, i suggest you to open Scilab, then open SciNotes (Men Applications > Scinotes), and then open the sce files from SciNotes (File >Open). If you need an introduction to scilab, there are lots of tutorials on the internet. I recomend this one [2] [1] http://en.wikipedia.org/wiki/Newline [2] http://cermics.enpc.fr/scilab_new/site/Initiation/english_intro_scilab/index.htm Le 31/05/2011 03:12, Irina Berezovik a ?crit : > > From: Irina Berezovik > Subject: Question > To: users at lists.scilab.org > Date: Monday, May 30, 2011, 9:01 PM > > Hello, > > My friend gave some Scilab files created on PC (extension .sce). > I have Mac. I downloaded Scilab on my Mac but I still can't open > his files on my computer. > Is it possible to read files created on PC on Mac? > > Thank you, > Irina > -- *Adrien Vogt-Schilb* Research Fellow vogt at centre-cired.fr Tel: (+33) 1 43 94 73 96 Fax: (+33) 1 43 94 73 70 CIRED 45 bis, Av de la Belle Gabrielle F-94736 Nogent-sur-Marne http://www.centre-cired.fr/ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logocired.png Type: image/png Size: 4092 bytes Desc: not available URL: From paul.carrico at esterline.com Tue May 31 11:48:18 2011 From: paul.carrico at esterline.com (Carrico, Paul) Date: Tue, 31 May 2011 11:48:18 +0200 Subject: updating matrix Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC06F62EF2@exchsrv.AUXITROL1> Dear all I've the following matrix : A = [N1 N2 N3 .... Ni .... Nn ]' with n data In an iterative process, the idea is to decrease the size of the matrix when the wanted value(integer) is found . i = 1 -> size = n i = 2 -> the ith value is removed => size = n-1 and so on up to n = 1 Is there a relevant way to do it without creating a temporary matrix B -> copying the upper part/lower part of the matrix -> removing A and renaming B in A ..... ? The aim is both to limit the number of iterations (and to limit the time consuming) and to have a "clean" synthax ! Thanks for any advice Regards 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 vogt at centre-cired.fr Tue May 31 11:59:48 2011 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Tue, 31 May 2011 11:59:48 +0200 Subject: [scilab-Users] updating matrix In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC06F62EF2@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC06F62EF2@exchsrv.AUXITROL1> Message-ID: <4DE4BC14.2060903@centre-cired.fr> Hi This will show you an example A=[2 4 6 8 10]; A(3) = [] //deletes the 3rd element of A. But be aware, if A is very big, this might be very time consuming. (I am not sure, thought) You could prefer something as B=A //once at the begining B(3) = %nan //when the third element should be "deleted" if you do so beware of comparisons with nans: they always return false! 1==%nan 1>%nan 1<%nan %nan == %nan Le 31/05/2011 11:48, Carrico, Paul a ?crit : > > Dear all > > I've the following matrix : > > A = [N1 N2 N3 .... Ni .... Nn ]' with n data > > In an iterative process, the idea is to decrease the size of the > matrix when the wanted value(integer) is found . > > i = 1 -> size = n > i = 2 -> the ith value is removed => size = n-1 > and so on up to n = 1 > > Is there a relevant way to do it without creating a temporary matrix B > -> copying the upper part/lower part of the matrix -> removing A and > renaming B in A ..... ? > > The aim is both to limit the number of iterations (and to limit the > time consuming) and to have a "clean" synthax ! > > Thanks for any advice > > Regards > > 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. > > -- *Adrien Vogt-Schilb* Research Fellow vogt at centre-cired.fr Tel: (+33) 1 43 94 73 96 Fax: (+33) 1 43 94 73 70 CIRED 45 bis, Av de la Belle Gabrielle F-94736 Nogent-sur-Marne http://www.centre-cired.fr/ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logocired.png Type: image/png Size: 4092 bytes Desc: not available URL: From Mike at Page-One.Waitrose.com Tue May 31 12:02:38 2011 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Tue, 31 May 2011 11:02:38 +0100 Subject: [scilab-Users] updating matrix In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC06F62EF2@exchsrv.AUXITROL1> Message-ID: updating matrixHi Paul, I usually use "find" for this kind of operation --> A = A (find (A ~= X)) will remove the entry A=X from A if it is there. I don't know how efficient this is, but the syntax is quite neat. Hope that helps. Mike. -----Original Message----- From: Carrico, Paul [mailto:paul.carrico at esterline.com] Sent: 31 May 2011 10:48 To: users at lists.scilab.org Subject: [scilab-Users] updating matrix Dear all I've the following matrix : A = [N1 N2 N3 .... Ni .... Nn ]' with n data In an iterative process, the idea is to decrease the size of the matrix when the wanted value(integer) is found . i = 1 -> size = n i = 2 -> the ith value is removed => size = n-1 and so on up to n = 1 Is there a relevant way to do it without creating a temporary matrix B -> copying the upper part/lower part of the matrix -> removing A and renaming B in A ..... ? The aim is both to limit the number of iterations (and to limit the time consuming) and to have a "clean" synthax ! Thanks for any advice Regards 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 berns.buenaobra at gmail.com Tue May 31 12:39:00 2011 From: berns.buenaobra at gmail.com (Berns Buenaobra) Date: Tue, 31 May 2011 18:39:00 +0800 Subject: [scilab-Users] RE: Simulate the quarter-car model In-Reply-To: References: Message-ID: Yes Mike! No pain to gain! There is always the learning curve - students must continue to make small steps on a steep slope other wise they will continue to slide back. Scilab can be a good solver but the modeling part needs a human brain. I wonder how one can defend an project or thesis if its done by some one else. To attempt is already the first sign of success! Regards, Berns B. USC (Philippines) Dept. of Physics On Tue, May 31, 2011 at 5:12 PM, Mike Page wrote: > Hi Henoch, > > I'm afraid Sylvestre is right. Actually, setting up a state-space > representation is very easy and is a fundamental aspect of modern control > theory. If you honestly have no idea how to do this, maybe you are tackling > a problem that is outside your specialist area. If you need a refresher on > state space theory, you will find a good one on Wikipedia ( > http://en.wikipedia.org/wiki/State_space_%28controls%29). > > I suggest you do this and try to implement the equations in Scilab. This > is also very easy and Scilab provides a good help system and many examples > and documents to get started. Contact the user group again when you have > some Scilab code and want some help getting it to work. Everyone here is > very willing to assist you, but we can't create your solution for you. > > Best regards, > Mike. > > > -----Original Message----- > From: sylvestre Ledru [mailto:sylvestre.ledru at scilab.org] > Sent: 29 May 2011 22:56 > To: users at lists.scilab.org > Subject: Re: [scilab-Users] RE: Simulate the quarter-car model > > > Dear Henoch, > > Please restraint yourself for sending such requests. > Your project looks like a university project. You should work on this > instead of asking Mike to do it for you... > > Thanks, > Sylvestre > > On Sun, 29 May 2011 14:51:22 -0700 (PDT), Henoch > wrote: > > Dear Mike' > > > > I am here in Africa-Namibia, and I am honestly in a very difficult > > position, whereby I would like to finish my study, and this is the > > only thing that is holding me behind. > > I would therefore like to request you very humbly, please do assist > > me > > and write for me all those equations as you explained and try to run > > and email me the functions or the result, please Mike. > > I honestly do NOT know where to start with this project, and I am > > running out of time. > > > > Please, please Mike, could you please check how you can assist me in > > this with your good knowledge of Scilab. I was never taught Scilab > > and > > it is my first time to use it, and I have got a very limited time. > > > > Your urgent assistance will be highly appreciated my brother. > > > > Thank you million times for your help > > > > Regards > > > > Henoch > > > > --- On TUE, 5/24/11, MIKE PAGE [VIA SCILAB / XCOS - MAILING LISTS > > ARCHIVES] __ wrote: > > > > From: Mike Page [via Scilab / Xcos - Mailing Lists Archives] > > Subject: RE: Simulate the quarter-car model > > To: "Henoch" > > Date: Tuesday, May 24, 2011, 1:35 AM > > > > Hi, > > > > A simple way would be to define your system states (w, v, Tb, ...) > > and > > the > > inputs and outputs. Then write your equations as a standard set of > > state-space matrices (A, B, C, D). You can use Scilab's syslin > > function to > > make a linear system and csim to simulate it. The help text explains > > how to > > do it. > > > > Cheers, > > Mike. > > > > -----Original Message----- > > From: Henoch [mailto:[hidden email]] > > Sent: 23 May 2011 20:52 > > To: [hidden email] > > Subject: [scilab-Users] Simulate the quarter-car model > > > > http://mailinglists.scilab.org/file/n2976741/Equation_of_motion.docx > > [3] > > Equation_of_motion.docx > > > > I would like to simulate the quarter vehicle with use of scilab, and > > could > > anyone please assist me on the attached document about how do i run > > those > > four equations on Scilab, or how do I construct the Xcos diagram with > > those > > equations, please assist, it is very urgent. > > > > -- > > View this message in context: > > > > > http://mailinglists.scilab.org/Simulate-the-quarter-car-model-tp2976741p2976 > > [4] > > 741.html > > Sent from the Scilab users - Mailing Lists Archives mailing list > > archive at > > Nabble.com. > > > > No virus found in this incoming message. > > Checked by AVG - www.avg.com > > Version: 9.0.901 / Virus Database: 271.1.1/3654 - Release Date: > > 05/22/11 > > 19:33:00 > > > > ------------------------- > > > > If you reply to this email, your message will be added to the > > discussion below: > > > > > http://mailinglists.scilab.org/Simulate-the-quarter-car-model-tp2976741p2978756.html > > [5] > > To unsubscribe from Simulate the quarter-car model, click here. > > > > ------------------------- > > View this message in context: RE: Simulate the quarter-car model [6] > > Sent from the Scilab users - Mailing Lists Archives mailing list > > archive [7] at Nabble.com. > > > > > > Links: > > ------ > > [1] > > > > http://webmail.scilab.org/user/SendEmail.jtp?type=node&node=3000150&i=1 > > [2] > > > > http://webmail.scilab.org/user/SendEmail.jtp?type=node&node=3000150&i=2 > > [3] > > http://mailinglists.scilab.org/file/n2976741/Equation_of_motion.docx > > [4] > > > > > http://mailinglists.scilab.org/Simulate-the-quarter-car-model-tp2976741p2976 > > [5] > > > > > http://mailinglists.scilab.org/Simulate-the-quarter-car-model-tp2976741p2978756.html > > [6] > > > > > http://mailinglists.scilab.org/Simulate-the-quarter-car-model-tp2976741p3000150.html > > [7] > > > > > http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 9.0.901 / Virus Database: 271.1.1/3665 - Release Date: 05/28/11 > 07:34:00 > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Tue May 31 13:40:28 2011 From: paul.carrico at esterline.com (Carrico, Paul) Date: Tue, 31 May 2011 13:40:28 +0200 Subject: =?iso-8859-1?Q?RE=A0=3A_=5Bscilab-Users=5D_updating_matrix?= References: Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC06F62EF5@exchsrv.AUXITROL1> great ... thanks to everybody (I was thinking in something much more complicated !!!!!!!) Paul -------- Message d'origine-------- De: Mike Page [mailto:Mike at Page-One.Waitrose.com] Date: mar. 31/05/2011 12:02 ?: users at lists.scilab.org Objet : RE: [scilab-Users] updating matrix updating matrixHi Paul, I usually use "find" for this kind of operation --> A = A (find (A ~= X)) will remove the entry A=X from A if it is there. I don't know how efficient this is, but the syntax is quite neat. Hope that helps. Mike. -----Original Message----- From: Carrico, Paul [mailto:paul.carrico at esterline.com] Sent: 31 May 2011 10:48 To: users at lists.scilab.org Subject: [scilab-Users] updating matrix Dear all I've the following matrix : A = [N1 N2 N3 .... Ni .... Nn ]' with n data In an iterative process, the idea is to decrease the size of the matrix when the wanted value(integer) is found . i = 1 -> size = n i = 2 -> the ith value is removed => size = n-1 and so on up to n = 1 Is there a relevant way to do it without creating a temporary matrix B -> copying the upper part/lower part of the matrix -> removing A and renaming B in A ..... ? The aim is both to limit the number of iterations (and to limit the time consuming) and to have a "clean" synthax ! Thanks for any advice Regards 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. -------------------------------------------------------------------------------- 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 -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 3740 bytes Desc: not available URL: