From francois.granade at scilab-enterprises.com Tue Dec 1 11:12:42 2015 From: francois.granade at scilab-enterprises.com (=?iso-8859-1?Q?Fran=E7ois_Granade?=) Date: Tue, 1 Dec 2015 11:12:42 +0100 Subject: [Scilab-users] Release Scilab 6.0.0 alpha 2 In-Reply-To: <565C69E4.6050707@scilab-enterprises.com> References: <565C69E4.6050707@scilab-enterprises.com> Message-ID: Dear Scilab users, We're happy to announce the recent release of the second alpha of Scilab 6.0.0, the next major release of Scilab. As an alpha, it is not yet ready for production usage. If you are new to Scilab, or only a casual user, you should probably continue using the 5.5.2 release, and wait for a beta version before trying the 6 family. However, if you maintain tools developed on Scilab, or rely on Scilab for your own developments, it is the right moment to look at it, in particular to evaluate the upgrade of toolboxes you have developed. Please see the release notes for details and download information. Also, please provide feedback via the mailing lists, and report bugs on the bug tracker. Thank you! Fran?ois Granade francois.granade at scilab-enterprises.com +33(0)1 80 77 04 60 http://www.scilab-enterprises.com - http://www.scilab.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From arctica1963 at gmail.com Tue Dec 1 12:09:28 2015 From: arctica1963 at gmail.com (Lester Anderson) Date: Tue, 1 Dec 2015 11:09:28 +0000 Subject: [Scilab-users] Set default working directory at start Message-ID: Hello, A basic query, but how can I make sure that the default starting directory is set to say c:\programs\scilab_work ? Every time Scilab starts it is deafulted to c:\windows\system32\ - there is no preference option to set this in 5.4.1 (windows 64-bit). I can change to the working directory fine, but it can be time consuming if you have long paths to deal with. There is no scilab.ini file - and not sure what would go in this if it is required. Thanks Lester From lavitha89 at gmail.com Tue Dec 1 12:37:30 2015 From: lavitha89 at gmail.com (Lavitha Pereira) Date: Tue, 1 Dec 2015 17:07:30 +0530 Subject: [Scilab-users] Image comparison Message-ID: Hi, I Have two images obtained doing same operations in *Matlab and Scilab*. Is there any way to know the pixel differences of these 2 images?. The image used has dimension of 640*480. Thanks & Regards, Lavitha M. Pereira -------------- next part -------------- An HTML attachment was scrubbed... URL: From jasper at amsterchem.com Tue Dec 1 12:39:57 2015 From: jasper at amsterchem.com (jasper van baten) Date: Tue, 1 Dec 2015 12:39:57 +0100 Subject: [Scilab-users] Image comparison In-Reply-To: References: Message-ID: <565D870D.1000909@amsterchem.com> Load both images back into Matlab or Scilab and compare them, e.g. by subtraction? Best wishes, Jasper. On 12/1/2015 12:37, Lavitha Pereira wrote: > Hi, > > I Have two images obtained doing same operations in *Matlab and > Scilab*. Is there any way to know the pixel differences of these 2 > images?. > > The image used has dimension of 640*480. > > > Thanks & Regards, > Lavitha M. Pereira > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From harpreet.mertia at gmail.com Tue Dec 1 12:52:53 2015 From: harpreet.mertia at gmail.com (Harpreet Singh Rathore) Date: Tue, 1 Dec 2015 17:22:53 +0530 Subject: [Scilab-users] Regarding calling a scilab macro in Cpp gateway Message-ID: Hey, I have been trying to call a Scilab Macro in Cpp gateway. I have gone through the following help http://help.scilab.org/docs/5.3.3/en_US/CallingAScilabFunctionFromACInterface.html But I think this is obsolete and it also shows a warning to use api_scilab.h. I have been trying to find a documentation but it was futile. -- Thanks and Regards Harpreet Singh -------------- next part -------------- An HTML attachment was scrubbed... URL: From Serge.Steer at inria.fr Tue Dec 1 13:14:20 2015 From: Serge.Steer at inria.fr (Serge Steer) Date: Tue, 1 Dec 2015 13:14:20 +0100 Subject: [Scilab-users] Set default working directory at start In-Reply-To: References: Message-ID: <565D8F1C.6080002@inria.fr> You can create a scilab.ini file the directory pointed to by the Scilab variable SCIHOME. The Scilab instructions stored in the scilab.ini file are executed eac time Scilab is loaded. Serge Steer Le 01/12/2015 12:09, Lester Anderson a ?crit : > Hello, > > A basic query, but how can I make sure that the default starting > directory is set to say c:\programs\scilab_work ? Every time Scilab > starts it is deafulted to c:\windows\system32\ - there is no > preference option to set this in 5.4.1 (windows 64-bit). > > I can change to the working directory fine, but it can be time > consuming if you have long paths to deal with. > > There is no scilab.ini file - and not sure what would go in this if it > is required. > > Thanks > > Lester > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From sgougeon at free.fr Tue Dec 1 13:34:08 2015 From: sgougeon at free.fr (sgougeon at free.fr) Date: Tue, 1 Dec 2015 13:34:08 +0100 (CET) Subject: [Scilab-users] Set default working directory at start In-Reply-To: Message-ID: <996623688.285220086.1448973248004.JavaMail.root@zimbra75-e12.priv.proxad.net> This feature has been added to Preferences in Scilab 5.5. You may upgrade to 5.5.2. It then allows as well to set the starting directory equal to the one that Scilab left in the previous session. Very handy. Samuel Gougeon From ron at phenotypescreening.com Tue Dec 1 16:25:53 2015 From: ron at phenotypescreening.com (Ronald Michaels) Date: Tue, 01 Dec 2015 10:25:53 -0500 Subject: [Scilab-users] Image comparison In-Reply-To: References: Message-ID: <565DBC01.5050000@phenotypescreening.com> Subtract one from the other. On 12/01/2015 06:37 AM, Lavitha Pereira wrote: > Hi, > > I Have two images obtained doing same operations in *Matlab and > Scilab*. Is there any way to know the pixel differences of these 2 > images?. > > The image used has dimension of 640*480. > > > Thanks & Regards, > Lavitha M. Pereira > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Ronald Michaels PhD Technical Director Phenotype Screening Corporation http://www.phenotypescreening.com/ cell: 865 235 5854 From chinluh at tritytech.com Wed Dec 2 03:14:22 2015 From: chinluh at tritytech.com (Tan Chin Luh) Date: Wed, 2 Dec 2015 10:14:22 +0800 Subject: [Scilab-users] GUIBUILDER problem! In-Reply-To: <1448648939727-4033128.post@n3.nabble.com> References: <1448648939727-4033128.post@n3.nabble.com> Message-ID: <565E53FE.6080303@tritytech.com> May I know what's your version of Scilab and GUIBUILDER? thanks rgds, Chin Luh On 28-Nov-15 2:28 AM, petarf wrote: > Hi all, > > When I want to make simple pushbutton the figure on which I draw zooms out > and I draw some rectangle but I can't see it. It is moved outside the > figure. When I click to move that push button red rectangle which represents > that button is not at the same place as pushbutton and I have to move that > red rectangle outside of figure to see pushbutton. > > Can anyone help with this? > > Regards, Petar > > > > -- > View this message in context: http://mailinglists.scilab.org/GUIBUILDER-problem-tp4033128.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 arctica1963 at gmail.com Thu Dec 3 12:43:32 2015 From: arctica1963 at gmail.com (Lester Anderson) Date: Thu, 3 Dec 2015 11:43:32 +0000 Subject: [Scilab-users] Running external program Message-ID: Hello, I have the windows version of Scilab (currently 5.4.1), but would like to run an external program (e.g. gmt software) and return or use the output in the Scilab code: As a rough algorithm example (.sce): //run the gmt program grdinfo.exe - extract data as single column z-matrix) grd2xyz faa.grd -ZTLa > faa.txt scilab: assign matrix output to variable for use in Scilab etc. Any pointers would be helpful. Lester From selieff at sgl.com Thu Dec 3 15:10:40 2015 From: selieff at sgl.com (selieff) Date: Thu, 3 Dec 2015 07:10:40 -0700 (MST) Subject: [Scilab-users] Running external program In-Reply-To: References: Message-ID: <1449151840167-4033160.post@n3.nabble.com> The command you want is 'dos': dos('grd2xyz faa.grd -ZTLa > faa.txt') If the command line is complex or needs to include names defined elsewhere, it is sometimes helpful to use msprintf to create the string first complex_command = msprintf(...) and then issue it using the string variable dos(complex_command,'-echo') The '-echo' is optional but nice to see in the command window. The resulting 'faa.txt' file from GMT can be read with whatever function makes the most sense for the format (fscanfMat perhaps?). Stefan arctica1963 wrote > Hello, > > I have the windows version of Scilab (currently 5.4.1), but would like > to run an external program (e.g. gmt software) and return or use the > output in the Scilab code: > > As a rough algorithm example (.sce): > > //run the gmt program grdinfo.exe - extract data as single column > z-matrix) > > grd2xyz faa.grd -ZTLa > faa.txt > > scilab: assign matrix output to variable for use in Scilab etc. > > Any pointers would be helpful. > > Lester > _______________________________________________ > users mailing list > users at .scilab > http://lists.scilab.org/mailman/listinfo/users -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Running-external-program-tp4033159p4033160.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From selieff at sgl.com Thu Dec 3 14:57:05 2015 From: selieff at sgl.com (Stefan Elieff) Date: Thu, 3 Dec 2015 08:57:05 -0500 Subject: [Scilab-users] Running external program In-Reply-To: References: Message-ID: <56604A31.8010208@sgl.com> The command you want is 'dos': dos('grd2xyz faa.grd -ZTLa > faa.txt') If the command line is complex or needs to include names defined elsewhere, it is sometimes helpful to use msprintf to create the string first complex_command = msprintf(...) and then issue it using the string variable dos(complex_command,'-echo') The '-echo' is optional but nice to see in the command window. The resulting 'faa.txt' file from GMT can be read with whatever function makes the most sense for the format (fscanfMat perhaps?). Stefan On 2015-12-03 6:43 AM, Lester Anderson wrote: > Hello, > > I have the windows version of Scilab (currently 5.4.1), but would like > to run an external program (e.g. gmt software) and return or use the > output in the Scilab code: > > As a rough algorithm example (.sce): > > //run the gmt program grdinfo.exe - extract data as single column z-matrix) > > grd2xyz faa.grd -ZTLa > faa.txt > > scilab: assign matrix output to variable for use in Scilab etc. > > Any pointers would be helpful. > > Lester > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From arctica1963 at gmail.com Thu Dec 3 16:55:33 2015 From: arctica1963 at gmail.com (Lester Anderson) Date: Thu, 3 Dec 2015 15:55:33 +0000 Subject: [Scilab-users] Running external program In-Reply-To: <56604A31.8010208@sgl.com> References: <56604A31.8010208@sgl.com> Message-ID: Hello Stefan, Thanks for the pointers. I have tried with a small section of scripting: // Test script to launch and process GMT commands dos('grd2xyz FAA.grd -ZTLa -V > faa.txt','-echo') // works fine dos('grdinfo FAA.grd','-echo') // works fine dos('grdinfo FAA.grd -C | gawk "{nx=$10; ny=$11}; {print nx, ny}" > nxy.txt','-echo') // error The third line fails with an error (gawk is in the PATH), perhas due to the piping (|) or some other issue: dos('grdinfo FAA.grd -C | gawk "{nx=$10; ny=$11}; {print nx, ny}" > nxy.txt','-echo') !--error 3 Waiting for right parenthesis. at line 4 of exec file called by : exec('C:\SS20-work\FAA_EAfrica\test_faa.sce', -1) Are there limitations with this route? Thanks Lester On 3 December 2015 at 13:57, Stefan Elieff wrote: > The command you want is 'dos': > > dos('grd2xyz faa.grd -ZTLa > faa.txt') > > If the command line is complex or needs to include names defined elsewhere, > it is sometimes helpful to use msprintf to create the string first > > complex_command = msprintf(...) > > and then issue it using the string variable > > dos(complex_command,'-echo') > > The '-echo' is optional but nice to see in the command window. > > The resulting 'faa.txt' file from GMT can be read with whatever function > makes the most sense for the format (fscanfMat perhaps?). > > Stefan > > > On 2015-12-03 6:43 AM, Lester Anderson wrote: >> >> Hello, >> >> I have the windows version of Scilab (currently 5.4.1), but would like >> to run an external program (e.g. gmt software) and return or use the >> output in the Scilab code: >> >> As a rough algorithm example (.sce): >> >> //run the gmt program grdinfo.exe - extract data as single column >> z-matrix) >> >> grd2xyz faa.grd -ZTLa > faa.txt >> >> scilab: assign matrix output to variable for use in Scilab etc. >> >> Any pointers would be helpful. >> >> Lester >> _______________________________________________ >> 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 amonmayr at laas.fr Thu Dec 3 17:10:13 2015 From: amonmayr at laas.fr (amonmayr at laas.fr) Date: Thu, 3 Dec 2015 17:10:13 +0100 Subject: [Scilab-users] Atoms fail and changing SCIHOME Message-ID: <56606965.4040106@laas.fr> Hi all, We've just discovered that on scilab 5.5.2, atoms is not working on our Windows machines: atomsGUI() WARNING: mputl: Cannot open file \\servername\username\[..skipping some boring stuff...]\scilab-5.5.2\.atoms\config. It might be a problem with our setup where the homedir of our users are on network shares. Many Windows scripts are failing when accessing the files using the network path "\\servername\username\..." The network shares "\\servername\username" are mapped locally to a drive letter "Z:" and usually, changing the path from "\\servername\username\..." to "Z:\\..." solves the problem of write access. So here is my question how do I change SCIHOME (to replace "\\servername\username\" by "Z:\")? I tried, predef, looking in scilab.start, ... but without success. Any hint? Cheers, Antoine From Christophe.Dang at sidel.com Thu Dec 3 17:47:34 2015 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Thu, 3 Dec 2015 16:47:34 +0000 Subject: [Scilab-users] Running external program In-Reply-To: References: <56604A31.8010208@sgl.com> Message-ID: Hello, > De : Lester Anderson > Envoy? : jeudi 3 d?cembre 2015 16:56 > > dos('grdinfo FAA.grd -C | gawk "{nx=$10; ny=$11}; {print nx, ny}" > > nxy.txt','-echo') > !--error 3 Waiting for right parenthesis. In some cases, you need to use two quotes to tell that you want the character quote and that it is not the end of the string. Don't know if it applies here, but maybe you could try. -- 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 sgougeon at free.fr Thu Dec 3 19:14:02 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 3 Dec 2015 19:14:02 +0100 Subject: [Scilab-users] Running external program In-Reply-To: References: <56604A31.8010208@sgl.com> Message-ID: <5660866A.6080506@free.fr> Le 03/12/2015 17:47, Dang Ngoc Chan, Christophe a ?crit : > Hello, > >> De : Lester Anderson >> Envoy? : jeudi 3 d?cembre 2015 16:56 >> >> dos('grdinfo FAA.grd -C | gawk "{nx=$10; ny=$11}; {print nx, ny}" > >> nxy.txt','-echo') >> !--error 3 Waiting for right parenthesis. > In some cases, you need to use two quotes to tell that you want the character quote and that it is not the end of the string. > > Don't know if it applies here, but maybe you could try. Yes indeed, it is clearly a problem here. In Scilab 5, a string started with " can be terminated with ' , and vice-versa. This tolerance is no longer accepted with Scilab 6. So here, dos('grdinfo FAA.grd -C | gawk ""{nx=$10; ny=$11}; {print nx, ny}"" > nxy.txt','-echo') must be used. Samuel Gougeon From sgougeon at free.fr Thu Dec 3 19:24:05 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 3 Dec 2015 19:24:05 +0100 Subject: [Scilab-users] Atoms fail and changing SCIHOME In-Reply-To: <56606965.4040106@laas.fr> References: <56606965.4040106@laas.fr> Message-ID: <566088C5.4010108@free.fr> Hello, Le 03/12/2015 17:10, amonmayr at laas.fr a ?crit : > Hi all, > > We've just discovered that on scilab 5.5.2, atoms is not working on > our Windows machines: > > atomsGUI() > WARNING: mputl: Cannot open file \\servername\username\[..skipping > some boring stuff...]\scilab-5.5.2\.atoms\config. > > It might be a problem with our setup where the homedir of our users > are on network shares. > Many Windows scripts are failing when accessing the files using the > network path "\\servername\username\..." > The network shares "\\servername\username" are mapped locally to a > drive letter "Z:" and usually, changing the path from > "\\servername\username\..." to "Z:\\..." solves the problem of write > access. > > So here is my question how do I change SCIHOME (to replace > "\\servername\username\" by "Z:\")? > I tried, predef, looking in scilab.start, ... but without success. . For Scilab on Windows, Scilab uses the environment variable (of the OS) APPDATA to build SCIHOME, and TMP to build TMPDIR. The only way to change these Scilab variables is to run Scilab from a batch file in which the environment variables are priorly set to what you want for Scilab. We daily use such a configuration now for years, with Scilab installed on a shared place on our internal network, and it works. HTH Samuel From petar.filipovic at hotmail.com Fri Dec 4 08:52:09 2015 From: petar.filipovic at hotmail.com (petarf) Date: Fri, 4 Dec 2015 00:52:09 -0700 (MST) Subject: [Scilab-users] GUIBUILDER problem! In-Reply-To: <565E53FE.6080303@tritytech.com> References: <565E53FE.6080303@tritytech.com> Message-ID: <1449215529751-4033167.post@n3.nabble.com> Hi, Version of Scilab is 5.5.0 and GUIBUILDER is 2.2. Regards, Petar -- View this message in context: http://mailinglists.scilab.org/Re-GUIBUILDER-problem-tp4033157p4033167.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From arctica1963 at gmail.com Fri Dec 4 09:40:11 2015 From: arctica1963 at gmail.com (Lester Anderson) Date: Fri, 4 Dec 2015 08:40:11 +0000 Subject: [Scilab-users] Running external program In-Reply-To: <5660866A.6080506@free.fr> References: <56604A31.8010208@sgl.com> <5660866A.6080506@free.fr> Message-ID: Thanks Samuel for the clarification. Adding the double quotes worked fine. Will this work with single quotes in v6 as in the original syntax? On 3 December 2015 at 18:14, Samuel Gougeon wrote: > Le 03/12/2015 17:47, Dang Ngoc Chan, Christophe a ?crit : >> >> Hello, >> >>> De : Lester Anderson >>> Envoy? : jeudi 3 d?cembre 2015 16:56 >>> >>> dos('grdinfo FAA.grd -C | gawk "{nx=$10; ny=$11}; {print nx, ny}" > >>> nxy.txt','-echo') >>> !--error 3 Waiting for right >>> parenthesis. >> >> In some cases, you need to use two quotes to tell that you want the >> character quote and that it is not the end of the string. >> >> Don't know if it applies here, but maybe you could try. > > Yes indeed, it is clearly a problem here. In Scilab 5, a string started with > " can be terminated with ' , and vice-versa. This tolerance is no longer > accepted with Scilab 6. > So here, > > dos('grdinfo FAA.grd -C | gawk ""{nx=$10; ny=$11}; {print nx, ny}"" > > nxy.txt','-echo') > must be used. > > Samuel Gougeon > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From sgougeon at free.fr Fri Dec 4 10:29:02 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 4 Dec 2015 10:29:02 +0100 Subject: [Scilab-users] Running external program In-Reply-To: References: <56604A31.8010208@sgl.com> <5660866A.6080506@free.fr> Message-ID: <56615CDE.3010808@free.fr> Le 04/12/2015 09:40, Lester Anderson a ?crit : > Thanks Samuel for the clarification. Adding the double quotes worked > fine. Will this work with single quotes in v6 as in the original > syntax? For the moment, 6.0 does not support inner simple unprotected ' or ", but IMO it should, like in the PHP language. Report just posted for that: http://bugzilla.scilab.org/14287 Samuel From antoine.monmayrant at laas.fr Fri Dec 4 10:45:44 2015 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Fri, 4 Dec 2015 10:45:44 +0100 Subject: [Scilab-users] Atoms fail and changing SCIHOME In-Reply-To: <566088C5.4010108@free.fr> References: <56606965.4040106@laas.fr> <566088C5.4010108@free.fr> Message-ID: <566160C8.5080908@laas.fr> Le 12/03/2015 07:24 PM, Samuel Gougeon a ?crit : > Hello, > > Le 03/12/2015 17:10, amonmayr at laas.fr a ?crit : >> Hi all, >> >> We've just discovered that on scilab 5.5.2, atoms is not working on >> our Windows machines: >> >> atomsGUI() >> WARNING: mputl: Cannot open file \\servername\username\[..skipping >> some boring stuff...]\scilab-5.5.2\.atoms\config. >> >> It might be a problem with our setup where the homedir of our users >> are on network shares. >> Many Windows scripts are failing when accessing the files using the >> network path "\\servername\username\..." >> The network shares "\\servername\username" are mapped locally to a >> drive letter "Z:" and usually, changing the path from >> "\\servername\username\..." to "Z:\\..." solves the problem of write >> access. >> >> So here is my question how do I change SCIHOME (to replace >> "\\servername\username\" by "Z:\")? >> I tried, predef, looking in scilab.start, ... but without success. > . > For Scilab on Windows, Scilab uses the environment variable (of the > OS) APPDATA to build SCIHOME, and TMP to build TMPDIR. > The only way to change these Scilab variables is to run Scilab from a > batch file in which the environment variables are priorly set to what > you want for Scilab. > Do you have an example of such script? I daily do things like that under Linux, but I am more than rusty when it comes to Windows batch! Anyway, I am not sure changing APPDATA will solve the problem, but it's worth a try. Cheers, Antoine > We daily use such a configuration now for years, with Scilab installed > on a shared place on our internal network, and it works. > > HTH > Samuel > -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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 amonmayr at laas.fr Fri Dec 4 11:49:21 2015 From: amonmayr at laas.fr (amonmayr at laas.fr) Date: Fri, 4 Dec 2015 11:49:21 +0100 Subject: [Scilab-users] Atoms fail and changing SCIHOME In-Reply-To: <566160C8.5080908@laas.fr> References: <56606965.4040106@laas.fr> <566088C5.4010108@free.fr> <566160C8.5080908@laas.fr> Message-ID: <56616FB1.9050107@laas.fr> Le 12/04/2015 10:45 AM, Antoine Monmayrant a ?crit : > Le 12/03/2015 07:24 PM, Samuel Gougeon a ?crit : >> Hello, >> >> Le 03/12/2015 17:10, amonmayr at laas.fr a ?crit : >>> Hi all, >>> >>> We've just discovered that on scilab 5.5.2, atoms is not working on >>> our Windows machines: >>> >>> atomsGUI() >>> WARNING: mputl: Cannot open file \\servername\username\[..skipping >>> some boring stuff...]\scilab-5.5.2\.atoms\config. >>> >>> It might be a problem with our setup where the homedir of our users >>> are on network shares. >>> Many Windows scripts are failing when accessing the files using the >>> network path "\\servername\username\..." >>> The network shares "\\servername\username" are mapped locally to a >>> drive letter "Z:" and usually, changing the path from >>> "\\servername\username\..." to "Z:\\..." solves the problem of write >>> access. >>> >>> So here is my question how do I change SCIHOME (to replace >>> "\\servername\username\" by "Z:\")? >>> I tried, predef, looking in scilab.start, ... but without success. >> . >> For Scilab on Windows, Scilab uses the environment variable (of the >> OS) APPDATA to build SCIHOME, and TMP to build TMPDIR. >> The only way to change these Scilab variables is to run Scilab from a >> batch file in which the environment variables are priorly set to what >> you want for Scilab. >> > > Do you have an example of such script? > I daily do things like that under Linux, but I am more than rusty when > it comes to Windows batch! > Anyway, I am not sure changing APPDATA will solve the problem, but > it's worth a try. Answering my own question, here is a solution 1 Create a batch file myscilex.exe in the bin directory 2 Put this inside: @ECHO OFF set APPDATA=Z:\Windows\Application Data start Wscilex.exe 3 Now launch myscilex.exe 4 Now atomsGui() works ! Antoine (Happy) > > Cheers, > > Antoine > >> We daily use such a configuration now for years, with Scilab >> installed on a shared place on our internal network, and it works. >> >> HTH >> Samuel >> > > -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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 sgougeon at free.fr Fri Dec 4 12:17:57 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 4 Dec 2015 12:17:57 +0100 Subject: [Scilab-users] Atoms fail and changing SCIHOME In-Reply-To: <56616FB1.9050107@laas.fr> References: <56606965.4040106@laas.fr> <566088C5.4010108@free.fr> <566160C8.5080908@laas.fr> <56616FB1.9050107@laas.fr> Message-ID: <56617665.6060500@free.fr> Le 04/12/2015 11:49, amonmayr at laas.fr a ?crit : > Answering my own question, here is a solution > 1 Create a batch file myscilex.exe in the bin directory > 2 Put this inside: > @ECHO OFF > set APPDATA=Z:\Windows\Application Data > > start Wscilex.exe > 3 Now launch myscilex.exe > 4 Now atomsGui() works ! > We prefer a .bat file extension, we set as well USERPROFILE and end with /exit/, but yes, it's the way to do. The path reaching wscilex.exe from the batch can be given and have spaces. If so, and if you want to specify some scilab launching options, you must write something like start "D:\The path to Scilab dir\bin\Wscilex.exe" Note the double quotes > Antoine > (Happy) Great ;) Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Sat Dec 5 16:20:10 2015 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sat, 5 Dec 2015 15:20:10 +0000 Subject: [Scilab-users] Retrieving normal Scilab console after user function error Message-ID: Dear Scilaber's, While running a Scilab user script, my program aborts when calling one user function (due to some errors yet to be fixed inside the function). My question is about Win7 Scilab 5.5.2 Console's behavior: None of the main script variables are available in the Scilab console after abortion. More puzzling, none of the native Scilab functions are recognized (typing any Scilab commands produces !--error 4 Undefined variable). The sole way to get back to a normal Scilab behavior and resume with the function debugging seems to be exiting Scilab and restarting again. Does anyone has any clues about this problem? Thanks and regards, Rafael -------------- next part -------------- An HTML attachment was scrubbed... URL: From btoven66 at gmail.com Mon Dec 7 03:27:11 2015 From: btoven66 at gmail.com (Peter Q.) Date: Sun, 6 Dec 2015 20:27:11 -0600 Subject: [Scilab-users] integrals Message-ID: Hi users scilab. I was looking for a command for indefinite integrals, intg works on defined integrals, so Is the same command? thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From chinluh at tritytech.com Mon Dec 7 05:29:41 2015 From: chinluh at tritytech.com (Tan Chin Luh) Date: Mon, 7 Dec 2015 12:29:41 +0800 Subject: [Scilab-users] GUIBUILDER problem! In-Reply-To: <1449215529751-4033167.post@n3.nabble.com> References: <565E53FE.6080303@tritytech.com> <1449215529751-4033167.post@n3.nabble.com> Message-ID: <56650B35.3040107@tritytech.com> Hi, you need to use guibuilder 3.0 for the scilab 5.5. try to remove the current guibuilder, restart scilab, and reinstall again, you should get 3.0 CL On 04-Dec-15 3:52 PM, petarf wrote: > Hi, > > Version of Scilab is 5.5.0 and GUIBUILDER is 2.2. > > Regards, Petar > > > > -- > View this message in context: http://mailinglists.scilab.org/Re-GUIBUILDER-problem-tp4033157p4033167.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 tim at wescottdesign.com Mon Dec 7 06:38:15 2015 From: tim at wescottdesign.com (Tim Wescott) Date: Sun, 06 Dec 2015 21:38:15 -0800 Subject: [Scilab-users] integrals In-Reply-To: References: Message-ID: <1449466695.2809.46.camel@Servo> On Sun, 2015-12-06 at 20:27 -0600, Peter Q. wrote: > Hi users scilab. > I was looking for a command for indefinite integrals, intg works on > defined integrals, so Is the same command? > thanks in advance. Scilab calculates numerical solutions to integrals. That's not something that can really be done with an indefinite integral. Are you looking for numbers, or symbolic solutions? -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From btoven66 at gmail.com Mon Dec 7 15:48:15 2015 From: btoven66 at gmail.com (Peter Q.) Date: Mon, 7 Dec 2015 08:48:15 -0600 Subject: [Scilab-users] integrals In-Reply-To: <1449466695.2809.46.camel@Servo> References: <1449466695.2809.46.camel@Servo> Message-ID: symbolic solutions -------------- next part -------------- An HTML attachment was scrubbed... URL: From pablo_f_7 at hotmail.com Mon Dec 7 18:12:58 2015 From: pablo_f_7 at hotmail.com (Pablo Fonovich) Date: Mon, 7 Dec 2015 14:12:58 -0300 Subject: [Scilab-users] integrals In-Reply-To: References: , <1449466695.2809.46.camel@Servo>, Message-ID: Hi: As tim stated before, scilab does numerical calculation of integrals, very usefull for ingeneering problems for example... but does not provide any function for symbolic calculation of integrals. If you really need symbolic computation of an integral, i would recommend you using maxima, or wxmaxima if you are a begginner... There is also a toolbox for doing symbolic calculation trhough maxima in scilab called "scimax", you could try it if you want to do everything in scilab, but i think is a bit outdated. May i ask you why you need to do a symbolic calculation? Date: Mon, 7 Dec 2015 08:48:15 -0600 From: btoven66 at gmail.com To: tim at wescottdesign.com; users at lists.scilab.org Subject: Re: [Scilab-users] integrals symbolic solutions _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim at wescottdesign.com Mon Dec 7 21:01:11 2015 From: tim at wescottdesign.com (Tim Wescott) Date: Mon, 07 Dec 2015 12:01:11 -0800 Subject: [Scilab-users] integrals In-Reply-To: References: ,<1449466695.2809.46.camel@Servo> , Message-ID: <1449518471.2809.61.camel@Servo> +1 on what Pablo said -- Maxima and/or WxMaxima was what I was going to recommend (WxMaxima is not only a nice point-and-click interface for Maxima, it's also a good training tool -- if you try, you can use WxMaxima to train you up on the Maxima command line.) Just as a warning: I've used both Maxima and Maple (the commercial 'replacement' for Maxima), and both of them will leave you unsatisfied if your expectations are too high. Both applications can reduce "easy" problems, but as you get to more difficult problems to solve, or if you're looking for specific simplifications, they fall down. You can push their usefulness further by using them as handy calculators for parts of your problem, or as a check on your work, but ultimately if the problem at hand is difficult enough there'll have to be some human neurons hard at work to find the solution. On Mon, 2015-12-07 at 14:12 -0300, Pablo Fonovich wrote: > Hi: > As tim stated before, scilab does numerical calculation of integrals, > very usefull for ingeneering problems for example... but does not > provide any function for symbolic calculation of integrals. If you > really need symbolic computation of an integral, i would recommend you > using maxima, or wxmaxima if you are a begginner... There is also a > toolbox for doing symbolic calculation trhough maxima in scilab called > "scimax", you could try it if you want to do everything in scilab, but > i think is a bit outdated. > > May i ask you why you need to do a symbolic calculation? > > > ______________________________________________________________________ > Date: Mon, 7 Dec 2015 08:48:15 -0600 > From: btoven66 at gmail.com > To: tim at wescottdesign.com; users at lists.scilab.org > Subject: Re: [Scilab-users] integrals > > symbolic solutions > > _______________________________________________ users mailing list > users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From btoven66 at gmail.com Mon Dec 7 23:07:49 2015 From: btoven66 at gmail.com (Peter Q.) Date: Mon, 7 Dec 2015 16:07:49 -0600 Subject: [Scilab-users] integrals In-Reply-To: <1449518471.2809.61.camel@Servo> References: <1449466695.2809.46.camel@Servo> <1449518471.2809.61.camel@Servo> Message-ID: thanks men. I'll check out maximal. -------------- next part -------------- An HTML attachment was scrubbed... URL: From petar.filipovic at hotmail.com Tue Dec 8 10:41:37 2015 From: petar.filipovic at hotmail.com (petarf) Date: Tue, 8 Dec 2015 02:41:37 -0700 (MST) Subject: [Scilab-users] Subplot figure size Message-ID: <1449567697864-4033189.post@n3.nabble.com> Hello, How to change subplot size of figure but not to change the whole size figure? I have managed to change one subplot size but I also changed the whole figure to that size. Thanks, Petar -- View this message in context: http://mailinglists.scilab.org/Subplot-figure-size-tp4033189.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Serge.Steer at inria.fr Tue Dec 8 11:51:06 2015 From: Serge.Steer at inria.fr (Serge Steer) Date: Tue, 8 Dec 2015 11:51:06 +0100 Subject: [Scilab-users] Subplot figure size In-Reply-To: <1449567697864-4033189.post@n3.nabble.com> References: <1449567697864-4033189.post@n3.nabble.com> Message-ID: <5666B61A.7000907@inria.fr> Le 08/12/2015 10:41, petarf a ?crit : > Hello, > > How to change subplot size of figure but not to change the whole size > figure? I have managed to change one subplot size but I also changed the > whole figure to that size. > > Thanks, Petar > > > > -- > View this message in context: http://mailinglists.scilab.org/Subplot-figure-size-tp4033189.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 > The axes size is controlled by the axes_bounds property of the axes entity example fig=scf(0); ax=gca() ax.axes_visible="on"; ax.axes_bounds=[0 0 1/2 1/3]; ax1=newaxes(); ax1.axes_visible="on"; ax1.axes_bounds=[0.3 0.5 1/2 1/3]; The axes_bounds values are given in proportions of the axes_size property of the figure entity. Serge From jrafaelbguerra at hotmail.com Wed Dec 9 02:09:58 2015 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Wed, 9 Dec 2015 01:09:58 +0000 Subject: [Scilab-users] integrals In-Reply-To: <1449518471.2809.61.camel@Servo> References: , <1449466695.2809.46.camel@Servo> , <1449518471.2809.61.camel@Servo> Message-ID: What about Mathematica? Or just the free Wolfram Alpha? -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Tim Wescott Sent: Monday, December 07, 2015 8:01 PM To: Pablo Fonovich Cc: Users mailing list for Scilab Subject: Re: [Scilab-users] integrals +1 on what Pablo said -- Maxima and/or WxMaxima was what I was going to recommend (WxMaxima is not only a nice point-and-click interface for Maxima, it's also a good training tool -- if you try, you can use WxMaxima to train you up on the Maxima command line.) Just as a warning: I've used both Maxima and Maple (the commercial 'replacement' for Maxima), and both of them will leave you unsatisfied if your expectations are too high. Both applications can reduce "easy" problems, but as you get to more difficult problems to solve, or if you're looking for specific simplifications, they fall down. You can push their usefulness further by using them as handy calculators for parts of your problem, or as a check on your work, but ultimately if the problem at hand is difficult enough there'll have to be some human neurons hard at work to find the solution. On Mon, 2015-12-07 at 14:12 -0300, Pablo Fonovich wrote: > Hi: > As tim stated before, scilab does numerical calculation of integrals, > very usefull for ingeneering problems for example... but does not > provide any function for symbolic calculation of integrals. If you > really need symbolic computation of an integral, i would recommend you > using maxima, or wxmaxima if you are a begginner... There is also a > toolbox for doing symbolic calculation trhough maxima in scilab called > "scimax", you could try it if you want to do everything in scilab, but > i think is a bit outdated. > > May i ask you why you need to do a symbolic calculation? > > > ______________________________________________________________________ > Date: Mon, 7 Dec 2015 08:48:15 -0600 > From: btoven66 at gmail.com > To: tim at wescottdesign.com; users at lists.scilab.org > Subject: Re: [Scilab-users] integrals > > symbolic solutions > > _______________________________________________ users mailing list > users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From flotschos at gmail.com Wed Dec 9 18:37:37 2015 From: flotschos at gmail.com (Florian Winter) Date: Wed, 9 Dec 2015 18:37:37 +0100 Subject: [Scilab-users] Converting UT to Standard Time Message-ID: Hi, I have a problem. I get data about the time from a file in UT. That means I get the number of seconds elapsed on the day instead of a "normal" time (e.g. 63602 actually means 17:40:02) I'm trying to plot some values with this time but to make it more readable I would like to use "17:40:02" for the ticks on the x-axis instead of the seconds, so I wrote a function to convert the seconds to a string. If I don't change the ticks to the custom strings it automatically only shows 7 ticks but if I change it like I did, it shows the ticks for every single value I use and the whole thing becomes sort of unreadable. Is there a possibility to convert the time differently or can I somehow limit the number of ticks that should be drawn? /////////////////////////////////////////////////////////////////////// time = [63602,63602.05,63603,63603.5,63604,63606] values = [1,2,3,4,5,7] function convertedtime = timestring(UT) //converts UT h=int(UT/3600); UT=UT-h*3600; m=int(UT/60); UT=UT-m*60; if UT < 10 then convertedtime = string(h) + ":" + string(m) + ":0" + string(UT); else convertedtime = string(h) + ":" + string(m) + ":" +string(UT); end endfunction newtime = timestring(time); plot(time,values); a=gca(); ticks = a.x_ticks ticks.labels=newtime ticks.locations=time a.x_ticks=ticks //////////////////////////////////////////////////////////// Regards, Flotschos -------------- next part -------------- An HTML attachment was scrubbed... URL: From pablo_f_7 at hotmail.com Wed Dec 9 20:00:32 2015 From: pablo_f_7 at hotmail.com (Pablo Fonovich) Date: Wed, 9 Dec 2015 16:00:32 -0300 Subject: [Scilab-users] Converting UT to Standard Time In-Reply-To: References: Message-ID: Hi: First of all i want to ask you if time = [63602,63602.05,63603,63603.5,63604,63606] is correct. As you may notice, the first two values are too near... so in the plot the tics appear overlapped... if you use time = [63602,63602.5,63603,63603.5,63604,63606] the plot's tics become clearer... The second question is how near this tics are supposed to be in the worst case? for example, if your time conssists of values sepparated about 0.05, you could create a new vector containing the positions of the tics, that exclude too near values... I mean: time = [63602,63602.05,63602.09,63603.5,63604,63606] values = [1,2,3,4,5,7] function convertedtime = timestring(UT) //converts UT h=int(UT/3600); UT=UT-h*3600; m=int(UT/60); UT=UT-m*60; if UT < 10 then convertedtime = string(h) + ":" + string(m) + ":0" + string(UT); else convertedtime = string(h) + ":" + string(m) + ":" +string(UT); end endfunction timeTics=time(1) for i=1:length(time) if(abs(timeTics($)-time(i))>=0.5) timeTics=[timeTics;time(i)] end end newtime = timestring(timeTics); plot(time,values); a=gca(); ticks = a.x_ticks ticks.labels=newtime ticks.locations=timeTics a.x_ticks=ticks This may be non optimall solution, but may work Date: Wed, 9 Dec 2015 18:37:37 +0100 From: flotschos at gmail.com To: users at lists.scilab.org Subject: [Scilab-users] Converting UT to Standard Time Hi,I have a problem. I get data about the time from a file in UT. That means I get the number of seconds elapsed on the day instead of a "normal" time (e.g. 63602 actually means 17:40:02) I'm trying to plot some values with this time but to make it more readable I would like to use "17:40:02" for the ticks on the x-axis instead of the seconds,so I wrote a function to convert the seconds to a string. If I don't change the ticks to the custom strings it automatically only shows 7 ticks but if I change it like I did, it shows the ticks for every single value I use and the whole thing becomes sort of unreadable.Is there a possibility to convert the time differently or can I somehow limit the number of ticks that should be drawn? ///////////////////////////////////////////////////////////////////////time = [63602,63602.05,63603,63603.5,63604,63606]values = [1,2,3,4,5,7] function convertedtime = timestring(UT) //converts UT h=int(UT/3600); UT=UT-h*3600; m=int(UT/60); UT=UT-m*60; if UT < 10 then convertedtime = string(h) + ":" + string(m) + ":0" + string(UT); else convertedtime = string(h) + ":" + string(m) + ":" +string(UT); endendfunction newtime = timestring(time); plot(time,values);a=gca();ticks = a.x_ticksticks.labels=newtimeticks.locations=timea.x_ticks=ticks //////////////////////////////////////////////////////////// Regards,Flotschos _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From pablo_f_7 at hotmail.com Wed Dec 9 20:12:09 2015 From: pablo_f_7 at hotmail.com (Pablo Fonovich) Date: Wed, 9 Dec 2015 16:12:09 -0300 Subject: [Scilab-users] Converting UT to Standard Time In-Reply-To: References: , Message-ID: Hi: You may also define a vector with any label regardless your data, and the data of a particular point could be visually interpolated by the reader with a grid, just like excell does... I'm not sure if i'm clear enough... i'll send you an example time = [63602,63602.05,63602.09,63603.5,63604,63606] values = [1,2,3,4,5,7] function convertedtime = timestring(UT) //converts UT h=int(UT/3600); UT=UT-h*3600; m=int(UT/60); UT=UT-m*60; if UT < 10 then convertedtime = string(h) + ":" + string(m) + ":0" + string(UT); else convertedtime = string(h) + ":" + string(m) + ":" +string(UT); end endfunction timeTics=time(1):0.8:time($) newtime = timestring(timeTics); plot(time,values); a=gca(); ticks = a.x_ticks ticks.labels=newtime ticks.locations=timeTics a.x_ticks=ticks Of course, the label does not represent actual data you read from a file or something, they would just be text labels to let you read the plot... with this approach you can define the distance between each tic easily From: pablo_f_7 at hotmail.com To: users at lists.scilab.org Date: Wed, 9 Dec 2015 16:00:32 -0300 Subject: Re: [Scilab-users] Converting UT to Standard Time Hi: First of all i want to ask you if time = [63602,63602.05,63603,63603.5,63604,63606] is correct. As you may notice, the first two values are too near... so in the plot the tics appear overlapped... if you use time = [63602,63602.5,63603,63603.5,63604,63606] the plot's tics become clearer... The second question is how near this tics are supposed to be in the worst case? for example, if your time conssists of values sepparated about 0.05, you could create a new vector containing the positions of the tics, that exclude too near values... I mean: time = [63602,63602.05,63602.09,63603.5,63604,63606] values = [1,2,3,4,5,7] function convertedtime = timestring(UT) //converts UT h=int(UT/3600); UT=UT-h*3600; m=int(UT/60); UT=UT-m*60; if UT < 10 then convertedtime = string(h) + ":" + string(m) + ":0" + string(UT); else convertedtime = string(h) + ":" + string(m) + ":" +string(UT); end endfunction timeTics=time(1) for i=1:length(time) if(abs(timeTics($)-time(i))>=0.5) timeTics=[timeTics;time(i)] end end newtime = timestring(timeTics); plot(time,values); a=gca(); ticks = a.x_ticks ticks.labels=newtime ticks.locations=timeTics a.x_ticks=ticks This may be non optimall solution, but may work Date: Wed, 9 Dec 2015 18:37:37 +0100 From: flotschos at gmail.com To: users at lists.scilab.org Subject: [Scilab-users] Converting UT to Standard Time Hi,I have a problem. I get data about the time from a file in UT. That means I get the number of seconds elapsed on the day instead of a "normal" time (e.g. 63602 actually means 17:40:02) I'm trying to plot some values with this time but to make it more readable I would like to use "17:40:02" for the ticks on the x-axis instead of the seconds,so I wrote a function to convert the seconds to a string. If I don't change the ticks to the custom strings it automatically only shows 7 ticks but if I change it like I did, it shows the ticks for every single value I use and the whole thing becomes sort of unreadable.Is there a possibility to convert the time differently or can I somehow limit the number of ticks that should be drawn? ///////////////////////////////////////////////////////////////////////time = [63602,63602.05,63603,63603.5,63604,63606]values = [1,2,3,4,5,7] function convertedtime = timestring(UT) //converts UT h=int(UT/3600); UT=UT-h*3600; m=int(UT/60); UT=UT-m*60; if UT < 10 then convertedtime = string(h) + ":" + string(m) + ":0" + string(UT); else convertedtime = string(h) + ":" + string(m) + ":" +string(UT); endendfunction newtime = timestring(time); plot(time,values);a=gca();ticks = a.x_ticksticks.labels=newtimeticks.locations=timea.x_ticks=ticks //////////////////////////////////////////////////////////// Regards,Flotschos _______________________________________________ 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 sgougeon at free.fr Wed Dec 9 20:28:17 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 9 Dec 2015 20:28:17 +0100 Subject: [Scilab-users] Converting UT to Standard Time In-Reply-To: References: Message-ID: <566880D1.2020206@free.fr> Hi, In that case, since the time range is small compared to the starting time, i would use simply plot(time-63600, values) xlabel("17:40:00 + [s]") Regards Samuel Gougeon Le 09/12/2015 18:37, Florian Winter a ?crit : > Hi, > I have a problem. I get data about the time from a file in UT. That > means I get the number of seconds elapsed on the day instead of a > "normal" time (e.g. 63602 actually means 17:40:02) > > I'm trying to plot some values with this time but to make it more > readable I would like to use "17:40:02" for the ticks on the x-axis > instead of the seconds, > so I wrote a function to convert the seconds to a string. > > If I don't change the ticks to the custom strings it automatically > only shows 7 ticks but if I change it like I did, it shows the ticks > for every single value I use and the whole thing becomes sort of > unreadable. > Is there a possibility to convert the time differently or can I > somehow limit the number of ticks that should be drawn? > > > > /////////////////////////////////////////////////////////////////////// > time = [63602,63602.05,63603,63603.5,63604,63606] > values = [1,2,3,4,5,7] > > function convertedtime = timestring(UT) //converts UT > h=int(UT/3600); > UT=UT-h*3600; > m=int(UT/60); > UT=UT-m*60; > if UT < 10 then > convertedtime = string(h) + ":" + string(m) + ":0" + string(UT); > else > convertedtime = string(h) + ":" + string(m) + ":" +string(UT); > end > endfunction > > newtime = timestring(time); > > plot(time,values); > a=gca(); > ticks = a.x_ticks > ticks.labels=newtime > ticks.locations=time > a.x_ticks=ticks > > //////////////////////////////////////////////////////////// > > > > Regards, > Flotschos > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From flotschos at gmail.com Thu Dec 10 11:22:11 2015 From: flotschos at gmail.com (Florian Winter) Date: Thu, 10 Dec 2015 11:22:11 +0100 Subject: [Scilab-users] Converting UT to Standard Time In-Reply-To: <566880D1.2020206@free.fr> References: <566880D1.2020206@free.fr> Message-ID: Thank you very much! I like this idea because the range is indeed small compared to the starting time, I think I will use this approach! Regards Florian 2015-12-09 20:28 GMT+01:00 Samuel Gougeon : > Hi, > In that case, since the time range is small compared to the starting time, > i would use simply > > plot(time-63600, values) > xlabel("17:40:00 + [s]") > > Regards > Samuel Gougeon > > > Le 09/12/2015 18:37, Florian Winter a ?crit : > > Hi, > I have a problem. I get data about the time from a file in UT. That means > I get the number of seconds elapsed on the day instead of a "normal" time > (e.g. 63602 actually means 17:40:02) > > I'm trying to plot some values with this time but to make it more readable > I would like to use "17:40:02" for the ticks on the x-axis instead of the > seconds, > so I wrote a function to convert the seconds to a string. > > If I don't change the ticks to the custom strings it automatically only > shows 7 ticks but if I change it like I did, it shows the ticks for every > single value I use and the whole thing becomes sort of unreadable. > Is there a possibility to convert the time differently or can I somehow > limit the number of ticks that should be drawn? > > > > /////////////////////////////////////////////////////////////////////// > time = [63602,63602.05,63603,63603.5,63604,63606] > values = [1,2,3,4,5,7] > > function convertedtime = timestring(UT) //converts UT > h=int(UT/3600); > UT=UT-h*3600; > m=int(UT/60); > UT=UT-m*60; > if UT < 10 then > convertedtime = string(h) + ":" + string(m) + ":0" + string(UT); > else > convertedtime = string(h) + ":" + string(m) + ":" +string(UT); > end > endfunction > > newtime = timestring(time); > > plot(time,values); > a=gca(); > ticks = a.x_ticks > ticks.labels=newtime > ticks.locations=time > a.x_ticks=ticks > > //////////////////////////////////////////////////////////// > > > > Regards, > Flotschos > > > _______________________________________________ > 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 frederikdruyts at gmail.com Fri Dec 11 13:10:11 2015 From: frederikdruyts at gmail.com (fred_audio_dsp) Date: Fri, 11 Dec 2015 05:10:11 -0700 (MST) Subject: [Scilab-users] Plotting properties of digital audio filters Message-ID: <1449835811353-4033198.post@n3.nabble.com> Hi, With an interest in the under-documented properties of digital filters as implemented in DAW software, I set out to capture the impulse response of some of the built-in filters of the Pro Tools software. Using scilab, I take the FFT of an impulse response, in order to get an idea of the magnitude and phase responses of the filters. My code is as follows: [impulse,sr,fmt]=sfread("test.1.aif") A=fft(impulse) A=A(1:(size(A,"*")/2)) // Remove symmetric second half from FFT N=size(A,"*") f=([1:N]')*((sr/2)/N) // Frequency vector - note: all my recorded responses are 1s long db=20*log10(abs(A)) phi=(atan(imag(A),real(A)))*180/%pi plot2d("ln",f,db) plot2d("ln",f,phi) The magnitude response plots work out nicely, though in the phase response plots I get unexpected behaviour. E.g. for a low pass filter (24dB/oct at 1kHz), oscillation between -180?-0?-180? above a certain frequency, or for a peak filter (-2db at 200Hz, Q=1), a frequency response that drops off to -180? as the frequency tends to Nyquist. I am not well versed enough in DSP to solve this problem on my own, and would like to ask for your suggestions as to how I could get the expected frequency plots from this experiment. Kind regards, Frederik -- View this message in context: http://mailinglists.scilab.org/Plotting-properties-of-digital-audio-filters-tp4033198.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From fabrizio.parisini at gmail.com Fri Dec 11 14:45:21 2015 From: fabrizio.parisini at gmail.com (fabrizio parisini) Date: Fri, 11 Dec 2015 14:45:21 +0100 Subject: [Scilab-users] SCIDIR directory - where is it? Message-ID: Hello everyone, I?m new to Scilab. I?ve download the 5.2.2 Version and I?m looking for this directory: SCIDIR/lib/scilab-4.1/examples/mex-examples. (I want to understand how to deal with mex files from MATLAB and see the suggested examples). The problem is, I cannot find the SCIDIR directory! Is it among the installation files or do I have to compile it on SCilab workplace? Is the foreamentioned path only for the 4.1 version? Thanks in advance, Fabrizio -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Fri Dec 11 14:50:38 2015 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Fri, 11 Dec 2015 13:50:38 +0000 Subject: [Scilab-users] Plotting properties of digital audio filters In-Reply-To: <1449835811353-4033198.post@n3.nabble.com> References: <1449835811353-4033198.post@n3.nabble.com> Message-ID: Hi, Would unwrapping the phase before plotting fix your phase issues? Regards, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of fred_audio_dsp Sent: Friday, December 11, 2015 12:10 PM To: users at lists.scilab.org Subject: [Scilab-users] Plotting properties of digital audio filters Hi, With an interest in the under-documented properties of digital filters as implemented in DAW software, I set out to capture the impulse response of some of the built-in filters of the Pro Tools software. Using scilab, I take the FFT of an impulse response, in order to get an idea of the magnitude and phase responses of the filters. My code is as follows: [impulse,sr,fmt]=sfread("test.1.aif") A=fft(impulse) A=A(1:(size(A,"*")/2)) // Remove symmetric second half from FFT N=size(A,"*") f=([1:N]')*((sr/2)/N) // Frequency vector - note: all my recorded responses are 1s long db=20*log10(abs(A)) phi=(atan(imag(A),real(A)))*180/%pi plot2d("ln",f,db) plot2d("ln",f,phi) The magnitude response plots work out nicely, though in the phase response plots I get unexpected behaviour. E.g. for a low pass filter (24dB/oct at 1kHz), oscillation between -180?-0?-180? above a certain frequency, or for a peak filter (-2db at 200Hz, Q=1), a frequency response that drops off to -180? as the frequency tends to Nyquist. I am not well versed enough in DSP to solve this problem on my own, and would like to ask for your suggestions as to how I could get the expected frequency plots from this experiment. Kind regards, Frederik -- View this message in context: http://mailinglists.scilab.org/Plotting-properties-of-digital-audio-filters-tp4033198.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 frederikdruyts at gmail.com Fri Dec 11 17:06:31 2015 From: frederikdruyts at gmail.com (fred_audio_dsp) Date: Fri, 11 Dec 2015 09:06:31 -0700 (MST) Subject: [Scilab-users] Plotting properties of digital audio filters In-Reply-To: References: <1449835811353-4033198.post@n3.nabble.com> Message-ID: <1449849991909-4033202.post@n3.nabble.com> Hi Rafael, Thank you for your reply. I have tried unwrapping the phase for the 24dB/oct low pass filter at 1kHz with scilab's unwrap() function. Plots included below; I scaled the frequency axis linearily to better show what's going on. without unwrap() with unwrap() Kind regards, Frederik -- View this message in context: http://mailinglists.scilab.org/Plotting-properties-of-digital-audio-filters-tp4033198p4033202.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From jrafaelbguerra at hotmail.com Fri Dec 11 17:43:08 2015 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Fri, 11 Dec 2015 16:43:08 +0000 Subject: [Scilab-users] Plotting properties of digital audio filters In-Reply-To: <1449849991909-4033202.post@n3.nabble.com> References: <1449835811353-4033198.post@n3.nabble.com> <1449849991909-4033202.post@n3.nabble.com> Message-ID: Hi Frederik, The unwrapping shown does not look good, it seems that you need to play further with the unwrap input parameters. Check if Scilab's function gives same results as this one: http://mailinglists.scilab.org/unwrap-improvements-td4026370.html You can compare the results with those from Scilab's phasemag function: clf(); [phi,db]=phasemag(A,'c'); subplot(1,2,1) plot2d("ln",f,db) subplot(1,2,2) plot2d("ln",f,phi) Regards, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of fred_audio_dsp Sent: Friday, December 11, 2015 4:07 PM To: users at lists.scilab.org Subject: Re: [Scilab-users] Plotting properties of digital audio filters Hi Rafael, Thank you for your reply. I have tried unwrapping the phase for the 24dB/oct low pass filter at 1kHz with scilab's unwrap() function. Plots included below; I scaled the frequency axis linearily to better show what's going on. without unwrap() < http://mailinglists.scilab.org/file/n4033202/plot1.png> with unwrap() < http://mailinglists.scilab.org/file/n4033202/plot2.png> Kind regards, Frederik -- View this message in context: http://mailinglists.scilab.org/Plotting-properties-of-digital-audio-filters-tp40 33198p4033202.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 frederikdruyts at gmail.com Fri Dec 11 18:03:58 2015 From: frederikdruyts at gmail.com (fred_audio_dsp) Date: Fri, 11 Dec 2015 10:03:58 -0700 (MST) Subject: [Scilab-users] Plotting properties of digital audio filters In-Reply-To: References: <1449835811353-4033198.post@n3.nabble.com> <1449849991909-4033202.post@n3.nabble.com> Message-ID: <1449853438180-4033204.post@n3.nabble.com> Hi Rafael, Thank you very kindly for your assistance so far! If I understand correctly, the unwrap() macro quoted in your message has been part of Scilab since somewhere in 2014, am I wrong? Using scilab's phasemag() macro as suggested, I get the exact same output as when plotting the phase with the code posted in my first message: phi=(atan(imag(A),real(A)))*180/%pi Kind regards, Frederik -- View this message in context: http://mailinglists.scilab.org/Plotting-properties-of-digital-audio-filters-tp4033198p4033204.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Serge.Steer at inria.fr Fri Dec 11 19:09:52 2015 From: Serge.Steer at inria.fr (Serge Steer) Date: Fri, 11 Dec 2015 19:09:52 +0100 Subject: [Scilab-users] Plotting properties of digital audio filters In-Reply-To: <1449853438180-4033204.post@n3.nabble.com> References: <1449835811353-4033198.post@n3.nabble.com> <1449849991909-4033202.post@n3.nabble.com> <1449853438180-4033204.post@n3.nabble.com> Message-ID: <566B1170.8040900@inria.fr> Le 11/12/2015 18:03, fred_audio_dsp a ?crit : > Hi Rafael, > > Thank you very kindly for your assistance so far! > > If I understand correctly, the unwrap() macro quoted in your message has > been part of Scilab since somewhere in 2014, am I wrong? > > Using scilab's phasemag() macro as suggested, I get the exact same output as > when plotting the phase with the code posted in my first message: take care of the second input argument of phasemag. To obtain an unwrapped phase you must pas "c" as the second argument. Serge > phi=(atan(imag(A),real(A)))*180/%pi > > > Kind regards, > > Frederik > > > > -- > View this message in context: http://mailinglists.scilab.org/Plotting-properties-of-digital-audio-filters-tp4033198p4033204.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 Fri Dec 11 21:04:48 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 11 Dec 2015 21:04:48 +0100 Subject: [Scilab-users] SCIDIR directory - where is it? In-Reply-To: References: Message-ID: <566B2C60.5020907@free.fr> Hello, Le 11/12/2015 14:45, fabrizio parisini a ?crit : > Hello everyone, > > I?m new to Scilab. I?ve download the 5.2.2 Version and I?m looking for > this directory: > > SCIDIR/lib/scilab-4.1/examples/mex-examples. Where is it indicated as this? SCIDIR may stand for SCI now, where SCI is the name of the Scilab variable containing the path to the Scilab installation directory. HTH Samuel Gougeon -------------- next part -------------- An HTML attachment was scrubbed... URL: From frederikdruyts at gmail.com Fri Dec 11 21:51:00 2015 From: frederikdruyts at gmail.com (fred_audio_dsp) Date: Fri, 11 Dec 2015 13:51:00 -0700 (MST) Subject: [Scilab-users] Plotting properties of digital audio filters In-Reply-To: <566B1170.8040900@inria.fr> References: <1449835811353-4033198.post@n3.nabble.com> <1449849991909-4033202.post@n3.nabble.com> <1449853438180-4033204.post@n3.nabble.com> <566B1170.8040900@inria.fr> Message-ID: <1449867060411-4033207.post@n3.nabble.com> Hi Serge, Thank you very much for the assistance. I can confirm I was passing 'c' to the macro, which gave me the second plot in my post above. Kind regards, Frederik -- View this message in context: http://mailinglists.scilab.org/Plotting-properties-of-digital-audio-filters-tp4033198p4033207.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From jrafaelbguerra at hotmail.com Fri Dec 11 22:27:46 2015 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Fri, 11 Dec 2015 21:27:46 +0000 Subject: [Scilab-users] Plotting properties of digital audio filters In-Reply-To: <1449867060411-4033207.post@n3.nabble.com> References: <1449835811353-4033198.post@n3.nabble.com> <1449849991909-4033202.post@n3.nabble.com> <1449853438180-4033204.post@n3.nabble.com> <566B1170.8040900@inria.fr> <1449867060411-4033207.post@n3.nabble.com> Message-ID: Frederik, Could you show the dB amplitude spectra or share a zip of the input data (ascii file)? Maybe the signal to noise ratio is too low over the higher frequencies rendering an accurate phase estimation difficult. Regards Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of fred_audio_dsp Sent: Friday, December 11, 2015 8:51 PM To: users at lists.scilab.org Subject: Re: [Scilab-users] Plotting properties of digital audio filters Hi Serge, Thank you very much for the assistance. I can confirm I was passing 'c' to the macro, which gave me the second plot in my post above. Kind regards, Frederik -- View this message in context: http://mailinglists.scilab.org/Plotting-properties-of-digital-audio-filters-tp40 33198p4033207.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 frederikdruyts at gmail.com Sun Dec 13 19:21:37 2015 From: frederikdruyts at gmail.com (fred_audio_dsp) Date: Sun, 13 Dec 2015 11:21:37 -0700 (MST) Subject: [Scilab-users] Plotting properties of digital audio filters In-Reply-To: References: <1449835811353-4033198.post@n3.nabble.com> <1449849991909-4033202.post@n3.nabble.com> <1449853438180-4033204.post@n3.nabble.com> <566B1170.8040900@inria.fr> <1449867060411-4033207.post@n3.nabble.com> Message-ID: <1450030897887-4033215.post@n3.nabble.com> Hi, By making the FFT size of the form 2*2^x, I managed to get more of an expected result. Still the phase response of the filters I analyze drops off to -180? unexpectedly, as illustrated in the plot below (without frequency vector applied because I'm just testing). This is a peak filter, -3dB at 500Hz, Q=1. Note that any kind of phase unwrapping did not produce any different result. I have included a zip file of the captured impulse response. response.zip Regards, Frederik -- View this message in context: http://mailinglists.scilab.org/Plotting-properties-of-digital-audio-filters-tp4033198p4033215.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From jrafaelbguerra at hotmail.com Sun Dec 13 21:23:21 2015 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sun, 13 Dec 2015 20:23:21 +0000 Subject: [Scilab-users] Plotting properties of digital audio filters In-Reply-To: <1450030897887-4033215.post@n3.nabble.com> References: <1449835811353-4033198.post@n3.nabble.com> <1449849991909-4033202.post@n3.nabble.com> <1449853438180-4033204.post@n3.nabble.com> <566B1170.8040900@inria.fr> <1449867060411-4033207.post@n3.nabble.com> <1450030897887-4033215.post@n3.nabble.com> Message-ID: Hi, Assuming sr=5e-5 s, Scilab 5.5.2 gave me the following phase plot: Regards, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of fred_audio_dsp Sent: Sunday, December 13, 2015 6:22 PM To: users at lists.scilab.org Subject: Re: [Scilab-users] Plotting properties of digital audio filters Hi, By making the FFT size of the form 2*2^x, I managed to get more of an expected result. Still the phase response of the filters I analyze drops off to -180? unexpectedly, as illustrated in the plot below (without frequency vector applied because I'm just testing). This is a peak filter, -3dB at 500Hz, Q=1. Note that any kind of phase unwrapping did not produce any different result. < http://mailinglists.scilab.org/file/n4033215/plot3.png> I have included a zip file of the captured impulse response. response.zip < http://mailinglists.scilab.org/file/n4033215/response.zip> Regards, Frederik -- View this message in context: http://mailinglists.scilab.org/Plotting-properties-of-digital-audio-filters-tp4033198p4033215.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: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 29040 bytes Desc: not available URL: From frederikdruyts at gmail.com Sun Dec 13 22:33:25 2015 From: frederikdruyts at gmail.com (fred_audio_dsp) Date: Sun, 13 Dec 2015 14:33:25 -0700 (MST) Subject: [Scilab-users] Plotting properties of digital audio filters In-Reply-To: References: <1449835811353-4033198.post@n3.nabble.com> <1449849991909-4033202.post@n3.nabble.com> <1449853438180-4033204.post@n3.nabble.com> <566B1170.8040900@inria.fr> <1449867060411-4033207.post@n3.nabble.com> <1450030897887-4033215.post@n3.nabble.com> Message-ID: <1450042405701-4033217.post@n3.nabble.com> Hi Rafael, Would you mind sharing the code that produced these plots, or hinting at the method? Regards -- View this message in context: http://mailinglists.scilab.org/Plotting-properties-of-digital-audio-filters-tp4033198p4033217.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From jrafaelbguerra at hotmail.com Mon Dec 14 01:41:54 2015 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Mon, 14 Dec 2015 00:41:54 +0000 Subject: [Scilab-users] Plotting properties of digital audio filters In-Reply-To: <1450042405701-4033217.post@n3.nabble.com> References: <1449835811353-4033198.post@n3.nabble.com> <1449849991909-4033202.post@n3.nabble.com> <1449853438180-4033204.post@n3.nabble.com> <566B1170.8040900@inria.fr> <1449867060411-4033207.post@n3.nabble.com> <1450030897887-4033215.post@n3.nabble.com> <1450042405701-4033217.post@n3.nabble.com> Message-ID: Fred, I have detrended the phase spectrum before plotting but not sure that it is what you need. What result would you expect to obtain? Regards, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of fred_audio_dsp Sent: Sunday, December 13, 2015 9:33 PM To: users at lists.scilab.org Subject: Re: [Scilab-users] Plotting properties of digital audio filters Hi Rafael, Would you mind sharing the code that produced these plots, or hinting at the method? Regards -- View this message in context: http://mailinglists.scilab.org/Plotting-properties-of-digital-audio-filters-tp40 33198p4033217.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 shahrizan.mazlan at yes.my Mon Dec 14 08:47:40 2015 From: shahrizan.mazlan at yes.my (shahriqeen) Date: Mon, 14 Dec 2015 00:47:40 -0700 (MST) Subject: [Scilab-users] How to use champ Message-ID: <1450079260314-4033219.post@n3.nabble.com> I am a new user to this scilab. How to plot the champ of this system function f=System1(t, y); f = zeros (2,1); f(1) = A*y(1)-(B*y(1)*y(2)); f(2) = (-C*y(2))+(D*y(1)*y(2)) endfunction A=0.4; B=0.06; C=0.12; D=0.0006; t0=0; y0=[140;6]; t=0:0.001:150; y=ode (y0,t0,t,System1); plot2d(y(1,:),y(2,:),1); xtitle ('System1'); xlabel('x'); ylabel ('y'); -- View this message in context: http://mailinglists.scilab.org/How-to-use-champ-tp4033219.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From arvid at softube.com Mon Dec 14 12:14:13 2015 From: arvid at softube.com (=?utf-8?B?QXJ2aWQgUm9zw6lu?=) Date: Mon, 14 Dec 2015 11:14:13 +0000 Subject: [Scilab-users] Plotting properties of digital audio filters In-Reply-To: References: <1449835811353-4033198.post@n3.nabble.com> <1449849991909-4033202.post@n3.nabble.com> <1449853438180-4033204.post@n3.nabble.com> <566B1170.8040900@inria.fr> <1449867060411-4033207.post@n3.nabble.com> <1450030897887-4033215.post@n3.nabble.com> <1450042405701-4033217.post@n3.nabble.com> Message-ID: <6FA800B0-C26E-47D6-A305-7C701A53E634@softube.com> Fred, The first sample of your measured impulse starts with 0.0. That is, you have a delay of one sample in the system you are trying to identify (or maybe your input signal also starts with a zero). 1 sample of latency corresponds to 180 degree phase shift at the Nyquist rate, so it all looks reasonable to me. If you don?t want that, you can use detrend as Rafael sugests, or remove any leading zeros in your input data. Cheers, Arvid > On 14 Dec 2015, at 01:41, Rafael Guerra wrote: > > Fred, > > I have detrended the phase spectrum before plotting but not sure that it is what > you need. > What result would you expect to obtain? > > Regards, > Rafael > > -----Original Message----- > From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of fred_audio_dsp > Sent: Sunday, December 13, 2015 9:33 PM > To: users at lists.scilab.org > Subject: Re: [Scilab-users] Plotting properties of digital audio filters > > Hi Rafael, > > Would you mind sharing the code that produced these plots, or hinting at the > method? > > Regards > > > > -- > View this message in context: > http://mailinglists.scilab.org/Plotting-properties-of-digital-audio-filters-tp40 > 33198p4033217.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 clement.david at scilab-enterprises.com Mon Dec 14 13:52:08 2015 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 14 Dec 2015 13:52:08 +0100 Subject: [Scilab-users] Problem with Xcos FMU wrapper 0.6 In-Reply-To: References: Message-ID: <1450097528.12112.3.camel@scilab-enterprises.com> Hi Umut, Did you try adding the `scicos_block.dll` file to the VC++ path ? For FMU generation, we need block simulation functions thus you need to link against them. If you find some issues, do not hesitate to report bugs to the forge. Regards, -- Cl?ment Le dimanche 29 novembre 2015 ? 17:35 +0100, Dr.Umut Durak a ?crit?: > Hi all, > > We are recently working on integrating FMUs (co-simulation) from Scilab into > our real-time simulation framework 2Simulate > (https://www.researchgate.net/publication/271963197_2Simulate_A_Distributed_Real-Time_Simulation_F > ramework?ev=prf_pub > ), in order to exercise the suitability of FMI for (Scilab/Xcos) model > integration for real time flight simulators (you can find more information > about our model integration work for Matlab in > https://www.researchgate.net/publication/266205585_Model_Integration_Workflow_for_Keeping_Models_u > p_to_Date_in_a_Research_Simulator?ev=prf_pub > ). As the first step, we are trying to develop a simle standalone > application for simulating an FMU using VC++,??basically inspired from > QTronic SDK > (http://www.qtronic.de/en/fmusdk.html). We exported some sample FMUs for > Co-Simulation from Xcos SCILAB using fmu-wrapper-0.6 > (http://forge.scilab.org/index.php/p/fmu-wrapper/). The problem we are > facing is that the exported FMU can only be imported in Xcos. In VC++, it > gives me an error stated that "couldn't load xxx.dll". We tried to import > the FMU using OpenModelica, but it also fails with the same problem, the DLL > file. In the module documentation it is mentioned that Scilab must be > installed because the shared library use some dependencies, but it's already > installed. > Again, according to the module description, the FMU should work fine in > other tools, but we failed to achieve it. Any one has an example VC++ FMU > master? We are then willing to prepare a tutorial and add it to??fmu-wrapper > documentation. > > > Dr.Umut Durak > > Adjunct Lecturer > TU Clausthal Institute of Informatics > Model-based Systems Analysis and Simulation Department > https://www.in.tu-clausthal.de/en/divisions/model-based-systems-analysis-and-simulation/members/dr > umut-durak/ > > Research Scientist > DLR e.V. Institute of Flight Systems > Flight Dynamics and Simulation Department > Phone +49 531 295-2907 | umut.durak at dlr.de > www.DLR.de/ft | de.linkedin.com/in/umutdurak > > Upcoming Book: > Distributed Simulation: A Model Driven Engineering Approach > Top?u, O., Durak, U., O?uzt?z?n, H., Yilmaz, L. > http://www.springer.com/us/book/9783319030494 > > Upcomming Conferences and Workshops: > 6th International Workshop on Model-driven Approaches for Simulation > Engineering (MOD4SIM?16) > Ontologies in Simulation Special Interest Track of Annual Simulation > Symposium (ANSS) > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From frederikdruyts at gmail.com Mon Dec 14 21:36:05 2015 From: frederikdruyts at gmail.com (fred_audio_dsp) Date: Mon, 14 Dec 2015 13:36:05 -0700 (MST) Subject: [Scilab-users] Plotting properties of digital audio filters In-Reply-To: <6FA800B0-C26E-47D6-A305-7C701A53E634@softube.com> References: <1449853438180-4033204.post@n3.nabble.com> <566B1170.8040900@inria.fr> <1449867060411-4033207.post@n3.nabble.com> <1450030897887-4033215.post@n3.nabble.com> <1450042405701-4033217.post@n3.nabble.com> <6FA800B0-C26E-47D6-A305-7C701A53E634@softube.com> Message-ID: <1450125365795-4033224.post@n3.nabble.com> Hi, The suggestions have all been implemented. I think the plots are being produced as they should now. I would then like to ask a question about the response of a particular filter from a software plugin; it's supposed to be a four pole low pass filter, set at 1047Hz. The code used: [imrep,sr,fmt]=sfread("REA_LP_1047Hz_24dB.aif") A=fft(imrep) A=A(1:(size(A,"*")/2)) db=20*log10(abs(A)) phi=(atan(imag(A),real(A)))*180/%pi plot2d("ln",db) plot2d("ln",phi) The plots: magnitude phase The impulse response (sampled at 44100kHz): response.zip My question is whether what we're seeing here is the actual magnitude and phase response of the filter, or if there is still an error in the way I'm treating the data? Regards, Frederik -- View this message in context: http://mailinglists.scilab.org/Plotting-properties-of-digital-audio-filters-tp4033198p4033224.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From fujimoto2005 at gmail.com Tue Dec 15 03:42:02 2015 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Mon, 14 Dec 2015 19:42:02 -0700 (MST) Subject: [Scilab-users] unable to set style for histplot Message-ID: <1450147322379-4033225.post@n3.nabble.com> I use scilab 6.0.0 alpha 2. The following script is the sample code of the help file on 'histplot'. But it can't set the style as the help page. The result is the default style. Is this the bug or is there any ways to work rightly? Best ragrds. ************ d = grand(1000,1,"bin", 6, 0.5); c = linspace(-0.5,6.5,8); clf() subplot(2,1,1) histplot(c, d, style=2) xtitle("normalized histogram") subplot(2,1,2) histplot(c, d, normalization=%f, style=5) xtitle("non normalized histogram") *********************** -- View this message in context: http://mailinglists.scilab.org/unable-to-set-style-for-histplot-tp4033225.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Serge.Steer at inria.fr Tue Dec 15 09:36:30 2015 From: Serge.Steer at inria.fr (Serge Steer) Date: Tue, 15 Dec 2015 09:36:30 +0100 Subject: [Scilab-users] unable to set style for histplot In-Reply-To: <1450147322379-4033225.post@n3.nabble.com> References: <1450147322379-4033225.post@n3.nabble.com> Message-ID: <566FD10E.9090802@inria.fr> Le 15/12/2015 03:42, fujimoto2005 a ?crit : > d = grand(1000,1,"bin", 6, 0.5); > > c = linspace(-0.5,6.5,8); > > clf() > > subplot(2,1,1) > > histplot(c, d, style=2) > > xtitle("normalized histogram") > > subplot(2,1,2) > > histplot(c, d, normalization=%f, style=5) > > xtitle("non normalized histogram") The style argument rule the color of the lines and it appear to work as expected under sclab-5.5.2 (Linux) voir fichier joint. Serge Steer -------------- next part -------------- A non-text attachment was scrubbed... Name: Figure.pdf Type: application/pdf Size: 8671 bytes Desc: not available URL: From Serge.Steer at inria.fr Tue Dec 15 09:53:58 2015 From: Serge.Steer at inria.fr (Serge Steer) Date: Tue, 15 Dec 2015 09:53:58 +0100 Subject: [Scilab-users] How to use champ In-Reply-To: <1450079260314-4033219.post@n3.nabble.com> References: <1450079260314-4033219.post@n3.nabble.com> Message-ID: <566FD526.5030300@inria.fr> Here is an example //First draw the "champ". System1 does not depend on time so the time value is not used xr=130:10:290;yr=5:0.3:9;t=0; clf();fchamp(System1, t, xr, yr) //now draw the trajectory from given initial point t=0:0.1:30; //It is not useful to ask for too many points, //here t gives the instants of observation of the solution not the integration step y=ode (y0,t0,t,System1); plot(y(1,:),y(2,:)); Le 14/12/2015 08:47, shahriqeen a ?crit : > I am a new user to this scilab. How to plot the champ of this system > > function f=System1(t, y); > f = zeros (2,1); > > f(1) = A*y(1)-(B*y(1)*y(2)); > f(2) = (-C*y(2))+(D*y(1)*y(2)) > > endfunction > > A=0.4; > B=0.06; > C=0.12; > D=0.0006; > t0=0; > y0=[140;6]; > t=0:0.001:150; > y=ode (y0,t0,t,System1); > > plot2d(y(1,:),y(2,:),1); > xtitle ('System1'); > xlabel('x'); > ylabel ('y'); > > > > -- > View this message in context: http://mailinglists.scilab.org/How-to-use-champ-tp4033219.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 fabrizio.parisini at gmail.com Tue Dec 15 10:06:25 2015 From: fabrizio.parisini at gmail.com (fparis) Date: Tue, 15 Dec 2015 02:06:25 -0700 (MST) Subject: [Scilab-users] SCIDIR directory - where is it? In-Reply-To: <566B2C60.5020907@free.fr> References: <566B2C60.5020907@free.fr> Message-ID: <1450170385997-4033228.post@n3.nabble.com> Hello Samuel, sorry for the delayed answer. Here there is the site wher I found this path. http://wiki.scilab.org/mattosci/toolbox Actually I?ve managed to find some examples of mex files within Scilab under the directory scilab 5.2.2-> modules. Thanks, Fabrizio -- View this message in context: http://mailinglists.scilab.org/Scilab-users-SCIDIR-directory-where-is-it-tp4033200p4033228.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From ridder.peter at googlemail.com Tue Dec 15 10:29:55 2015 From: ridder.peter at googlemail.com (windkraft) Date: Tue, 15 Dec 2015 02:29:55 -0700 (MST) Subject: [Scilab-users] Xcos Coselica blocks - Error while running - C compiller In-Reply-To: <1448911676645-4033140.post@n3.nabble.com> References: <1446616554965-4033072.post@n3.nabble.com> <1448911676645-4033140.post@n3.nabble.com> Message-ID: <1450171795498-4033229.post@n3.nabble.com> It looks like XCOS exampels under Windows which need a C Compiler only work with the Microsoft C Compiler. http://wiki.scilab.org/How%20can%20I%20set%20up%20Microsoft%20Visual%20Studio%202008/2010%20Express%20Edition%20for%20use%20with%20Scilab%20x64%20on%2064-bit%20Windows%3F -- View this message in context: http://mailinglists.scilab.org/Xcos-Coselica-blocks-Error-while-running-C-compiller-tp4033072p4033229.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From shahrizan.mazlan at yes.my Wed Dec 16 02:45:01 2015 From: shahrizan.mazlan at yes.my (shahriqeen) Date: Tue, 15 Dec 2015 18:45:01 -0700 (MST) Subject: [Scilab-users] How to use champ In-Reply-To: <566FD526.5030300@inria.fr> References: <1450079260314-4033219.post@n3.nabble.com> <566FD526.5030300@inria.fr> Message-ID: <1450230301858-4033230.post@n3.nabble.com> Thanks for the solution of the system1 for system1 we use fchamp How about the system 2 below, we need to use fchamp or champ? funcprot(0) function System2() clc; t=0:2:100; y=0:2:100; // initial value t(1)=0; y(1)=0;// g(x) y1(1)=0.4; // for x y2(1)=0.4; // for y // Varible value A=2.0;B=1.0;C=1.0;D=0.2;W=0.2;P=(1-exp(-1.2*2))/1.2; n=length(t); cnt=0; for i = 1:n-1 y(i+1)=1/(C+y1(i)) y1(i+1) =y1(i)*(1+(P*B*W))/(1-(B*P)+(B*P*W)+(B*P*y1(i))+(A*P*y(i+1)*y2(i)))//value for x y2(i+1) = y2(i)*(1+(P*y1(i)*y(i+1))-(D*P*W))/(1+P*D+D*P*W)//value for y cnt = cnt + 1; end plot2d(y1,y2,1); xlabel('x'); ylabel ('y'); endfunction -- View this message in context: http://mailinglists.scilab.org/How-to-use-champ-tp4033219p4033230.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From fujimoto2005 at gmail.com Sat Dec 19 05:18:14 2015 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Fri, 18 Dec 2015 21:18:14 -0700 (MST) Subject: [Scilab-users] unable to set style for histplot In-Reply-To: <566FD10E.9090802@inria.fr> References: <1450147322379-4033225.post@n3.nabble.com> <566FD10E.9090802@inria.fr> Message-ID: <1450498694631-4033233.post@n3.nabble.com> Dear Serge Steer. Thanks for your reply. Actually I am using solely scilab 6.0 for analytical purpose and unable to back scilab 5.2. I think this is the bug of scilab 6.0 and I will report Buzila. Best regards. -- View this message in context: http://mailinglists.scilab.org/unable-to-set-style-for-histplot-tp4033225p4033233.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From kikpambese at yahoo.com Sat Dec 19 10:40:55 2015 From: kikpambese at yahoo.com (kumaden ikpambese) Date: Sat, 19 Dec 2015 09:40:55 +0000 (UTC) Subject: [Scilab-users] I need your help References: <60331261.818066.1450518055345.JavaMail.yahoo.ref@mail.yahoo.com> Message-ID: <60331261.818066.1450518055345.JavaMail.yahoo@mail.yahoo.com> Please,? can you assist me perform multiple regression using reglin function for following varibles;Input variables;?x1= [5.82 ?5.20 ?4.80?2.81 ?2.64];?x2= [8.18 ?6.8 ?6.2?6.19 ?7.36];x3 = [40 ?36 ?32 ?32 ?28];andx4 = [1.5 ?1.2 ?0.87?0.75 ?0.63].ouput y = [1.5 ?1.2 ?0.87?0.75 ?0.63]Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kikpambese at yahoo.com Sat Dec 19 11:01:34 2015 From: kikpambese at yahoo.com (kumaden ikpambese) Date: Sat, 19 Dec 2015 10:01:34 +0000 (UTC) Subject: [Scilab-users] I need your help References: <327845557.820366.1450519294636.JavaMail.yahoo.ref@mail.yahoo.com> Message-ID: <327845557.820366.1450519294636.JavaMail.yahoo@mail.yahoo.com> Please, can you send me a sample code that will enable perform multiple regression for the following conditions;x1 = [5.82 ?5.20 ?4.80 ?2.81?2.64];x2= [8.18 ?6.8 ?6.2?6.19 ?7.36];x3 = [40 ?36 ?32 ?32 ?28];andx4 = [1.5 ?1.2 ?0.87?0.75 ?0.63].y = [1.5 ?1.2 ?0.87 ?0.75?0.63]Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sat Dec 19 11:10:18 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 19 Dec 2015 11:10:18 +0100 Subject: [Scilab-users] I need your help In-Reply-To: <60331261.818066.1450518055345.JavaMail.yahoo@mail.yahoo.com> References: <60331261.818066.1450518055345.JavaMail.yahoo.ref@mail.yahoo.com> <60331261.818066.1450518055345.JavaMail.yahoo@mail.yahoo.com> Message-ID: <56752D0A.40708@free.fr> Le 19/12/2015 10:40, kumaden ikpambese a ?crit : > Please, can you assist me perform multiple regression using reglin > function for following varibles; > Input variables; > x_1 = [5.82 5.20 4.80 2.81 2.64]; > _x _2 = [8.18 6.8 6.2 6.19 7.36]; > _x _3 = [40 36 32 32 28]; and > x_4 = [1.5 1.2 0.87 0.75 0.63]. > ouput > y = [1.5 1.2 0.87 0.75 0.63] > Thanks. Do you mean that you are searching for the best {a,b,c,d} such that y ~ a.x1 + b.x2 +c.x3 + d.x4 ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim at wescottdesign.com Mon Dec 21 06:37:27 2015 From: tim at wescottdesign.com (Tim Wescott) Date: Sun, 20 Dec 2015 21:37:27 -0800 Subject: [Scilab-users] Is this a known bug? Message-ID: <1450676247.2707.6.camel@Servo> I'm running scilab-5.5.0 on Ubuntu 14.04. When I run the attached script and then run "graphalot" for a while, Scilab's memory usage climbs monotonically. What is actually getting plotted doesn't seem to make a difference -- I just did the particular plots seen there because it's fun. I'm seeing this in a rather large, rather graphics-intensive script I'm using. If I let the thing go unattended too long then Scilab slows to a crawl and takes my computer with it -- I suspect that if I were willing to wait for geologically significant amounts of time I could stop Scilab, but I usually end up just cringing and whining, then resetting the computer. (I'm not sure what would happen in Windows, or if there's a better way, under Linux, to make it not drag the rest of the world down. I just try not to let the problem happen in the first place). I searched the bugbase for it, but my ability to find good search terms is usually far better in hindsight than actual use. So -- is this a known bug, or should I file a bug report? If it's known, has it been fixed? In what version? Here's the script, in case file attachment doesn't work on the list: function graphalot() for n = 1:10000; bob = rand(1, 5000, "n"); r = flts(bob, [%z^2 - 1; 0.5 * %z] / (%z^2 - 1.95*%z + 0.999)); scf(0); drawlater(); clf; plot2d(r'); ssz = stacksize(); xtitle(sprintf("iteration #%d, stack used %d", n, ssz(2))); drawnow(); scf(1); clf; drawlater(); plot2d(r(1, :), r(2, :), frameflag = 3, rect = [-150, -150, 150, 150]); drawnow(); end endfunction -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 -------------- next part -------------- A non-text attachment was scrubbed... Name: graphalot.sci Type: application/x-scilab-sci Size: 516 bytes Desc: not available URL: From j-lan at online.no Mon Dec 21 12:16:19 2015 From: j-lan at online.no (=?UTF-8?Q?Jan_=c3=85ge_Langeland?=) Date: Mon, 21 Dec 2015 12:16:19 +0100 Subject: [Scilab-users] Is this a known bug? In-Reply-To: <1450676247.2707.6.camel@Servo> References: <1450676247.2707.6.camel@Servo> Message-ID: <5677DF83.2020209@online.no> I tried to run your function in Windows 10. Memory usage climbs gradually here also, but when it reaches 90% some action is taken, and it drops to about 85%. This goes on repeatedly, so I have not yet observed a crash or major slow-down. Jan On 21.12.2015 06:37, Tim Wescott wrote: > I'm running scilab-5.5.0 on Ubuntu 14.04. > > When I run the attached script and then run "graphalot" for a while, > From sgougeon at free.fr Mon Dec 21 16:10:31 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 21 Dec 2015 16:10:31 +0100 Subject: [Scilab-users] Is this a known bug? In-Reply-To: <1450676247.2707.6.camel@Servo> References: <1450676247.2707.6.camel@Servo> Message-ID: <56781667.8080906@free.fr> Hi Tim, Same memory drift with Scilab 5.5.2 and 6.0-a2 on win7_x64 is observed. plot2d() is clearly involved, since further tests show that r = rand(1, 5000, "n"); for n = 1:10000; clf; plot2d(r(1,:) , r(1,:)); end already leaks, and apparently faster than when encapsulated in graphalot(), while r = rand(1, 5000, "n"); for n = 1:10000; clf; end does not. Hope this will help debugging. Memory linkage of plot2d() is not yet reported on bugzilla. Regards Samuel Gougeon Le 21/12/2015 06:37, Tim Wescott a ?crit : > I'm running scilab-5.5.0 on Ubuntu 14.04. > > When I run the attached script and then run "graphalot" for a while, > Scilab's memory usage climbs monotonically. What is actually getting > plotted doesn't seem to make a difference -- I just did the particular > plots seen there because it's fun. > > I'm seeing this in a rather large, rather graphics-intensive script I'm > using. If I let the thing go unattended too long then Scilab slows to a > crawl and takes my computer with it -- I suspect that if I were willing > to wait for geologically significant amounts of time I could stop > Scilab, but I usually end up just cringing and whining, then resetting > the computer. > > (I'm not sure what would happen in Windows, or if there's a better way, > under Linux, to make it not drag the rest of the world down. I just try > not to let the problem happen in the first place). > > I searched the bugbase for it, but my ability to find good search terms > is usually far better in hindsight than actual use. So -- is this a > known bug, or should I file a bug report? > > If it's known, has it been fixed? In what version? > > Here's the script, in case file attachment doesn't work on the list: > > function graphalot() > for n = 1:10000; > bob = rand(1, 5000, "n"); > r = flts(bob, [%z^2 - 1; 0.5 * %z] / (%z^2 - 1.95*%z + 0.999)); > scf(0); > drawlater(); > clf; > plot2d(r'); > ssz = stacksize(); > xtitle(sprintf("iteration #%d, stack used %d", n, ssz(2))); > drawnow(); > scf(1); > clf; > drawlater(); > plot2d(r(1, :), r(2, :), frameflag = 3, rect = [-150, -150, 150, > 150]); > drawnow(); > end > endfunction > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim at wescottdesign.com Mon Dec 21 20:30:22 2015 From: tim at wescottdesign.com (Tim Wescott) Date: Mon, 21 Dec 2015 11:30:22 -0800 Subject: [Scilab-users] Is this a known bug? In-Reply-To: <56781667.8080906@free.fr> References: <1450676247.2707.6.camel@Servo> <56781667.8080906@free.fr> Message-ID: <1450726222.2707.36.camel@Servo> Thanks Samuel and Jan. I've submitted a bug, #14310, http://bugzilla.scilab.org/show_bug.cgi?id=14310. We'll see what happens, I guess. On Mon, 2015-12-21 at 16:10 +0100, Samuel Gougeon wrote: > Hi Tim, > > Same memory drift with Scilab 5.5.2 and 6.0-a2 on win7_x64 is > observed. > plot2d() is clearly involved, since further tests show that > r = rand(1, 5000, "n"); > for n = 1:10000; > clf; > plot2d(r(1,:) , r(1,:)); > end > already leaks, and apparently faster than when encapsulated in > graphalot(), while > r = rand(1, 5000, "n"); > for n = 1:10000; > clf; > end > > does not. > Hope this will help debugging. > Memory linkage of plot2d() is not yet reported on bugzilla. > > Regards > Samuel Gougeon > > Le 21/12/2015 06:37, Tim Wescott a ?crit : > > > I'm running scilab-5.5.0 on Ubuntu 14.04. > > > > When I run the attached script and then run "graphalot" for a while, > > Scilab's memory usage climbs monotonically. What is actually getting > > plotted doesn't seem to make a difference -- I just did the particular > > plots seen there because it's fun. > > > > I'm seeing this in a rather large, rather graphics-intensive script I'm > > using. If I let the thing go unattended too long then Scilab slows to a > > crawl and takes my computer with it -- I suspect that if I were willing > > to wait for geologically significant amounts of time I could stop > > Scilab, but I usually end up just cringing and whining, then resetting > > the computer. > > > > (I'm not sure what would happen in Windows, or if there's a better way, > > under Linux, to make it not drag the rest of the world down. I just try > > not to let the problem happen in the first place). > > > > I searched the bugbase for it, but my ability to find good search terms > > is usually far better in hindsight than actual use. So -- is this a > > known bug, or should I file a bug report? > > > > If it's known, has it been fixed? In what version? > > > > Here's the script, in case file attachment doesn't work on the list: > > > > function graphalot() > > for n = 1:10000; > > bob = rand(1, 5000, "n"); > > r = flts(bob, [%z^2 - 1; 0.5 * %z] / (%z^2 - 1.95*%z + 0.999)); > > scf(0); > > drawlater(); > > clf; > > plot2d(r'); > > ssz = stacksize(); > > xtitle(sprintf("iteration #%d, stack used %d", n, ssz(2))); > > drawnow(); > > scf(1); > > clf; > > drawlater(); > > plot2d(r(1, :), r(2, :), frameflag = 3, rect = [-150, -150, 150, > > 150]); > > drawnow(); > > end > > endfunction > > > -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From amca01 at gmail.com Tue Dec 22 11:37:34 2015 From: amca01 at gmail.com (Alasdair McAndrew) Date: Tue, 22 Dec 2015 18:37:34 +0800 Subject: [Scilab-users] Plotting curves against a set of points Message-ID: Hello, I'm experimenting with fitting an ODE model (a non-linear system) to some data; what I want to do is to plot the curves representing the ODE numerical solutions against the initial (discrete) data points. And I want to be able to specify the thickness and color of the curves, as well as providing a legend to it. I can do the curves by carefully using gca, gce etc, and copying and pasting examples from the documentation, but I don't yet know how to plot the data points. For example, I have a time vector containing about 150 points, and an array containing all the corresponding ODE values; thus: plot2d(t,x',style=[color("red"),color("green"),color("blue")]); However, I don't know how to include in this plot the 14 or 15 data points. I find gca, gce somewhat tricky to use - is there an easier way: a front end to plotting multiple curves and specifying the characteristics of each curve? Many thanks, Alasdair -- [image: http://www.facebook.com/alasdair.mcandrew] [image: https://plus.google.com/+AlasdairMcAndrew/posts] [image: https://www.linkedin.com/pub/alasdair-mcandrew/a/178/108] [image: https://twitter.com/amca01] [image: http://numbersandshapes.net] -------------- next part -------------- An HTML attachment was scrubbed... URL: From j-lan at online.no Tue Dec 22 18:55:36 2015 From: j-lan at online.no (=?UTF-8?Q?Jan_=c3=85ge_Langeland?=) Date: Tue, 22 Dec 2015 18:55:36 +0100 Subject: [Scilab-users] Plotting curves against a set of points In-Reply-To: References: Message-ID: <56798E98.5070406@online.no> Have you tried plot() and replot()? You can do quite a bit with that by using LineSpec and GlobalProperty. The example below includes plotting with primary and secondary Y axis: Jan clf; t=1:100; x=t.^2/100; y=[4,12,32,72,95]; z=[500,1100,2100,4100,5000]; replot([t(1),ceil(t($)); 0, 120]); a=gca(); b = newaxes(); b.y_location = "right"; b.filled = "off"; b.axes_visible = ["off","on","on"]; b.axes_bounds = a.axes_bounds; replot([t(1),ceil(t($));0 , 6000]); sca(a); plot(t,x,'g',t(1:5)*20,y,'*r'); sca(b); plot(t(1:5)*20,z,"*m") ; On 22.12.2015 11:37, Alasdair McAndrew wrote: > Hello, > > I'm experimenting with fitting an ODE model (a non-linear system) to > some data; what I want to do is to plot the curves representing the > ODE numerical solutions against the initial (discrete) data points. > And I want to be able to specify the thickness and color of the > curves, as well as providing a legend to it. > > I can do the curves by carefully using gca, gce etc, and copying and > pasting examples from the documentation, but I don't yet know how to > plot the data points. > > For example, I have a time vector containing about 150 points, and an > array containing all the corresponding ODE values; thus: > > plot2d(t,x',style=[color("red"),color("green"),color("blue")]); > > However, I don't know how to include in this plot the 14 or 15 data > points. > > I find gca, gce somewhat tricky to use - is there an easier way: a > front end to plotting multiple curves and specifying the > characteristics of each curve? > > Many thanks, > Alasdair > > -- > http://www.facebook.com/alasdair.mcandrew > > https://plus.google.com/+AlasdairMcAndrew/posts > > https://www.linkedin.com/pub/alasdair-mcandrew/a/178/108 > > https://twitter.com/amca01 > http://numbersandshapes.net > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Tue Dec 22 23:03:40 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 22 Dec 2015 23:03:40 +0100 Subject: [Scilab-users] Plotting curves against a set of points In-Reply-To: References: Message-ID: <5679C8BC.7070105@free.fr> Hello, Le 22/12/2015 11:37, Alasdair McAndrew a ?crit : > Hello, > > I'm experimenting with fitting an ODE model (a non-linear system) to > some data; what I want to do is to plot the curves representing the > ODE numerical solutions against the initial (discrete) data points. > And I want to be able to specify the thickness and color of the > curves, as well as providing a legend to it. > > I can do the curves by carefully using gca, gce etc, and copying and > pasting examples from the documentation, but I don't yet know how to > plot the data points. > > For example, I have a time vector containing about 150 points, and an > array containing all the corresponding ODE values; thus: > > plot2d(t,x',style=[color("red"),color("green"),color("blue")]); > > However, I don't know how to include in this plot the 14 or 15 data > points. . //After plot2d(t, x', style = color(colorname)) // Do something like plot2d(xdp, ydp); c = gce(); c = c.children; c.line_mode = "off"; c.mark_mode = "on"; c.mark_size_unit = "point"; c.mark_size = 4; help polyline_properties // https://help.scilab.org/docs/5.5.2/en_US/polyline_properties.html HTH Regards Samuel Gougeon From shamika.i.nair at gmail.com Thu Dec 24 10:01:58 2015 From: shamika.i.nair at gmail.com (Shamika Mohanan) Date: Thu, 24 Dec 2015 14:31:58 +0530 Subject: [Scilab-users] Sparse Boolean Matrix Message-ID: I'm having trouble using Sparse Boolean Matrix API function in C++ code. While I can get the row and column indices of the non zero elements in the matrix, I don't see a pointer for the actual boolean values in the matrix. I have to assign the boolean values to another matrix. How do I access the boolean values in the sparse matrix? Shamika -------------- next part -------------- An HTML attachment was scrubbed... URL: