From clement.david at scilab-enterprises.com Wed Oct 1 10:08:27 2014 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Wed, 01 Oct 2014 10:08:27 +0200 Subject: [Scilab-users] xcos : xcos_simulate(scs_m, 1) or xcos_simulate(scs_m, 4) In-Reply-To: <1412088759673-4031271.post@n3.nabble.com> References: <1411483547009-4031207.post@n3.nabble.com> <1412085126.1935.38.camel@naxos> <1412088759673-4031271.post@n3.nabble.com> Message-ID: <1412150907.15811.12.camel@naxos> Hello Quentin, > 1) It uses the function scicos_simulate instead of xcos_simulate. > ->Are these two functions equivalent or not? > ->What should be the best syntax for next version of scilab? > ->Which one should be the fastest? Both scicos_simulate and xcos_simulate will be supported in the future. Note that the main difference are: * xcos_simulate invoke pre / post simulation hook ; it is called when the user click on simulation "Start" * scicos_simulate can re-use the Info and update context. It bypass more compilation / simulation steps depending on the arguments value. > 2) This example supposed that values are defined in Xcos context. It is not > my case. The context is empty and I change the Xcos input variables by using > a scilab script as following : > my_input1 = 10; > my_input2 = [5;1;3] > my_input3 = ... > ->Is it a good practice? > ->Will it impact my simulation time? Well, both approach fill a specific need. With a setup script it is slightly easier to edit execute and test using scinotes. Using the diagram context all the information are contained inside the ZCOS file ; you can easily mail it. Let's say : for more than 10 variables or if it contains Scilab function calls the setup script is much more manageable. -- Cl?ment From mazue.quentin at gmail.com Wed Oct 1 14:33:56 2014 From: mazue.quentin at gmail.com (=?UTF-8?Q?Quentin_Mazu=C3=A9?=) Date: Wed, 1 Oct 2014 05:33:56 -0700 (PDT) Subject: [Scilab-users] xcos : xcos_simulate(scs_m, 1) or xcos_simulate(scs_m, 4) In-Reply-To: <1412150907.15811.12.camel@naxos> References: <1411483547009-4031207.post@n3.nabble.com> <1412085126.1935.38.camel@naxos> <1412088759673-4031271.post@n3.nabble.com> <1412150907.15811.12.camel@naxos> Message-ID: <1412166836539-4031274.post@n3.nabble.com> Hello, Thanks for your answers Clement. To evaluate the scicos_simulate function I used the following script : Res = importXcosDiagram(file_path); %cpr = xcos_compile(scs_m); // Test xcos_simulate : 2 identical simulations for i=1:2 tic(); xcos_simulate(scs_m,1); disp("xcos_simulate n? " +string(i)+ " = "+string(toc())+" sec"); end // Test scicos_simulate : 2 identical simulations info = list(); for i=1:2 tic(); info = scicos_simulate(scs_m,info); disp("scicos_simulate n? " +string(i)+ " = "+string(toc())+" sec"); end With xcos_simulate both simulations last 65sec. However with scicos_simulate both simulations last 66sec. There is only a small difference between both function and this is in favor of xcos_simulate even if it should realize more compilation/simulation step. Did I do something wrong for the use of scicos_simulate? Regards Quentin Mazu? -- View this message in context: http://mailinglists.scilab.org/xcos-xcos-simulate-scs-m-1-or-xcos-simulate-scs-m-4-tp4031207p4031274.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From roberto.schiavone at hotmail.it Wed Oct 1 12:31:33 2014 From: roberto.schiavone at hotmail.it (Roberto Schiavone) Date: Wed, 1 Oct 2014 10:31:33 +0000 Subject: [Scilab-users] =?utf-8?q?scilab_doesn=27t_work_after_splash_scree?= =?utf-8?q?n?= Message-ID: Hello, I haven?t used scilab for a couple of months and then Yesterday I opened it again for a university project. The problem is that scilab doesn?t work anymore, I already try to uninstall and reinstall it(version 5.5.0), I even tried to install 5.4.1 but the same problem appears. Version 6.0 doesn?t even start. I attach a screenshot, although I?m not fast enough to catch the whole splashscreen. Specs: Windows 8.1 64 bit CPU: AMD A6 quad core 1.4ghz GPU: radeon hd 6520m 1gb Ram: 6 gb Thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Immagine.png Type: image/png Size: 362545 bytes Desc: Immagine.png URL: From pablo_f_7 at hotmail.com Wed Oct 1 22:06:53 2014 From: pablo_f_7 at hotmail.com (Pablo Fonovich) Date: Wed, 1 Oct 2014 17:06:53 -0300 Subject: [Scilab-users] scilab doesn't work after splash screen In-Reply-To: References: Message-ID: Hey: Try uninstalling it once again... Then remove the folder: "C:/Users/YourUserName/AppData/Roaming/scilab-5.5.0" Replacing YourUserName with whatever your user is called... In my case it would be C:/Users/Pablo/AppData/Roaming/scilab-5.5.0 Once you have uninstalled it... try reinstalling... In fact... I would delete every folder called scilab before reinstalling, or do a clean remove with some application, ive heard of them but never used it. From: roberto.schiavone at hotmail.it To: users at lists.scilab.org Date: Wed, 1 Oct 2014 10:31:33 +0000 Subject: [Scilab-users] scilab doesn't work after splash screen Hello,I haven?t used scilab for a couple of months and then Yesterday I opened it again for a university project. The problem is that scilab doesn?t work anymore, I already try to uninstall and reinstall it(version 5.5.0), I even tried to install 5.4.1 but the same problem appears. Version 6.0 doesn?t even start. I attach a screenshot, although I?m not fast enough to catch the whole splashscreen. Specs:Windows 8.1 64 bitCPU: AMD A6 quad core 1.4ghzGPU: radeon hd 6520m 1gbRam: 6 gb Thanks in advance _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.euxinos at gmail.com Thu Oct 2 10:31:17 2014 From: t.euxinos at gmail.com (euxinos) Date: Thu, 2 Oct 2014 01:31:17 -0700 (PDT) Subject: [Scilab-users] multi super block with imported data Message-ID: <1412238677534-4031277.post@n3.nabble.com> Hello everyone ! Attached you will find two circuit systems. one of them has one super block (single super block.zcos) and the other one has three super blocks (multiple test.zcos). all the super blocks has inductors and resistance inside and for the values of these elements super blocks ask for data files with contexts they have. Each time when we run it, every super block will ask for a data file. The problem is, its normal that they ask for a data file at first run but then even if we have already chosen data file, whenever we run it, it asks again ! which makes it user unfriendly. I have solved the problem for single super block with following context: global filename empty=1D-10; if size(filename)==0 then filename = uigetfile(["*.txt"]); end M=csvRead (filename,','); if size(M,2)>=1 then r1=M(1,1); L1=M(2,1); else r1=empty; L1=empty; end if size(M,2)>=2 then r2=M(1,2); L2=M(2,2); else r2=empty; L2=empty; end ...... ...... if size(M,2)>=10 then r10=M(1,10); L10=M(2,10); else r10=empty; L10=empty; end if size(M,2)>=11 then r11=M(1,11); L11=M(2,11); else r11=empty; L11=empty; end but this temporary solution is not valid for multiple use of this super block as you can imagine. I need such a context that when I put these super block to library, with drag and drop it should work properly. in the multiple test example I attached, system also works with different data files without any problem or confusion but each time when we run, it asks again. multiple test screen shot: Super block screen shot: Here also context of super blocks from multiple test: filename = uigetfile(["*.txt"]) M=csvRead (filename,','); if size(M,2)>=1 then r1=M(1,1); I1=M(2,1); else r1=0; I1=0; end if size(M,2)>=2 then r2=M(1,2); I2=M(2,2); else r2=0; I2=0; end ........ ....... ....... if size(M,2)>=10 then r10=M(1,10); I10=M(2,10); else r10=0; I10=0; end if size(M,2)>=11 then r11=M(1,11); I11=M(2,11); else r11=0; I11=0; end I will also upload some different data files for whom would like try. Thanks in advance ! Greetings, Teoman. single_super_block.zcos multiple_test.zcos first_sample_-_Copy.txt first_sample_-_Copy_(2).txt first_sample_-_Copy_(3).txt -- View this message in context: http://mailinglists.scilab.org/multi-super-block-with-imported-data-tp4031277.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From communication at scilab-enterprises.com Thu Oct 2 12:37:31 2014 From: communication at scilab-enterprises.com (Scilab Communications) Date: Thu, 02 Oct 2014 12:37:31 +0200 Subject: [Scilab-users] Scilab 5.5.1 is released Message-ID: <542D2AEB.6080703@scilab-enterprises.com> Dear Scilab Users, ?? Scilab Enterprises is glad to announce the release of Scilab 5.5.1. Scilab 5.5.1 is a minor release to solve in particular three serious issues: ? * Scilab could not be used on Linux platforms using old GLIBC versions (CentOS, RedHat, etc.), ? * ATOMS modules update failed in some configurations, * The Japanese and Russian help pages were not available on Linux versions. Scilab 5.5.1 is available for download on http://www.scilab.org Best Regards -- SE Communication Department, Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles (France) http://www.scilab-enterprises.com - http://www.scilab.org -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 8210 bytes Desc: not available URL: From nhulkower at yahoo.com Thu Oct 2 19:50:48 2014 From: nhulkower at yahoo.com (Neal Hulkower) Date: Thu, 2 Oct 2014 10:50:48 -0700 Subject: [Scilab-users] Constrained Nelder-Mead optimization Message-ID: <006601cfde69$66b16d70$34144850$@yahoo.com> Hi: I would like to implement constrained Nelder Mead optimization in SciLab to do Minimum Percent Error Zero Percent Bias regression. Can anyone suggest how this might be done? Neal D. Hulkower, Ph.D. Consulting Services 208 SW Eckman St. McMinnville, OR 97128 (503) 857 0628 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Fri Oct 3 09:26:00 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Fri, 3 Oct 2014 09:26:00 +0200 Subject: [Scilab-users] Constrained Nelder-Mead optimization In-Reply-To: <006601cfde69$66b16d70$34144850$@yahoo.com> References: <006601cfde69$66b16d70$34144850$@yahoo.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F40BFF9621@301EX00100.sidel.com> Hello, > De Neal Hulkower > Envoy? : jeudi 2 octobre 2014 19:51 > > I would like to implement constrained Nelder Mead optimization in SciLab [...] I'm not in this field, but does the following help page match your need? http://help.scilab.org/docs/5.5.1/en_US/section_94806b6f99c310115e9b97a0a5a49a4d.html HTH Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From a.dgraaf at krohne.com Fri Oct 3 12:33:49 2014 From: a.dgraaf at krohne.com (Ariel) Date: Fri, 3 Oct 2014 03:33:49 -0700 (PDT) Subject: [Scilab-users] How to maximize the Graphic Window before export? Message-ID: <1412332428895-4031290.post@n3.nabble.com> After plotting 2x2 subplots on the Graphic Window I need to maximize the Graphic Window manually in order to avoid the overlapping of plots when exporting the figure. See attached examples. Is there a way to maximize the Graphic Window automatically, or another way to circumvent this problem? Best regards, Ariel Normal.pdf Maximised.pdf -- View this message in context: http://mailinglists.scilab.org/How-to-maximize-the-Graphic-Window-before-export-tp4031290.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Christophe.Dang at sidel.com Fri Oct 3 12:53:18 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Fri, 3 Oct 2014 12:53:18 +0200 Subject: [Scilab-users] How to maximize the Graphic Window before export? In-Reply-To: <1412332428895-4031290.post@n3.nabble.com> References: <1412332428895-4031290.post@n3.nabble.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F40BFF97D4@301EX00100.sidel.com> Hello, > De Ariel > Envoy? : vendredi 3 octobre 2014 12:34 > > Is there a way to maximize the Graphic Window automatically Did you try the figure_size property? http://help.scilab.org/docs/5.5.1/en_US/figure_properties.html HTH Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From a.dgraaf at krohne.com Fri Oct 3 13:25:00 2014 From: a.dgraaf at krohne.com (Ariel) Date: Fri, 3 Oct 2014 04:25:00 -0700 (PDT) Subject: [Scilab-users] How to maximize the Graphic Window before export? In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F40BFF97D4@301EX00100.sidel.com> References: <1412332428895-4031290.post@n3.nabble.com> <3B5FFC67498DFF49AE7271A584867D16F40BFF97D4@301EX00100.sidel.com> Message-ID: <1412335500351-4031292.post@n3.nabble.com> Thanks Dang! I have solved the problem following your suggestion. First, I maximized the Graphic Window by hand and then issued the command f = get("current_figure") to obtain the exact position and number of pixels of my window. I have added the following lines to my script and now the export is working nicely. f = get("current_figure"); f.figure_position = [-8,-8]; f.figure_size = [1936,1056]; Thanks again, Ariel -- View this message in context: http://mailinglists.scilab.org/How-to-maximize-the-Graphic-Window-before-export-tp4031290p4031292.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From adelson.oliveira at gmail.com Fri Oct 3 16:34:45 2014 From: adelson.oliveira at gmail.com (Adelson Oliveira) Date: Fri, 3 Oct 2014 11:34:45 -0300 Subject: [Scilab-users] Floating precision differences Message-ID: Hi, I've Downloaded scilab-5.5.1. I've installed it in Openmandriva 2014.1 Linux and in Red Hat Enterprise 6.5. Machines are different (intel i7 and intel Xeon) At Openmandriva, --> 1.0000000000000001-1. ans = 0. At Red Hat 6.5, --> 1.0000000000000001-1. ans = 1.000D+16 Why is it different? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From rashmi.19 at gmail.com Fri Oct 3 20:16:50 2014 From: rashmi.19 at gmail.com (Mathseco) Date: Fri, 3 Oct 2014 11:16:50 -0700 (PDT) Subject: [Scilab-users] Simulation of static general equilbiirum model In-Reply-To: <1412098593182-4031272.post@n3.nabble.com> References: <1411834270756-4031219.post@n3.nabble.com> <1411838741330-4031221.post@n3.nabble.com> <1411912610921-4031225.post@n3.nabble.com> <1411920041376-4031227.post@n3.nabble.com> <3B5FFC67498DFF49AE7271A584867D16F40BF9A4EE@301EX00100.sidel.com> <1411982163944-4031237.post@n3.nabble.com> <1412098593182-4031272.post@n3.nabble.com> Message-ID: <1412360210827-4031298.post@n3.nabble.com> @Eric...Even after changing the model..m getting the same error 98...for fsolve but if i use 'real ' before the each equations then it runs . Then, although it runs the problem is that i am getting negative values for my endogenous variables which is not acceptable for my model... can you help me...whts the reason for this...its really urgent.. !!! Thanks -- View this message in context: http://mailinglists.scilab.org/Simulation-of-static-general-equilbiirum-model-tp4031213p4031298.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From grocer.toolbox at gmail.com Sat Oct 4 15:02:22 2014 From: grocer.toolbox at gmail.com (Eric Dubois) Date: Sat, 4 Oct 2014 15:02:22 +0200 Subject: [Scilab-users] Simulation of static general equilbiirum model In-Reply-To: <1412360210827-4031298.post@n3.nabble.com> References: <1411834270756-4031219.post@n3.nabble.com> <1411838741330-4031221.post@n3.nabble.com> <1411912610921-4031225.post@n3.nabble.com> <1411920041376-4031227.post@n3.nabble.com> <3B5FFC67498DFF49AE7271A584867D16F40BF9A4EE@301EX00100.sidel.com> <1411982163944-4031237.post@n3.nabble.com> <1412098593182-4031272.post@n3.nabble.com> <1412360210827-4031298.post@n3.nabble.com> Message-ID: I fear that what you ask exceeds my capacities... Send me your Scilab script and I will have a look... ?ric. 2014-10-03 20:16 GMT+02:00 Mathseco : > @Eric...Even after changing the model..m getting the same error 98...for > fsolve but if i use 'real ' before the each equations then it runs . Then, > although it runs the problem is that i am getting negative values for my > endogenous variables which is not acceptable for my model... can you help > me...whts the reason for this...its really urgent.. !!! > Thanks > > > > -- > View this message in context: > http://mailinglists.scilab.org/Simulation-of-static-general-equilbiirum-model-tp4031213p4031298.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive > at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cfuttrup at gmail.com Sun Oct 5 19:07:55 2014 From: cfuttrup at gmail.com (Claus Futtrup) Date: Sun, 05 Oct 2014 19:07:55 +0200 Subject: [Scilab-users] Smarter way to save plot graphics? Message-ID: <54317AEB.1080404@gmail.com> Hi there I've made a small script (see below), which saves some generated plots to either jpg, pdf, png or svg. My question is whether there's a smarter way to do this with what Scilab offers today? Ideally Scilab would support a function - lets call it "saveplt" - but as you may notice in the below code, each type of graphics export requires different parameters. If one could call saveplt and specify output file format, I could reduce the amount (lines) of code a lot. I'm just wondering if Scilab already today offers some smarter way to do it already? Best regards, Claus Code: // savegraphs.sce // Saves the generated figures in graphics files. // Existing files are overwritten! // Choice of graphics format is specified in saveplots variable // svg,png, pdf orjpg // Any other string is ignored dataname = datadir + '\' + name; select saveplots case "svg" then xs2svg(326, dataname + '_326', 'portrait'); // Export to SVG file, xs2svg(327, dataname + '_327', 'portrait'); // portrait orientation. xs2svg(328, dataname + '_328', 'portrait'); xs2svg(329, dataname + '_329', 'portrait'); xs2svg(330, dataname + '_330', 'portrait'); xs2svg(331, dataname + '_331', 'portrait'); xs2svg(332, dataname + '_332', 'portrait'); case "png" then xs2png(326, dataname + '_326'); // Export to PNG file. xs2png(327, dataname + '_327'); xs2png(328, dataname + '_328'); xs2png(329, dataname + '_329'); xs2png(330, dataname + '_330'); xs2png(331, dataname + '_331'); xs2png(332, dataname + '_332'); case "pdf" then xs2pdf(326, dataname + '_326', 'portrait'); // Export to PDF file, xs2pdf(327, dataname + '_327', 'portrait'); // portrait orientation. xs2pdf(328, dataname + '_328', 'portrait'); xs2pdf(329, dataname + '_329', 'portrait'); xs2pdf(330, dataname + '_330', 'portrait'); xs2pdf(331, dataname + '_331', 'portrait'); xs2pdf(332, dataname + '_332', 'portrait'); case "jpg" then xs2jpg(326, dataname + '_326', ); // Export to JPG file, xs2jpg(327, dataname + '_327', 1); // compression 1 (best quality). xs2jpg(328, dataname + '_328', 1); xs2jpg(329, dataname + '_329', 1); xs2jpg(330, dataname + '_330', 1); xs2jpg(331, dataname + '_331', 1); xs2jpg(332, dataname + '_332', 1); else disp("Plots not saved"); end // Files may be opened in for example LibreOffice DRAW -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sun Oct 5 21:00:43 2014 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 05 Oct 2014 21:00:43 +0200 Subject: [Scilab-users] Smarter way to save plot graphics? In-Reply-To: <54317AEB.1080404@gmail.com> References: <54317AEB.1080404@gmail.com> Message-ID: <5431955B.8060809@free.fr> Hello Claus, I agree: the xs2### familly + exportUI could be factorized, accepting a vector of figures numbers or handles, an input arg specifying the output format (or "?" to call the interactive exportUI), a rule for naming output files (vector of filenames or basename + fig number appended or ..), etc. May you post a wish on bugzilla about that. Regards Samuel Le 05/10/2014 19:07, Claus Futtrup a ?crit : > Hi there > > I've made a small script (see below), which saves some generated plots > to either jpg, pdf, png or svg. > > My question is whether there's a smarter way to do this with what > Scilab offers today? > > Ideally Scilab would support a function - lets call it "saveplt" - but > as you may notice in the below code, each type of graphics export > requires different parameters. If one could call saveplt and specify > output file format, I could reduce the amount (lines) of code a lot. > I'm just wondering if Scilab already today offers some smarter way to > do it already? > > Best regards, > Claus -------------- next part -------------- An HTML attachment was scrubbed... URL: From frederic.jourdin at shom.fr Mon Oct 6 09:48:09 2014 From: frederic.jourdin at shom.fr (Frederic Jourdin) Date: Mon, 06 Oct 2014 09:48:09 +0200 Subject: [Scilab-users] Floating precision differences In-Reply-To: References: Message-ID: <54324939.2020409@shom.fr> I guess it should be: 1.000D-16 isn't it? You are testing limits of different computers, so slight differences are usual I think. Le 03/10/2014 16:34, Adelson Oliveira a ?crit : > Hi, > > I've Downloaded scilab-5.5.1. I've installed it in Openmandriva 2014.1 > Linux and in Red Hat Enterprise 6.5. > Machines are different (intel i7 and intel Xeon) > > At Openmandriva, > > --> 1.0000000000000001-1. > ans = > > 0. > > At Red Hat 6.5, > > --> 1.0000000000000001-1. > ans = > > 1.000D+16 > > Why is it different? > > Thanks > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From indicstudiestt at gmail.com Sat Oct 4 03:34:17 2014 From: indicstudiestt at gmail.com (Arvind Singh) Date: Fri, 3 Oct 2014 21:34:17 -0400 Subject: [Scilab-users] xcos netlist information Message-ID: Dear all, Is there any way to obtain the net list information for an Xcos diagram? Regards Arvind Lecturer, Electrical and Computer Engineering The University of the West Indies From david.cheze at cea.fr Mon Oct 6 17:19:48 2014 From: david.cheze at cea.fr (=?UTF-8?Q?David_Ch=C3=A8ze?=) Date: Mon, 6 Oct 2014 08:19:48 -0700 (PDT) Subject: [Scilab-users] robust boxplot within scilab Message-ID: <1412608788380-4031307.post@n3.nabble.com> Hi all, I'm wondering whether you already find scilab ressource for drawing boxplot on statistical data sets? I've tested some functions from different ressources but either not running properly or not robust plotting in scilab 5.5. Thanks for your feedback if any. David -- View this message in context: http://mailinglists.scilab.org/robust-boxplot-within-scilab-tp4031307.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From adelson.oliveira at gmail.com Mon Oct 6 21:46:28 2014 From: adelson.oliveira at gmail.com (Adelson Oliveira) Date: Mon, 6 Oct 2014 16:46:28 -0300 Subject: [Scilab-users] Floating precision differences In-Reply-To: <54324939.2020409@shom.fr> References: <54324939.2020409@shom.fr> Message-ID: Unfortunately not! It is 1.000D+16. A friend of mine (unix guru) showed me that the command, $ export LC_ALL=C before calling scilab, is a workaround. It seems that the problem comes from glibc ... Thanks 2014-10-06 4:48 GMT-03:00 Frederic Jourdin : > I guess it should be: 1.000D-16 isn't it? > You are testing limits of different computers, so slight differences are > usual I think. > > > Le 03/10/2014 16:34, Adelson Oliveira a ?crit : > > Hi, > > I've Downloaded scilab-5.5.1. I've installed it in Openmandriva 2014.1 > Linux and in Red Hat Enterprise 6.5. > Machines are different (intel i7 and intel Xeon) > > At Openmandriva, > > --> 1.0000000000000001-1. > ans = > > 0. > > At Red Hat 6.5, > > --> 1.0000000000000001-1. > ans = > > 1.000D+16 > > Why is it different? > > Thanks > > > _______________________________________________ > users mailing listusers at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From akhorshidi at live.com Tue Oct 7 07:33:55 2014 From: akhorshidi at live.com (A Khorshidi) Date: Mon, 6 Oct 2014 22:33:55 -0700 (PDT) Subject: [Scilab-users] robust boxplot within scilab In-Reply-To: <1412608788380-4031307.post@n3.nabble.com> References: <1412608788380-4031307.post@n3.nabble.com> Message-ID: <1412660035654-4031309.post@n3.nabble.com> David Ch?ze wrote > I'm wondering whether you already find scilab ressource for drawing > boxplot on statistical data sets? I've tested some functions from > different ressources but either not running properly or not robust > plotting in scilab 5.5. Hello; Did you try nan_boxplot() which comes with the NaN toolbox: https://atoms.scilab.org/toolboxes/nan Also there is another function named boxplot() form CASCI toolbox but this toolbox should be modified to run correctly with newer version of Scilab (e.g. sort() must be replaced by gsort()). https://atoms.scilab.org/toolboxes/casci HTH Mehran _ -- View this message in context: http://mailinglists.scilab.org/robust-boxplot-within-scilab-tp4031307p4031309.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From david.cheze at cea.fr Tue Oct 7 09:06:26 2014 From: david.cheze at cea.fr (=?UTF-8?Q?David_Ch=C3=A8ze?=) Date: Tue, 7 Oct 2014 00:06:26 -0700 (PDT) Subject: [Scilab-users] robust boxplot within scilab In-Reply-To: <1412660035654-4031309.post@n3.nabble.com> References: <1412608788380-4031307.post@n3.nabble.com> <1412660035654-4031309.post@n3.nabble.com> Message-ID: <1412665586383-4031310.post@n3.nabble.com> Hi Mehran, actually it's the two modules I've already evaluated on this topic. My test case is a set of 83 series of 52 samples as 52x83 matrix, not normalized, i want to have an outlook of this data. Both NAN and CASCI failed to produce comprehensive plot. I'm running stixbox (statpack) as a basis for statistic module therefore NAN or CASCI might be confused if some functions have the same name. Looking into boxplot.sci from CASCI (I've not installed the whole module),this is the case of the "quantile" function. It was not my aim but I'll try to adapt it just for boxplot feature. David -- View this message in context: http://mailinglists.scilab.org/robust-boxplot-within-scilab-tp4031307p4031310.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Christophe.Dang at sidel.com Tue Oct 7 09:18:21 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Tue, 7 Oct 2014 09:18:21 +0200 Subject: [Scilab-users] Floating precision differences In-Reply-To: References: <54324939.2020409@shom.fr> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F40C058C15@301EX00100.sidel.com> Hello, > De Adelson Oliveira > Envoy? : lundi 6 octobre 2014 21:46 > > [scilab-5.5.1, Red Hat Enterprise 6.5., intel Xeon] > At Red Hat 6.5, > > --> 1.0000000000000001-1. > > ans = > > 1.000D+16 > > [...] > $ export LC_ALL=C [...] is a workaround. > It seems that the problem comes from glibc ... I think it deserves a bug report in bugzilla... http://bugzilla.scilab.org/ -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From akhorshidi at live.com Tue Oct 7 12:24:23 2014 From: akhorshidi at live.com (A Khorshidi) Date: Tue, 7 Oct 2014 03:24:23 -0700 (PDT) Subject: [Scilab-users] robust boxplot within scilab In-Reply-To: <1412665586383-4031310.post@n3.nabble.com> References: <1412608788380-4031307.post@n3.nabble.com> <1412660035654-4031309.post@n3.nabble.com> <1412665586383-4031310.post@n3.nabble.com> Message-ID: <1412677463022-4031313.post@n3.nabble.com> David Ch?ze wrote > actually it's the two modules I've already evaluated on this topic. My > test case is a set of 83 series of 52 samples as 52x83 matrix, not > normalized, i want to have an outlook of this data. > Both NAN and CASCI failed to produce comprehensive plot. I've tried a similar testcase and I see no problem. exec("nan_boxplot.sci",-1) data = 100*rand(85,52); scf(10001); nan_boxplot(data') //dat = data($:-1:1); //scf(10002); nan_boxplot(dat) Graphic_window_number_10001.png David Ch?ze wrote > I'm running stixbox (statpack) as a basis for statistic module therefore > NAN or CASCI might be confused if some functions have the same name. You can use stixbox and NAN together because the name of all the NAN's functions started with "nan_". David Ch?ze wrote > Looking into boxplot.sci from CASCI (I've not installed the whole > module),this is the case of the "quantile" function. > It was not my aim but I'll try to adapt it just for boxplot feature. BTW, I suggest you modify NAN's function for your target instead of CASCI one, because nan_boxplot() has better visualization as well as it considers each column as a separate data set. Regards, Mehran _ -- View this message in context: http://mailinglists.scilab.org/robust-boxplot-within-scilab-tp4031307p4031313.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From clement.david at scilab-enterprises.com Tue Oct 7 18:27:13 2014 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Tue, 07 Oct 2014 18:27:13 +0200 Subject: [Scilab-users] xcos netlist information In-Reply-To: References: Message-ID: <1412699233.2079.8.camel@naxos> Hello, An Xcos diagram is basically a Scilab mlist (known as scs_m) and can be used as such to convert to any netlist format. However if you want to preserve the scheduling you may prefer to use the Scilab mlist (known as cpr) that is passed to the simulator. Do you have any specific netlist format or do expect to also retrieve block parameters ? -- Cl?ment Le vendredi 03 octobre 2014 ? 21:34 -0400, Arvind Singh a ?crit : > Dear all, > > Is there any way to obtain the net list information for an Xcos diagram? > > Regards > Arvind > > Lecturer, > Electrical and Computer Engineering > The University of the West Indies > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From elnjwei at yahoo.com Tue Oct 7 10:11:19 2014 From: elnjwei at yahoo.com (JWE) Date: Tue, 7 Oct 2014 01:11:19 -0700 (PDT) Subject: [Scilab-users] Xcos simulation problem with Scilab 5.5.1 Message-ID: <1412669478905-4031312.post@n3.nabble.com> Hello, When I run a ZCOS file with Scilab 5.5.1, the simulation runs very slow. Within a run, the Scope traces are very slowly updated at first and later they are updated quickly and going back to slowly again. When I run the file several times, this process differs per run. The ZCOS-file was created with Scilab 5.5.0 and runs in a split second with Scilab 5.5.0. My operating system is Windows 7 professional and I use the 64 bits versions of Scilab. The ZCOS file is attached ("ADC_test_550_551.zcos"). Any help is appreciated. Thanks, Jan ADC_test_550_551.zcos -- View this message in context: http://mailinglists.scilab.org/Xcos-simulation-problem-with-Scilab-5-5-1-tp4031312.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From christian_gabriel3 at yahoo.es Tue Oct 7 22:23:04 2014 From: christian_gabriel3 at yahoo.es (Gabriel Calderon) Date: Tue, 7 Oct 2014 21:23:04 +0100 Subject: [Scilab-users] Problem with xcos. Message-ID: <1412713384.37947.YahooMailNeo@web171503.mail.ir2.yahoo.com> I've been working on xcos with the previous version of scilab. Now with the 5.5.1 when I try to run my xcos scheme the program drops this: do_eval: Error while calling block CLKOUT_f [uid='-729cba5f:13e3e08fc 56:-7edd']: invalid parameter (ier=2.000000, %scicos_prob=%F). %1.000D+00=%vv !--error 2 Invalid factor. And in a second try: do_eval: Error while calling block CLKOUT_f [uid='-729cba5f:13e3e08fc 56:-7edd']: invalid parameter (ier=2.000000, %scicos_prob=%F). Someone could give solution for this problem? Thanks, Christian -------------- next part -------------- An HTML attachment was scrubbed... URL: From mazue.quentin at gmail.com Wed Oct 8 09:17:03 2014 From: mazue.quentin at gmail.com (=?UTF-8?Q?Quentin_Mazu=C3=A9?=) Date: Wed, 8 Oct 2014 00:17:03 -0700 (PDT) Subject: [Scilab-users] Xcos : accelerate the simulation Message-ID: <1412752623306-4031316.post@n3.nabble.com> Hello, I have an Xcos diagram which is a simplification of a Simulink diagram. Both diagram use the same solver (Runge Kutta 4) but Xcos works at 100Hz and Simulink at 3000Hz For the same result, Simulink needs 15sec (without accelerator mode) and Xcos 45sec. I launch my simulation in batch mode with importXcosDiagram() %cpr = xcos_compile() Xcos_simulate(scs_m,1) 1) How could I decrease efficiently my simulation time? 2) Is there an equivalent to the simulink accelerator mode in Xcos? 3) If I use the "code generation" for my diagramm, will it improve the simulation time? --> If yes : How could I properly use the code generation mode? Regards Quentin Mazu? PS This post could be linked to the following one: http://mailinglists.scilab.org/Duration-time-of-Xcos-simulation-td4027041.html#a4027063 -- View this message in context: http://mailinglists.scilab.org/Xcos-accelerate-the-simulation-tp4031316.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From ecejegan at gmail.com Wed Oct 8 14:01:28 2014 From: ecejegan at gmail.com (Jegan Amirthalingam) Date: Wed, 8 Oct 2014 17:31:28 +0530 Subject: [Scilab-users] Fwd: Reference documents for RTAI In-Reply-To: References: Message-ID: Hi, I am newbie to RTAI +scilab+XCOS+HART codegeneration tool chain......I am looking for a basic reference document or tutorial ....many of them available in web are seems to be older...Kindly help me... Currently i am refering.. http://hart.sourceforge.net/rtai/codegeneration_scilab5.html Scilab/RTAI -Help menu... robertobucher.dti.supsi.ch/bucherdl/*RTAI*-Lab-*tutorial*.pdf Kindly help me with some good reference docs. Regards Jegaan -------------- next part -------------- An HTML attachment was scrubbed... URL: From ecarlson at consensusortho.com Wed Oct 8 17:56:26 2014 From: ecarlson at consensusortho.com (COIEngineer) Date: Wed, 8 Oct 2014 08:56:26 -0700 (PDT) Subject: [Scilab-users] Read .csv from labview Message-ID: <1412783786959-4031318.post@n3.nabble.com> I have a number of .csv files created from Labview 2014. When I try to read them using the following, I get an error: aa = csvRead(path,[],[],"double",[],[],[8 1 9000 3]); Warning: Inconsistency found in the columns. At line 2, found 2 columns while the previous had 4. !--error 999 csvRead: can not read file C:\...\Specimen 14005-03.csv: Error in the column structure If I open the file in Excel, then do a a save -- still as a .csv, no changes -- it works. Any ideas on how to fix that? I'm using scilab 5.4.1, and have included one of the files. Thank you! Specimen_14005-08.csv -- View this message in context: http://mailinglists.scilab.org/Read-csv-from-labview-tp4031318.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Christophe.Dang at sidel.com Thu Oct 9 09:30:11 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Thu, 9 Oct 2014 09:30:11 +0200 Subject: [Scilab-users] Read .csv from labview In-Reply-To: <1412783786959-4031318.post@n3.nabble.com> References: <1412783786959-4031318.post@n3.nabble.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F40C0C506A@301EX00100.sidel.com> Hello, > De COIEngineer > Envoy? : mercredi 8 octobre 2014 17:56 > > aa = csvRead(path,[],[],"double",[],[],[8 1 9000 3]); > > Warning: Inconsistency found in the columns. At line 2, found 2 columns while the previous had 4. You correctly ignore the 7 lines of the header. However, I have the feeling that the error message referes to the first 2 lines of the file, and not the lines of the data. Indeed, there ares three commas in the first line of the header (i.e. 4 col) and only one in the 2nd line. This seems to be an error (I didn't try myself), and you may report it in bugzilla. As a workaround, did you try "header" parameter, which tells the number of lines to ignore? HTH Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From Christophe.Dang at sidel.com Thu Oct 9 09:33:17 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Thu, 9 Oct 2014 09:33:17 +0200 Subject: [Scilab-users] Read .csv from labview In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F40C0C506A@301EX00100.sidel.com> References: <1412783786959-4031318.post@n3.nabble.com> <3B5FFC67498DFF49AE7271A584867D16F40C0C506A@301EX00100.sidel.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F40C0C5071@301EX00100.sidel.com> Sorry, answered a bit too fast: > De COIEngineer > Envoy? : mercredi 8 octobre 2014 17:56 > > I'm using scilab 5.4.1, Could you try with the latest Scilab version? Maybe it's an old bug which has already been fixed. Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From aadhyaarini at gmail.com Thu Oct 9 17:01:50 2014 From: aadhyaarini at gmail.com (aarini) Date: Thu, 9 Oct 2014 08:01:50 -0700 (PDT) Subject: [Scilab-users] hhspectrum Message-ID: <1412866910110-4031321.post@n3.nabble.com> Hi, In Scilab(5.5.0) EMD toolbox, for executing the below commands, I am getting these errors- -->s = rand(1,512,'normal'); -->imf = emd(s); -->[A,f,tt] = hhspectrum(imf(1:$-1,:)); !--error 4 Undefined variable: instfreq at line 119 of function hhspectrum called by : [A,f,tt] = hhspectrum(imf(1:$-1,:)); How to solve this? kindly help. -- View this message in context: http://mailinglists.scilab.org/hhspectrum-tp4031321.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From ecarlson at consensusortho.com Thu Oct 9 18:01:36 2014 From: ecarlson at consensusortho.com (COIEngineer) Date: Thu, 9 Oct 2014 09:01:36 -0700 (PDT) Subject: [Scilab-users] Read .csv from labview In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F40C0C506A@301EX00100.sidel.com> References: <1412783786959-4031318.post@n3.nabble.com> <3B5FFC67498DFF49AE7271A584867D16F40C0C506A@301EX00100.sidel.com> Message-ID: <50F362F3C1AF2D4FB385429B1C487E3F0548EC6F@Calvin.hayesmed.com> Using the header instead of the range seems to have solved the problem. Thank you for your help! From: Dang, Christophe [via Scilab / Xcos - Mailing Lists Archives] [mailto:ml-node+s994242n4031319h14 at n3.nabble.com] Sent: Thursday, October 09, 2014 12:31 AM To: Evan Carlson Subject: Re: Read .csv from labview Hello, > De COIEngineer > Envoy? : mercredi 8 octobre 2014 17:56 > > aa = csvRead(path,[],[],"double",[],[],[8 1 9000 3]); > > Warning: Inconsistency found in the columns. At line 2, found 2 columns while the previous had 4. You correctly ignore the 7 lines of the header. However, I have the feeling that the error message referes to the first 2 lines of the file, and not the lines of the data. Indeed, there ares three commas in the first line of the header (i.e. 4 col) and only one in the 2nd line. This seems to be an error (I didn't try myself), and you may report it in bugzilla. As a workaround, did you try "header" parameter, which tells the number of lines to ignore? HTH Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. _______________________________________________ users mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/users ________________________________ If you reply to this email, your message will be added to the discussion below: http://mailinglists.scilab.org/Read-csv-from-labview-tp4031318p4031319.html To unsubscribe from Read .csv from labview, click here . NAML -- View this message in context: http://mailinglists.scilab.org/Read-csv-from-labview-tp4031318p4031322.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mazue.quentin at gmail.com Fri Oct 10 12:01:41 2014 From: mazue.quentin at gmail.com (=?UTF-8?Q?Quentin_Mazu=C3=A9?=) Date: Fri, 10 Oct 2014 03:01:41 -0700 (PDT) Subject: [Scilab-users] GUI : messagebox issue Message-ID: <1412935301376-4031323.post@n3.nabble.com> Hello, I would like to use a messagebox to aks if the user are sure he wants to modify a configuration file. I use the following command line : rep = messagebox("Are you sure you want to modify this file?","","Safety question",["yes","no"]) My problem is : "rep" value is always 0 because Scilab set "rep" to 0 before I can click on Yes or No button. Is it a syntax issu of messagebox or a bug? Regards Quentin Mazu? -- View this message in context: http://mailinglists.scilab.org/GUI-messagebox-issue-tp4031323.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From uladzislau.trubkin at scilab-enterprises.com Fri Oct 10 12:26:14 2014 From: uladzislau.trubkin at scilab-enterprises.com (Vladislav TRUBKIN) Date: Fri, 10 Oct 2014 12:26:14 +0200 Subject: [Scilab-users] GUI : messagebox issue In-Reply-To: <1412935301376-4031323.post@n3.nabble.com> References: <1412935301376-4031323.post@n3.nabble.com> Message-ID: <5437B446.4010405@scilab-enterprises.com> Hello, You should use a "modal" dialog box. From the help page : "modal" to create a modal dialog, any other string to create a non-modal dialog. Please note that "modal" can replace any of the other input arguments except msg. For your case it's anything like this: rep = messagebox("Are you sure you want to modify this file?","Safety question","modal",["yes","no"]) if you click "yes" rep == 1 if "no" rep == 2 I think it can help you. Regards, Vladislav Le 10/10/2014 12:01, Quentin Mazu? a ?crit : > Hello, > > I would like to use a messagebox to aks if the user are sure he wants to > modify a configuration file. > > I use the following command line : > rep = messagebox("Are you sure you want to modify this file?","","Safety > question",["yes","no"]) > > My problem is : > "rep" value is always 0 because Scilab set "rep" to 0 before I can click on > Yes or No button. > > Is it a syntax issu of messagebox or a bug? > > Regards > Quentin Mazu? > > > > -- > View this message in context: http://mailinglists.scilab.org/GUI-messagebox-issue-tp4031323.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From clement.david at scilab-enterprises.com Fri Oct 10 15:21:22 2014 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Fri, 10 Oct 2014 15:21:22 +0200 Subject: [Scilab-users] Xcos simulation problem with Scilab 5.5.1 In-Reply-To: <1412669478905-4031312.post@n3.nabble.com> References: <1412669478905-4031312.post@n3.nabble.com> Message-ID: <1412947282.2107.28.camel@naxos> Hello, The simulation is not that slow on my Scilab 5.5.1 Linux x86_64. Are you able to reproduce on a reduced test case ? Note that the Xcos scope rendering has not been modified between 5.5.0 and 5.5.1. They internally use a buffer with a size specified in the parameters and a push optimization (after [1]) to avoid slow rendering for huge number of points. [1] http://cgit.scilab.org/scilab/commit/?id=a72008b60bf956b01f0cd27bc56e3283284bf81b -- Cl?ment Le mardi 07 octobre 2014 ? 01:11 -0700, JWE a ?crit : > Hello, > When I run a ZCOS file with Scilab 5.5.1, the simulation runs very slow. > Within a run, the Scope traces are very slowly updated at first and later > they are updated quickly and going back to slowly again. > When I run the file several times, this process differs per run. > The ZCOS-file was created with Scilab 5.5.0 and runs in a split second with > Scilab 5.5.0. > My operating system is Windows 7 professional and I use the 64 bits versions > of Scilab. > The ZCOS file is attached ("ADC_test_550_551.zcos"). > Any help is appreciated. > > Thanks, > Jan > ADC_test_550_551.zcos > > > > > -- > View this message in context: http://mailinglists.scilab.org/Xcos-simulation-problem-with-Scilab-5-5-1-tp4031312.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From clement.david at scilab-enterprises.com Fri Oct 10 15:22:04 2014 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Fri, 10 Oct 2014 15:22:04 +0200 Subject: [Scilab-users] Problem with xcos. In-Reply-To: <1412713384.37947.YahooMailNeo@web171503.mail.ir2.yahoo.com> References: <1412713384.37947.YahooMailNeo@web171503.mail.ir2.yahoo.com> Message-ID: <1412947324.2107.29.camel@naxos> Hello Gabriel, Can you provide your Xcos file please ? -- Cl?ment Le mardi 07 octobre 2014 ? 21:23 +0100, Gabriel Calderon a ?crit : > I've been working on xcos with the previous version of scilab. Now > with the 5.5.1 when I try to run my xcos scheme the program drops > this: > > > do_eval: Error while calling block CLKOUT_f > [uid='-729cba5f:13e3e08fc > 56:-7edd']: invalid parameter (ier=2.000000, %scicos_prob=%F). > > %1.000D+00=%vv > !--error 2 > Invalid factor. > > > > > And in a second try: > > > > > do_eval: Error while calling block CLKOUT_f > [uid='-729cba5f:13e3e08fc > 56:-7edd']: invalid parameter (ier=2.000000, %scicos_prob=%F). > > > > > Someone could give solution for this problem? > > > Thanks, > > > Christian > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From mazue.quentin at gmail.com Fri Oct 10 15:55:50 2014 From: mazue.quentin at gmail.com (=?UTF-8?Q?Quentin_Mazu=C3=A9?=) Date: Fri, 10 Oct 2014 06:55:50 -0700 (PDT) Subject: [Scilab-users] Gui load data inside a function and keep them Message-ID: <1412949350416-4031327.post@n3.nabble.com> Hello, I'm developping a GUI to use an Xcos model and I have the following problem : The simplified problem is as follow : I have 2 buttons ->Button 1 : when I click, I want to load all the input data for my Xcos simulation I load the data thanks to an script file which contains all my inputs ->Button 2 : when I click I want to launch the Xcos simulation My problem is : If I load all the data inside the callback function of button 1, the loaded values are deleted at the end of the callback I want to keep this values without using the 'global' visibily because I have a lot of inputs In matlab there is a solution : use the function evalin() inside the button 1 callback Is there a solution for this problem knowing that I don't want to load my inputs and launch the simulation with the same button? Regards Quentin Mazu? -- View this message in context: http://mailinglists.scilab.org/Gui-load-data-inside-a-function-and-keep-them-tp4031327.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Sat Oct 11 01:36:19 2014 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 11 Oct 2014 01:36:19 +0200 Subject: [Scilab-users] hhspectrum In-Reply-To: <1412866910110-4031321.post@n3.nabble.com> References: <1412866910110-4031321.post@n3.nabble.com> Message-ID: <54386D73.6070000@free.fr> Hello, You may report this bug as a comment on the ATOMS page of this module : http://atoms.scilab.org/toolboxes/emd_toolbox/1.2#leave_a_comment Regards Samuel Le 09/10/2014 17:01, aarini a ?crit : > Hi, > > In Scilab(5.5.0) EMD toolbox, for executing the below commands, I am getting > these errors- > > -->s = rand(1,512,'normal'); > > -->imf = emd(s); > > -->[A,f,tt] = hhspectrum(imf(1:$-1,:)); > > !--error 4 > Undefined variable: instfreq > at line 119 of function hhspectrum called by : > [A,f,tt] = hhspectrum(imf(1:$-1,:)); > > How to solve this? kindly help. > > > > -- > View this message in context: http://mailinglists.scilab.org/hhspectrum-tp4031321.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From elnjwei at yahoo.com Mon Oct 13 08:59:51 2014 From: elnjwei at yahoo.com (JWE) Date: Sun, 12 Oct 2014 23:59:51 -0700 (PDT) Subject: [Scilab-users] Xcos simulation problem with Scilab 5.5.1 In-Reply-To: <1412947282.2107.28.camel@naxos> References: <1412669478905-4031312.post@n3.nabble.com> <1412947282.2107.28.camel@naxos> Message-ID: <1413183591408-4031330.post@n3.nabble.com> Hello Clement, Thank you for checking my diagram. As you suggested, I stripped the diagram to a very simple one; sinus-source, amplifier and a scope (see attachment). When I run it (in Scilab 5.5.1, 64 bits) on my office machine I still have the slow scope updating. But when I run it on my home pc, I have no problem at all. The office pc: Core i3-2100 @ 3.1 GHz, 4 MB memory and no GPU. Windows 7, 64 bits. My home pc: Core i5-3210 @ 2.5 GHz, 8 MB memory and a NVIDIA GeForce GT650M GPU. Windows 8.1, 64 bits. The main difference seems to be the presence of a dedicated GPU. But even more strangly is the observation that when I change the gain block (GAINBLK_f) by a gainblok of type "GAINBLK", the simulation runs quickly! (When I use the gainblock "GAIN_f", it runs slow again) Unfortunately, when I change all the gain blocks in my original diagram by gain blocks of type GAINBLK, the simulation still runs slowly.... Note that with Scilab 5.5.0 (64 bits) I don't have these problems. Best regards, Jan. ADC_test_550_551_rev.zcos -- View this message in context: http://mailinglists.scilab.org/Xcos-simulation-problem-with-Scilab-5-5-1-tp4031312p4031330.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From nguyenthientin at gmail.com Mon Oct 13 10:38:22 2014 From: nguyenthientin at gmail.com (tinnguyen) Date: Mon, 13 Oct 2014 01:38:22 -0700 (PDT) Subject: [Scilab-users] Problem with partial fraction decomposition (pfss) Message-ID: <1413189502973-4031332.post@n3.nabble.com> Hi guys, I'm having trouble using scilab function pfss to decompose a polynomial in order to do inverse Z transform. Following is my code: --> z = poly(0,'z') --> hz = z^2 / (1 - 6*z + 11*z^2 - 6*z^3) --> pf = pfss(tf2ss(hz)) --> length(pf) The fourth command returns 1. However, I believe it should be 3. I also did the decomposition manually and got the result as: hz = 0.5/(1-z) + -1 / (1-2*z) + 0.5/(1-3*z). Nevertheless, if I change the numerator of hz from z^2 to z or z^3 pfss works correctly. I definitely have no idea!!!? :D Please take a look and correct me if i'm wrong. Thank you so much! -- View this message in context: http://mailinglists.scilab.org/Problem-with-partial-fraction-decomposition-pfss-tp4031332.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From nguyenthientin at gmail.com Mon Oct 13 10:12:22 2014 From: nguyenthientin at gmail.com (tinnguyen) Date: Mon, 13 Oct 2014 01:12:22 -0700 (PDT) Subject: [Scilab-users] Problem with partial fraction decomposition (dfss) Message-ID: <1413187942099-4031331.post@n3.nabble.com> Hi guys, I'm having trouble using scilab's function pfss to decompose a polynomial in order to do inverse Z transform. Following is my code: --> z = poly(0,'z') --> hz = z^2 / (1 - 6*z + 11*z^2 - 6*z^3) --> pf = pfss(tf2ss(hz)) --> length(pf) The fourth command returns '1'. However, I believe it should be 3. I also did the decomposition manually and got the result as: hz = 0.5/(1-z) + -1 / (1-2*z) + 0.5/(1-3*z). Nevertheless, if I change the numerator of hz from z^2 to z or z^3, pfss works correctly. I definitely have no idea!!!? :D Please take a look and correct me if i'm wrong. Thank you so much! -- View this message in context: http://mailinglists.scilab.org/Problem-with-partial-fraction-decomposition-dfss-tp4031331.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Serge.Steer at inria.fr Tue Oct 14 13:35:49 2014 From: Serge.Steer at inria.fr (Serge Steer) Date: Tue, 14 Oct 2014 13:35:49 +0200 Subject: [Scilab-users] Problem with partial fraction decomposition (dfss) In-Reply-To: <1413187942099-4031331.post@n3.nabble.com> References: <1413187942099-4031331.post@n3.nabble.com> Message-ID: <543D0A95.5040609@inria.fr> You just need to tune the rmax optionnal parameter pf = pfss(tf2ss(hz),5);length(pf) Serge Steer Le 13/10/2014 10:12, tinnguyen a ?crit : > Hi guys, > I'm having trouble using scilab's function pfss to decompose a polynomial in > order to do inverse Z transform. Following is my code: > --> z = poly(0,'z') > --> hz = z^2 / (1 - 6*z + 11*z^2 - 6*z^3) > --> pf = pfss(tf2ss(hz)) > --> length(pf) > The fourth command returns '1'. However, I believe it should be 3. I also > did the decomposition manually and got the result as: hz = 0.5/(1-z) + -1 / > (1-2*z) + 0.5/(1-3*z). > Nevertheless, if I change the numerator of hz from z^2 to z or z^3, pfss > works correctly. I definitely have no idea!!!? :D > Please take a look and correct me if i'm wrong. > Thank you so much! > > > > > -- > View this message in context: http://mailinglists.scilab.org/Problem-with-partial-fraction-decomposition-dfss-tp4031331.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From mazue.quentin at gmail.com Tue Oct 14 14:30:49 2014 From: mazue.quentin at gmail.com (=?UTF-8?Q?Quentin_Mazu=C3=A9?=) Date: Tue, 14 Oct 2014 05:30:49 -0700 (PDT) Subject: [Scilab-users] save : save a list of variable don't work Message-ID: <1413289849154-4031334.post@n3.nabble.com> Hello, I developped a script to save data with savematfile which works well but when i modified it to save files in sod format it failed. Here a small script to illustrate what I want to do : bug_save.sce I want to save the variables which names are contained into var2Save. It works well with savematfile() function but not with save() function. Moreover there is a warning : Scilab 6 will not support the file format used. Did I do something wrong or is it a bug? This could be related to this bug : 12305. Regards Quentin Mazu? -- View this message in context: http://mailinglists.scilab.org/save-save-a-list-of-variable-don-t-work-tp4031334.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From antoine.monmayrant at laas.fr Tue Oct 14 14:38:35 2014 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 14 Oct 2014 14:38:35 +0200 Subject: [Scilab-users] save : save a list of variable don't work In-Reply-To: <1413289849154-4031334.post@n3.nabble.com> References: <1413289849154-4031334.post@n3.nabble.com> Message-ID: <543D194B.7040609@laas.fr> On 10/14/2014 02:30 PM, Quentin Mazu? wrote: > Hello, > > I developped a script to save data with savematfile which works well but > when i modified it to save files in sod format it failed. > > Here a small script to illustrate what I want to do : > bug_save.sce > > I want to save the variables which names are contained into var2Save. It > works well with savematfile() function but not with save() function. Hi, It's not a bug, it's a problem of syntax. Look at the help page for 'save': there are two different calling sequences: - save(filename, varname) -> old deprecated version that you are using: it saves the variable varname (ie var2save that contains a vector of strings in your case). - save(filename, "varname") -> new hdf5-based version that saves the variable named "varname". This is what you want to do I think: save(pwd()+"\saveInSodFormat.sod",'a','b','c','d'); Cheers, Antoine > > Moreover there is a warning : Scilab 6 will not support the file format > used. > > Did I do something wrong or is it a bug? > > This could be related to this bug : 12305. > > Regards > Quentin Mazu? > > > > -- > View this message in context: http://mailinglists.scilab.org/save-save-a-list-of-variable-don-t-work-tp4031334.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche BP 54200 31031 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoine.monmayrant at laas.fr permanent email : antoine.monmayrant at polytechnique.org +++++++++++++++++++++++++++++++++++++++++++++++++++++++ -------------- next part -------------- An HTML attachment was scrubbed... URL: From mazue.quentin at gmail.com Tue Oct 14 14:50:16 2014 From: mazue.quentin at gmail.com (=?UTF-8?Q?Quentin_Mazu=C3=A9?=) Date: Tue, 14 Oct 2014 05:50:16 -0700 (PDT) Subject: [Scilab-users] save : save a list of variable don't work In-Reply-To: <543D194B.7040609@laas.fr> References: <1413289849154-4031334.post@n3.nabble.com> <543D194B.7040609@laas.fr> Message-ID: <1413291016975-4031336.post@n3.nabble.com> hello, Antoine Monmayrant wrote > This is what you want to do I think: > > save(pwd()+"\saveInSodFormat.sod",'a','b','c','d'); Yes it is. However in my script, the variable var2save could contain 1,2, or 100 variables. The number of variables is never the same. So I have another script that fill the variable var2save with the name of the variable I want to save and then I want to save this variables with their own values. (here variables a,b,c and d are only an example) If you use the function loadmatfile("saveInMatFormat.mat"), you will load a=1; b=2; c=[1;2;3;4;8;9;6]; d = [7]; *It is what I want.* However if you use the function load("saveInSodFormat.sod"), you will load var2save = !a b c d ! *I don't want this* Summary : 2 different save function lead to 2 different save data although it was expected to be the same. Regards Quentin Mazu? -- View this message in context: http://mailinglists.scilab.org/save-save-a-list-of-variable-don-t-work-tp4031334p4031336.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From antoine.monmayrant at laas.fr Tue Oct 14 15:05:15 2014 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 14 Oct 2014 15:05:15 +0200 Subject: [Scilab-users] save : save a list of variable don't work In-Reply-To: <1413291016975-4031336.post@n3.nabble.com> References: <1413289849154-4031334.post@n3.nabble.com> <543D194B.7040609@laas.fr> <1413291016975-4031336.post@n3.nabble.com> Message-ID: <543D1F8B.10902@laas.fr> On 10/14/2014 02:50 PM, Quentin Mazu? wrote: > hello, > > > Antoine Monmayrant wrote >> This is what you want to do I think: >> >> save(pwd()+"\saveInSodFormat.sod",'a','b','c','d'); > Yes it is. However in my script, the variable var2save could contain 1,2, or > 100 variables. The number of variables is never the same. So I have another > script that fill the variable var2save with the name of the variable I want > to save and then I want to save this variables with their own values. (here > variables a,b,c and d are only an example) > > If you use the function loadmatfile("saveInMatFormat.mat"), you will load > a=1; > b=2; > c=[1;2;3;4;8;9;6]; > d = [7]; > *It is what I want.* > > However if you use the function load("saveInSodFormat.sod"), you will load > var2save = !a b c d ! > *I don't want this* > > > Summary : > 2 different save function lead to 2 different save data although it was > expected to be the same. No, this is where you are wrong: "two different save functions that have different syntaxes and thus lead to 2 different saved data, as expected from what is written in the help page." savematfile/loadmatfile are here for compatibiltily with matlab and use matlab file format. save/load are using the new native scilab file format (based on open spec hdf5). If you want to use save with a varying number of variables, you can do something like this: //assuming that var2save is a 1d vector of names of the variables to save: execstr('save(pwd()+''\saveInSodFormat.sod'','+strcat(var2save+',')+')') Cheers, Antoine > > Regards > Quentin Mazu? > > > > -- > View this message in context: http://mailinglists.scilab.org/save-save-a-list-of-variable-don-t-work-tp4031334p4031336.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From antoine.monmayrant at laas.fr Tue Oct 14 15:13:56 2014 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 14 Oct 2014 15:13:56 +0200 Subject: [Scilab-users] save : save a list of variable don't work In-Reply-To: <1413291016975-4031336.post@n3.nabble.com> References: <1413289849154-4031334.post@n3.nabble.com> <543D194B.7040609@laas.fr> <1413291016975-4031336.post@n3.nabble.com> Message-ID: <543D2194.6080002@laas.fr> On 10/14/2014 02:50 PM, Quentin Mazu? wrote: > hello, > > > Antoine Monmayrant wrote >> This is what you want to do I think: >> >> save(pwd()+"\saveInSodFormat.sod",'a','b','c','d'); > Yes it is. However in my script, the variable var2save could contain 1,2, or > 100 variables. The number of variables is never the same. So I have another > script that fill the variable var2save with the name of the variable I want > to save and then I want to save this variables with their own values. (here > variables a,b,c and d are only an example) > > If you use the function loadmatfile("saveInMatFormat.mat"), you will load > a=1; > b=2; > c=[1;2;3;4;8;9;6]; > d = [7]; > *It is what I want.* > > However if you use the function load("saveInSodFormat.sod"), you will load > var2save = !a b c d ! > *I don't want this* > > > Summary : > 2 different save function lead to 2 different save data although it was > expected to be the same. OK, you are only half-wrong! Here it is: you have misused both save and savematfile by using a calling sequence that does not make sense (this is where you are wrong). There is no mention in the help page of savematfile or save of the usage of a 1D vector of names of variables to save (what you have done). The result you obtained with save is as expected: as explained in the help page, it uses the deprecated syntax and consider your 1D vector as the variable to save. However, savematfile should not have worked and that's where you are right: there is a bug. The bug is either in the help page of savematfile that omits the calling convention you have used or in savematfile that should have complained about you using a calling sequence that does not make sense. Cheers, Antoine > > Regards > Quentin Mazu? > > > > -- > View this message in context: http://mailinglists.scilab.org/save-save-a-list-of-variable-don-t-work-tp4031334p4031336.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From mazue.quentin at gmail.com Tue Oct 14 16:32:22 2014 From: mazue.quentin at gmail.com (=?UTF-8?Q?Quentin_Mazu=C3=A9?=) Date: Tue, 14 Oct 2014 07:32:22 -0700 (PDT) Subject: [Scilab-users] save : save a list of variable don't work In-Reply-To: <543D2194.6080002@laas.fr> References: <1413289849154-4031334.post@n3.nabble.com> <543D194B.7040609@laas.fr> <1413291016975-4031336.post@n3.nabble.com> <543D2194.6080002@laas.fr> Message-ID: <1413297142127-4031339.post@n3.nabble.com> Hello, Thanks for your help Antoine. I add below a file which takes into account your remarks and add the quote around the variable name to save in order to have the Scilab 6 compatibility. bug_save.sce Moreover I'll report a bug. Thanks again Regards Quentin Mazu? -- View this message in context: http://mailinglists.scilab.org/save-save-a-list-of-variable-don-t-work-tp4031334p4031339.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From rodrigocarlson at gmail.com Wed Oct 15 01:25:04 2014 From: rodrigocarlson at gmail.com (rodrigocarlson) Date: Tue, 14 Oct 2014 16:25:04 -0700 (PDT) Subject: [Scilab-users] Unexpected output of evans() and other plot functions - mirrored axes and labels Message-ID: <1413329104550-4031340.post@n3.nabble.com> Dear Scilab users, The output of evans() and other plot fuctions is providing figures with mirrored axes and labels. The following code generates the attached figure: num = poly([1],'s','c') den = poly([-2 -4 -6],'s','r') G = syslin('c',num/den) evans(G,500) sgrid(0.59,0) Someone has any idea of what is happening and how to fix it? Scilab version is 5.5.1 running on Windows 7. Thanks, Rodrigo -- View this message in context: http://mailinglists.scilab.org/Unexpected-output-of-evans-and-other-plot-functions-mirrored-axes-and-labels-tp4031340.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Christophe.Dang at sidel.com Wed Oct 15 09:17:06 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Wed, 15 Oct 2014 09:17:06 +0200 Subject: [Scilab-users] Unexpected output of evans() and other plot functions - mirrored axes and labels In-Reply-To: <1413329104550-4031340.post@n3.nabble.com> References: <1413329104550-4031340.post@n3.nabble.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F40C12A8EB@301EX00100.sidel.com> Hello, > De rodrigocarlson > Envoy? : mercredi 15 octobre 2014 01:25 > > The output of evans() and other plot fuctions is providing figures with mirrored axes and labels. I tried your code and it looks perfectly normal for me. Scilab 5.5.1, Windows XP64 -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From mazue.quentin at gmail.com Wed Oct 15 09:51:06 2014 From: mazue.quentin at gmail.com (=?UTF-8?Q?Quentin_Mazu=C3=A9?=) Date: Wed, 15 Oct 2014 00:51:06 -0700 (PDT) Subject: [Scilab-users] Xcos : accelerate the simulation In-Reply-To: <1412752623306-4031316.post@n3.nabble.com> References: <1412752623306-4031316.post@n3.nabble.com> Message-ID: <1413359466957-4031343.post@n3.nabble.com> Hello, Any ideas to help me on this problem? Regards Quentin Mazu? -- View this message in context: http://mailinglists.scilab.org/Xcos-accelerate-the-simulation-tp4031316p4031343.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From rodrigocarlson at gmail.com Wed Oct 15 22:58:16 2014 From: rodrigocarlson at gmail.com (rodrigocarlson) Date: Wed, 15 Oct 2014 13:58:16 -0700 (PDT) Subject: [Scilab-users] Unexpected output of evans() and other plot functions - mirrored axes and labels In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F40C12A8EB@301EX00100.sidel.com> References: <1413329104550-4031340.post@n3.nabble.com> <3B5FFC67498DFF49AE7271A584867D16F40C12A8EB@301EX00100.sidel.com> Message-ID: <1413406696717-4031349.post@n3.nabble.com> Hi Christophe, Dang, Christophe wrote > I tried your code and it looks perfectly normal for me. > Scilab 5.5.1, Windows XP64 I'm pretty sure the code is fine, I have tried in other machines. Something is wrong with Scilab. It is a fresh install. Thanks, Rodrigo -- View this message in context: http://mailinglists.scilab.org/Unexpected-output-of-evans-and-other-plot-functions-mirrored-axes-and-labels-tp4031340p4031349.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Blu_Ray at web.de Wed Oct 15 15:47:29 2014 From: Blu_Ray at web.de (Tyrone Bigguns) Date: Wed, 15 Oct 2014 15:47:29 +0200 Subject: [Scilab-users] Question about RGB Colors Message-ID: An HTML attachment was scrubbed... URL: From m9403403 at mail.ntust.edu.tw Wed Oct 15 16:09:10 2014 From: m9403403 at mail.ntust.edu.tw (Lloyd Lin) Date: Wed, 15 Oct 2014 07:09:10 -0700 (PDT) Subject: [Scilab-users] Convert from discrete to continuous transfer function Message-ID: <1413382150666-4031346.post@n3.nabble.com> Dear scilab users, Is there in scilab any possibility to convert from discrete to continuous transfer function? Just like the d2c function in matlab. Or have any way to do this conversion? Regards! Lloyd. -- View this message in context: http://mailinglists.scilab.org/Convert-from-discrete-to-continuous-transfer-function-tp4031346.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From communication at scilab-enterprises.com Thu Oct 16 09:35:20 2014 From: communication at scilab-enterprises.com (Scilab Communications) Date: Thu, 16 Oct 2014 09:35:20 +0200 Subject: [Scilab-users] Windows users, reinstall Scilab 5.5.1 Message-ID: <543F7538.6000903@scilab-enterprises.com> *We invite all users who installed Scilab 5.5.1 under Windows, from the official release date until 10/15/2014 to reinstall the software.* Indeed, the libraries downloaded during the installation phase of Scilab did not load properly during this period. Now, these additional libraries have been updated and Scilab 5.5.1 installation under 32 and 64-bit Windows is done properly. *Users should delete the additional files downloaded during the first installation to be able to reinstall and take advantage of all Scilab 5.5.1 performance.* Note that it is not necessary to download again Scilab installer (scilab-5.5.1.exe and scilab-5.5.1_x64.exe). Process to follow: Remove the additional files downloaded at the first installation of Scilab 5.5.1 (some files may not be present on your computer depending on the installation type you followed): -Under 32-bit Windows: oblas-lapack-mkl-5.5.1-win32.zip ocommons-mkl-5.5.1-win32.zip , offtw-mkl-5.5.1-win32.zip , -Under 64-bit Windows: oblas-lapack-mkl-5.5.1-win64.zip , ocommons-mkl-5.5.1-win64.zip , offtw-mkl-5.5.1-win64.zip -Restart the installation of Scilab 5.5.1 by double clicking: oUnder 32-bit Windows, on scilab-5.5.1.exe oUnder 64-bit Windows, on scilab-5.5.1_x64.exe Please accept our apologies for the inconvenience. If you encounter issues at Scilab 5.5.1 reinstall, do not hesitate to contact us via support at scilab-enterprises.com -- Communication Department, Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles (France) http://www.scilab-enterprises.com - http://www.scilab.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From joodlink at hotmail.com Thu Oct 16 10:05:01 2014 From: joodlink at hotmail.com (Joo Cat) Date: Thu, 16 Oct 2014 16:05:01 +0800 Subject: [Scilab-users] Java System.err.println Messages not displayed in Scilab Console Message-ID: I was trying out Example 1 in Getting Started - Beginning under Java from Scilab. The Scilab that I was using was 5.5.1 32bit. Compiling and importing the Java code was not a problem. I was able to create a HelloWorld object as well. However, I did not get the "HelloWorld constructed!" message on the Scilab console that should appear when creating the object. When I try to invoke the object's method using jinvoke(object, 'message') , the "Hello world!" does not appear as well. I tried doing the other examples. Similarly, the System.err.println messages are not being displayed. Does anyone know how to fix this problem? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Thu Oct 16 13:17:50 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Thu, 16 Oct 2014 13:17:50 +0200 Subject: [Scilab-users] Question about RGB Colors In-Reply-To: References: Message-ID: <3B5FFC67498DFF49AE7271A584867D16F40C12AFC3@301EX00100.sidel.com> Hello, > De Tyrone Bigguns > Envoy? : mercredi 15 octobre 2014 15:47 > > xlabel('Zielkosten','color','blue','fontsize',3); > > and instead of "blue" i wanted to insert a RGB code you should replace 'blue' by a number, e.g. xlabel('Zielkosten','color',2,'fontsize',3); then you can set that colour #2 with RGB values in a matrix, see http://help.scilab.org/docs/5.5.1/en_US/colormap.html HTH -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From clement.david at scilab-enterprises.com Thu Oct 16 17:25:45 2014 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Thu, 16 Oct 2014 17:25:45 +0200 Subject: [Scilab-users] Xcos simulation problem with Scilab 5.5.1 In-Reply-To: <1413183591408-4031330.post@n3.nabble.com> References: <1412669478905-4031312.post@n3.nabble.com> <1412947282.2107.28.camel@naxos> <1413183591408-4031330.post@n3.nabble.com> Message-ID: <1413473145.1908.29.camel@naxos> Hello, Well found, the GAINBLK and GAINBLK_f implementation differs. GAINBLK do not call the dgemm (LAPACK) if the gain parameter is a scalar double whereas GAINBLK_f always does. Due to a bug on the Scilab installer the MKL automatic download failed and Scilab silently fallback to the reference lapack implementation. To fix the issue, please follow instruction there : http://www.scilab.org/en/community/news/20141016 -- Cl?ment Le dimanche 12 octobre 2014 ? 23:59 -0700, JWE a ?crit : > Hello Clement, > > Thank you for checking my diagram. > As you suggested, I stripped the diagram to a very simple one; sinus-source, > amplifier and a scope (see attachment). > When I run it (in Scilab 5.5.1, 64 bits) on my office machine I still have > the slow scope updating. But when I run it on my home pc, I have no problem > at all. > The office pc: Core i3-2100 @ 3.1 GHz, 4 MB memory and no GPU. Windows 7, 64 > bits. > My home pc: Core i5-3210 @ 2.5 GHz, 8 MB memory and a NVIDIA GeForce GT650M > GPU. Windows 8.1, 64 bits. > The main difference seems to be the presence of a dedicated GPU. > > But even more strangly is the observation that when I change the gain block > (GAINBLK_f) by a gainblok of type "GAINBLK", the simulation runs quickly! > (When I use the gainblock "GAIN_f", it runs slow again) > Unfortunately, when I change all the gain blocks in my original diagram by > gain blocks of type GAINBLK, the simulation still runs slowly.... > Note that with Scilab 5.5.0 (64 bits) I don't have these problems. > > Best regards, > Jan. > ADC_test_550_551_rev.zcos > > > > > -- > View this message in context: http://mailinglists.scilab.org/Xcos-simulation-problem-with-Scilab-5-5-1-tp4031312p4031330.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From sgougeon at free.fr Thu Oct 16 21:26:35 2014 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 16 Oct 2014 21:26:35 +0200 Subject: [Scilab-users] Java System.err.println Messages not displayed in Scilab Console In-Reply-To: References: Message-ID: <54401BEB.9050402@free.fr> Le 16/10/2014 10:05, Joo Cat a ?crit : > I was trying out Example 1 in Getting Started - Beginning under Java > from Scilab. The Scilab that I was using was 5.5.1 32bit. > > Compiling and importing the Java code was not a problem. I was able to > create a HelloWorld object as well. > However, I did not get the "HelloWorld constructed!" message on the > Scilab console that should appear when creating the object. When I try > to invoke the object's method using jinvoke(object, 'message') , the > "Hello world!" does not appear as well. > > I tried doing the other examples. Similarly, the System.err.println > messages are not being displayed. > Does anyone know how to fix this problem? Hello, May be they are displayed in the Windows consolebox instead, whether Windows is your OS. To see the consolebox (and Java messages), just enter --> consolebox on and run again the examples. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Thu Oct 16 21:33:16 2014 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 16 Oct 2014 21:33:16 +0200 Subject: [Scilab-users] Question about RGB Colors In-Reply-To: References: Message-ID: <54401D7C.9000703@free.fr> Hello, Le 15/10/2014 15:47, Tyrone Bigguns a ?crit : > > xlabel('Zielkosten','color','blue','fontsize',3); > > and instead of "blue" i wanted to insert a RGB code Greetings xlabel('Zielkosten','color',[0 0 1],'fontsize',3); will do the same. For each channel, the value must be in the [0 1] interval. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard_sayavongsa at yahoo.fr Thu Oct 16 22:34:25 2014 From: richard_sayavongsa at yahoo.fr (sayavongsa richard) Date: Thu, 16 Oct 2014 21:34:25 +0100 Subject: [Scilab-users] issue with call_scilab from C prog. Message-ID: <1413491665.37120.YahooMailBasic@web171405.mail.ir2.yahoo.com> Hi All, I'm new with Scilab. I'd like to test Scilab from C program. I tryed to compile the prog. provided by scilab org from the link : https://help.scilab.org/docs/5.5.1/en_US/call_scilab.html below the make file : # A sample Makefile building a C code using Call Scilab using Scilab binary PATH_SCILAB = /home/rsay/scilab/scilab-5.5.1 # Note that PATH_SCILAB can be /usr/ is using a packaged version of Scilab. SCILAB_CFLAGS = -I$(PATH_SCILAB)/include/scilab SCILAB_LDFLAGS = -lscilab PATH_TO_LIB_SCILAB = $(PATH_SCILAB)/lib/scilab PATH_TO_LIB_CALL_SCILAB = $(PATH_SCILAB)/lib/scilab PATH_TO_LIB_THIRDPARTY = $(PATH_SCILAB)/lib/thirdparty all: simple_call_scilab.c export LD_LIBRARY_PATH=$(PATH_TO_LIB_SCILAB):$(PATH_TO_LIB_CALL_SCILAB) gcc -o myExample $(SCILAB_LDFLAGS) -L$(PATH_TO_LIB_SCILAB) -L$(PATH_TO_LIB_CALL_SCILAB) -L$(PATH_TO_LIB_THIRDPARTY) $(SCILAB_CFLAGS) simple_call_scilab.c When I run the make command, I have the following message. Could someone support me ? Thanks [rsay at localhost test]$ make -f makefile.mak export LD_LIBRARY_PATH=/home/rsay/scilab/scilab-5.5.1/lib/scilab:/home/rsay/scilab/scilab-5.5.1/lib/scilab gcc -o myExample -lscilab -L/home/rsay/scilab/scilab-5.5.1/lib/scilab -L/home/rsay/scilab/scilab-5.5.1/lib/scilab -L/home/rsay/scilab/scilab-5.5.1/lib/thirdparty -I/home/rsay/scilab/scilab-5.5.1/include/scilab simple_call_scilab.c simple_call_scilab.c: In function ?main?: simple_call_scilab.c:16: warning: passing argument 3 of ?StartScilab? makes integer from pointer without a cast /home/rsay/scilab/scilab-5.5.1/include/scilab/call_scilab.h:43: note: expected ?int? but argument is of type ?void *? /usr/bin/ld: warning: libscigui.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libscirenderer.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libscigraphics.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libscigraphic_export.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libsciconsole.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libsciaction_binding.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libscigraphic_objects.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libsciscinotes.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libsciui_data.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libscihistory_browser.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libscitclsci.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libtk8.5.so, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libtcl8.5.so, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libscipreferences.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libsciexternal_objects_java.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libscihelptools.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libscitypes.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libscicommons.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libscijvm.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libjava.so, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libverify.so, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libjvm.so, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libscilab-cli.so.0, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libscifunctions.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libscicall_scilab.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libscilocalization.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libscispecial_functions.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libscicompletion.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libscihistory_manager.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libpcre.so.1, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libscihdf5.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libhdf5.so.7, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libhdf5_hl.so.7, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libscistatistics.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libscixml.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libsciexternal_objects.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libscipreferences-cli.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libscigui-disable.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libscigraphics-disable.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libscigraphic_export-disable.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libsciconsole-minimal.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libsciaction_binding-disable.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libscijvm-disable.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libscixcos-disable.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libscigraphic_objects-disable.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libsciscinotes-disable.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libsciui_data-disable.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libscihistory_browser-disable.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libscicommons-disable.so.5, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: liblapack.so.3gf, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libblas.so.3gf, needed by /home/rsay/scilab/scilab-5.5.1/lib/scilab/libscilab.so, not found (try using -rpath or -rpath-link) /tmp//ccB26DGR.o: In function `main': simple_call_scilab.c:(.text+0x46): undefined reference to `StartScilab' simple_call_scilab.c:(.text+0x7f): undefined reference to `SendScilabJob' simple_call_scilab.c:(.text+0x89): undefined reference to `SendScilabJob' simple_call_scilab.c:(.text+0x93): undefined reference to `SendScilabJob' simple_call_scilab.c:(.text+0x9d): undefined reference to `TerminateScilab' collect2: ld returned 1 exit status make: *** [all] Error 1 Richard Sayavongsa From joodlink at hotmail.com Fri Oct 17 03:13:15 2014 From: joodlink at hotmail.com (Joo Cat) Date: Fri, 17 Oct 2014 09:13:15 +0800 Subject: [Scilab-users] Java System.err.println Messages not displayed in Scilab Console In-Reply-To: <54401BEB.9050402@free.fr> References: , <54401BEB.9050402@free.fr> Message-ID: Hello, I tried the consolebox on and I can now see the Java messages on the Windows console. Thanks! Any ideas on how to bring these messages into the Scilab console? Date: Thu, 16 Oct 2014 21:26:35 +0200 From: sgougeon at free.fr To: users at lists.scilab.org Subject: Re: [Scilab-users] Java System.err.println Messages not displayed in Scilab Console Le 16/10/2014 10:05, Joo Cat a ?crit : I was trying out Example 1 in Getting Started - Beginning under Java from Scilab. The Scilab that I was using was 5.5.1 32bit. Compiling and importing the Java code was not a problem. I was able to create a HelloWorld object as well. However, I did not get the "HelloWorld constructed!" message on the Scilab console that should appear when creating the object. When I try to invoke the object's method using jinvoke(object, 'message') , the "Hello world!" does not appear as well. I tried doing the other examples. Similarly, the System.err.println messages are not being displayed. Does anyone know how to fix this problem? Hello, May be they are displayed in the Windows consolebox instead, whether Windows is your OS. To see the consolebox (and Java messages), just enter --> consolebox on and run again the examples. Regards Samuel _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From elnjwei at yahoo.com Thu Oct 16 15:41:00 2014 From: elnjwei at yahoo.com (JWE) Date: Thu, 16 Oct 2014 06:41:00 -0700 (PDT) Subject: [Scilab-users] Xcos simulation problem with Scilab 5.5.1 In-Reply-To: <1413183591408-4031330.post@n3.nabble.com> References: <1412669478905-4031312.post@n3.nabble.com> <1412947282.2107.28.camel@naxos> <1413183591408-4031330.post@n3.nabble.com> Message-ID: <1413466860528-4031362.post@n3.nabble.com> Hello Scilab team, Just to let you know that with the new Windows additional library files, my Xcos simulation problems are solved! Thanks for all your effort. Best regards, Jan -- View this message in context: http://mailinglists.scilab.org/Xcos-simulation-problem-with-Scilab-5-5-1-tp4031312p4031362.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From lukasz.kocot at sosnowa40.pl Thu Oct 16 20:44:53 2014 From: lukasz.kocot at sosnowa40.pl (=?UTF-8?B?xYF1a2FzeiBLb2NvdA==?=) Date: Thu, 16 Oct 2014 20:44:53 +0200 Subject: [Scilab-users] scilab compilation enviroment Message-ID: <54401225.7020003@sosnowa40.pl> Dear all, I'm frustrated when second time try to compile scilab with atlas library. At this moment (like previous) i stuck with libjogl problem. And waste for it another few evenings - without positive result. Did any one know did exist enviroment (linux distribution), where all libraries, packages etc. are set right, that compilation of scilab can be done simply like it is described in manual? Is it Ubuntu? Debian? I use Linux Mint. In which linux distribution compilation is most easy? Only reason that i want it to compile is to speed up calculation with atlas library. But i thing time which i spent on resolving compilation problem is longer than time of optimized calculation :) Best regards ?ukasz Kocot From clement.david at scilab-enterprises.com Fri Oct 17 11:38:16 2014 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Fri, 17 Oct 2014 11:38:16 +0200 Subject: [Scilab-users] scilab compilation enviroment In-Reply-To: <54401225.7020003@sosnowa40.pl> References: <54401225.7020003@sosnowa40.pl> Message-ID: <1413538696.1973.20.camel@naxos> Hello, Well, the scilab team used mostly the latest ubuntu LTS, some people CentOS, Fedora or Debian however using the prerequirements is a must on any distribution. A quick guide is available at [1] using git and prerequirements. And more complete wiki pages are available on [2]. [1]: http://wiki.scilab.org/My%20Way%20to%20play%20with%20master%20and% 205.x%20branches [2]: http://wiki.scilab.org/Installation%20Compilation -- Cl?ment Le jeudi 16 octobre 2014 ? 20:44 +0200, ?ukasz Kocot a ?crit : > Dear all, I'm frustrated when second time try to compile scilab with > atlas library. > > At this moment (like previous) i stuck with libjogl problem. And waste > for it another few evenings - without positive result. > > Did any one know did exist enviroment (linux distribution), where all > libraries, packages etc. are set right, that compilation of scilab can > be done simply like it is described in manual? Is it Ubuntu? Debian? I > use Linux Mint. > In which linux distribution compilation is most easy? > > > > Only reason that i want it to compile is to speed up calculation with > atlas library. But i thing time which i spent on resolving compilation > problem is longer than time of optimized calculation :) > > > Best regards > > ?ukasz Kocot > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From clement.david at scilab-enterprises.com Fri Oct 17 14:37:47 2014 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Fri, 17 Oct 2014 14:37:47 +0200 Subject: [Scilab-users] Xcos : accelerate the simulation In-Reply-To: <1413359466957-4031343.post@n3.nabble.com> References: <1412752623306-4031316.post@n3.nabble.com> <1413359466957-4031343.post@n3.nabble.com> Message-ID: <1413549467.1973.33.camel@naxos> Hello Quentin, (answered in line) > I have an Xcos diagram which is a simplification of a Simulink > diagram. Both > diagram use the same solver (Runge Kutta 4) but Xcos works at 100Hz > and > Simulink at 3000Hz > > For the same result, Simulink needs 15sec (without accelerator mode) > and > Xcos 45sec. > > 1) How could I decrease efficiently my simulation time? Do you have multiple clock ? If yes, sharing the same clock can reduce simulation time. A diagram containing both event detection and continuous states can also lead to greater simulation time. > 2) Is there an equivalent to the simulink accelerator mode in Xcos? No, there is not. > 3) If I use the "code generation" for my diagramm, will it improve the > simulation time? Maybe, maybe not. The 'Tools -> Code generation' button will generate code for a subsystem and convert it back on Xcos. The generated code is basically a scheduler and C call to simulation functions. As all these pieces are in a single compilation unit, the C compiler can better optimize things than the Xcos simulator. > --> If yes : How could I properly use the code generation mode? Save your diagram, select a SUPER_f block, click on Tools->Code generation. Note that after the operation the sub-system can not be edited anymore, all the blocks has been removed and a new block using the generated code is generated at the same place. -- Cl?ment From mazue.quentin at gmail.com Fri Oct 17 16:16:17 2014 From: mazue.quentin at gmail.com (=?UTF-8?Q?Quentin_Mazu=C3=A9?=) Date: Fri, 17 Oct 2014 07:16:17 -0700 (PDT) Subject: [Scilab-users] Xcos : accelerate the simulation In-Reply-To: <1413549467.1973.33.camel@naxos> References: <1412752623306-4031316.post@n3.nabble.com> <1413359466957-4031343.post@n3.nabble.com> <1413549467.1973.33.camel@naxos> Message-ID: <1413555377408-4031372.post@n3.nabble.com> Hello Cl?ment, thanks for your answers. In my diagram I have only one clock which is splitted in 2 different frequencies. Then I use only this 2 frequencies as sample time in my diagram. below a picture to illustrate what have I done. Clock_diagram.png Is it the best choice you adviced? Then in my diagram I have : -1 Samp/hold block (need to extract only 1 value at a given time in my simulation) -1 ZCross blocks -1 NEGTOPOS blocks -2 If then else blocks Which ones should I removed to decrease the simulation time? Regards Quentin Mazu? -- View this message in context: http://mailinglists.scilab.org/Xcos-accelerate-the-simulation-tp4031316p4031372.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From lukasz.kocot at sosnowa40.pl Fri Oct 17 21:03:02 2014 From: lukasz.kocot at sosnowa40.pl (=?UTF-8?B?xYF1a2FzeiBLb2NvdA==?=) Date: Fri, 17 Oct 2014 21:03:02 +0200 Subject: [Scilab-users] scilab best compilation enviroment Message-ID: <544167E6.60003@sosnowa40.pl> Dear all, I'm frustrated when second time try to compile scilab with atlas library. At this moment (like previous) i stuck with libjogl problem. And waste for it another few evenings - without positive result. Did any one know did exist enviroment (linux distribution), where all libraries, packages etc. are set right, that compilation of scilab can be done simply like it is described in manual? Is it Ubuntu? Debian? I use Linux Mint. In which linux distribution compilation is most easy? Only reason that i want it to compile is to speed up calculation with atlas library. But i thing time which i spent on resolving compilation problem is longer than time of optimized calculation Best regards ?ukasz Kocot From cfuttrup at gmail.com Sat Oct 18 11:36:38 2014 From: cfuttrup at gmail.com (Claus Futtrup) Date: Sat, 18 Oct 2014 11:36:38 +0200 Subject: [Scilab-users] Java System.err.println Messages not displayed in Scilab Console In-Reply-To: References: <54401BEB.9050402@free.fr> Message-ID: It was previously a problem with the Java messages totally littering the scilab console. Please consider using the Java console for Java messages... /Claus On Oct 17, 2014 3:13 AM, "Joo Cat" wrote: > Hello, > I tried the consolebox on and I can now see the Java messages on the > Windows console. Thanks! > Any ideas on how to bring these messages into the Scilab console? > > ------------------------------ > Date: Thu, 16 Oct 2014 21:26:35 +0200 > From: sgougeon at free.fr > To: users at lists.scilab.org > Subject: Re: [Scilab-users] Java System.err.println Messages not displayed > in Scilab Console > > Le 16/10/2014 10:05, Joo Cat a ?crit : > > I was trying out Example 1 in Getting Started - Beginning under Java > from Scilab. The Scilab that I was using was 5.5.1 32bit. > > Compiling and importing the Java code was not a problem. I was able to > create a HelloWorld object as well. > However, I did not get the "HelloWorld constructed!" message on the Scilab > console that should appear when creating the object. When I try to invoke > the object's method using jinvoke(object, 'message') , the "Hello world!" > does not appear as well. > > I tried doing the other examples. Similarly, the System.err.println > messages are not being displayed. > Does anyone know how to fix this problem? > > Hello, > May be they are displayed in the Windows consolebox instead, whether > Windows is your OS. > To see the consolebox (and Java messages), just enter > --> consolebox on > and run again the examples. > > Regards > Samuel > > > _______________________________________________ users mailing list > users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joodlink at hotmail.com Mon Oct 20 05:37:07 2014 From: joodlink at hotmail.com (Joo Cat) Date: Mon, 20 Oct 2014 11:37:07 +0800 Subject: [Scilab-users] Java System.err.println Messages not displayed in Scilab Console In-Reply-To: References: , <54401BEB.9050402@free.fr>, , Message-ID: I see. So, that was the reasoning. Ok, will do. Date: Sat, 18 Oct 2014 11:36:38 +0200 From: cfuttrup at gmail.com To: users at lists.scilab.org Subject: Re: [Scilab-users] Java System.err.println Messages not displayed in Scilab Console It was previously a problem with the Java messages totally littering the scilab console. Please consider using the Java console for Java messages... /Claus On Oct 17, 2014 3:13 AM, "Joo Cat" wrote: Hello, I tried the consolebox on and I can now see the Java messages on the Windows console. Thanks! Any ideas on how to bring these messages into the Scilab console? Date: Thu, 16 Oct 2014 21:26:35 +0200 From: sgougeon at free.fr To: users at lists.scilab.org Subject: Re: [Scilab-users] Java System.err.println Messages not displayed in Scilab Console Le 16/10/2014 10:05, Joo Cat a ?crit : I was trying out Example 1 in Getting Started - Beginning under Java from Scilab. The Scilab that I was using was 5.5.1 32bit. Compiling and importing the Java code was not a problem. I was able to create a HelloWorld object as well. However, I did not get the "HelloWorld constructed!" message on the Scilab console that should appear when creating the object. When I try to invoke the object's method using jinvoke(object, 'message') , the "Hello world!" does not appear as well. I tried doing the other examples. Similarly, the System.err.println messages are not being displayed. Does anyone know how to fix this problem? Hello, May be they are displayed in the Windows consolebox instead, whether Windows is your OS. To see the consolebox (and Java messages), just enter --> consolebox on and run again the examples. Regards Samuel _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From carlosg at ciencias.unam.mx Sat Oct 18 16:55:54 2014 From: carlosg at ciencias.unam.mx (Carlos Garza) Date: Sat, 18 Oct 2014 09:55:54 -0500 Subject: [Scilab-users] OS X (Yosemite) Message-ID: <3EA2A53E-A99C-4F2F-9C4B-C37064015C53@ciencias.unam.mx> I upgraded my Mac to OS X (Yosemite) and Scilab 5.5.1 doesn?t work. Please try to solve this issue. From freniado at tempsky.com Sun Oct 19 16:48:56 2014 From: freniado at tempsky.com (zetor666) Date: Sun, 19 Oct 2014 07:48:56 -0700 (PDT) Subject: [Scilab-users] How to subplot SIVP? Message-ID: <1413730136603-4031375.post@n3.nabble.com> Hello, i have installed SIVP - Scilab Image and Video Processing Toolbox and i want to subplot image. When i do it which example: subplot(2,2,1),plot(x) - its work good but when i do the same with image : subplot(2,2,1),imshow(im) its show me image in another windows (not on the same figure) anyone know how to solve it? please help -- View this message in context: http://mailinglists.scilab.org/Scilab-users-How-to-subplot-SIVP-tp4031375.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From p.muehlmann at gmail.com Mon Oct 20 12:26:29 2014 From: p.muehlmann at gmail.com (=?UTF-8?Q?Philipp_M=C3=BChlmann?=) Date: Mon, 20 Oct 2014 12:26:29 +0200 Subject: [Scilab-users] How to subplot SIVP? In-Reply-To: <1413730136603-4031375.post@n3.nabble.com> References: <1413730136603-4031375.post@n3.nabble.com> Message-ID: Hallo zetor666, to my understanding it is not possible to have subplots with imshow(). Depending if you have a color image or not it should be possible to solve your problem with ShowImage() or ShowColorImage(). see also: http://stackoverflow.com/questions/16402807/multiple-images-in-scilab-simultaneously http://www.equalis.com/forums/Posts.aspx?topic=573370 Maybe its also enough for you to just use the Matplot() command? best regards, Phil 2014-10-19 16:48 GMT+02:00 zetor666 : > Hello, i have installed SIVP - Scilab Image and Video Processing Toolbox and > i want to subplot image. When i do it which > example: > subplot(2,2,1),plot(x) - its work good > > but when i do the same with image : > subplot(2,2,1),imshow(im) > > its show me image in another windows (not on the same figure) > > anyone know how to solve it? > please help > > > > -- > View this message in context: http://mailinglists.scilab.org/Scilab-users-How-to-subplot-SIVP-tp4031375.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- There we have the salad. From clement.david at scilab-enterprises.com Mon Oct 20 14:40:45 2014 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 20 Oct 2014 14:40:45 +0200 Subject: [Scilab-users] Xcos : accelerate the simulation In-Reply-To: <1413555377408-4031372.post@n3.nabble.com> References: <1412752623306-4031316.post@n3.nabble.com> <1413359466957-4031343.post@n3.nabble.com> <1413549467.1973.33.camel@naxos> <1413555377408-4031372.post@n3.nabble.com> Message-ID: <1413808845.1974.35.camel@naxos> Hello Quentin, Is it possible to have your diagram to trace the performance ? -- Cl?ment Le vendredi 17 octobre 2014 ? 07:16 -0700, Quentin Mazu? a ?crit : > Hello Cl?ment, > > thanks for your answers. > > In my diagram I have only one clock which is splitted in 2 different > frequencies. Then I use only this 2 frequencies as sample time in my > diagram. below a picture to illustrate what have I done. > > Clock_diagram.png > > > Is it the best choice you adviced? > > Then in my diagram I have : > -1 Samp/hold block (need to extract only 1 value at a given time in my > simulation) > -1 ZCross blocks > -1 NEGTOPOS blocks > -2 If then else blocks > > Which ones should I removed to decrease the simulation time? > > Regards > Quentin Mazu? > > > > -- > View this message in context: http://mailinglists.scilab.org/Xcos-accelerate-the-simulation-tp4031316p4031372.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From communication at scilab-enterprises.com Mon Oct 20 15:47:28 2014 From: communication at scilab-enterprises.com (Scilab Communications) Date: Mon, 20 Oct 2014 15:47:28 +0200 Subject: [Scilab-users] Scilab 5.5.1 under Yosemite Message-ID: <54451270.2090203@scilab-enterprises.com> Dear Scilab Users (especially those under Mac OS X), Following the release of Mac OS X 10.10 Yosemite on October 17, 2014, Scilab 5.5.1 could not be launched under this new OS. A dedicated version is now available for download to all users who have already switch to Yosemite. Download the version of Scilab 5.5.1 for Mac OS X 10.10 at http://www.scilab.org/download/ Best Regards -- Communication Department, Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles (France) http://www.scilab-enterprises.com - http://www.scilab.org From rei.listas at yahoo.com Mon Oct 20 15:50:42 2014 From: rei.listas at yahoo.com (Reinaldo) Date: Mon, 20 Oct 2014 06:50:42 -0700 Subject: [Scilab-users] Scilab 5.5.x does not run over Mac OX Yosemite (v. 10.10) Message-ID: <1413813042.25316.YahooMailNeo@web121603.mail.ne1.yahoo.com> Hi all, I would like to know why Scilab 5.5.x does not run over Mac OX Yosemite (v. 10.10). I updated from Mavericks OS to Yosemite OX yesterday, and Scilab stopped running! Does anyone have this annoyment? Thank you in advance. All best, Reinaldo. -------------- next part -------------- An HTML attachment was scrubbed... URL: From communication at scilab-enterprises.com Mon Oct 20 15:58:48 2014 From: communication at scilab-enterprises.com (Scilab Communications) Date: Mon, 20 Oct 2014 15:58:48 +0200 Subject: [Scilab-users] [Scilab-Dev] Scilab 5.5.x does not run over Mac OX Yosemite (v. 10.10) In-Reply-To: <1413813042.25316.YahooMailNeo@web121603.mail.ne1.yahoo.com> References: <1413813042.25316.YahooMailNeo@web121603.mail.ne1.yahoo.com> Message-ID: <54451518.5080509@scilab-enterprises.com> Dear Reinaldo, We have just published a dedicated version of Scilab 5.5.1 for Mac OS X 10.10 Yosemite. You can download it now on http://www.scilab.org/download Best Regards -- Communication Department, Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles (France) http://www.scilab-enterprises.com - http://www.scilab.org Le 20/10/2014 15:50, Reinaldo a ?crit : > Hi all, > > I would like to know why Scilab 5.5.x does not run over Mac OX > Yosemite (v. 10.10). > > I updated from Mavericks OS to Yosemite OX yesterday, and Scilab > stopped running! > > Does anyone have this annoyment? > > Thank you in advance. > > All best, > Reinaldo. > > > _______________________________________________ > dev mailing list > dev at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From freniado at tempsky.com Mon Oct 20 14:33:00 2014 From: freniado at tempsky.com (zetor666) Date: Mon, 20 Oct 2014 05:33:00 -0700 (PDT) Subject: [Scilab-users] How to subplot SIVP? In-Reply-To: References: <1413730136603-4031375.post@n3.nabble.com> Message-ID: <1413808380839-4031382.post@n3.nabble.com> thank you :) -- View this message in context: http://mailinglists.scilab.org/Scilab-users-How-to-subplot-SIVP-tp4031375p4031382.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From somephantastik at gmail.com Mon Oct 20 15:48:19 2014 From: somephantastik at gmail.com (Candio) Date: Mon, 20 Oct 2014 06:48:19 -0700 (PDT) Subject: [Scilab-users] interpreting showprofile results Message-ID: <1413812899067-4031384.post@n3.nabble.com> Hello, I am trying to profile a function. The steps I've done so far, after loading all functions into workspace, is add_profile("myfunc") profile(myfunc) showprofile(myfunc) The last command returns the text of the funtion with the array to the right |0|0|4 | |0|0|0 | |0|0|0 | |0|0|0 | |0|0|6 | I understand col#1 is #calls, col#2 is time, and col#3 is complexity... what is confusing to me is that col#1 and col#2 contain all zeros. have I misunderstood the use of these functions? Candice -- View this message in context: http://mailinglists.scilab.org/interpreting-showprofile-results-tp4031384.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From arvid at softube.com Mon Oct 20 17:03:10 2014 From: arvid at softube.com (=?iso-8859-1?Q?Arvid_Ros=E9n?=) Date: Mon, 20 Oct 2014 15:03:10 +0000 Subject: [Scilab-users] [Scilab-Dev] Scilab 5.5.x does not run over Mac OX Yosemite (v. 10.10) In-Reply-To: <54451518.5080509@scilab-enterprises.com> References: <1413813042.25316.YahooMailNeo@web121603.mail.ne1.yahoo.com>, <54451518.5080509@scilab-enterprises.com> Message-ID: <1413817390952.86981@softube.com> Great, Thanks for the quick fix! However, the only Java version supported on Mac OS X 10.10 is Java 8, which is not compatible with the Scilab version linked to. Any workarounds for this? Cheers, Arvid ? ________________________________ From: dev on behalf of Scilab Communications Sent: Monday, October 20, 2014 15:58 To: Reinaldo; List dedicated to development questions; Scilab list Subject: Re: [Scilab-Dev] Scilab 5.5.x does not run over Mac OX Yosemite (v. 10.10) Dear Reinaldo, We have just published a dedicated version of Scilab 5.5.1 for Mac OS X 10.10 Yosemite. You can download it now on http://www.scilab.org/download Best Regards -- Communication Department, Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles (France) http://www.scilab-enterprises.com - http://www.scilab.org Le 20/10/2014 15:50, Reinaldo a ?crit : Hi all, I would like to know why Scilab 5.5.x does not run over Mac OX Yosemite (v. 10.10). I updated from Mavericks OS to Yosemite OX yesterday, and Scilab stopped running! Does anyone have this annoyment? Thank you in advance. All best, Reinaldo. _______________________________________________ dev mailing list dev at lists.scilab.org http://lists.scilab.org/mailman/listinfo/dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdr at durietz.se Mon Oct 20 17:48:36 2014 From: sdr at durietz.se (Stefan Du Rietz) Date: Mon, 20 Oct 2014 17:48:36 +0200 Subject: [Scilab-users] printf bug? In-Reply-To: <53DD4B8D.4090908@durietz.se> References: <53D7AA5F.6020906@durietz.se> <53D7D4DE.1080005@durietz.se> <53D8070A.9070000@durietz.se> <53DD4A59.8070901@durietz.se> <53DD4B8D.4090908@durietz.se> Message-ID: <54452ED4.7010804@durietz.se> Hello, look here: -->x = 1.2345 x = 1.2345 -->msprintf("%0.1f", x) ans = 1,2 -->string(0.1 * floor(10 * x)) ans = 1.2 This could cause disastrous results, e.g. when written to files ... Regards Stefan On 2014-08-02 22:35, Stefan Du Rietz wrote: > With "Scilab" here, I mean Scilab 5.5.0. > > On 2014-08-02 22:30, Stefan Du Rietz wrote: >> Thank you, Leon, >> it confirms that Scilab 5.4.1 handles it correctly. >> >> But when I have LC_NUMERIC="en_DK.utf8" which means decimal comma, see >> below, Scilab is in error: >> -->msprintf("%0.2f", %pi) >> ans = >> 3,14 >> -->msprintf("%0.2f", 3.1416) >> ans = >> 3,14 >> >> Compare the correct handling in Python: >> >>> "Pi with two decimals is %0.2f" % 3.1416 >> 'Pi with two decimals is 3.14' >> >> Can any of the developers comment on this, or shall I report a bug? >> >> Regards >> Stefan >> >> stefan at Asus1:~$ uname -a >> Linux Asus1 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:12 UTC >> 2014 i686 i686 i686 GNU/Linux >> stefan at Asus1:~$ locale >> LANG=en_GB.UTF-8 >> LANGUAGE=en_GB:en >> LC_CTYPE="en_DK.utf8" >> LC_NUMERIC="en_DK.utf8" >> LC_TIME="en_DK.utf8" >> LC_COLLATE="en_DK.utf8" >> LC_MONETARY="en_DK.utf8" >> LC_MESSAGES="en_DK.utf8" >> LC_PAPER="en_DK.utf8" >> LC_NAME="en_DK.utf8" >> LC_ADDRESS="en_DK.utf8" >> LC_TELEPHONE="en_DK.utf8" >> LC_MEASUREMENT="en_DK.utf8" >> LC_IDENTIFICATION="en_DK.utf8" >> LC_ALL=en_DK.utf8 >> >> >> On 2014-07-30 07:25, Leon Bevc wrote: >>> Here is output from openSuse 13.1 and Scilab 5.4.1: >>> --------------------------- >>> lebevc at linux-xkf0:~> uname -a >>> Linux linux-xkf0.site 3.15.3-1.g42bf625-desktop #1 SMP PREEMPT >>> Wed Jul 2 09:23:08 UTC 2014 (42bf625) x86_64 x86_64 x86_64 GNU/Linux >>> --------------------------- >>> lebevc at linux-xkf0:~> locale >>> LANG=sl_SI.UTF-8 >>> LC_CTYPE="sl_SI.UTF-8" >>> LC_NUMERIC="sl_SI.UTF-8" >>> LC_TIME="sl_SI.UTF-8" >>> LC_COLLATE="sl_SI.UTF-8" >>> LC_MONETARY="sl_SI.UTF-8" >>> LC_MESSAGES="sl_SI.UTF-8" >>> LC_PAPER="sl_SI.UTF-8" >>> LC_NAME="sl_SI.UTF-8" >>> LC_ADDRESS="sl_SI.UTF-8" >>> LC_TELEPHONE="sl_SI.UTF-8" >>> LC_MEASUREMENT="sl_SI.UTF-8" >>> LC_IDENTIFICATION="sl_SI.UTF-8" >>> LC_ALL= >>> --------------------------- >>> lebevc at linux-xkf0:~> printf "%0.2f\n" 3.1416 >>> bash: printf: 3.1416: invalid number >>> 0,00 >>> lebevc at linux-xkf0:~> printf "%0.2f\n" 3,1416 >>> 3,14 >>> >>> //-----Scilab--------------------- >>> >>> -->ver >>> Scilab Version: 5.4.1.1364497457 >>> >>> -->x = 0.12345 >>> x = >>> 0.12345 >>> >>> -->xstr = msprintf("%0.2f", x) >>> xstr = >>> 0.12 >>> >>> >>> 2014-07-29 22:41 GMT+02:00 Stefan Du Rietz >> >: >>> >>> Leon, Can you please try it with Scilab 5.4.1 under openSUSE? And >>> can you show its Bash output from >>> $ locale >>> >>> When I was running Scilab 5.4.1 under Xubuntu 12.04, printf worked >>> OK, but also in Bash. So the question is: Why do you now get >>> different results in Scilab and Bash? >>> >>> And *the important point*: Why should a mathematics program handle >>> inputs differently from outputs? >>> >>> If one should handle decimal separators differently depending on >>> the local language, it should be done consistently (as in Bash, >>> even if I don't like it)! >>> >>> One could of course have special functions or arguments to present >>> numbers in specific local formats. >>> >>> Stefan >>> >>> >>> >>> On 2014-07-29 19:41, Leon Bevc wrote: >>> >>> Strange... >>> >>> In this case I got the same result as you on Xubuntu and >>> openSUSE: >>> >>> [ xUbuntu 14.04.1 - 32bit / Scilab 5.5.0 / LANG=sl_SI.UTF-8 ] >>> lebevc at book-PC:~$ printf "%0.2f\n" 3.1416 >>> bash: printf: 3.1416: neveljavno ?tevilo >>> 0,00 >>> lebevc at book-PC:~$ printf "%0.2f\n" 3,1416 >>> 3,14 >>> >>> >>> ------------------------------__------------------------------__---------- >>> >>> >>> [ openSUSE 13.1-64bit ; Scilab 5.4.1] >>> lebevc at linux-xkf0:~> printf "%0.2f\n" 3.1416 >>> bash: printf: 3.1416: invalid number >>> 0,00 >>> lebevc at linux-xkf0:~> printf "%0.2f\n" 3,1416 >>> 3,14 >>> >>> -->x = 0.6231166; >>> -->xstr = msprintf("%0.2f", x) >>> xstr = >>> 0.62 >>> >>> >>> _________________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/__mailman/listinfo/users >>> >>> >>> >>> >>> _________________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/__mailman/listinfo/users >>> >>> >>> >>> >>> >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users >>> >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From stephane.mottelet at utc.fr Mon Oct 20 18:19:06 2014 From: stephane.mottelet at utc.fr (=?windows-1252?Q?St=E9phane_Mottelet?=) Date: Mon, 20 Oct 2014 18:19:06 +0200 Subject: [Scilab-users] printf bug? In-Reply-To: <54452ED4.7010804@durietz.se> References: <53D7AA5F.6020906@durietz.se> <53D7D4DE.1080005@durietz.se> <53D8070A.9070000@durietz.se> <53DD4A59.8070901@durietz.se> <53DD4B8D.4090908@durietz.se> <54452ED4.7010804@durietz.se> Message-ID: <544535FA.50503@utc.fr> Hello, I think that the decimal separator is controlled by the LC_NUMERIC or the LANG environment variable. With my local install (LANG=fr_FR.UTF-8) I get -->msprintf("%0.1f",1.2345) ans = 1.2 S. Le 20/10/2014 17:48, Stefan Du Rietz a ?crit : > Hello, > look here: > > -->x = 1.2345 > x = > 1.2345 > -->msprintf("%0.1f", x) > ans = > 1,2 > -->string(0.1 * floor(10 * x)) > ans = > 1.2 > > This could cause disastrous results, e.g. when written to files ... > > Regards > Stefan > > > On 2014-08-02 22:35, Stefan Du Rietz wrote: >> With "Scilab" here, I mean Scilab 5.5.0. >> >> On 2014-08-02 22:30, Stefan Du Rietz wrote: >>> Thank you, Leon, >>> it confirms that Scilab 5.4.1 handles it correctly. >>> >>> But when I have LC_NUMERIC="en_DK.utf8" which means decimal comma, see >>> below, Scilab is in error: >>> -->msprintf("%0.2f", %pi) >>> ans = >>> 3,14 >>> -->msprintf("%0.2f", 3.1416) >>> ans = >>> 3,14 >>> >>> Compare the correct handling in Python: >>> >>> "Pi with two decimals is %0.2f" % 3.1416 >>> 'Pi with two decimals is 3.14' >>> >>> Can any of the developers comment on this, or shall I report a bug? >>> >>> Regards >>> Stefan >>> >>> stefan at Asus1:~$ uname -a >>> Linux Asus1 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:12 UTC >>> 2014 i686 i686 i686 GNU/Linux >>> stefan at Asus1:~$ locale >>> LANG=en_GB.UTF-8 >>> LANGUAGE=en_GB:en >>> LC_CTYPE="en_DK.utf8" >>> LC_NUMERIC="en_DK.utf8" >>> LC_TIME="en_DK.utf8" >>> LC_COLLATE="en_DK.utf8" >>> LC_MONETARY="en_DK.utf8" >>> LC_MESSAGES="en_DK.utf8" >>> LC_PAPER="en_DK.utf8" >>> LC_NAME="en_DK.utf8" >>> LC_ADDRESS="en_DK.utf8" >>> LC_TELEPHONE="en_DK.utf8" >>> LC_MEASUREMENT="en_DK.utf8" >>> LC_IDENTIFICATION="en_DK.utf8" >>> LC_ALL=en_DK.utf8 >>> >>> >>> On 2014-07-30 07:25, Leon Bevc wrote: >>>> Here is output from openSuse 13.1 and Scilab 5.4.1: >>>> --------------------------- >>>> lebevc at linux-xkf0:~> uname -a >>>> Linux linux-xkf0.site 3.15.3-1.g42bf625-desktop #1 SMP PREEMPT >>>> Wed Jul 2 09:23:08 UTC 2014 (42bf625) x86_64 x86_64 x86_64 GNU/Linux >>>> --------------------------- >>>> lebevc at linux-xkf0:~> locale >>>> LANG=sl_SI.UTF-8 >>>> LC_CTYPE="sl_SI.UTF-8" >>>> LC_NUMERIC="sl_SI.UTF-8" >>>> LC_TIME="sl_SI.UTF-8" >>>> LC_COLLATE="sl_SI.UTF-8" >>>> LC_MONETARY="sl_SI.UTF-8" >>>> LC_MESSAGES="sl_SI.UTF-8" >>>> LC_PAPER="sl_SI.UTF-8" >>>> LC_NAME="sl_SI.UTF-8" >>>> LC_ADDRESS="sl_SI.UTF-8" >>>> LC_TELEPHONE="sl_SI.UTF-8" >>>> LC_MEASUREMENT="sl_SI.UTF-8" >>>> LC_IDENTIFICATION="sl_SI.UTF-8" >>>> LC_ALL= >>>> --------------------------- >>>> lebevc at linux-xkf0:~> printf "%0.2f\n" 3.1416 >>>> bash: printf: 3.1416: invalid number >>>> 0,00 >>>> lebevc at linux-xkf0:~> printf "%0.2f\n" 3,1416 >>>> 3,14 >>>> >>>> //-----Scilab--------------------- >>>> >>>> -->ver >>>> Scilab Version: 5.4.1.1364497457 >>>> >>>> -->x = 0.12345 >>>> x = >>>> 0.12345 >>>> >>>> -->xstr = msprintf("%0.2f", x) >>>> xstr = >>>> 0.12 >>>> >>>> >>>> 2014-07-29 22:41 GMT+02:00 Stefan Du Rietz >>> >: >>>> >>>> Leon, Can you please try it with Scilab 5.4.1 under openSUSE? And >>>> can you show its Bash output from >>>> $ locale >>>> >>>> When I was running Scilab 5.4.1 under Xubuntu 12.04, printf worked >>>> OK, but also in Bash. So the question is: Why do you now get >>>> different results in Scilab and Bash? >>>> >>>> And *the important point*: Why should a mathematics program handle >>>> inputs differently from outputs? >>>> >>>> If one should handle decimal separators differently depending on >>>> the local language, it should be done consistently (as in Bash, >>>> even if I don't like it)! >>>> >>>> One could of course have special functions or arguments to present >>>> numbers in specific local formats. >>>> >>>> Stefan >>>> >>>> >>>> >>>> On 2014-07-29 19:41, Leon Bevc wrote: >>>> >>>> Strange... >>>> >>>> In this case I got the same result as you on Xubuntu and >>>> openSUSE: >>>> >>>> [ xUbuntu 14.04.1 - 32bit / Scilab 5.5.0 / LANG=sl_SI.UTF-8 ] >>>> lebevc at book-PC:~$ printf "%0.2f\n" 3.1416 >>>> bash: printf: 3.1416: neveljavno ?tevilo >>>> 0,00 >>>> lebevc at book-PC:~$ printf "%0.2f\n" 3,1416 >>>> 3,14 >>>> >>>> >>>> ------------------------------__------------------------------__---------- >>>> >>>> >>>> >>>> [ openSUSE 13.1-64bit ; Scilab 5.4.1] >>>> lebevc at linux-xkf0:~> printf "%0.2f\n" 3.1416 >>>> bash: printf: 3.1416: invalid number >>>> 0,00 >>>> lebevc at linux-xkf0:~> printf "%0.2f\n" 3,1416 >>>> 3,14 >>>> >>>> -->x = 0.6231166; >>>> -->xstr = msprintf("%0.2f", x) >>>> xstr = >>>> 0.62 >>>> >>>> >>>> _________________________________________________ >>>> users mailing list >>>> users at lists.scilab.org >>>> http://lists.scilab.org/__mailman/listinfo/users >>>> >>>> >>>> >>>> >>>> _________________________________________________ >>>> users mailing list >>>> users at lists.scilab.org >>>> http://lists.scilab.org/__mailman/listinfo/users >>>> >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> users mailing list >>>> users at lists.scilab.org >>>> http://lists.scilab.org/mailman/listinfo/users >>>> >>> >>> >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From arvid at softube.com Mon Oct 20 19:31:40 2014 From: arvid at softube.com (=?utf-8?B?QXJ2aWQgUm9zw6lu?=) Date: Mon, 20 Oct 2014 17:31:40 +0000 Subject: [Scilab-users] [Scilab-Dev] Scilab 5.5.x does not run over Mac OX Yosemite (v. 10.10) In-Reply-To: <1413817390952.86981@softube.com> References: <1413813042.25316.YahooMailNeo@web121603.mail.ne1.yahoo.com> <,> <54451518.5080509@scilab-enterprises.com> <1413817390952.86981@softube.com> Message-ID: <41B5378B-2109-48EA-9F78-65E23DB190A5@softube.com> Alright, this link solved that problem for me: http://support.apple.com/kb/DL1572 Cheers, Arvid 20 okt 2014 kl. 17:03 skrev Arvid Ros?n >: Great, Thanks for the quick fix! However, the only Java version supported on Mac OS X 10.10 is Java 8, which is not compatible with the Scilab version linked to. Any workarounds for this? Cheers, Arvid ? ________________________________ From: dev > on behalf of Scilab Communications > Sent: Monday, October 20, 2014 15:58 To: Reinaldo; List dedicated to development questions; Scilab list Subject: Re: [Scilab-Dev] Scilab 5.5.x does not run over Mac OX Yosemite (v. 10.10) Dear Reinaldo, We have just published a dedicated version of Scilab 5.5.1 for Mac OS X 10.10 Yosemite. You can download it now on http://www.scilab.org/download Best Regards -- Communication Department, Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles (France) http://www.scilab-enterprises.com - http://www.scilab.org Le 20/10/2014 15:50, Reinaldo a ?crit : Hi all, I would like to know why Scilab 5.5.x does not run over Mac OX Yosemite (v. 10.10). I updated from Mavericks OS to Yosemite OX yesterday, and Scilab stopped running! Does anyone have this annoyment? Thank you in advance. All best, Reinaldo. _______________________________________________ dev mailing list dev at lists.scilab.org http://lists.scilab.org/mailman/listinfo/dev _______________________________________________ dev mailing list dev at lists.scilab.org http://lists.scilab.org/mailman/listinfo/dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdr at durietz.se Mon Oct 20 19:49:07 2014 From: sdr at durietz.se (Stefan Du Rietz) Date: Mon, 20 Oct 2014 19:49:07 +0200 Subject: [Scilab-users] printf bug? In-Reply-To: <544535FA.50503@utc.fr> References: <53D7AA5F.6020906@durietz.se> <53D7D4DE.1080005@durietz.se> <53D8070A.9070000@durietz.se> <53DD4A59.8070901@durietz.se> <53DD4B8D.4090908@durietz.se> <54452ED4.7010804@durietz.se> <544535FA.50503@utc.fr> Message-ID: <54454B13.1000108@durietz.se> But why the difference between msprintf() and string()? Stefan On 2014-10-20 18:19, St?phane Mottelet wrote: > Hello, > > I think that the decimal separator is controlled by the LC_NUMERIC or > the LANG environment variable. With my local install > (LANG=fr_FR.UTF-8) I get > > -->msprintf("%0.1f",1.2345) > ans = > > 1.2 > > S. > > Le 20/10/2014 17:48, Stefan Du Rietz a ?crit : >> Hello, >> look here: >> >> -->x = 1.2345 >> x = >> 1.2345 >> -->msprintf("%0.1f", x) >> ans = >> 1,2 >> -->string(0.1 * floor(10 * x)) >> ans = >> 1.2 >> >> This could cause disastrous results, e.g. when written to files ... >> >> Regards >> Stefan >> >> >> On 2014-08-02 22:35, Stefan Du Rietz wrote: >>> With "Scilab" here, I mean Scilab 5.5.0. >>> >>> On 2014-08-02 22:30, Stefan Du Rietz wrote: >>>> Thank you, Leon, >>>> it confirms that Scilab 5.4.1 handles it correctly. >>>> >>>> But when I have LC_NUMERIC="en_DK.utf8" which means decimal comma, >>>> see >>>> below, Scilab is in error: >>>> -->msprintf("%0.2f", %pi) >>>> ans = >>>> 3,14 >>>> -->msprintf("%0.2f", 3.1416) >>>> ans = >>>> 3,14 >>>> >>>> Compare the correct handling in Python: >>>> >>> "Pi with two decimals is %0.2f" % 3.1416 >>>> 'Pi with two decimals is 3.14' >>>> >>>> Can any of the developers comment on this, or shall I report a bug? >>>> >>>> Regards >>>> Stefan >>>> >>>> stefan at Asus1:~$ uname -a >>>> Linux Asus1 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:12 UTC >>>> 2014 i686 i686 i686 GNU/Linux >>>> stefan at Asus1:~$ locale >>>> LANG=en_GB.UTF-8 >>>> LANGUAGE=en_GB:en >>>> LC_CTYPE="en_DK.utf8" >>>> LC_NUMERIC="en_DK.utf8" >>>> LC_TIME="en_DK.utf8" >>>> LC_COLLATE="en_DK.utf8" >>>> LC_MONETARY="en_DK.utf8" >>>> LC_MESSAGES="en_DK.utf8" >>>> LC_PAPER="en_DK.utf8" >>>> LC_NAME="en_DK.utf8" >>>> LC_ADDRESS="en_DK.utf8" >>>> LC_TELEPHONE="en_DK.utf8" >>>> LC_MEASUREMENT="en_DK.utf8" >>>> LC_IDENTIFICATION="en_DK.utf8" >>>> LC_ALL=en_DK.utf8 >>>> >>>> >>>> On 2014-07-30 07:25, Leon Bevc wrote: >>>>> Here is output from openSuse 13.1 and Scilab 5.4.1: >>>>> --------------------------- >>>>> lebevc at linux-xkf0:~> uname -a >>>>> Linux linux-xkf0.site 3.15.3-1.g42bf625-desktop #1 SMP PREEMPT >>>>> Wed Jul 2 09:23:08 UTC 2014 (42bf625) x86_64 x86_64 x86_64 GNU/Linux >>>>> --------------------------- >>>>> lebevc at linux-xkf0:~> locale >>>>> LANG=sl_SI.UTF-8 >>>>> LC_CTYPE="sl_SI.UTF-8" >>>>> LC_NUMERIC="sl_SI.UTF-8" >>>>> LC_TIME="sl_SI.UTF-8" >>>>> LC_COLLATE="sl_SI.UTF-8" >>>>> LC_MONETARY="sl_SI.UTF-8" >>>>> LC_MESSAGES="sl_SI.UTF-8" >>>>> LC_PAPER="sl_SI.UTF-8" >>>>> LC_NAME="sl_SI.UTF-8" >>>>> LC_ADDRESS="sl_SI.UTF-8" >>>>> LC_TELEPHONE="sl_SI.UTF-8" >>>>> LC_MEASUREMENT="sl_SI.UTF-8" >>>>> LC_IDENTIFICATION="sl_SI.UTF-8" >>>>> LC_ALL= >>>>> --------------------------- >>>>> lebevc at linux-xkf0:~> printf "%0.2f\n" 3.1416 >>>>> bash: printf: 3.1416: invalid number >>>>> 0,00 >>>>> lebevc at linux-xkf0:~> printf "%0.2f\n" 3,1416 >>>>> 3,14 >>>>> >>>>> //-----Scilab--------------------- >>>>> >>>>> -->ver >>>>> Scilab Version: 5.4.1.1364497457 >>>>> >>>>> -->x = 0.12345 >>>>> x = >>>>> 0.12345 >>>>> >>>>> -->xstr = msprintf("%0.2f", x) >>>>> xstr = >>>>> 0.12 >>>>> >>>>> >>>>> 2014-07-29 22:41 GMT+02:00 Stefan Du Rietz >>>> >: >>>>> >>>>> Leon, Can you please try it with Scilab 5.4.1 under openSUSE? >>>>> And >>>>> can you show its Bash output from >>>>> $ locale >>>>> >>>>> When I was running Scilab 5.4.1 under Xubuntu 12.04, printf >>>>> worked >>>>> OK, but also in Bash. So the question is: Why do you now get >>>>> different results in Scilab and Bash? >>>>> >>>>> And *the important point*: Why should a mathematics program >>>>> handle >>>>> inputs differently from outputs? >>>>> >>>>> If one should handle decimal separators differently depending on >>>>> the local language, it should be done consistently (as in Bash, >>>>> even if I don't like it)! >>>>> >>>>> One could of course have special functions or arguments to >>>>> present >>>>> numbers in specific local formats. >>>>> >>>>> Stefan >>>>> >>>>> >>>>> >>>>> On 2014-07-29 19:41, Leon Bevc wrote: >>>>> >>>>> Strange... >>>>> >>>>> In this case I got the same result as you on Xubuntu and >>>>> openSUSE: >>>>> >>>>> [ xUbuntu 14.04.1 - 32bit / Scilab 5.5.0 / >>>>> LANG=sl_SI.UTF-8 ] >>>>> lebevc at book-PC:~$ printf "%0.2f\n" 3.1416 >>>>> bash: printf: 3.1416: neveljavno ?tevilo >>>>> 0,00 >>>>> lebevc at book-PC:~$ printf "%0.2f\n" 3,1416 >>>>> 3,14 >>>>> >>>>> >>>>> ------------------------------__------------------------------__---------- >>>>> >>>>> >>>>> >>>>> [ openSUSE 13.1-64bit ; Scilab 5.4.1] >>>>> lebevc at linux-xkf0:~> printf "%0.2f\n" 3.1416 >>>>> bash: printf: 3.1416: invalid number >>>>> 0,00 >>>>> lebevc at linux-xkf0:~> printf "%0.2f\n" 3,1416 >>>>> 3,14 >>>>> >>>>> -->x = 0.6231166; >>>>> -->xstr = msprintf("%0.2f", x) >>>>> xstr = >>>>> 0.62 >>>>> >>>>> >>>>> _________________________________________________ >>>>> users mailing list >>>>> users at lists.scilab.org >>>>> http://lists.scilab.org/__mailman/listinfo/users >>>>> >>>>> >>>>> >>>>> >>>>> _________________________________________________ >>>>> users mailing list >>>>> users at lists.scilab.org >>>>> http://lists.scilab.org/__mailman/listinfo/users >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> users mailing list >>>>> users at lists.scilab.org >>>>> http://lists.scilab.org/mailman/listinfo/users >>>>> >>>> >>>> >>>> _______________________________________________ >>>> users mailing list >>>> users at lists.scilab.org >>>> http://lists.scilab.org/mailman/listinfo/users >>> >>> >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From arvid at softube.com Mon Oct 20 20:15:43 2014 From: arvid at softube.com (=?iso-8859-1?Q?Arvid_Ros=E9n?=) Date: Mon, 20 Oct 2014 18:15:43 +0000 Subject: [Scilab-users] [Scilab-Dev] Scilab 5.5.x does not run over Mac OX Yosemite (v. 10.10) In-Reply-To: <54451518.5080509@scilab-enterprises.com> References: <1413813042.25316.YahooMailNeo@web121603.mail.ne1.yahoo.com> <54451518.5080509@scilab-enterprises.com> Message-ID: <99A7E499-C55B-4907-952F-A886C6A697D8@softube.com> Thanks again for the fix! I guess this fix included updates of some of the thirdparty libraries and startup scrips. Is possible to apply these updates to earlier versions of Scilab? I am specifically concerned with Scilab version 5.4.0-alpha1, which was the last version to have usable performance working with large number of state-space filters (syslin objects). See bug 13562 for details: http://bugzilla.scilab.org/show_bug.cgi?id=13562 Best Regards, Arvid 20 okt 2014 kl. 15:58 skrev Scilab Communications >: Dear Reinaldo, We have just published a dedicated version of Scilab 5.5.1 for Mac OS X 10.10 Yosemite. You can download it now on http://www.scilab.org/download Best Regards -- Communication Department, Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles (France) http://www.scilab-enterprises.com - http://www.scilab.org Le 20/10/2014 15:50, Reinaldo a ?crit : Hi all, I would like to know why Scilab 5.5.x does not run over Mac OX Yosemite (v. 10.10). I updated from Mavericks OS to Yosemite OX yesterday, and Scilab stopped running! Does anyone have this annoyment? Thank you in advance. All best, Reinaldo. _______________________________________________ dev mailing list dev at lists.scilab.org http://lists.scilab.org/mailman/listinfo/dev _______________________________________________ dev mailing list dev at lists.scilab.org http://lists.scilab.org/mailman/listinfo/dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Mon Oct 20 21:04:40 2014 From: stephane.mottelet at utc.fr (=?windows-1252?Q?St=E9phane_Mottelet?=) Date: Mon, 20 Oct 2014 21:04:40 +0200 Subject: [Scilab-users] printf bug? In-Reply-To: <54454B13.1000108@durietz.se> References: <53D7AA5F.6020906@durietz.se> <53D7D4DE.1080005@durietz.se> <53D8070A.9070000@durietz.se> <53DD4A59.8070901@durietz.se> <53DD4B8D.4090908@durietz.se> <54452ED4.7010804@durietz.se> <544535FA.50503@utc.fr> <54454B13.1000108@durietz.se> Message-ID: <54455CC8.4020902@utc.fr> In the help page of "string" it is said that its output depends on display parameters which are defined with the format macro, i.e. you get the same output with -->string(%pi) and -->disp(%pi) So it is just a feature, not a bug :-D S. Le 20/10/2014 19:49, Stefan Du Rietz a ?crit : > But why the difference between msprintf() and string()? > > Stefan > > On 2014-10-20 18:19, St?phane Mottelet wrote: >> Hello, >> >> I think that the decimal separator is controlled by the LC_NUMERIC or >> the LANG environment variable. With my local install >> (LANG=fr_FR.UTF-8) I get >> >> -->msprintf("%0.1f",1.2345) >> ans = >> >> 1.2 >> >> S. >> >> Le 20/10/2014 17:48, Stefan Du Rietz a ?crit : >>> Hello, >>> look here: >>> >>> -->x = 1.2345 >>> x = >>> 1.2345 >>> -->msprintf("%0.1f", x) >>> ans = >>> 1,2 >>> -->string(0.1 * floor(10 * x)) >>> ans = >>> 1.2 >>> >>> This could cause disastrous results, e.g. when written to files ... >>> >>> Regards >>> Stefan >>> >>> >>> On 2014-08-02 22:35, Stefan Du Rietz wrote: >>>> With "Scilab" here, I mean Scilab 5.5.0. >>>> >>>> On 2014-08-02 22:30, Stefan Du Rietz wrote: >>>>> Thank you, Leon, >>>>> it confirms that Scilab 5.4.1 handles it correctly. >>>>> >>>>> But when I have LC_NUMERIC="en_DK.utf8" which means decimal comma, >>>>> see >>>>> below, Scilab is in error: >>>>> -->msprintf("%0.2f", %pi) >>>>> ans = >>>>> 3,14 >>>>> -->msprintf("%0.2f", 3.1416) >>>>> ans = >>>>> 3,14 >>>>> >>>>> Compare the correct handling in Python: >>>>> >>> "Pi with two decimals is %0.2f" % 3.1416 >>>>> 'Pi with two decimals is 3.14' >>>>> >>>>> Can any of the developers comment on this, or shall I report a bug? >>>>> >>>>> Regards >>>>> Stefan >>>>> >>>>> stefan at Asus1:~$ uname -a >>>>> Linux Asus1 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:12 UTC >>>>> 2014 i686 i686 i686 GNU/Linux >>>>> stefan at Asus1:~$ locale >>>>> LANG=en_GB.UTF-8 >>>>> LANGUAGE=en_GB:en >>>>> LC_CTYPE="en_DK.utf8" >>>>> LC_NUMERIC="en_DK.utf8" >>>>> LC_TIME="en_DK.utf8" >>>>> LC_COLLATE="en_DK.utf8" >>>>> LC_MONETARY="en_DK.utf8" >>>>> LC_MESSAGES="en_DK.utf8" >>>>> LC_PAPER="en_DK.utf8" >>>>> LC_NAME="en_DK.utf8" >>>>> LC_ADDRESS="en_DK.utf8" >>>>> LC_TELEPHONE="en_DK.utf8" >>>>> LC_MEASUREMENT="en_DK.utf8" >>>>> LC_IDENTIFICATION="en_DK.utf8" >>>>> LC_ALL=en_DK.utf8 >>>>> >>>>> >>>>> On 2014-07-30 07:25, Leon Bevc wrote: >>>>>> Here is output from openSuse 13.1 and Scilab 5.4.1: >>>>>> --------------------------- >>>>>> lebevc at linux-xkf0:~> uname -a >>>>>> Linux linux-xkf0.site 3.15.3-1.g42bf625-desktop #1 SMP PREEMPT >>>>>> Wed Jul 2 09:23:08 UTC 2014 (42bf625) x86_64 x86_64 x86_64 GNU/Linux >>>>>> --------------------------- >>>>>> lebevc at linux-xkf0:~> locale >>>>>> LANG=sl_SI.UTF-8 >>>>>> LC_CTYPE="sl_SI.UTF-8" >>>>>> LC_NUMERIC="sl_SI.UTF-8" >>>>>> LC_TIME="sl_SI.UTF-8" >>>>>> LC_COLLATE="sl_SI.UTF-8" >>>>>> LC_MONETARY="sl_SI.UTF-8" >>>>>> LC_MESSAGES="sl_SI.UTF-8" >>>>>> LC_PAPER="sl_SI.UTF-8" >>>>>> LC_NAME="sl_SI.UTF-8" >>>>>> LC_ADDRESS="sl_SI.UTF-8" >>>>>> LC_TELEPHONE="sl_SI.UTF-8" >>>>>> LC_MEASUREMENT="sl_SI.UTF-8" >>>>>> LC_IDENTIFICATION="sl_SI.UTF-8" >>>>>> LC_ALL= >>>>>> --------------------------- >>>>>> lebevc at linux-xkf0:~> printf "%0.2f\n" 3.1416 >>>>>> bash: printf: 3.1416: invalid number >>>>>> 0,00 >>>>>> lebevc at linux-xkf0:~> printf "%0.2f\n" 3,1416 >>>>>> 3,14 >>>>>> >>>>>> //-----Scilab--------------------- >>>>>> >>>>>> -->ver >>>>>> Scilab Version: 5.4.1.1364497457 >>>>>> >>>>>> -->x = 0.12345 >>>>>> x = >>>>>> 0.12345 >>>>>> >>>>>> -->xstr = msprintf("%0.2f", x) >>>>>> xstr = >>>>>> 0.12 >>>>>> >>>>>> >>>>>> 2014-07-29 22:41 GMT+02:00 Stefan Du Rietz >>>>> >: >>>>>> >>>>>> Leon, Can you please try it with Scilab 5.4.1 under openSUSE? >>>>>> And >>>>>> can you show its Bash output from >>>>>> $ locale >>>>>> >>>>>> When I was running Scilab 5.4.1 under Xubuntu 12.04, printf >>>>>> worked >>>>>> OK, but also in Bash. So the question is: Why do you now get >>>>>> different results in Scilab and Bash? >>>>>> >>>>>> And *the important point*: Why should a mathematics program >>>>>> handle >>>>>> inputs differently from outputs? >>>>>> >>>>>> If one should handle decimal separators differently depending on >>>>>> the local language, it should be done consistently (as in Bash, >>>>>> even if I don't like it)! >>>>>> >>>>>> One could of course have special functions or arguments to >>>>>> present >>>>>> numbers in specific local formats. >>>>>> >>>>>> Stefan >>>>>> >>>>>> >>>>>> >>>>>> On 2014-07-29 19:41, Leon Bevc wrote: >>>>>> >>>>>> Strange... >>>>>> >>>>>> In this case I got the same result as you on Xubuntu and >>>>>> openSUSE: >>>>>> >>>>>> [ xUbuntu 14.04.1 - 32bit / Scilab 5.5.0 / >>>>>> LANG=sl_SI.UTF-8 ] >>>>>> lebevc at book-PC:~$ printf "%0.2f\n" 3.1416 >>>>>> bash: printf: 3.1416: neveljavno ?tevilo >>>>>> 0,00 >>>>>> lebevc at book-PC:~$ printf "%0.2f\n" 3,1416 >>>>>> 3,14 >>>>>> >>>>>> >>>>>> ------------------------------__------------------------------__---------- >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> [ openSUSE 13.1-64bit ; Scilab 5.4.1] >>>>>> lebevc at linux-xkf0:~> printf "%0.2f\n" 3.1416 >>>>>> bash: printf: 3.1416: invalid number >>>>>> 0,00 >>>>>> lebevc at linux-xkf0:~> printf "%0.2f\n" 3,1416 >>>>>> 3,14 >>>>>> >>>>>> -->x = 0.6231166; >>>>>> -->xstr = msprintf("%0.2f", x) >>>>>> xstr = >>>>>> 0.62 >>>>>> >>>>>> >>>>>> _________________________________________________ >>>>>> users mailing list >>>>>> users at lists.scilab.org >>>>>> http://lists.scilab.org/__mailman/listinfo/users >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> _________________________________________________ >>>>>> users mailing list >>>>>> users at lists.scilab.org >>>>>> http://lists.scilab.org/__mailman/listinfo/users >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> users mailing list >>>>>> users at lists.scilab.org >>>>>> http://lists.scilab.org/mailman/listinfo/users >>>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> users mailing list >>>>> users at lists.scilab.org >>>>> http://lists.scilab.org/mailman/listinfo/users >>>> >>>> >>>> _______________________________________________ >>>> users mailing list >>>> users at lists.scilab.org >>>> http://lists.scilab.org/mailman/listinfo/users >>> >>> >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From sgougeon at free.fr Tue Oct 21 00:54:44 2014 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 21 Oct 2014 00:54:44 +0200 Subject: [Scilab-users] interpreting showprofile results In-Reply-To: <1413812899067-4031384.post@n3.nabble.com> References: <1413812899067-4031384.post@n3.nabble.com> Message-ID: <544592B4.6020208@free.fr> Hello Candio, showprofile() has been fixed against one bug (under Windows, displaying results 1000 times too small) under Scilab 5.5, and has been upgraded. You might upgrade your Scilab before going on. Regards Samuel Le 20/10/2014 15:48, Candio a ?crit : > Hello, > > I am trying to profile a function. The steps I've done so far, after loading > all functions into workspace, is > > add_profile("myfunc") > profile(myfunc) > showprofile(myfunc) > > The last command returns the text of the funtion with the array to the right > |0|0|4 | > |0|0|0 | > |0|0|0 | > |0|0|0 | > |0|0|6 | > > I understand col#1 is #calls, col#2 is time, and col#3 is complexity... what > is confusing to me is that col#1 and col#2 contain all zeros. have I > misunderstood the use of these functions? > > Candice > > > > -- > View this message in context: http://mailinglists.scilab.org/interpreting-showprofile-results-tp4031384.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From nguyenthientin at gmail.com Tue Oct 21 12:07:15 2014 From: nguyenthientin at gmail.com (Tin Nguyen) Date: Tue, 21 Oct 2014 17:07:15 +0700 Subject: [Scilab-users] Problem with partial fraction decomposition (dfss) In-Reply-To: <543D0A95.5040609@inria.fr> References: <1413187942099-4031331.post@n3.nabble.com> <543D0A95.5040609@inria.fr> Message-ID: <002a01cfed16$cc3c96e0$64b5c4a0$@gmail.com> Dear Serge Steer, Thank you very much for your response. Your code works fine. However, I still have some problem with this pfss function. For example, I try to decompose a fractional polynomial that has multi-order poles. H(z) = 1 / { (1-s)^2 * (1+s) } You can find following from my console: -->s = poly(0,'s'); -->h = 1 / ( (1 + s) * (1 - s)^2) h = 1 ------------- 2 3 1 - s - s + s -->pf = pfss(h, 1/%eps) pf = pf(1) - 9420237.9 ------------- - 1.0000000 + s pf(2) 9420237.6 --------- - 1 + s pf(3) 0.25 ---- 1 + s I also checked: -->pf(1)+pf(2) ans = 0.75 - 0.25s ------------ 2 1 - 2s + s I have no idea about this situation. Can you help me out! Thank you in advance! --Tin Nguyen -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Serge Steer Sent: Tuesday, October 14, 2014 6:36 PM To: users at lists.scilab.org Subject: Re: [Scilab-users] Problem with partial fraction decomposition (dfss) You just need to tune the rmax optionnal parameter pf = pfss(tf2ss(hz),5);length(pf) Serge Steer Le 13/10/2014 10:12, tinnguyen a ?crit : > Hi guys, > I'm having trouble using scilab's function pfss to decompose a > polynomial in order to do inverse Z transform. Following is my code: > --> z = poly(0,'z') > --> hz = z^2 / (1 - 6*z + 11*z^2 - 6*z^3) pf = pfss(tf2ss(hz)) > --> length(pf) > The fourth command returns '1'. However, I believe it should be 3. I > also did the decomposition manually and got the result as: hz = > 0.5/(1-z) + -1 / > (1-2*z) + 0.5/(1-3*z). > Nevertheless, if I change the numerator of hz from z^2 to z or z^3, > pfss works correctly. I definitely have no idea!!!? :D Please take a > look and correct me if i'm wrong. > Thank you so much! > > > > > -- > View this message in context: > http://mailinglists.scilab.org/Problem-with-partial-fraction-decomposi > tion-dfss-tp4031331.html Sent from the Scilab users - Mailing Lists > Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From sdr at durietz.se Tue Oct 21 12:12:11 2014 From: sdr at durietz.se (Stefan Du Rietz) Date: Tue, 21 Oct 2014 12:12:11 +0200 Subject: [Scilab-users] printf bug? In-Reply-To: <54455CC8.4020902@utc.fr> References: <53D7AA5F.6020906@durietz.se> <53D7D4DE.1080005@durietz.se> <53D8070A.9070000@durietz.se> <53DD4A59.8070901@durietz.se> <53DD4B8D.4090908@durietz.se> <54452ED4.7010804@durietz.se> <544535FA.50503@utc.fr> <54454B13.1000108@durietz.se> <54455CC8.4020902@utc.fr> Message-ID: <5446317B.3040906@durietz.se> And the help page of "printf_conversion" states only "decimal point": "The number of digits to appear after the decimal point for e, E, and f conversions" "If the precision is zero, , no decimal point appears." "A decimal point appears only if it is followed by a digit." Consequently, this is a bug. If the behaviour is indeed intended, there should be a warning (that you can turn off) if a decimal comma is used and some means to force a decimal point! Stefan On 2014-10-20 21:04, St?phane Mottelet wrote: > In the help page of "string" it is said that its output depends on > display parameters which are defined with the format macro, i.e. you > get the same output > with > > -->string(%pi) > > and > > -->disp(%pi) > > So it is just a feature, not a bug :-D > > S. > > Le 20/10/2014 19:49, Stefan Du Rietz a ?crit : >> But why the difference between msprintf() and string()? >> >> Stefan >> >> On 2014-10-20 18:19, St?phane Mottelet wrote: >>> Hello, >>> >>> I think that the decimal separator is controlled by the LC_NUMERIC or >>> the LANG environment variable. With my local install >>> (LANG=fr_FR.UTF-8) I get >>> >>> -->msprintf("%0.1f",1.2345) >>> ans = >>> >>> 1.2 >>> >>> S. >>> >>> Le 20/10/2014 17:48, Stefan Du Rietz a ?crit : >>>> Hello, >>>> look here: >>>> >>>> -->x = 1.2345 >>>> x = >>>> 1.2345 >>>> -->msprintf("%0.1f", x) >>>> ans = >>>> 1,2 >>>> -->string(0.1 * floor(10 * x)) >>>> ans = >>>> 1.2 >>>> >>>> This could cause disastrous results, e.g. when written to files ... >>>> >>>> Regards >>>> Stefan >>>> >>>> >>>> On 2014-08-02 22:35, Stefan Du Rietz wrote: >>>>> With "Scilab" here, I mean Scilab 5.5.0. >>>>> >>>>> On 2014-08-02 22:30, Stefan Du Rietz wrote: >>>>>> Thank you, Leon, >>>>>> it confirms that Scilab 5.4.1 handles it correctly. >>>>>> >>>>>> But when I have LC_NUMERIC="en_DK.utf8" which means decimal comma, >>>>>> see >>>>>> below, Scilab is in error: >>>>>> -->msprintf("%0.2f", %pi) >>>>>> ans = >>>>>> 3,14 >>>>>> -->msprintf("%0.2f", 3.1416) >>>>>> ans = >>>>>> 3,14 >>>>>> >>>>>> Compare the correct handling in Python: >>>>>> >>> "Pi with two decimals is %0.2f" % 3.1416 >>>>>> 'Pi with two decimals is 3.14' >>>>>> >>>>>> Can any of the developers comment on this, or shall I report a bug? >>>>>> >>>>>> Regards >>>>>> Stefan >>>>>> >>>>>> stefan at Asus1:~$ uname -a >>>>>> Linux Asus1 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:12 >>>>>> UTC >>>>>> 2014 i686 i686 i686 GNU/Linux >>>>>> stefan at Asus1:~$ locale >>>>>> LANG=en_GB.UTF-8 >>>>>> LANGUAGE=en_GB:en >>>>>> LC_CTYPE="en_DK.utf8" >>>>>> LC_NUMERIC="en_DK.utf8" >>>>>> LC_TIME="en_DK.utf8" >>>>>> LC_COLLATE="en_DK.utf8" >>>>>> LC_MONETARY="en_DK.utf8" >>>>>> LC_MESSAGES="en_DK.utf8" >>>>>> LC_PAPER="en_DK.utf8" >>>>>> LC_NAME="en_DK.utf8" >>>>>> LC_ADDRESS="en_DK.utf8" >>>>>> LC_TELEPHONE="en_DK.utf8" >>>>>> LC_MEASUREMENT="en_DK.utf8" >>>>>> LC_IDENTIFICATION="en_DK.utf8" >>>>>> LC_ALL=en_DK.utf8 >>>>>> >>>>>> >>>>>> On 2014-07-30 07:25, Leon Bevc wrote: >>>>>>> Here is output from openSuse 13.1 and Scilab 5.4.1: >>>>>>> --------------------------- >>>>>>> lebevc at linux-xkf0:~> uname -a >>>>>>> Linux linux-xkf0.site 3.15.3-1.g42bf625-desktop #1 SMP PREEMPT >>>>>>> Wed Jul 2 09:23:08 UTC 2014 (42bf625) x86_64 x86_64 x86_64 >>>>>>> GNU/Linux >>>>>>> --------------------------- >>>>>>> lebevc at linux-xkf0:~> locale >>>>>>> LANG=sl_SI.UTF-8 >>>>>>> LC_CTYPE="sl_SI.UTF-8" >>>>>>> LC_NUMERIC="sl_SI.UTF-8" >>>>>>> LC_TIME="sl_SI.UTF-8" >>>>>>> LC_COLLATE="sl_SI.UTF-8" >>>>>>> LC_MONETARY="sl_SI.UTF-8" >>>>>>> LC_MESSAGES="sl_SI.UTF-8" >>>>>>> LC_PAPER="sl_SI.UTF-8" >>>>>>> LC_NAME="sl_SI.UTF-8" >>>>>>> LC_ADDRESS="sl_SI.UTF-8" >>>>>>> LC_TELEPHONE="sl_SI.UTF-8" >>>>>>> LC_MEASUREMENT="sl_SI.UTF-8" >>>>>>> LC_IDENTIFICATION="sl_SI.UTF-8" >>>>>>> LC_ALL= >>>>>>> --------------------------- >>>>>>> lebevc at linux-xkf0:~> printf "%0.2f\n" 3.1416 >>>>>>> bash: printf: 3.1416: invalid number >>>>>>> 0,00 >>>>>>> lebevc at linux-xkf0:~> printf "%0.2f\n" 3,1416 >>>>>>> 3,14 >>>>>>> >>>>>>> //-----Scilab--------------------- >>>>>>> >>>>>>> -->ver >>>>>>> Scilab Version: 5.4.1.1364497457 >>>>>>> >>>>>>> -->x = 0.12345 >>>>>>> x = >>>>>>> 0.12345 >>>>>>> >>>>>>> -->xstr = msprintf("%0.2f", x) >>>>>>> xstr = >>>>>>> 0.12 >>>>>>> >>>>>>> >>>>>>> 2014-07-29 22:41 GMT+02:00 Stefan Du Rietz >>>>>> >: >>>>>>> >>>>>>> Leon, Can you please try it with Scilab 5.4.1 under openSUSE? >>>>>>> And >>>>>>> can you show its Bash output from >>>>>>> $ locale >>>>>>> >>>>>>> When I was running Scilab 5.4.1 under Xubuntu 12.04, printf >>>>>>> worked >>>>>>> OK, but also in Bash. So the question is: Why do you now get >>>>>>> different results in Scilab and Bash? >>>>>>> >>>>>>> And *the important point*: Why should a mathematics program >>>>>>> handle >>>>>>> inputs differently from outputs? >>>>>>> >>>>>>> If one should handle decimal separators differently >>>>>>> depending on >>>>>>> the local language, it should be done consistently (as in >>>>>>> Bash, >>>>>>> even if I don't like it)! >>>>>>> >>>>>>> One could of course have special functions or arguments to >>>>>>> present >>>>>>> numbers in specific local formats. >>>>>>> >>>>>>> Stefan >>>>>>> >>>>>>> >>>>>>> >>>>>>> On 2014-07-29 19:41, Leon Bevc wrote: >>>>>>> >>>>>>> Strange... >>>>>>> >>>>>>> In this case I got the same result as you on Xubuntu and >>>>>>> openSUSE: >>>>>>> >>>>>>> [ xUbuntu 14.04.1 - 32bit / Scilab 5.5.0 / >>>>>>> LANG=sl_SI.UTF-8 ] >>>>>>> lebevc at book-PC:~$ printf "%0.2f\n" 3.1416 >>>>>>> bash: printf: 3.1416: neveljavno ?tevilo >>>>>>> 0,00 >>>>>>> lebevc at book-PC:~$ printf "%0.2f\n" 3,1416 >>>>>>> 3,14 >>>>>>> >>>>>>> >>>>>>> ------------------------------__------------------------------__---------- >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> [ openSUSE 13.1-64bit ; Scilab 5.4.1] >>>>>>> lebevc at linux-xkf0:~> printf "%0.2f\n" 3.1416 >>>>>>> bash: printf: 3.1416: invalid number >>>>>>> 0,00 >>>>>>> lebevc at linux-xkf0:~> printf "%0.2f\n" 3,1416 >>>>>>> 3,14 >>>>>>> >>>>>>> -->x = 0.6231166; >>>>>>> -->xstr = msprintf("%0.2f", x) >>>>>>> xstr = >>>>>>> 0.62 >>>>>>> >>>>>>> >>>>>>> _________________________________________________ >>>>>>> users mailing list >>>>>>> users at lists.scilab.org >>>>>>> http://lists.scilab.org/__mailman/listinfo/users >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> _________________________________________________ >>>>>>> users mailing list >>>>>>> users at lists.scilab.org >>>>>>> http://lists.scilab.org/__mailman/listinfo/users >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> users mailing list >>>>>>> users at lists.scilab.org >>>>>>> http://lists.scilab.org/mailman/listinfo/users >>>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> users mailing list >>>>>> users at lists.scilab.org >>>>>> http://lists.scilab.org/mailman/listinfo/users >>>>> >>>>> >>>>> _______________________________________________ >>>>> users mailing list >>>>> users at lists.scilab.org >>>>> http://lists.scilab.org/mailman/listinfo/users >>>> >>>> >>>> _______________________________________________ >>>> users mailing list >>>> users at lists.scilab.org >>>> http://lists.scilab.org/mailman/listinfo/users >>> >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users >>> >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From matiasb at gmail.com Tue Oct 21 18:24:41 2014 From: matiasb at gmail.com (Matiasb) Date: Tue, 21 Oct 2014 09:24:41 -0700 (PDT) Subject: [Scilab-users] Problems using save Message-ID: <1413908681513-4031410.post@n3.nabble.com> Hi, After executing a script that creates a lot of variables and big matrices, I'm trying to make a backup of what it created. A good option would be to save all variables to a file, as the save function allows when a list of variables is not specified. Something like: save('backup.dat') But when I use this function I found 2 problems: 1) Very strangely, it opens a graph window with some plots. Screenshot: Selection_420.png 2) when there are a lot of variables it takes veeery long, the scilab process uses 2GB of mem. If there are big matrices the scilab process hangs completely. *For 1)* I tried to track it and I could reproduce with a simple example: the problem occurs when I define a function that uses some graph function. For example, creating a test.sce file with the following function: // test.sce function []=MyTest() xtitle("Testing save"); endfunction Then in the console: clear; // just to start from scratch exec('test.sce', -1); save('backup.dat'); // this opens the graph window! *For 2)*, I'm using stacksize('max') to increase scilab's memory to the maximum. I checked that saving variables individually (passing their names to the save function) works fast as expected and scilab does not hang even when saving big matrices. The problem is that i can not use that solution as the process creates each time different variables so it is not practical to name each variable one by one. Maybe the problem in 2) is related with 1) but its hard for me to run the process and not define those functions. Is there a way for me to store all this created variables in a file without these problems? Maybe solving 1) will fix it. Maybe there is a way to put all the variables in an array so that save can take that as a parameter. Any help would be appreciated! Thank you very much Matias PD: I'm using scilab 5.4.1 in Linux. -- View this message in context: http://mailinglists.scilab.org/Problems-using-save-tp4031410.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From ezequielsoule at gmail.com Tue Oct 21 18:50:01 2014 From: ezequielsoule at gmail.com (Ezequiel Soule) Date: Tue, 21 Oct 2014 13:50:01 -0300 Subject: [Scilab-users] Problems using save In-Reply-To: <1413908681513-4031410.post@n3.nabble.com> References: <1413908681513-4031410.post@n3.nabble.com> Message-ID: <54468EB9.9040906@gmail.com> Hello, unfortunately I cannot give you a solution, instead I?ll give you another problem! I had the problems you mention also, and in addition, another one. When I try to load a file, I get an error: !--error 41 Argumento de salida incompatible. at line 16 of function coord called by : at line 14 of function createMacro called by : at line 8 of function %__convertVariable__ called by : at line 978 of function %_sodload called by : load("xxx.sav") This seems to happen when I define functions with arrays as input variables. The functions work fine, but give this error when saved and loaded. I can load specific variables, but not the whole file. El 21/10/2014 01:24 p.m., Matiasb escribi?: > Hi, > > After executing a script that creates a lot of variables and big matrices, > I'm trying to make a backup of what it created. A good option would be to > save all variables to a file, as the save > function allows when > a list of variables is not specified. > Something like: save('backup.dat') > > But when I use this function I found 2 problems: > 1) Very strangely, it opens a graph window with some plots. Screenshot: > Selection_420.png > > 2) when there are a lot of variables it takes veeery long, the scilab > process uses 2GB of mem. If there are big matrices the scilab process hangs > completely. > > *For 1)* I tried to track it and I could reproduce with a simple example: > the problem occurs when I define a function that uses some graph function. > For example, creating a test.sce file with the following function: > // test.sce > function []=MyTest() > xtitle("Testing save"); > endfunction > > Then in the console: > clear; // just to start from scratch > exec('test.sce', -1); > save('backup.dat'); // this opens the graph window! > > *For 2)*, I'm using stacksize('max') to increase scilab's memory to the > maximum. I checked that saving variables individually (passing their names > to the save function) works fast as expected and scilab does not hang even > when saving big matrices. The problem is that i can not use that solution as > the process creates each time different variables so it is not practical to > name each variable one by one. > > Maybe the problem in 2) is related with 1) but its hard for me to run the > process and not define those functions. > > Is there a way for me to store all this created variables in a file without > these problems? > Maybe solving 1) will fix it. Maybe there is a way to put all the variables > in an array so that save can take that as a parameter. > > Any help would be appreciated! > Thank you very much > > Matias > > PD: I'm using scilab 5.4.1 in Linux. > > > > > > > > > > -- > View this message in context: http://mailinglists.scilab.org/Problems-using-save-tp4031410.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From sgougeon at free.fr Tue Oct 21 21:44:12 2014 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 21 Oct 2014 21:44:12 +0200 Subject: [Scilab-users] Problems using save In-Reply-To: <1413908681513-4031410.post@n3.nabble.com> References: <1413908681513-4031410.post@n3.nabble.com> Message-ID: <5446B78C.4050808@free.fr> Hello, Le 21/10/2014 18:24, Matiasb a ?crit : > Hi, > > After executing a script that creates a lot of variables and big matrices, > I'm trying to make a backup of what it created. A good option would be to > save all variables to a file, as the save > function allows when > a list of variables is not specified. > Something like: save('backup.dat') > > But when I use this function I found 2 problems: > 1) Very strangely, it opens a graph window with some plots. Screenshot: > Selection_420.png > > 2) when there are a lot of variables it takes veeery long, the scilab > process uses 2GB of mem. If there are big matrices the scilab process hangs > completely. > > *For 1)* I tried to track it and I could reproduce with a simple example: > the problem occurs when I define a function that uses some graph function. > For example, creating a test.sce file with the following function: > // test.sce > function []=MyTest() > xtitle("Testing save"); > endfunction > > Then in the console: > clear; // just to start from scratch This leads lower than scratch, rather to ground. > exec('test.sce', -1); > save('backup.dat'); // this opens the graph window! Which Scilab version are you using? If < 5.5.0, i guess that this is due to this bug: http://bugzilla.scilab.org/show_bug.cgi?id=10243, that was fixed in november 2013. In this case, upgrading your Scilab should fix the case you met. > .../... > Is there a way for me to store all this created variables in a file without > these problems? > Maybe solving 1) will fix it. Indeed, may be. Many memory leaks were fixed between Scilab 5.4.1 & 5.5.0 > > PD: I'm using scilab 5.4.1 in Linux. Aa! So: upgrade to 5.5.1! Regards Samuel From somephantastik at gmail.com Tue Oct 21 15:55:09 2014 From: somephantastik at gmail.com (Candio) Date: Tue, 21 Oct 2014 06:55:09 -0700 (PDT) Subject: [Scilab-users] interpreting showprofile results In-Reply-To: <544592B4.6020208@free.fr> References: <1413812899067-4031384.post@n3.nabble.com> <544592B4.6020208@free.fr> Message-ID: <1413899709860-4031409.post@n3.nabble.com> Hi Samuel, Thank you for your reply. I am using SciLab 5.5.1. I will try to multiply the results by 1000; in the meantime, since this bug should be fixed in the version I downloaded, please let me know if there's something else I can do. Candio -- View this message in context: http://mailinglists.scilab.org/interpreting-showprofile-results-tp4031384p4031409.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From somephantastik at gmail.com Tue Oct 21 22:42:42 2014 From: somephantastik at gmail.com (Candio) Date: Tue, 21 Oct 2014 13:42:42 -0700 (PDT) Subject: [Scilab-users] interpreting showprofile results In-Reply-To: <1413899709860-4031409.post@n3.nabble.com> References: <1413812899067-4031384.post@n3.nabble.com> <544592B4.6020208@free.fr> <1413899709860-4031409.post@n3.nabble.com> Message-ID: In the meantime, I did try to multiply by 1000, but it appears that the results are identically equal to 0 - not just off an order of magnitude. format(20); profile(myfun) ans = 0. 0. 0. 0. 0. 0. 0. 0. 4. 0. 0. 4. 0. 0. 4. 0. 0. 4. 0. 0. 4. ans(:,2) = ans(:,2)*1000 ans = 0. 0. 0. 0. 0. 0. 0. 0. 4. 0. 0. 4. 0. 0. 4. 0. 0. 4. 0. 0. 4. 0. 0. 4. -->ans(:,1) ans = 0. 0. 0. 0. 0. 0. 0. Candio On Tue, Oct 21, 2014 at 8:55 AM, Candio [via Scilab / Xcos - Mailing Lists Archives] wrote: > Hi Samuel, > > Thank you for your reply. I am using SciLab 5.5.1. > > I will try to multiply the results by 1000; in the meantime, since this > bug should be fixed in the version I downloaded, please let me know if > there's something else I can do. > > Candio > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://mailinglists.scilab.org/interpreting-showprofile-results-tp4031384p4031409.html > To unsubscribe from interpreting showprofile results, click here > > . > NAML > > -- View this message in context: http://mailinglists.scilab.org/interpreting-showprofile-results-tp4031384p4031415.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From matiasb at gmail.com Wed Oct 22 11:22:25 2014 From: matiasb at gmail.com (Matiasb) Date: Wed, 22 Oct 2014 02:22:25 -0700 (PDT) Subject: [Scilab-users] Problems using save In-Reply-To: <5446B78C.4050808@free.fr> References: <1413908681513-4031410.post@n3.nabble.com> <5446B78C.4050808@free.fr> Message-ID: Thanks Ezequiel! Samuel, you were totally right, so many thanks ;-) Upgrading to 5.5.2 it solved the graphical window and it now allows me to save matrices in the files. Saving work relatively fast and loading afterwards takes quite long (the saved file that is produced is aprox 50MB), but it doesn't seem to be leaking memory any more. Thanks again! Matias On Tue, Oct 21, 2014 at 9:45 PM, Samuel GOUGEON [via Scilab / Xcos - Mailing Lists Archives] wrote: > Hello, > > Le 21/10/2014 18:24, Matiasb a ?crit : > > > Hi, > > > > After executing a script that creates a lot of variables and big > matrices, > > I'm trying to make a backup of what it created. A good option would be > to > > save all variables to a file, as the save > > function allows > when > > a list of variables is not specified. > > Something like: save('backup.dat') > > > > But when I use this function I found 2 problems: > > 1) Very strangely, it opens a graph window with some plots. > Screenshot: > > Selection_420.png > > > > 2) when there are a lot of variables it takes veeery long, the > scilab > > process uses 2GB of mem. If there are big matrices the scilab process > hangs > > completely. > > > > *For 1)* I tried to track it and I could reproduce with a simple > example: > > the problem occurs when I define a function that uses some graph > function. > > For example, creating a test.sce file with the following function: > > // test.sce > > function []=MyTest() > > xtitle("Testing save"); > > endfunction > > > > Then in the console: > > clear; // just to start from scratch > This leads lower than scratch, rather to ground. > > exec('test.sce', -1); > > save('backup.dat'); // this opens the graph window! > Which Scilab version are you using? If < 5.5.0, i guess that this is due > to this bug: > http://bugzilla.scilab.org/show_bug.cgi?id=10243, that was fixed in > november 2013. > In this case, upgrading your Scilab should fix the case you met. > > > .../... > > Is there a way for me to store all this created variables in a file > without > > these problems? > > Maybe solving 1) will fix it. > Indeed, may be. Many memory leaks were fixed between Scilab 5.4.1 & 5.5.0 > > > > PD: I'm using scilab 5.4.1 in Linux. > Aa! So: upgrade to 5.5.1! > > Regards > Samuel > > _______________________________________________ > users mailing list > [hidden email] > http://lists.scilab.org/mailman/listinfo/users > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > http://mailinglists.scilab.org/Problems-using-save-tp4031410p4031413.html > To unsubscribe from Problems using save, click here > > . > NAML > > -- View this message in context: http://mailinglists.scilab.org/Problems-using-save-tp4031410p4031417.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From arvid at softube.com Wed Oct 22 15:38:40 2014 From: arvid at softube.com (=?iso-8859-1?Q?Arvid_Ros=E9n?=) Date: Wed, 22 Oct 2014 13:38:40 +0000 Subject: [Scilab-users] Creating lists in API_Scilab Message-ID: <1413985119883.85524@softube.com> Hi! I am writing a C extension to Scilab which recursively should create a nested list and return it. How can I achieve this? I have read the documentation here: http://help.scilab.org/docs/5.5.1/en_US/section_281790c19f32a08419bf50d192e51020.html? And I still don't understand if I can use these functions to recursively add elements to a list as the program runs. Or should I instead use some kind of internal C representation and just call those list functions just before returning the end result back to Scilab? Best Regards, Arvid -------------- next part -------------- An HTML attachment was scrubbed... URL: From matiasb at gmail.com Wed Oct 22 16:02:01 2014 From: matiasb at gmail.com (Matiasb) Date: Wed, 22 Oct 2014 07:02:01 -0700 (PDT) Subject: [Scilab-users] Saving and Loading big data Message-ID: <1413986521193-4031419.post@n3.nabble.com> Hi, Just yesterday I solved some issues I was experiencing with the save function by upgrading to scilab 5.5.1 as suggested by Samuel in this thread . Now, being able to save all the environment variables, I'm experiencing the next problem when there is a lot of data to be saved/loaded. The first one to have problems is the load function. My script created several (aprox 200) big matrices and when they are saved they produce a 850MB file. The save function works well in this case, but when I try to load the variables back again scilab runs out of memory as shown below. If the scripts creates even bigger matrices, scilab can handle them, but when I try calling save it does not work (also the problematic code below). Scilab can handle these big matrices, but is there anything I can do to make a reliable backup of them? For example increasing scilab's stacksize even more (which it states its maximum is 268435455, but my PC has more RAM can be used). Or using save/load in a more efficient way so that they don't require so much extra memory in the stack. Any help would be appreciated. Thanks you very much! Code samples *Load* I make the backup as follows: --> stacksize('max') // increase scilab memory --> save('bigFile.sod') And when I load the backup again I get the following error: --> stacksize('max') // increase scilab memory --> load('bigFile.sod) * !--error 17 stack size exceeded! Use stacksize function to increase it. Memory used for variables: 90307998 Intermediate memory needed: 180528916 Total memory available: 268435455 at line 971 of function %_sodload called by : load('ScilabLogs/local_39DCM_100HZ_20141022_142845.sod')* Just to get an idea of the amout of variables and sizes: --> [names, typs, dims, vols] = listvarinfile('ScilabLogs/local_39DCM_100HZ_20141022_142845.sod'); --> size(names) --> 237 --> sum(vols) --> 8.920D+08 Some of the matrices are big: Name Type Size Bytes -------------------------------------------------------------------------------------------------------- CoreSwitchQueueR_discard constant 9 by 1136546 81831328 CoreSwitchQueueR_queueLe constant 9 by 1136546 81831328 CoreSwitchQueueR_t constant 9 by 1136546 81831328 CoreSwitchQueueR_waittim constant 9 by 1136546 81831328 *save* When make the backup I get the following error : --> stacksize('max') // increase scilab memory --> save('bigFile.sod') *stack size exceeded! Use stacksize function to increase it. Memory used for variables: 235237999 Intermediate memory needed: 44657871 Total memory available: 268435455 at line 71 of function evstr called by : at line 1003 of function %_save called by : save(backupDirectory + logFileName + '.sod'); // saving all variables !--error 4 Undefined variable: %val* The output from 'whos' shows that there are huge matrices, but I can manipulate them without problem as long as I dont call save. --> whos Name Type Size Bytes ---------------------------------------------------------------------------- ..... RejectedEv_arrived constant 15 by 29935 3592216 RejectedEv_evBuiltLatenc constant 15 by 29935 3592216 RejectedEv_L2Latency constant 15 by 29935 3592216 RejectedEv_packetLatency constant 15 by 29935 3592216 RejectedEv_roundTripLate constant 15 by 29935 3592216 RejectedEv_t constant 15 by 29935 3592216 HLTSV_idlePUs constant 15 by 59872 7184656 HLTSV_queuedEventsToSend constant 15 by 59872 7184656 HLTSV_sent constant 15 by 59872 7184656 HLTSV_t constant 15 by 59872 7184656 coreSwitchQueueCapacity constant 1 by 1 24 CoreSwitchQueueR_discard constant 8 by 5582233 3.573D+08 CoreSwitchQueueR_queueLe constant 8 by 5582233 3.573D+08 CoreSwitchQueueR_t constant 9 by 5582233 4.019D+08 CoreSwitchQueueR_waittim constant 8 by 5582233 3.573D+08 ..... -- View this message in context: http://mailinglists.scilab.org/Saving-and-Loading-big-data-tp4031419.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Wed Oct 22 16:29:26 2014 From: sgougeon at free.fr (sgougeon at free.fr) Date: Wed, 22 Oct 2014 16:29:26 +0200 (CEST) Subject: [Scilab-users] interpreting showprofile results In-Reply-To: Message-ID: <1945832528.24167748.1413988166739.JavaMail.root@zimbra75-e12.priv.proxad.net> Hello Candio, I just caught it: add_profile() prepares the function to profiling. But then, the profile is really set when calling the function. Each new call cumulates the execution time and occurrence numbers for each line. In your case, you did not call the function at all before asking to display its profile. After add_profile, and before any profile display (profile, showprofile, ..), just call the function ; actually execute it. Then, you will see its profile actualized with non-null results. Regards Samuel ----- Mail original ----- De: "Candio" ?: users at lists.scilab.org Envoy?: Mardi 21 Octobre 2014 22:42:42 Objet: Re: [Scilab-users] interpreting showprofile results In the meantime, I did try to multiply by 1000, but it appears that the results are identically equal to 0 - not just off an order of magnitude. format(20); profile(myfun) ans = 0. 0. 0. 0. 0. 0. 0. 0. 4. 0. 0. 4. 0. 0. 4. 0. 0. 4. 0. 0. 4. ans(:,2) = ans(:,2)*1000 ans = 0. 0. 0. 0. 0. 0. 0. 0. 4. 0. 0. 4. 0. 0. 4. 0. 0. 4. 0. 0. 4. 0. 0. 4. -->ans(:,1) ans = 0. 0. 0. 0. 0. 0. 0. Candio On Tue, Oct 21, 2014 at 8:55 AM, Candio [via Scilab / Xcos - Mailing Lists Archives] < [hidden email] > wrote: Hi Samuel, Thank you for your reply. I am using SciLab 5.5.1. I will try to multiply the results by 1000; in the meantime, since this bug should be fixed in the version I downloaded, please let me know if there's something else I can do. Candio If you reply to this email, your message will be added to the discussion below: http://mailinglists.scilab.org/interpreting-showprofile-results-tp4031384p4031409.html To unsubscribe from interpreting showprofile results, click here . NAML View this message in context: Re: interpreting showprofile results Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From Serge.Steer at inria.fr Wed Oct 22 21:21:43 2014 From: Serge.Steer at inria.fr (Serge Steer) Date: Wed, 22 Oct 2014 21:21:43 +0200 Subject: [Scilab-users] Problem with partial fraction decomposition (dfss) In-Reply-To: <002a01cfed16$cc3c96e0$64b5c4a0$@gmail.com> References: <1413187942099-4031331.post@n3.nabble.com> <543D0A95.5040609@inria.fr> <002a01cfed16$cc3c96e0$64b5c4a0$@gmail.com> Message-ID: <544803C7.8040206@inria.fr> Now you are using a too big value for rmax -->pf = pfss(h) pf = pf(1) 0.75 - 0.25s ------------ 2 1 - 2s + s pf(2) 0.25 ---- 1 + s Some explanation pfss converts the transfer function to state space representation and then trie to diagonalize the state matrix using the bdiag function -->S=tf2ss(h); -->bdiag(S.A) ans = 1.0000000 - 1.2247449 0. 0. 1. 0. 0. 0. - 1. You can see with result above that there is a 2 by 2 jordan block (for the eigenvalue 1) which exhibits a coupling between the two states Now with -->bdiag(S.A,1/%eps) ans = 1.0000000 0. 0. 0. 1. 0. 0. 0. - 1. The Jordan block has been broken [Ab,X]=bdiag(S.A,1/%eps);cond(X) ans = 5.074D+14 bdiag has broken the jordan block using a singular "base change" so the decomposition is a non-sense. Serge Steer Le 21/10/2014 12:07, Tin Nguyen a ?crit : > Dear Serge Steer, > Thank you very much for your response. Your code works fine. > However, I still have some problem with this pfss function. For example, I > try to decompose a fractional polynomial that has multi-order poles. > H(z) = 1 / { (1-s)^2 * (1+s) } > > You can find following from my console: > -->s = poly(0,'s'); > > -->h = 1 / ( (1 + s) * (1 - s)^2) > h = > > 1 > ------------- > 2 3 > 1 - s - s + s > > -->pf = pfss(h, 1/%eps) > pf = > > > pf(1) > > - 9420237.9 > ------------- > - 1.0000000 + s > > pf(2) > > 9420237.6 > --------- > - 1 + s > > pf(3) > > 0.25 > ---- > 1 + s > > I also checked: > -->pf(1)+pf(2) > ans = > > 0.75 - 0.25s > ------------ > 2 > 1 - 2s + s > > I have no idea about this situation. > Can you help me out! Thank you in advance! > > --Tin Nguyen > > -----Original Message----- > From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Serge Steer > Sent: Tuesday, October 14, 2014 6:36 PM > To: users at lists.scilab.org > Subject: Re: [Scilab-users] Problem with partial fraction decomposition > (dfss) > > You just need to tune the rmax optionnal parameter pf = > pfss(tf2ss(hz),5);length(pf) > > Serge Steer > Le 13/10/2014 10:12, tinnguyen a ?crit : >> Hi guys, >> I'm having trouble using scilab's function pfss to decompose a >> polynomial in order to do inverse Z transform. Following is my code: >> --> z = poly(0,'z') >> --> hz = z^2 / (1 - 6*z + 11*z^2 - 6*z^3) pf = pfss(tf2ss(hz)) >> --> length(pf) >> The fourth command returns '1'. However, I believe it should be 3. I >> also did the decomposition manually and got the result as: hz = >> 0.5/(1-z) + -1 / >> (1-2*z) + 0.5/(1-3*z). >> Nevertheless, if I change the numerator of hz from z^2 to z or z^3, >> pfss works correctly. I definitely have no idea!!!? :D Please take a >> look and correct me if i'm wrong. >> Thank you so much! >> >> >> >> >> -- >> View this message in context: >> http://mailinglists.scilab.org/Problem-with-partial-fraction-decomposi >> tion-dfss-tp4031331.html Sent from the Scilab users - Mailing Lists >> Archives mailing list archive at Nabble.com. >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From somephantastik at gmail.com Wed Oct 22 16:45:06 2014 From: somephantastik at gmail.com (Candio) Date: Wed, 22 Oct 2014 07:45:06 -0700 (PDT) Subject: [Scilab-users] interpreting showprofile results In-Reply-To: <1945832528.24167748.1413988166739.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <1413812899067-4031384.post@n3.nabble.com> <544592B4.6020208@free.fr> <1413899709860-4031409.post@n3.nabble.com> <1945832528.24167748.1413988166739.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: Hi Samuel, It works beautifully now; thank you for helping me understand how to use the profiling functions correctly. Candio On Wed, Oct 22, 2014 at 9:30 AM, Samuel GOUGEON [via Scilab / Xcos - Mailing Lists Archives] wrote: > Hello Candio, > I just caught it: add_profile() prepares the function to profiling. But > then, the profile is really set when calling the function. Each new call > cumulates the execution time and occurrence numbers for each line. In your > case, you did not call the function at all before asking to display its > profile. After add_profile, and before any profile display (profile, > showprofile, ..), just call the function ; actually execute it. Then, you > will see its profile actualized with non-null results. > Regards > Samuel > > ----- Mail original ----- > De: "Candio" <[hidden email] > > > ?: [hidden email] > Envoy?: Mardi 21 Octobre 2014 22:42:42 > Objet: Re: [Scilab-users] interpreting showprofile results > > > In the meantime, I did try to multiply by 1000, but it appears that the > results are identically equal to 0 - not just off an order of magnitude. > > format(20); > profile(myfun) > ans = > > 0. 0. 0. > 0. 0. 0. > 0. 0. 4. > 0. 0. 4. > 0. 0. 4. > 0. 0. 4. > 0. 0. 4. > > ans(:,2) = ans(:,2)*1000 > ans = > > 0. 0. 0. > 0. 0. 0. > 0. 0. 4. > 0. 0. 4. > 0. 0. 4. > 0. 0. 4. > 0. 0. 4. > 0. 0. 4. > > > -->ans(:,1) > ans = > > 0. > 0. > 0. > 0. > 0. > 0. > 0. > > > Candio > > On Tue, Oct 21, 2014 at 8:55 AM, Candio [via Scilab / Xcos - Mailing Lists > Archives] < [hidden email] > wrote: > > > Hi Samuel, > > Thank you for your reply. I am using SciLab 5.5.1. > > I will try to multiply the results by 1000; in the meantime, since this > bug should be fixed in the version I downloaded, please let me know if > there's something else I can do. > > Candio > > > > > If you reply to this email, your message will be added to the discussion > below: > http://mailinglists.scilab.org/interpreting-showprofile-results-tp4031384p4031409.html > > > > To unsubscribe from interpreting showprofile results, click here . > NAML > > > View this message in context: Re: interpreting showprofile results > Sent from the Scilab users - Mailing Lists Archives mailing list archive > at Nabble.com. > > _______________________________________________ > users mailing list > [hidden email] > http://lists.scilab.org/mailman/listinfo/users > _______________________________________________ > users mailing list > [hidden email] > http://lists.scilab.org/mailman/listinfo/users > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://mailinglists.scilab.org/interpreting-showprofile-results-tp4031384p4031420.html > To unsubscribe from interpreting showprofile results, click here > > . > NAML > > -- View this message in context: http://mailinglists.scilab.org/interpreting-showprofile-results-tp4031384p4031421.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tanthiamhuat at yahoo.com Thu Oct 23 08:52:11 2014 From: tanthiamhuat at yahoo.com (tanthiamhuat) Date: Wed, 22 Oct 2014 23:52:11 -0700 (PDT) Subject: [Scilab-users] GPU in Scilab Message-ID: <1414047131823-4031427.post@n3.nabble.com> I had wanted to try some GPU code in Scilab... from http://wiki.scilab.org/Documentation/ParallelComputingInScilab stacksize('max'); // Init host data (CPU) A = rand(1000,1000); B = rand(1000,1000); C = rand(1000,1000); // Set host data on the Device (GPU) dA = gpuSetData(A); dC = gpuSetData(C); d1 = gpuMult(A,B); d2 = gpuMult(dA,dC); d3 = gpuMult(d1,d2); result = gpuGetData(d3); // Get result on host // Free device memory dA = gpuFree(dA); dC = gpuFree(dC); d1 = gpuFree(d1); d2 = gpuFree(d2); d3 = gpuFree(d3); even after installation of CUDA Toolkit 6.5, as shown in the screen capture below, it says: atomsLoad: An error occurred while loading 'sciGPGPU-2.0-0': Please install CUDA Toolkit 3.2 or more. Screen capture: -- View this message in context: http://mailinglists.scilab.org/GPU-in-Scilab-tp4031427.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From mazue.quentin at gmail.com Thu Oct 23 10:01:05 2014 From: mazue.quentin at gmail.com (=?UTF-8?Q?Quentin_Mazu=C3=A9?=) Date: Thu, 23 Oct 2014 01:01:05 -0700 (PDT) Subject: [Scilab-users] Gui load data inside a function and keep them In-Reply-To: <1412949350416-4031327.post@n3.nabble.com> References: <1412949350416-4031327.post@n3.nabble.com> Message-ID: <1414051265197-4031428.post@n3.nabble.com> Hello, I found a solution for this problem : At then end of the button 1 callback, I save all variables on my disk with save function At the beginning of button 2 callback, I load these variables. -- View this message in context: http://mailinglists.scilab.org/Gui-load-data-inside-a-function-and-keep-them-tp4031327p4031428.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From stephane.mottelet at utc.fr Thu Oct 23 11:30:28 2014 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Thu, 23 Oct 2014 11:30:28 +0200 Subject: [Scilab-users] problem with margins and subplots Message-ID: <5448CAB4.3050102@utc.fr> Hello all, Since 5.5.0 version, there is extra space used for 3D plots with isoview scaling. Here is a small script (and the resulting screenshots attached) to illustrate this : set(gcf(),'axes_size',[800 400]) x=-1:0.1:1; subplot(1,2,1) mesh(x,x,x'*x) set(gca(),'isoview','on') subplot(1,2,2) mesh(x,x,x'*x) set(gca(),'isoview','on') Besides the fact that the result is really ugly, this is an annoying regression (reported here http://bugzilla.scilab.org/show_bug.cgi?id=13640) S. -------------- next part -------------- A non-text attachment was scrubbed... Name: sshot.5.4.1.png Type: image/png Size: 72031 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: sshot.5.5.1.png Type: image/png Size: 57352 bytes Desc: not available URL: From cedric.delamarre at scilab-enterprises.com Thu Oct 23 12:10:50 2014 From: cedric.delamarre at scilab-enterprises.com (Cedric Delamarre) Date: Thu, 23 Oct 2014 12:10:50 +0200 Subject: [Scilab-users] GPU in Scilab In-Reply-To: <1414047131823-4031427.post@n3.nabble.com> References: <1414047131823-4031427.post@n3.nabble.com> Message-ID: <1414059050.9953.19.camel@blink> Hi, The problem is that Nvidia have change the environment variable. I've two solutions for you : First, try to add new enviromnent variable named CUDA_BIN_PATH with value %CUDA_PATH%\bin but sciGPGPU have been build with cuda toolkit v4.0, so this will fix the error about toolkit version but you could have an other link error. Second, you should try to install cuda toolkit v4.0. You can have multiple cuda toolkit installed in your system. regards, Le mercredi 22 octobre 2014 ? 23:52 -0700, tanthiamhuat a ?crit : > I had wanted to try some GPU code in Scilab... > from http://wiki.scilab.org/Documentation/ParallelComputingInScilab > stacksize('max'); > // Init host data (CPU) > A = rand(1000,1000); > B = rand(1000,1000); > C = rand(1000,1000); > > // Set host data on the Device (GPU) > dA = gpuSetData(A); > dC = gpuSetData(C); > > d1 = gpuMult(A,B); > d2 = gpuMult(dA,dC); > d3 = gpuMult(d1,d2); > result = gpuGetData(d3); // Get result on host > > // Free device memory > dA = gpuFree(dA); > dC = gpuFree(dC); > d1 = gpuFree(d1); > d2 = gpuFree(d2); > d3 = gpuFree(d3); > > even after installation of CUDA Toolkit 6.5, as shown in the screen capture > below, it says: > atomsLoad: An error occurred while loading 'sciGPGPU-2.0-0': > Please install CUDA Toolkit 3.2 or more. > > Screen capture: > > > > > -- > View this message in context: http://mailinglists.scilab.org/GPU-in-Scilab-tp4031427.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- C?dric DELAMARRE Software Development Engineer ------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.70 http://www.scilab-enterprises.com ------------------------------------------- From antoine.monmayrant at laas.fr Thu Oct 23 12:29:33 2014 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Thu, 23 Oct 2014 12:29:33 +0200 Subject: [Scilab-users] Saving and Loading big data In-Reply-To: <1413986521193-4031419.post@n3.nabble.com> References: <1413986521193-4031419.post@n3.nabble.com> Message-ID: <5448D88D.5050503@laas.fr> On 10/22/2014 04:02 PM, Matiasb wrote: > Hi, > > Just yesterday I solved some issues I was experiencing with the save > function by upgrading to scilab 5.5.1 as suggested by Samuel in this thread > . > > Now, being able to save all the environment variables, I'm experiencing the > next problem when there is a lot of data to be saved/loaded. > > The first one to have problems is the load function. My script created > several (aprox 200) big matrices and when they are saved they produce a > 850MB file. The save function works well in this case, but when I try to > load the variables back again scilab runs out of memory as shown below. If > the scripts creates even bigger matrices, scilab can handle them, but when I > try calling save it does not work (also the problematic code below). > > Scilab can handle these big matrices, but is there anything I can do to make > a reliable backup of them? > For example increasing scilab's stacksize even more (which it states its > maximum is 268435455, but my PC has more RAM can be used). Or using > save/load in a more efficient way so that they don't require so much extra > memory in the stack. > > Any help would be appreciated. > Thanks you very much! > > Code samples Hi, I experienced similar issues when trying to save/load big data. 1) save/load do not seem to be really efficient and it looks like they create copies of variables to save/load. As a result, if a matrix uses more than 50% of the available stack, load tend to fail: %%% -->n=2250,a=zeros(n,n);s=stacksize();s(2)/s(1) n = 2250. ans = 0.5071616 % a is using a bit more than 50% of the stack -->save('/tmp/a.sod','a') %val=[a; !--error 17 stack size exceeded! Use stacksize function to increase it. Memory used for variables: 5094842 Intermediate memory needed: 5062522 Total memory available: 10000000 in execstr instruction called by : at line 35 of function evstr called by : at line 1003 of function %_save called by : save('/tmp/a.sod','a') %%% if we increase the stack, it works: -->stacksize('max') -->save('/tmp/a.sod','a') What's worse, load seem to try to allocate memory without checking allocation was successful: %%% scilab restarted with the default stacksize -->load('/tmp/a.sod') !--error 42 A fatal error has been detected by Scilab. Your instance will probably quit unexpectedly soon. %%% 2) when trying to load huge sod file, you can try to load saved variables one by one instead of all of them at once. Hope it helps, Antoine > > *Load* > I make the backup as follows: > --> stacksize('max') // increase scilab memory > --> save('bigFile.sod') > > And when I load the backup again I get the following error: > --> stacksize('max') // increase scilab memory > --> load('bigFile.sod) > * !--error 17 > stack size exceeded! > Use stacksize function to increase it. > Memory used for variables: 90307998 > Intermediate memory needed: 180528916 > Total memory available: 268435455 > at line 971 of function %_sodload called by : > load('ScilabLogs/local_39DCM_100HZ_20141022_142845.sod')* > > Just to get an idea of the amout of variables and sizes: > --> [names, typs, dims, vols] = > listvarinfile('ScilabLogs/local_39DCM_100HZ_20141022_142845.sod'); > --> size(names) --> 237 > --> sum(vols) --> 8.920D+08 > > Some of the matrices are big: > Name Type Size Bytes > -------------------------------------------------------------------------------------------------------- > CoreSwitchQueueR_discard constant 9 by 1136546 81831328 > CoreSwitchQueueR_queueLe constant 9 by 1136546 81831328 > CoreSwitchQueueR_t constant 9 by 1136546 81831328 > CoreSwitchQueueR_waittim constant 9 by 1136546 81831328 > > > *save* > When make the backup I get the following error : > --> stacksize('max') // increase scilab memory > --> save('bigFile.sod') > *stack size exceeded! > Use stacksize function to increase it. > Memory used for variables: 235237999 > Intermediate memory needed: 44657871 > Total memory available: 268435455 > at line 71 of function evstr called by : > at line 1003 of function %_save called by : > save(backupDirectory + logFileName + '.sod'); // saving all variables > > !--error 4 > Undefined variable: %val* > > The output from 'whos' shows that there are huge matrices, but I can > manipulate them without problem as long as I dont call save. > --> whos > Name Type Size Bytes > ---------------------------------------------------------------------------- > ..... > RejectedEv_arrived constant 15 by 29935 3592216 > RejectedEv_evBuiltLatenc constant 15 by 29935 3592216 > RejectedEv_L2Latency constant 15 by 29935 3592216 > RejectedEv_packetLatency constant 15 by 29935 3592216 > RejectedEv_roundTripLate constant 15 by 29935 3592216 > RejectedEv_t constant 15 by 29935 3592216 > HLTSV_idlePUs constant 15 by 59872 7184656 > HLTSV_queuedEventsToSend constant 15 by 59872 7184656 > HLTSV_sent constant 15 by 59872 7184656 > HLTSV_t constant 15 by 59872 7184656 > coreSwitchQueueCapacity constant 1 by 1 24 > CoreSwitchQueueR_discard constant 8 by 5582233 3.573D+08 > CoreSwitchQueueR_queueLe constant 8 by 5582233 3.573D+08 > CoreSwitchQueueR_t constant 9 by 5582233 4.019D+08 > CoreSwitchQueueR_waittim constant 8 by 5582233 3.573D+08 > ..... > > > > -- > View this message in context: http://mailinglists.scilab.org/Saving-and-Loading-big-data-tp4031419.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From antoine.monmayrant at laas.fr Thu Oct 23 13:01:29 2014 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Thu, 23 Oct 2014 13:01:29 +0200 Subject: [Scilab-users] Saving and Loading big data In-Reply-To: <1413986521193-4031419.post@n3.nabble.com> References: <1413986521193-4031419.post@n3.nabble.com> Message-ID: <5448E009.2020309@laas.fr> For information, I filled a bug about 'load' crashing scilab when trying to load a big matrix from a sod file: http://bugzilla.scilab.org/show_bug.cgi?id=13641 Cheers, Antoine From matiasb at gmail.com Thu Oct 23 17:23:52 2014 From: matiasb at gmail.com (Matiasb) Date: Thu, 23 Oct 2014 08:23:52 -0700 (PDT) Subject: [Scilab-users] Saving and Loading big data In-Reply-To: <5448E009.2020309@laas.fr> References: <1413986521193-4031419.post@n3.nabble.com> <5448E009.2020309@laas.fr> Message-ID: <1414077832579-4031433.post@n3.nabble.com> Thanks Antoine! yes, that is exactly the problem I'm experiencing. For the time being, I'm trying to do some ugly stuff with 'listvarinfile' and 'eval' to load variables one by one. Same for the save, saving variables into different files one by one helps (not if the problematic variable is only one of course). Hope this gets solved soon or I will have to move to another platform (maybe ROOT) to handle big data. Cheers! -- View this message in context: http://mailinglists.scilab.org/Saving-and-Loading-big-data-tp4031419p4031433.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From somephantastik at gmail.com Thu Oct 23 18:11:13 2014 From: somephantastik at gmail.com (Candio) Date: Thu, 23 Oct 2014 09:11:13 -0700 (PDT) Subject: [Scilab-users] ?E embedded scilab function in XCOS Message-ID: <1414080673193-4031434.post@n3.nabble.com> Hello, I am looking to reflect in XCOS (Scilab 5.5.1) the Simulink EML block. I cannot find a way to include embedded scilab code. I see a scilab function can be called if it is loaded into the workspace, but this isn't quite what I'm looking for. Does there exist a way to include embedded scilab code in XCOS? It looks like my question might be answered here; unfortunately I can't read German. http://www.gomatlab.de/embedded-function-block-in-scicos-scilab-t14301.html Candio -- View this message in context: http://mailinglists.scilab.org/E-embedded-scilab-function-in-XCOS-tp4031434.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Serge.Steer at inria.fr Thu Oct 23 18:33:37 2014 From: Serge.Steer at inria.fr (Serge Steer) Date: Thu, 23 Oct 2014 18:33:37 +0200 Subject: [Scilab-users] ?E embedded scilab function in XCOS In-Reply-To: <1414080673193-4031434.post@n3.nabble.com> References: <1414080673193-4031434.post@n3.nabble.com> Message-ID: <54492DE1.8020109@inria.fr> The scifun_block (in the user defined functions palette) may be what you are looking for. Serge Steer Le 23/10/2014 18:11, Candio a ?crit : > Hello, > > I am looking to reflect in XCOS (Scilab 5.5.1) the Simulink EML block. I > cannot find a way to include embedded scilab code. I see a scilab function > can be called if it is loaded into the workspace, but this isn't quite what > I'm looking for. Does there exist a way to include embedded scilab code in > XCOS? > > It looks like my question might be answered here; unfortunately I can't read > German. > http://www.gomatlab.de/embedded-function-block-in-scicos-scilab-t14301.html > > > Candio > > > > -- > View this message in context: http://mailinglists.scilab.org/E-embedded-scilab-function-in-XCOS-tp4031434.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From somephantastik at gmail.com Thu Oct 23 21:55:57 2014 From: somephantastik at gmail.com (Candio) Date: Thu, 23 Oct 2014 12:55:57 -0700 (PDT) Subject: [Scilab-users] Iterator in XCOS? In-Reply-To: <1404987693.2194.8.camel@paros> References: <1404314522428-4030813.post@n3.nabble.com> <1404748695.2055.39.camel@paros> <1404897628169-4030867.post@n3.nabble.com> <1404987693.2194.8.camel@paros> Message-ID: <1414094157164-4031436.post@n3.nabble.com> Hello, I don't understand the solution to this question. It appears the for/while iterator blocks have been removed in XCOS; however I don't understand the proposed work-around. Can you please clarify? Candice -- View this message in context: http://mailinglists.scilab.org/Iterator-in-XCOS-tp4030813p4031436.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From antoine.monmayrant at laas.fr Fri Oct 24 09:45:42 2014 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Fri, 24 Oct 2014 09:45:42 +0200 Subject: [Scilab-users] Saving and Loading big data In-Reply-To: <1414077832579-4031433.post@n3.nabble.com> References: <1413986521193-4031419.post@n3.nabble.com> <5448E009.2020309@laas.fr> <1414077832579-4031433.post@n3.nabble.com> Message-ID: <544A03A6.9040502@laas.fr> On 10/23/2014 05:23 PM, Matiasb wrote: > Thanks Antoine! yes, that is exactly the problem I'm experiencing. > > For the time being, I'm trying to do some ugly stuff with 'listvarinfile' > and 'eval' to load variables one by one. Same for the save, saving variables > into different files one by one helps (not if the problematic variable is > only one of course). Other possibility, split your big data in smaller chunks: a_1=a(1:$/2); a_2=a($/2+1:$); save('a_1.sod','a_1'); save('a_2.sod','a_2'); > > Hope this gets solved soon or I will have to move to another platform (maybe > ROOT) to handle big data. Arggh, no, don't. And if you do, have a look at julia (julialang.org). Antoine > > Cheers! > > > > > > -- > View this message in context: http://mailinglists.scilab.org/Saving-and-Loading-big-data-tp4031419p4031433.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche BP 54200 31031 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoine.monmayrant at laas.fr permanent email : antoine.monmayrant at polytechnique.org +++++++++++++++++++++++++++++++++++++++++++++++++++++++ From carlos at fisica.ufpr.br Fri Oct 24 16:51:57 2014 From: carlos at fisica.ufpr.br (Carlos Carvalho) Date: Fri, 24 Oct 2014 12:51:57 -0200 Subject: [Scilab-users] plotting crashes all over java Message-ID: <20141024145157.GA30297@fisica.ufpr.br> I've just installed scilab 5.5.1-1 on a Debian linux sid (unstable) machine, fully updated. When trying the following x=0:0.001:10; y=sin(x); plot(x,y) I get this flurry of errors: java.lang.reflect.InvocationTargetException at java.awt.EventQueue.invokeAndWait(EventQueue.java:1276) at java.awt.EventQueue.invokeAndWait(EventQueue.java:1251) at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1347) at org.scilab.modules.gui.SwingView.updateObject(Unknown Source) at org.scilab.modules.graphic_objects.graphicController.GraphicController$2.run(Unknown Source) at org.scilab.modules.graphic_objects.graphicController.GraphicController.objectUpdate(Unknown Source) at org.scilab.modules.graphic_objects.graphicController.GraphicController.setGraphicObjectRelationship(Unknown Source) at org.scilab.modules.graphic_objects.builder.Builder.cloneAxesModel(Unknown Source) at org.scilab.modules.graphic_objects.builder.Builder.createNewFigureWithAxes(Unknown Source) Caused by: javax.media.opengl.GLException: Profile GL_DEFAULT is not available on X11GraphicsDevice[type .x11, connection localhost:15.0, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x607ed9a5, isOwner false, <28031121, 6159a20c>[count 0, qsz 0, owner ]]], but: [] at javax.media.opengl.GLProfile.get(GLProfile.java:962) at javax.media.opengl.GLProfile.getDefault(GLProfile.java:693) at javax.media.opengl.awt.GLJPanel.(GLJPanel.java:358) at javax.media.opengl.awt.GLJPanel.(GLJPanel.java:332) at javax.media.opengl.awt.GLJPanel.(GLJPanel.java:320) at org.scilab.modules.gui.bridge.canvas.SwingScilabCanvasImpl$SafeGLJPanel.(Unknown Source) at org.scilab.modules.gui.bridge.canvas.SwingScilabCanvasImpl$SafeGLJPanel.(Unknown Source) at org.scilab.modules.gui.bridge.canvas.SwingScilabCanvasImpl.createOpenGLComponent(Unknown Source) at org.scilab.modules.gui.bridge.canvas.SwingScilabCanvas.(Unknown Source) at org.scilab.modules.gui.bridge.tab.SwingScilabDockablePanel.addMember(Unknown Source) at org.scilab.modules.gui.SwingView.updateFigureChildren(Unknown Source) at org.scilab.modules.gui.SwingView.updateObjectOnEDT(Unknown Source) at org.scilab.modules.gui.SwingView$4.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:302) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733) at java.awt.EventQueue.access$200(EventQueue.java:103) at java.awt.EventQueue$3.run(EventQueue.java:694) at java.awt.EventQueue$3.run(EventQueue.java:692) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:703) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.run(EventDispatchThread.java:91) Any idea about what's wrong? The display is not on the machine running scilab, it's a remote X display. From somephantastik at gmail.com Fri Oct 24 18:46:56 2014 From: somephantastik at gmail.com (Candio) Date: Fri, 24 Oct 2014 09:46:56 -0700 (PDT) Subject: [Scilab-users] Iterator in XCOS? In-Reply-To: <1414094157164-4031436.post@n3.nabble.com> References: <1404314522428-4030813.post@n3.nabble.com> <1404748695.2055.39.camel@paros> <1404897628169-4030867.post@n3.nabble.com> <1404987693.2194.8.camel@paros> <1414094157164-4031436.post@n3.nabble.com> Message-ID: <1414169216277-4031441.post@n3.nabble.com> For anybody who might be interested in the future, here is how I brought the iterators palette into scilab 5.5.1: Get the source code for the Iterators palette. I had previously downloaded Scicoslab 4.4.1, so I went into the folder \scicoslab-4.4.1\macros\scicos_blocks\Iterators Copy the whole folder (Iterators) to \scilab-5.5.1\modules\scicos_blocks\macros add the iterators library: SCI=getenv('SCI') genlib('scsiteratorslib','SCI/macros/scicos_blocks/Iterators') add the palette as described above: interfaces = ["BIGSOM_f" "RAMP" "ForIterator"]; pal = xcosPal('Iterators'); for i=1:size(interfaces, '*') pal = xcosPalAddBlock(pal, interfaces(i)); end xcosPalAdd(pal) If there exists a better way, I'd love to hear it. Regards, Candio -- View this message in context: http://mailinglists.scilab.org/Iterator-in-XCOS-tp4030813p4031441.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From antoine.monmayrant at laas.fr Mon Oct 27 13:07:47 2014 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Mon, 27 Oct 2014 13:07:47 +0100 Subject: [Scilab-users] plotting crashes all over java In-Reply-To: <20141024145157.GA30297@fisica.ufpr.br> References: <20141024145157.GA30297@fisica.ufpr.br> Message-ID: <544E3593.5040808@laas.fr> On 10/24/2014 04:51 PM, Carlos Carvalho wrote: > I've just installed scilab 5.5.1-1 on a Debian linux sid (unstable) machine, > fully updated. When trying the following > > x=0:0.001:10; > y=sin(x); > plot(x,y) > > I get this flurry of errors: > > java.lang.reflect.InvocationTargetException > at java.awt.EventQueue.invokeAndWait(EventQueue.java:1276) > at java.awt.EventQueue.invokeAndWait(EventQueue.java:1251) > at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1347) > at org.scilab.modules.gui.SwingView.updateObject(Unknown Source) > at org.scilab.modules.graphic_objects.graphicController.GraphicController$2.run(Unknown Source) > at org.scilab.modules.graphic_objects.graphicController.GraphicController.objectUpdate(Unknown Source) > at org.scilab.modules.graphic_objects.graphicController.GraphicController.setGraphicObjectRelationship(Unknown Source) > at org.scilab.modules.graphic_objects.builder.Builder.cloneAxesModel(Unknown Source) > at org.scilab.modules.graphic_objects.builder.Builder.createNewFigureWithAxes(Unknown Source) > Caused by: javax.media.opengl.GLException: Profile GL_DEFAULT is not available on X11GraphicsDevice[type .x11, connection localhost:15.0, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x607ed9a5, isOwner false, <28031121, 6159a20c>[count 0, qsz 0, owner ]]], but: [] > at javax.media.opengl.GLProfile.get(GLProfile.java:962) > at javax.media.opengl.GLProfile.getDefault(GLProfile.java:693) > at javax.media.opengl.awt.GLJPanel.(GLJPanel.java:358) > at javax.media.opengl.awt.GLJPanel.(GLJPanel.java:332) > at javax.media.opengl.awt.GLJPanel.(GLJPanel.java:320) > at org.scilab.modules.gui.bridge.canvas.SwingScilabCanvasImpl$SafeGLJPanel.(Unknown Source) > at org.scilab.modules.gui.bridge.canvas.SwingScilabCanvasImpl$SafeGLJPanel.(Unknown Source) > at org.scilab.modules.gui.bridge.canvas.SwingScilabCanvasImpl.createOpenGLComponent(Unknown Source) > at org.scilab.modules.gui.bridge.canvas.SwingScilabCanvas.(Unknown Source) > at org.scilab.modules.gui.bridge.tab.SwingScilabDockablePanel.addMember(Unknown Source) > at org.scilab.modules.gui.SwingView.updateFigureChildren(Unknown Source) > at org.scilab.modules.gui.SwingView.updateObjectOnEDT(Unknown Source) > at org.scilab.modules.gui.SwingView$4.run(Unknown Source) > at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:302) > at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733) > at java.awt.EventQueue.access$200(EventQueue.java:103) > at java.awt.EventQueue$3.run(EventQueue.java:694) > at java.awt.EventQueue$3.run(EventQueue.java:692) > at java.security.AccessController.doPrivileged(Native Method) > at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) > at java.awt.EventQueue.dispatchEvent(EventQueue.java:703) > at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) > at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) > at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) > at java.awt.EventDispatchThread.run(EventDispatchThread.java:91) > > Any idea about what's wrong? The display is not on the machine running scilab, > it's a remote X display. Well, that might be the problem. Scilab seems to easily trigger bugs in the graphic drivers. I had mixed results when running scilab and X on different machines. It's usually fine when both remote and local machines have the same hardware and software stacks. But calling scilab on a Centos machine from an Ubuntu one only worked without graphics ( -nw or -nogui ) for me. Antoine > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From aadhyaarini at gmail.com Mon Oct 27 16:28:07 2014 From: aadhyaarini at gmail.com (aarini) Date: Mon, 27 Oct 2014 08:28:07 -0700 (PDT) Subject: [Scilab-users] RVM toolbox Message-ID: <1414423687289-4031443.post@n3.nabble.com> Hi, Is there toolbox for Relevance Vector Machine(RVM) in Scilab (atomsGui)? thank you. -- View this message in context: http://mailinglists.scilab.org/RVM-toolbox-tp4031443.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Lwaszniowski at motorpal.cz Mon Oct 27 16:43:40 2014 From: Lwaszniowski at motorpal.cz (waszniowski) Date: Mon, 27 Oct 2014 08:43:40 -0700 (PDT) Subject: [Scilab-users] Compile .c code in different directories Message-ID: <1414424620401-4031444.post@n3.nabble.com> I would like to call c code function in SciLab. I use ilib_build(). When my files are in one directory, everything works well. But I need to compile files in different directories: files=['sciInterface.c','../../../src/Outputs/Current.c']; ilib_build('test_c',['testFnc','sciInterface'],files,[]); There is an error in this case: -->exec('C:\Users\waszniowski\Documents\PRJ\SimCrEcu\ECU\Test\Outputs\Current\testComparatorReference.sce', -1) Generate a gateway file Generate a loader file Generate a Makefile Running the makefile Compilation of ../../../src/Outputs/Current.c Compilation of sciInterface.c Compilation of test_c.c Building shared library (be patient) !NMAKE : fatal error U1073: don't know how to make 'Debug/..\..\..\src\Outputs\Current.obj' ! ! ! !Stop. ! !--error 10000 ilib_compile: Error while executing Makelib.mak. at line 27 of function dlwCompile called by : at line 51 of function ilib_compile called by : at line 106 of function ilib_build called by : ilib_build('test_c',['testFnc','sciInterface'],files,[]); at line 19 of exec file called by : exec('C:\Users\waszniowski\Documents\PRJ\SimCrEcu\ECU\Test\Outputs\Current\testComparatorReference.sce', -1) Please, can anybody help me? Libor Waszniowski -- View this message in context: http://mailinglists.scilab.org/Compile-c-code-in-different-directories-tp4031444.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From nguyenthientin at gmail.com Wed Oct 29 17:01:36 2014 From: nguyenthientin at gmail.com (Tin Nguyen) Date: Wed, 29 Oct 2014 23:01:36 +0700 Subject: [Scilab-users] Problem with partial fraction decomposition (dfss) In-Reply-To: <544803C7.8040206@inria.fr> References: <1413187942099-4031331.post@n3.nabble.com> <543D0A95.5040609@inria.fr> <002a01cfed16$cc3c96e0$64b5c4a0$@gmail.com> <544803C7.8040206@inria.fr> Message-ID: <002101cff391$9f849ef0$de8ddcd0$@gmail.com> Thank you so much, Serge Steer! Instead of finding a function like 'residuez' in Matlab, now I need to learn many other things. It's not comfortable. Hope Scilab will become more convenient for general users like me! :D -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Serge Steer Sent: Thursday, October 23, 2014 2:22 AM To: users at lists.scilab.org Subject: Re: [Scilab-users] Problem with partial fraction decomposition (dfss) Now you are using a too big value for rmax -->pf = pfss(h) pf = pf(1) 0.75 - 0.25s ------------ 2 1 - 2s + s pf(2) 0.25 ---- 1 + s Some explanation pfss converts the transfer function to state space representation and then trie to diagonalize the state matrix using the bdiag function -->S=tf2ss(h); -->bdiag(S.A) ans = 1.0000000 - 1.2247449 0. 0. 1. 0. 0. 0. - 1. You can see with result above that there is a 2 by 2 jordan block (for the eigenvalue 1) which exhibits a coupling between the two states Now with -->bdiag(S.A,1/%eps) ans = 1.0000000 0. 0. 0. 1. 0. 0. 0. - 1. The Jordan block has been broken [Ab,X]=bdiag(S.A,1/%eps);cond(X) ans = 5.074D+14 bdiag has broken the jordan block using a singular "base change" so the decomposition is a non-sense. Serge Steer Le 21/10/2014 12:07, Tin Nguyen a ?crit : > Dear Serge Steer, > Thank you very much for your response. Your code works fine. > However, I still have some problem with this pfss function. For > example, I try to decompose a fractional polynomial that has multi-order poles. > H(z) = 1 / { (1-s)^2 * (1+s) } > > You can find following from my console: > -->s = poly(0,'s'); > > -->h = 1 / ( (1 + s) * (1 - s)^2) > h = > > 1 > ------------- > 2 3 > 1 - s - s + s > > -->pf = pfss(h, 1/%eps) > pf = > > > pf(1) > > - 9420237.9 > ------------- > - 1.0000000 + s > > pf(2) > > 9420237.6 > --------- > - 1 + s > > pf(3) > > 0.25 > ---- > 1 + s > > I also checked: > -->pf(1)+pf(2) > ans = > > 0.75 - 0.25s > ------------ > 2 > 1 - 2s + s > > I have no idea about this situation. > Can you help me out! Thank you in advance! > > --Tin Nguyen > > -----Original Message----- > From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Serge > Steer > Sent: Tuesday, October 14, 2014 6:36 PM > To: users at lists.scilab.org > Subject: Re: [Scilab-users] Problem with partial fraction > decomposition > (dfss) > > You just need to tune the rmax optionnal parameter pf = > pfss(tf2ss(hz),5);length(pf) > > Serge Steer > Le 13/10/2014 10:12, tinnguyen a ?crit : >> Hi guys, >> I'm having trouble using scilab's function pfss to decompose a >> polynomial in order to do inverse Z transform. Following is my code: >> --> z = poly(0,'z') >> --> hz = z^2 / (1 - 6*z + 11*z^2 - 6*z^3) pf = pfss(tf2ss(hz)) >> --> length(pf) >> The fourth command returns '1'. However, I believe it should be 3. I >> also did the decomposition manually and got the result as: hz = >> 0.5/(1-z) + -1 / >> (1-2*z) + 0.5/(1-3*z). >> Nevertheless, if I change the numerator of hz from z^2 to z or z^3, >> pfss works correctly. I definitely have no idea!!!? :D Please take a >> look and correct me if i'm wrong. >> Thank you so much! >> >> >> >> >> -- >> View this message in context: >> http://mailinglists.scilab.org/Problem-with-partial-fraction-decompos >> i tion-dfss-tp4031331.html Sent from the Scilab users - Mailing Lists >> Archives mailing list archive at Nabble.com. >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From somephantastik at gmail.com Wed Oct 29 17:33:14 2014 From: somephantastik at gmail.com (Candio) Date: Wed, 29 Oct 2014 09:33:14 -0700 (PDT) Subject: [Scilab-users] for loop in xcos Message-ID: <1414600394211-4031449.post@n3.nabble.com> Hello, I've been trying to implement a for loop in xcos and have so far been unsuccessful: 1) I grabbed the source code from the ForIterator interfacing function in ScicosLab and figured out how to get it working in SciLab 5.5.1/Xcos. However, it is truly mysterious and I was not able to get it working correctly. 2) I've been working on a manual for loop using if/else logic, but I cannot figure out how to reset the counter at the beginning of each time step. Attached is an example of my feeble attempt. If someone can give me some advice on how to make progress with either 1) or 2), I would be grateful. Candio forLoopSubsystem.zcos -- View this message in context: http://mailinglists.scilab.org/for-loop-in-xcos-tp4031449.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Serge.Steer at inria.fr Wed Oct 29 19:25:38 2014 From: Serge.Steer at inria.fr (Serge Steer) Date: Wed, 29 Oct 2014 19:25:38 +0100 Subject: [Scilab-users] Problem with partial fraction decomposition (dfss) In-Reply-To: <002101cff391$9f849ef0$de8ddcd0$@gmail.com> References: <1413187942099-4031331.post@n3.nabble.com> <543D0A95.5040609@inria.fr> <002a01cfed16$cc3c96e0$64b5c4a0$@gmail.com> <544803C7.8040206@inria.fr> <002101cff391$9f849ef0$de8ddcd0$@gmail.com> Message-ID: <54513122.6090800@inria.fr> Le 29/10/2014 17:01, Tin Nguyen a ?crit : > Thank you so much, Serge Steer! > Instead of finding a function like 'residuez' in Matlab, now I need to learn > many other things. It's not comfortable. > Hope Scilab will become more convenient for general users like me! :D Take care that the Matlab function residuez does not produce exactly the same thing first the residuez help pages states "/Numerically, the partial fraction expansion of a ratio of polynomials is an ill-posed problem. If the denominator polynomial is near a polynomial with multiple roots, then small changes in the data, including roundoff errors, can cause arbitrarily large changes in the resulting poles and residues. You should use state-space (or pole-zero representations instead. /" Moreover this function gives you the residual and you have to decide if some roots are equal or not, to be able to compute the fraction decomposition and this is not a simple thing to do. If you do something like P=poly(ones(1,6),'x','r') //(x-1)^6 r=roots(P); clf;plot(real(r),imag(r),'*') You can observe that the roots are not exactly equal to one but located on a circle of radius approx %eps^(1/6)~=0.002 As noticed in the residuez help page *the problem is ill-posed* to be convinced just compute the fraction decomposition of 1/(z-1)^6 using residuez and computing back the fraction >> [r,p,k]=residuez(1,poly(ones(1,6))); >> [b,a]=residuez(r,p,k) b = 1.0e+07 * Columns 1 through 4 -0.5038 + 0.0008i 2.5335 - 0.0041i -5.0956 + 0.0081i 5.1243 - 0.0081i Columns 5 through 6 -2.5765 + 0.0040i 0.5182 - 0.0008i a = 1.0000 -6.0000 15.0000 -20.0000 15.0000 -6.0000 1.0000 *The problem is ill-posed,* *so it should be better to avoid its use* . What is the problem you want to solve? Serge Steer > > -----Original Message----- > From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Serge Steer > Sent: Thursday, October 23, 2014 2:22 AM > To: users at lists.scilab.org > Subject: Re: [Scilab-users] Problem with partial fraction decomposition > (dfss) > > Now you are using a too big value for rmax > -->pf = pfss(h) > pf = > > > pf(1) > > 0.75 - 0.25s > ------------ > 2 > 1 - 2s + s > > pf(2) > > 0.25 > ---- > 1 + s > Some explanation > pfss converts the transfer function to state space representation and then > trie to diagonalize the state matrix using the bdiag function > > -->S=tf2ss(h); > -->bdiag(S.A) > ans = > > 1.0000000 - 1.2247449 0. > 0. 1. 0. > 0. 0. - 1. > You can see with result above that there is a 2 by 2 jordan block (for the > eigenvalue 1) which exhibits a coupling between the two states Now with > -->bdiag(S.A,1/%eps) > ans = > > 1.0000000 0. 0. > 0. 1. 0. > 0. 0. - 1. > The Jordan block has been broken > > [Ab,X]=bdiag(S.A,1/%eps);cond(X) > ans = > > 5.074D+14 > bdiag has broken the jordan block using a singular "base change" so the > decomposition is a non-sense. > Serge Steer > > Le 21/10/2014 12:07, Tin Nguyen a ?crit : >> Dear Serge Steer, >> Thank you very much for your response. Your code works fine. >> However, I still have some problem with this pfss function. For >> example, I try to decompose a fractional polynomial that has multi-order > poles. >> H(z) = 1 / { (1-s)^2 * (1+s) } >> >> You can find following from my console: >> -->s = poly(0,'s'); >> >> -->h = 1 / ( (1 + s) * (1 - s)^2) >> h = >> >> 1 >> ------------- >> 2 3 >> 1 - s - s + s >> >> -->pf = pfss(h, 1/%eps) >> pf = >> >> >> pf(1) >> >> - 9420237.9 >> ------------- >> - 1.0000000 + s >> >> pf(2) >> >> 9420237.6 >> --------- >> - 1 + s >> >> pf(3) >> >> 0.25 >> ---- >> 1 + s >> >> I also checked: >> -->pf(1)+pf(2) >> ans = >> >> 0.75 - 0.25s >> ------------ >> 2 >> 1 - 2s + s >> >> I have no idea about this situation. >> Can you help me out! Thank you in advance! >> >> --Tin Nguyen >> >> -----Original Message----- >> From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Serge >> Steer >> Sent: Tuesday, October 14, 2014 6:36 PM >> To: users at lists.scilab.org >> Subject: Re: [Scilab-users] Problem with partial fraction >> decomposition >> (dfss) >> >> You just need to tune the rmax optionnal parameter pf = >> pfss(tf2ss(hz),5);length(pf) >> >> Serge Steer >> Le 13/10/2014 10:12, tinnguyen a ?crit : >>> Hi guys, >>> I'm having trouble using scilab's function pfss to decompose a >>> polynomial in order to do inverse Z transform. Following is my code: >>> --> z = poly(0,'z') >>> --> hz = z^2 / (1 - 6*z + 11*z^2 - 6*z^3) pf = pfss(tf2ss(hz)) >>> --> length(pf) >>> The fourth command returns '1'. However, I believe it should be 3. I >>> also did the decomposition manually and got the result as: hz = >>> 0.5/(1-z) + -1 / >>> (1-2*z) + 0.5/(1-3*z). >>> Nevertheless, if I change the numerator of hz from z^2 to z or z^3, >>> pfss works correctly. I definitely have no idea!!!? :D Please take a >>> look and correct me if i'm wrong. >>> Thank you so much! >>> >>> >>> >>> >>> -- >>> View this message in context: >>> http://mailinglists.scilab.org/Problem-with-partial-fraction-decompos >>> i tion-dfss-tp4031331.html Sent from the Scilab users - Mailing Lists >>> Archives mailing list archive at Nabble.com. >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users >>> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nguyenthientin at gmail.com Thu Oct 30 04:04:03 2014 From: nguyenthientin at gmail.com (tinnguyen) Date: Wed, 29 Oct 2014 20:04:03 -0700 (PDT) Subject: [Scilab-users] Problem with partial fraction decomposition (dfss) In-Reply-To: <54513122.6090800@inria.fr> References: <1413187942099-4031331.post@n3.nabble.com> <543D0A95.5040609@inria.fr> <002a01cfed16$cc3c96e0$64b5c4a0$@gmail.com> <544803C7.8040206@inria.fr> <002101cff391$9f849ef0$de8ddcd0$@gmail.com> <54513122.6090800@inria.fr> Message-ID: <002401cff3ee$14d67a00$3e836e00$@gmail.com> I do agree with you. That probably depends on kind of algorithm that function implements. Actually, I am a teaching assistant in Digital Signal Processing course. I try to get benefit from Scilab to do invert z-Transform. Specifically, given a rational polynomial, I need to decompose it so as some basic z-Transforms can be applied easily. I?m very grateful to your help! Best regard! Tin Nguyen From: Serge Steer [via Scilab / Xcos - Mailing Lists Archives] [mailto:ml-node+s994242n4031450h58 at n3.nabble.com] Sent: Thursday, October 30, 2014 1:27 AM To: tinnguyen Subject: Re: Problem with partial fraction decomposition (dfss) Le 29/10/2014 17:01, Tin Nguyen a ?crit : Thank you so much, Serge Steer! Instead of finding a function like 'residuez' in Matlab, now I need to learn many other things. It's not comfortable. Hope Scilab will become more convenient for general users like me! :D Take care that the Matlab function residuez does not produce exactly the same thing first the residuez help pages states "Numerically, the partial fraction expansion of a ratio of polynomials is an ill-posed problem. If the denominator polynomial is near a polynomial with multiple roots, then small changes in the data, including roundoff errors, can cause arbitrarily large changes in the resulting poles and residues. You should use state-space (or pole-zero representations instead. " Moreover this function gives you the residual and you have to decide if some roots are equal or not, to be able to compute the fraction decomposition and this is not a simple thing to do. If you do something like P=poly(ones(1,6),'x','r') //(x-1)^6 r=roots(P); clf;plot(real(r),imag(r),'*') You can observe that the roots are not exactly equal to one but located on a circle of radius approx %eps^(1/6)~=0.002 As noticed in the residuez help page the problem is ill-posed to be convinced just compute the fraction decomposition of 1/(z-1)^6 using residuez and computing back the fraction >> [r,p,k]=residuez(1,poly(ones(1,6))); >> [b,a]=residuez(r,p,k) b = 1.0e+07 * Columns 1 through 4 -0.5038 + 0.0008i 2.5335 - 0.0041i -5.0956 + 0.0081i 5.1243 - 0.0081i Columns 5 through 6 -2.5765 + 0.0040i 0.5182 - 0.0008i a = 1.0000 -6.0000 15.0000 -20.0000 15.0000 -6.0000 1.0000 The problem is ill-posed, so it should be better to avoid its use . What is the problem you want to solve? Serge Steer -----Original Message----- From: users [[hidden email]] On Behalf Of Serge Steer Sent: Thursday, October 23, 2014 2:22 AM To: [hidden email] Subject: Re: [Scilab-users] Problem with partial fraction decomposition (dfss) Now you are using a too big value for rmax -->pf = pfss(h) pf = pf(1) 0.75 - 0.25s ------------ 2 1 - 2s + s pf(2) 0.25 ---- 1 + s Some explanation pfss converts the transfer function to state space representation and then trie to diagonalize the state matrix using the bdiag function -->S=tf2ss(h); -->bdiag(S.A) ans = 1.0000000 - 1.2247449 0. 0. 1. 0. 0. 0. - 1. You can see with result above that there is a 2 by 2 jordan block (for the eigenvalue 1) which exhibits a coupling between the two states Now with -->bdiag(S.A,1/%eps) ans = 1.0000000 0. 0. 0. 1. 0. 0. 0. - 1. The Jordan block has been broken [Ab,X]=bdiag(S.A,1/%eps);cond(X) ans = 5.074D+14 bdiag has broken the jordan block using a singular "base change" so the decomposition is a non-sense. Serge Steer Le 21/10/2014 12:07, Tin Nguyen a ?crit : Dear Serge Steer, Thank you very much for your response. Your code works fine. However, I still have some problem with this pfss function. For example, I try to decompose a fractional polynomial that has multi-order poles. H(z) = 1 / { (1-s)^2 * (1+s) } You can find following from my console: -->s = poly(0,'s'); -->h = 1 / ( (1 + s) * (1 - s)^2) h = 1 ------------- 2 3 1 - s - s + s -->pf = pfss(h, 1/%eps) pf = pf(1) - 9420237.9 ------------- - 1.0000000 + s pf(2) 9420237.6 --------- - 1 + s pf(3) 0.25 ---- 1 + s I also checked: -->pf(1)+pf(2) ans = 0.75 - 0.25s ------------ 2 1 - 2s + s I have no idea about this situation. Can you help me out! Thank you in advance! --Tin Nguyen -----Original Message----- From: users [[hidden email]] On Behalf Of Serge Steer Sent: Tuesday, October 14, 2014 6:36 PM To: [hidden email] Subject: Re: [Scilab-users] Problem with partial fraction decomposition (dfss) You just need to tune the rmax optionnal parameter pf = pfss(tf2ss(hz),5);length(pf) Serge Steer Le 13/10/2014 10:12, tinnguyen a ?crit : Hi guys, I'm having trouble using scilab's function pfss to decompose a polynomial in order to do inverse Z transform. Following is my code: --> z = poly(0,'z') --> hz = z^2 / (1 - 6*z + 11*z^2 - 6*z^3) pf = pfss(tf2ss(hz)) --> length(pf) The fourth command returns '1'. However, I believe it should be 3. I also did the decomposition manually and got the result as: hz = 0.5/(1-z) + -1 / (1-2*z) + 0.5/(1-3*z). Nevertheless, if I change the numerator of hz from z^2 to z or z^3, pfss works correctly. I definitely have no idea!!!? :D Please take a look and correct me if i'm wrong. Thank you so much! -- View this message in context: http://mailinglists.scilab.org/Problem-with-partial-fraction-decompos i tion-dfss-tp4031331.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. _______________________________________________ users mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/users _______________________________________________ users mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/users _______________________________________________ users mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/users _______________________________________________ users mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/users _______________________________________________ users mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/users _______________________________________________ users mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/users _____ If you reply to this email, your message will be added to the discussion below: http://mailinglists.scilab.org/Problem-with-partial-fraction-decomposition-d fss-tp4031331p4031450.html To unsubscribe from Problem with partial fraction decomposition (dfss), click here . NAML -- View this message in context: http://mailinglists.scilab.org/Problem-with-partial-fraction-decomposition-dfss-tp4031331p4031451.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nguyenthientin at gmail.com Thu Oct 30 04:05:25 2014 From: nguyenthientin at gmail.com (Tin Nguyen) Date: Thu, 30 Oct 2014 10:05:25 +0700 Subject: [Scilab-users] How to find module containing a function Message-ID: <004001cff3ee$5b3bde90$11b39bb0$@gmail.com> Hi all, I am being stuck with the function dft. My Scilab software doesn't include this function. So I searched the internet to find appropriate module in order to use it. I tried Signal_Processing_Supplementary_toolbox, but it didn't help. Can anyone show me how to find the module that contains a particular function. Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From thientin at cse.hcmut.edu.vn Wed Oct 29 17:05:59 2014 From: thientin at cse.hcmut.edu.vn (Tin Nguyen) Date: Wed, 29 Oct 2014 23:05:59 +0700 Subject: [Scilab-users] How to find module containing a function Message-ID: <002301cff392$3bc0ce60$b3426b20$@cse.hcmut.edu.vn> Hi all, I am being stuck with the function dft. My Scilab software doesn't include this function. So I searched the internet to find appropriate module in order to use it. I tried Signal_Processing_Supplementary_toolbox, but it didn't help. Can anyone show me how to find the module that contains a particular function. Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From Serge.Steer at inria.fr Thu Oct 30 09:20:03 2014 From: Serge.Steer at inria.fr (Serge Steer) Date: Thu, 30 Oct 2014 09:20:03 +0100 Subject: [Scilab-users] How to find module containing a function In-Reply-To: <004001cff3ee$5b3bde90$11b39bb0$@gmail.com> References: <004001cff3ee$5b3bde90$11b39bb0$@gmail.com> Message-ID: <5451F4B3.1050508@inria.fr> The dft function is lust called fft (discrete and fast) Serge Steer Le 30/10/2014 04:05, Tin Nguyen a ?crit : > > Hi all, > > I am being stuck with the function dft. My Scilab software doesn't > include this function. > > So I searched the internet to find appropriate module in order to use it. > > I tried Signal_Processing_Supplementary_toolbox, but it didn't help. > > Can anyone show me how to find the module that contains a particular > function. > > Thanks! > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From cfuttrup at gmail.com Thu Oct 30 16:33:56 2014 From: cfuttrup at gmail.com (Claus Futtrup) Date: Thu, 30 Oct 2014 16:33:56 +0100 Subject: [Scilab-users] How to find module containing a function In-Reply-To: <002301cff392$3bc0ce60$b3426b20$@cse.hcmut.edu.vn> References: <002301cff392$3bc0ce60$b3426b20$@cse.hcmut.edu.vn> Message-ID: What is dft ? Do you refer to Discrete Fourier Transform? Please explain more.. /Claus On Oct 30, 2014 8:27 AM, "Tin Nguyen" wrote: > Hi all, > > I am being stuck with the function dft. My Scilab software doesn?t include > this function. > > So I searched the internet to find appropriate module in order to use it. > > I tried Signal_Processing_Supplementary_toolbox, but it didn?t help. > > Can anyone show me how to find the module that contains a particular > function. > > Thanks! > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cfuttrup at gmail.com Thu Oct 30 16:38:26 2014 From: cfuttrup at gmail.com (Claus Futtrup) Date: Thu, 30 Oct 2014 16:38:26 +0100 Subject: [Scilab-users] How to find module containing a function In-Reply-To: <5451F4B3.1050508@inria.fr> References: <004001cff3ee$5b3bde90$11b39bb0$@gmail.com> <5451F4B3.1050508@inria.fr> Message-ID: Hi Serge I see your response too late :-) /Claus On Oct 30, 2014 9:20 AM, "Serge Steer" wrote: > The dft function is lust called fft (discrete and fast) > Serge Steer > > > Le 30/10/2014 04:05, Tin Nguyen a ?crit : > > Hi all, > > I am being stuck with the function dft. My Scilab software doesn?t include > this function. > > So I searched the internet to find appropriate module in order to use it. > > I tried Signal_Processing_Supplementary_toolbox, but it didn?t help. > > Can anyone show me how to find the module that contains a particular > function. > > Thanks! > > > _______________________________________________ > users mailing listusers at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: