From samuel.enibe at unn.edu.ng Thu May 1 17:30:59 2014 From: samuel.enibe at unn.edu.ng (samuel.enibe at unn.edu.ng) Date: Thu, 1 May 2014 16:30:59 +0100 Subject: [Scilab-users] Improperly written xtitle using subplot with 4 figures Message-ID: <4rw0HYr4gvrk.fGHT8Mq9@smtp.gmail.com> I have used subplot to place a series of 4 graphs in one window. In each case, the xtitle on the last 2 figures are invisible. How can I correct this. Samuel Enibe From nakabisha at gmail.com Thu May 1 17:33:54 2014 From: nakabisha at gmail.com (N.N.) Date: Thu, 1 May 2014 17:33:54 +0200 Subject: [Scilab-users] I still can not install scibab-5.5.0 32 bit on my pc Message-ID: Hello, When runing the console mode (scilex) in got the following message : Could not access to the Main Scilab Class: Exception in thread "main" java.awt.AWTError: Assistive Technology not found: co m.sun.java.accessibility.AccessBridge at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:773) at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:872) at org.scilab.modules.commons.gui.ScilabKeyStroke.(Unknown Sourc e) at org.scilab.modules.commons.xml.XConfiguration.createDocument(Unknown Source) at org.scilab.modules.commons.xml.XConfiguration.getXConfigurationDocume nt(Unknown Source) at org.scilab.modules.core.Scilab.(Unknown Source) Is there somebody who can help me to install Scilab on my win7 machine. Thank you very much. Alain. -- Complex numbers: They are all fun and games until someone loses an i. From sgougeon at free.fr Thu May 1 17:57:59 2014 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 01 May 2014 17:57:59 +0200 Subject: [Scilab-users] Improperly written xtitle using subplot with 4 figures In-Reply-To: <4rw0HYr4gvrk.fGHT8Mq9@smtp.gmail.com> References: <4rw0HYr4gvrk.fGHT8Mq9@smtp.gmail.com> Message-ID: <53626F07.1010400@free.fr> Hello, Le 01/05/2014 17:30, samuel.enibe at unn.edu.ng a ?crit : > I have used subplot to place a series of 4 graphs in one window. In each case, the xtitle on the last 2 figures are invisible. > How can I correct this. This long standing bug should be fixed in Scilab 5.5.0. Which Scilab release are you using? From samuel.enibe at unn.edu.ng Thu May 1 18:11:46 2014 From: samuel.enibe at unn.edu.ng (samuel.enibe at unn.edu.ng) Date: Thu, 1 May 2014 17:11:46 +0100 Subject: [Scilab-users] Improperly written xtitle using subplot with 4 figures Message-ID: Thanks. I am using version 5.4.1 on Ubuntu. If it has been solved in version 5.5.0, I will download and try it. God bless you. Enibe -----Original Message----- From: Samuel Gougeon Sent: 2014/05/01, 16:57 To: "International users mailing list for Scilab." Subject: Re: [Scilab-users] Improperly written xtitle using subplot with 4 figures Hello, Le 01/05/2014 17:30, samuel.enibe at unn.edu.ng a ?crit : > I have used subplot to place a series of 4 graphs in one window. In each case, the xtitle on the last 2 figures are invisible. > How can I correct this. This long standing bug should be fixed in Scilab 5.5.0. Which Scilab release are you using? _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From berns.buenaobra at gmail.com Fri May 2 03:40:27 2014 From: berns.buenaobra at gmail.com (Berns Buenaobra) Date: Fri, 2 May 2014 09:40:27 +0800 Subject: [Scilab-users] I still can not install scibab-5.5.0 32 bit on my pc In-Reply-To: References: Message-ID: Can you try updating your OS first and Java as well. Also, I suppose that your OS Win 7 is legit. Berns B. On Thu, May 1, 2014 at 11:33 PM, N.N. wrote: > Hello, > > When runing the console mode (scilex) in got the following message : > > Could not access to the Main Scilab Class: > Exception in thread "main" java.awt.AWTError: Assistive Technology not > found: co > m.sun.java.accessibility.AccessBridge > at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:773) > at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:872) > at org.scilab.modules.commons.gui.ScilabKeyStroke.(Unknown > Sourc > e) > at > org.scilab.modules.commons.xml.XConfiguration.createDocument(Unknown > Source) > at > org.scilab.modules.commons.xml.XConfiguration.getXConfigurationDocume > nt(Unknown Source) > at org.scilab.modules.core.Scilab.(Unknown Source) > > Is there somebody who can help me to install Scilab on my win7 machine. > > Thank you very much. > > Alain. > -- > Complex numbers: They are all fun and games until someone loses an i. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -- Bernardino (Berns) Jerez Buenaobra Faculty at the Dept. of Physics - University of San Carlos Contact information: For immediate reply on issues on grades, ISMIS, exams, attendance, emergencies Mobile: +639054732772 Online academic consulting in assisted chat, voice or video Chat over Google+ berns.buenaobra at gmail.com Chat over Skype ID: poormanphysics Professional reference, Research and Education link: http://ph.linkedin.com/pub/bernardino-buenaobra/16/42/637 -------------- next part -------------- An HTML attachment was scrubbed... URL: From aloha.schmitt at gmail.com Fri May 2 01:41:09 2014 From: aloha.schmitt at gmail.com (Alessandro Schmitt) Date: Thu, 1 May 2014 16:41:09 -0700 (PDT) Subject: [Scilab-users] [help] converting a simple C code to Scilab Message-ID: <1398987669322-4030411.post@n3.nabble.com> Hi, how would this be written using scilab? int vet[10]; int i=0; do { vet[i]=i; i++; } while (i<5); printf("%i",vet[3]); //prints the number 3 Thanks. -- View this message in context: http://mailinglists.scilab.org/help-converting-a-simple-C-code-to-Scilab-tp4030411.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From nakabisha at gmail.com Fri May 2 10:26:57 2014 From: nakabisha at gmail.com (N.N.) Date: Fri, 2 May 2014 10:26:57 +0200 Subject: [Scilab-users] I still can not install scibab-5.5.0 32 bit on my pc In-Reply-To: References: Message-ID: Brens, Thank you very well for the answer. OS Win7 is legit. OS is up to date. Java is up to date. Java JDK is also installed. Kind regards, Alain. On 5/2/14, Berns Buenaobra wrote: > Can you try updating your OS first and Java as well. Also, I suppose that > your OS Win 7 is legit. > > Berns B. > > > On Thu, May 1, 2014 at 11:33 PM, N.N. wrote: > >> Hello, >> >> When runing the console mode (scilex) in got the following message : >> >> Could not access to the Main Scilab Class: >> Exception in thread "main" java.awt.AWTError: Assistive Technology not >> found: co >> m.sun.java.accessibility.AccessBridge >> at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:773) >> at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:872) >> at >> org.scilab.modules.commons.gui.ScilabKeyStroke.(Unknown >> Sourc >> e) >> at >> org.scilab.modules.commons.xml.XConfiguration.createDocument(Unknown >> Source) >> at >> org.scilab.modules.commons.xml.XConfiguration.getXConfigurationDocume >> nt(Unknown Source) >> at org.scilab.modules.core.Scilab.(Unknown Source) >> >> Is there somebody who can help me to install Scilab on my win7 machine. >> >> Thank you very much. >> >> Alain. >> -- >> Complex numbers: They are all fun and games until someone loses an i. >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> > > > > -- > Bernardino (Berns) Jerez Buenaobra > Faculty at the Dept. of Physics - University of San Carlos > Contact information: > For immediate reply on issues on grades, ISMIS, exams, attendance, > emergencies > Mobile: +639054732772 > Online academic consulting in assisted chat, voice or video > Chat over Google+ berns.buenaobra at gmail.com > Chat over Skype ID: poormanphysics > Professional reference, Research and Education link: > http://ph.linkedin.com/pub/bernardino-buenaobra/16/42/637 > -- Complex numbers: They are all fun and games until someone loses an i. From Mike at Page-One.Waitrose.com Fri May 2 10:25:34 2014 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Fri, 2 May 2014 09:25:34 +0100 Subject: [Scilab-users] [help] converting a simple C code to Scilab In-Reply-To: <1398987669322-4030411.post@n3.nabble.com> Message-ID: Hi, vet = 1:4; disp (vet(3)); will do almost the same thing. But note that Scilab indices start at 1, not zero, so vet does not include the element vet[0] = 0; HTH, Mike. -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org]On Behalf Of Alessandro Schmitt Sent: 02 May 2014 00:41 To: users at lists.scilab.org Subject: [Scilab-users] [help] converting a simple C code to Scilab Hi, how would this be written using scilab? int vet[10]; int i=0; do { vet[i]=i; i++; } while (i<5); printf("%i",vet[3]); //prints the number 3 Thanks. -- View this message in context: http://mailinglists.scilab.org/help-converting-a-simple-C-code-to-Scilab-tp4 030411.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 ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2014.0.4577 / Virus Database: 3931/7425 - Release Date: 05/01/14 From calixte.denizet at scilab-enterprises.com Fri May 2 12:52:55 2014 From: calixte.denizet at scilab-enterprises.com (Calixte Denizet) Date: Fri, 02 May 2014 12:52:55 +0200 Subject: [Scilab-users] I still can not install scibab-5.5.0 32 bit on my pc In-Reply-To: References: Message-ID: <53637907.6070603@scilab-enterprises.com> Hi Alain, What's the contents of the file accessibility.properties which should be ||||||||located in your JDK directory ? Regards Calixte On 02/05/2014 10:26, N.N. wrote: > Brens, > > Thank you very well for the answer. > > OS Win7 is legit. > OS is up to date. > Java is up to date. > Java JDK is also installed. > > Kind regards, > Alain. > > > On 5/2/14, Berns Buenaobra wrote: >> Can you try updating your OS first and Java as well. Also, I suppose that >> your OS Win 7 is legit. >> >> Berns B. >> >> >> On Thu, May 1, 2014 at 11:33 PM, N.N. wrote: >> >>> Hello, >>> >>> When runing the console mode (scilex) in got the following message : >>> >>> Could not access to the Main Scilab Class: >>> Exception in thread "main" java.awt.AWTError: Assistive Technology not >>> found: co >>> m.sun.java.accessibility.AccessBridge >>> at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:773) >>> at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:872) >>> at >>> org.scilab.modules.commons.gui.ScilabKeyStroke.(Unknown >>> Sourc >>> e) >>> at >>> org.scilab.modules.commons.xml.XConfiguration.createDocument(Unknown >>> Source) >>> at >>> org.scilab.modules.commons.xml.XConfiguration.getXConfigurationDocume >>> nt(Unknown Source) >>> at org.scilab.modules.core.Scilab.(Unknown Source) >>> >>> Is there somebody who can help me to install Scilab on my win7 machine. >>> >>> Thank you very much. >>> >>> Alain. >>> -- >>> Complex numbers: They are all fun and games until someone loses an i. >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users >>> >> >> >> -- >> Bernardino (Berns) Jerez Buenaobra >> Faculty at the Dept. of Physics - University of San Carlos >> Contact information: >> For immediate reply on issues on grades, ISMIS, exams, attendance, >> emergencies >> Mobile: +639054732772 >> Online academic consulting in assisted chat, voice or video >> Chat over Google+ berns.buenaobra at gmail.com >> Chat over Skype ID: poormanphysics >> Professional reference, Research and Education link: >> http://ph.linkedin.com/pub/bernardino-buenaobra/16/42/637 >> > -- Calixte Denizet Software Development Engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Fri May 2 18:05:02 2014 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Fri, 02 May 2014 18:05:02 +0200 Subject: [Scilab-users] New uicontrol layout: what bout axes? Message-ID: <5363C22E.1090906@laas.fr> I am a bit disappointed by the newly introduced "layout" properties. I was expecting these properties to be available for axes in addition to figures and uicontrols. This could have saved me a lot of time when generating multiple plots for scientific articles. A the moment, it's a true pain in the blip to arrange by hand the different axes. (Please don't mention subplot, it's quite handy but it's not really usable for advanced layouts). Why were axes left behind? Any plan to extend these properties to axes? Cheers, Antoine From berns.buenaobra at gmail.com Sat May 3 06:18:36 2014 From: berns.buenaobra at gmail.com (Berns Buenaobra) Date: Sat, 3 May 2014 12:18:36 +0800 Subject: [Scilab-users] I still can not install scibab-5.5.0 32 bit on my pc In-Reply-To: References: Message-ID: Can you download dependency walker and use that to find out the dependency issues. This is free utility that scans any 32-bit or 64-bit windows module (exe,dll,ocx,etc.) Let me know what you see. BR, Berns Bernardino (Berns) J. Buenaobra Faculty at the Dept. of Physics - University of San Carlos Contact information: For immediate reply on issues on grades,ISMIS, exams, attendance, emergencies: Mobile +639054732772 For online academic consulting in assisted chat, voice, video: Google+ berns.buenaobra at gmail.com Skype ID: poormanphysics Professional reference Research and Education link: http://ph. linkedin.com/pub/bernardino-buenaobra/16/42/637 On Apr 30, 2014 2:59 AM, "N.N." wrote: > More news. > > I tried to install scilab-5.4.1 without success. > > Then I installed the the absolute minimun software for scilab, the > console in win32. > I got another error when trying to launch the application. > > Scilex.exe entry point not found. > > The procedure entrypoint setCurrentSubwin could not been located > in the dynamic link library scigraphic_objects.dll ! > > Who can help me ??? > > Thanks for your attention. > > Alain, > Belgium. > > -- > Complex numbers: They are all fun and games until someone loses an i. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From iurcic at gmail.com Sat May 3 17:03:45 2014 From: iurcic at gmail.com (Iurie) Date: Sat, 3 May 2014 16:03:45 +0100 Subject: [Scilab-users] question regarding the 2014 edition of SOCIS Message-ID: Hi, i am right now on the irc channel or scilab and there are almost no one active. there are 5 users and no one is answering to my questin. 1 of all i would like to make some project for scilab under the SOCIS program. i am interested in the Network module project idea from the Extend Scilab section. i have not seen in the last column of it to have a priority flag, so i would like to know if it has not priority flag then this project is less probable to be selected at the end in comparition to a project that has the priority flag? furthermore, who is or are the mentors of the that project idea? can i have their contacts? i thank you in advance for the answer best regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From grocer.toolbox at gmail.com Sat May 3 19:36:27 2014 From: grocer.toolbox at gmail.com (Eric Dubois) Date: Sat, 3 May 2014 19:36:27 +0200 Subject: [Scilab-users] strange behaviour of handle property figure_size Message-ID: Hello. I have encountered a strange behaviour of Scilab 5.5.0, which did not happen with Scilab 5.4.1. This happened with the following sequence: --> wind=scf() --> wind.figure_position=[0,0] --> screen_size=get(0,'screensize_px') --> wind.figure_size=screen_size(3:4) --> plot2d(1:10,1:10) With Scilab 5.4.1, it works fine, but with Scilab 5.5.0, the size of the graph itself is not widened and the plot is not drawn. But, if you either print the screen or export the graph for instance as a pdf file, then the graph is windened and the plot is drawn (it works also if you use the square icon in the upper right angle of Scialb graphic window, but since all the stuff is percisely to be able to make it inside a programm, it is not very helpful...) . If you save the graph as a.scg Scilab graph and reload it (see file resize_5.5.0.scg), then the graph has now the desired size, but does not provide the results of the plot2d command! (I join the Scilab 5.4.1 result for a comparison: file reisze_5.4.1.scg). I suspect it is a bug: right? Is there another way to do widen automatically (that is with Scilab commands) a graphic window that could work with Scilab 5.5.0? Thanks! ?ric. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: reisze.zip Type: application/zip Size: 20284 bytes Desc: not available URL: From sgougeon at free.fr Sun May 4 01:38:51 2014 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 04 May 2014 01:38:51 +0200 Subject: [Scilab-users] strange behaviour of handle property figure_size In-Reply-To: References: Message-ID: <53657E0B.5050501@free.fr> Hello, Le 03/05/2014 19:36, Eric Dubois a ?crit : > Hello. > > I have encountered a strange behaviour of Scilab 5.5.0, which did not > happen with Scilab 5.4.1. > > This happened with the following sequence: > > --> wind=scf() > > --> wind.figure_position=[0,0] > > --> screen_size=get(0,'screensize_px') > > --> wind.figure_size=screen_size(3:4) > > --> plot2d(1:10,1:10) With 5.5.0 on Win7_x64, the result is: - the width of the window is exactly the screen's one. - the window has no status bar. Resizing it (by 0) makes the bar appearing. - the height of the window is too tall exactly by the height of its bottom border, in such a way that the bottom of the blank background is exactly at the bottom of the screen, and the border is below so not visible. - the plot is displayed, but with almost no bottom margin : X labels are displayed at the very bottom of the screen (before this, the OS task bar has been moved on the vertical right, in order to see the bottom of the screen). HTH Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Sun May 4 13:38:25 2014 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sun, 4 May 2014 12:38:25 +0100 Subject: [Scilab-users] Binary I/O of Integers on Scilab 5.5.0 Windows 64 bits Message-ID: Hello, Is the following change of mput/mget data types "ib" and "lb" have been reported for Scilab 5.5.0 (Win 64 bits)? fid = mopen("mput_lb.dat", 'wb', 0); mput(16,'lb',fid); mclose(fid) // outputs now long long integer with 8 bytes fid = mopen("mput_ib.dat", 'wb', 0); mput(16,'ib',fid); mclose(fid) // outputs now long integer with 4 bytes In Scilab 5.4.1 (Win 64 bits), "lb" words had 4-bytes only, if I am not mistaken. Thanks and regards Rafael G. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Sun May 4 18:46:07 2014 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sun, 4 May 2014 17:46:07 +0100 Subject: [Scilab-users] Binary I/O of Integers on Scilab 5.5.0 Windows 64 bits Message-ID: According to the Scilab 5.5.0 release notes, this seems to be a bug fix: #8862 - mget and mput could not read and write 64 bit data from binary files. (the C data type "long long integer" has 8 bytes as per Scilab 5.5.0) Rgds Rafael G. From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Rafael Guerra Sent: Sunday, May 04, 2014 12:38 PM To: 'International users mailing list for Scilab.' Subject: [Scilab-users] Binary I/O of Integers on Scilab 5.5.0 Windows 64 bits Hello, Is the following change of mput/mget data types "ib" and "lb" have been reported for Scilab 5.5.0 (Win 64 bits)? fid = mopen("mput_lb.dat", 'wb', 0); mput(16,'lb',fid); mclose(fid) // outputs now long long integer with 8 bytes fid = mopen("mput_ib.dat", 'wb', 0); mput(16,'ib',fid); mclose(fid) // outputs now long integer with 4 bytes In Scilab 5.4.1 (Win 64 bits), "lb" words had 4-bytes only, if I am not mistaken. Thanks and regards Rafael G. -------------- next part -------------- An HTML attachment was scrubbed... URL: From vincent.couvert at scilab-enterprises.com Mon May 5 09:17:58 2014 From: vincent.couvert at scilab-enterprises.com (Vincent COUVERT) Date: Mon, 05 May 2014 09:17:58 +0200 Subject: [Scilab-users] New uicontrol layout: what bout axes? In-Reply-To: <5363C22E.1090906@laas.fr> References: <5363C22E.1090906@laas.fr> Message-ID: <53673B26.2050606@scilab-enterprises.com> Hi Antoine, What you can do is creating axes inside "frame" uicontrols (using newaxes) and use a layout for the frames. Regards, Le 02/05/2014 18:05, Antoine Monmayrant a ?crit : > I am a bit disappointed by the newly introduced "layout" properties. > I was expecting these properties to be available for axes in addition > to figures and uicontrols. > This could have saved me a lot of time when generating multiple plots > for scientific articles. > A the moment, it's a true pain in the blip to arrange by hand the > different axes. > (Please don't mention subplot, it's quite handy but it's not really > usable for advanced layouts). > Why were axes left behind? > Any plan to extend these properties to axes? > > Cheers, > > Antoine > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From akhorshidi at live.com Fri May 2 11:23:39 2014 From: akhorshidi at live.com (A Khorshidi) Date: Fri, 2 May 2014 13:53:39 +0430 Subject: [Scilab-users] algebraic loop error! Message-ID: Hi; I try to simulate a PRBS signal generator using D flip-flops but I get an algebraic loop error: c_pass2: ini_ordo (2) failed xcos_simulate: Error during block parameters update. So, in these cases how can I solve such algebraic loops? Please see attached file for more details. Regards, Mehran _ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: prbs3_2.xcos Type: application/octet-stream Size: 876035 bytes Desc: not available URL: From aloha.schmitt at gmail.com Fri May 2 17:19:12 2014 From: aloha.schmitt at gmail.com (Alessandro Schmitt) Date: Fri, 2 May 2014 08:19:12 -0700 (PDT) Subject: [Scilab-users] [help] converting a simple C code to Scilab In-Reply-To: References: <1398987669322-4030411.post@n3.nabble.com> Message-ID: <1399043952705-4030416.post@n3.nabble.com> Worked perfectly, thank you. -- View this message in context: http://mailinglists.scilab.org/help-converting-a-simple-C-code-to-Scilab-tp4030411p4030416.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From antoine.monmayrant at laas.fr Mon May 5 11:42:29 2014 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Mon, 05 May 2014 11:42:29 +0200 Subject: [Scilab-users] New uicontrol layout: what bout axes? In-Reply-To: <53673B26.2050606@scilab-enterprises.com> References: <5363C22E.1090906@laas.fr> <53673B26.2050606@scilab-enterprises.com> Message-ID: <53675D05.2050005@laas.fr> On 05/05/2014 09:17 AM, Vincent COUVERT wrote: > Hi Antoine, > > What you can do is creating axes inside "frame" uicontrols (using > newaxes) and use a layout for the frames. Thanks! I had a look at it and I though frame only accepts uicontrols, as stated in the help page for uincontrols: "Frame: a container for other uicontrols." I don't understand how I am supposed to tell newaxes to use the newly created frame as parent and not the current window. If I call: f = figure( ... "layout" , "border",... "layout_options", createLayoutOptions("border", [10,20]),... "visible" , "on"); c = createConstraints("border", "top", [200,100]); ui1 = uicontrol(f,... "style", "frame",... "backgroundcolor", [0 0 1], ... "constraints", c); a1=newaxes(); a1 is attached to f, not ui1 and placed relative to the figure, not the frame... I'm confused... Antoine > > Regards, > > Le 02/05/2014 18:05, Antoine Monmayrant a ?crit : >> I am a bit disappointed by the newly introduced "layout" properties. >> I was expecting these properties to be available for axes in addition >> to figures and uicontrols. >> This could have saved me a lot of time when generating multiple plots >> for scientific articles. >> A the moment, it's a true pain in the blip to arrange by hand the >> different axes. >> (Please don't mention subplot, it's quite handy but it's not really >> usable for advanced layouts). >> Why were axes left behind? >> Any plan to extend these properties to axes? >> >> Cheers, >> >> Antoine >> _______________________________________________ >> 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 > -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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 pierre-aime.agnel at scilab-enterprises.com Mon May 5 11:47:02 2014 From: pierre-aime.agnel at scilab-enterprises.com (=?ISO-8859-1?Q?Pierre-Aim=E9_Agnel?=) Date: Mon, 05 May 2014 11:47:02 +0200 Subject: [Scilab-users] New uicontrol layout: what bout axes? In-Reply-To: <53675D05.2050005@laas.fr> References: <5363C22E.1090906@laas.fr> <53673B26.2050606@scilab-enterprises.com> <53675D05.2050005@laas.fr> Message-ID: <53675E16.8050307@scilab-enterprises.com> On 05/05/2014 11:42 AM, Antoine Monmayrant wrote: > On 05/05/2014 09:17 AM, Vincent COUVERT wrote: >> Hi Antoine, >> >> What you can do is creating axes inside "frame" uicontrols (using >> newaxes) and use a layout for the frames. > Thanks! > > I had a look at it and I though frame only accepts uicontrols, as > stated in the help page for uincontrols: "Frame: a container for other > uicontrols." > I don't understand how I am supposed to tell newaxes to use the newly > created frame as parent and not the current window. > If I call: > > > f = figure( ... > "layout" , "border",... > "layout_options", createLayoutOptions("border", [10,20]),... > "visible" , "on"); > > c = createConstraints("border", "top", [200,100]); > > ui1 = uicontrol(f,... > "style", "frame",... > "backgroundcolor", [0 0 1], ... > "constraints", c); > a1=newaxes(); > I think a1 = newaxes(ui1) may be what you are looking for. > a1 is attached to f, not ui1 and placed relative to the figure, not > the frame... > > I'm confused... > > Antoine >> >> Regards, >> >> Le 02/05/2014 18:05, Antoine Monmayrant a ?crit : >>> I am a bit disappointed by the newly introduced "layout" properties. >>> I was expecting these properties to be available for axes in >>> addition to figures and uicontrols. >>> This could have saved me a lot of time when generating multiple >>> plots for scientific articles. >>> A the moment, it's a true pain in the blip to arrange by hand the >>> different axes. >>> (Please don't mention subplot, it's quite handy but it's not really >>> usable for advanced layouts). >>> Why were axes left behind? >>> Any plan to extend these properties to axes? >>> >>> Cheers, >>> >>> Antoine >>> _______________________________________________ >>> 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 >> > > -- Pierre-Aim? Agnel Developpment Team ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.68 http://www.scilab-enterprises.com From antoine.monmayrant at laas.fr Mon May 5 12:42:50 2014 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Mon, 05 May 2014 12:42:50 +0200 Subject: [Scilab-users] New uicontrol layout: what bout axes? In-Reply-To: <53675E16.8050307@scilab-enterprises.com> References: <5363C22E.1090906@laas.fr> <53673B26.2050606@scilab-enterprises.com> <53675D05.2050005@laas.fr> <53675E16.8050307@scilab-enterprises.com> Message-ID: <53676B2A.4080404@laas.fr> On 05/05/2014 11:47 AM, Pierre-Aim? Agnel wrote: > > On 05/05/2014 11:42 AM, Antoine Monmayrant wrote: >> On 05/05/2014 09:17 AM, Vincent COUVERT wrote: >>> Hi Antoine, >>> >>> What you can do is creating axes inside "frame" uicontrols (using >>> newaxes) and use a layout for the frames. >> Thanks! >> >> I had a look at it and I though frame only accepts uicontrols, as >> stated in the help page for uincontrols: "Frame: a container for >> other uicontrols." >> I don't understand how I am supposed to tell newaxes to use the newly >> created frame as parent and not the current window. >> If I call: >> >> >> f = figure( ... >> "layout" , "border",... >> "layout_options", createLayoutOptions("border", [10,20]),... >> "visible" , "on"); >> >> c = createConstraints("border", "top", [200,100]); >> >> ui1 = uicontrol(f,... >> "style", "frame",... >> "backgroundcolor", [0 0 1], ... >> "constraints", c); >> a1=newaxes(); >> > I think a1 = newaxes(ui1) may be what you are looking for. I reported two bugs for these inaccuracies in the help pages: 13383: newaxes optional argument (handle to the parent) is not present in the help page 13384: uicontrols description of frames does not mention axes entities (only uicontrols). Cheers, Antoine >> a1 is attached to f, not ui1 and placed relative to the figure, not >> the frame... >> >> I'm confused... >> >> Antoine >>> >>> Regards, >>> >>> Le 02/05/2014 18:05, Antoine Monmayrant a ?crit : >>>> I am a bit disappointed by the newly introduced "layout" properties. >>>> I was expecting these properties to be available for axes in >>>> addition to figures and uicontrols. >>>> This could have saved me a lot of time when generating multiple >>>> plots for scientific articles. >>>> A the moment, it's a true pain in the blip to arrange by hand the >>>> different axes. >>>> (Please don't mention subplot, it's quite handy but it's not really >>>> usable for advanced layouts). >>>> Why were axes left behind? >>>> Any plan to extend these properties to axes? >>>> >>>> Cheers, >>>> >>>> Antoine >>>> _______________________________________________ >>>> 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 May 5 12:51:50 2014 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 05 May 2014 12:51:50 +0200 Subject: [Scilab-users] question regarding the 2014 edition of SOCIS In-Reply-To: References: Message-ID: <1399287110.2809.16.camel@paros> moved to "List dedicated to development questions " -- Cl?ment Le samedi 03 mai 2014 ? 16:03 +0100, Iurie a ?crit : > Hi, > > i am right now on the irc channel or scilab and there are almost no > one active. there are 5 users and no one is answering to my questin. > > > 1 of all i would like to make some project for scilab under the SOCIS > program. i am interested in the Network module project idea from the > Extend Scilab section. > > i have not seen in the last column of it to have a priority flag, so i > would like to know if it has not priority flag then this project is > less probable to be selected at the end in comparition to a project > that has the priority flag? > > > furthermore, who is or are the mentors of the that project idea? > > can i have their contacts? > > > > i thank you in advance for the answer > > best regards > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From clement.david at scilab-enterprises.com Mon May 5 20:45:17 2014 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 05 May 2014 20:45:17 +0200 Subject: [Scilab-users] algebraic loop error! In-Reply-To: References: Message-ID: <1399315517.14380.4.camel@paros> Hello, The algebraic loop error is linked to the fact that clock-like data link are not handled the same way as event link. To remove this error you should add a delay (1/z) block after the LOGICAL_OP("OR") block to delayed the signal by one execution step. -- Cl?ment Le vendredi 02 mai 2014 ? 13:53 +0430, A Khorshidi a ?crit : > Hi; > > I try to simulate a PRBS signal generator using D flip-flops but I get > an algebraic loop error: > > c_pass2: ini_ordo (2) failed > xcos_simulate: Error during block parameters update. > > So, in these cases how can I solve such algebraic loops? > Please see attached file for more details. > > Regards, > Mehran > _ > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From grocer.toolbox at gmail.com Mon May 5 20:49:17 2014 From: grocer.toolbox at gmail.com (Eric Dubois) Date: Mon, 5 May 2014 20:49:17 +0200 Subject: [Scilab-users] strange behaviour of handle property figure_size In-Reply-To: <53657E0B.5050501@free.fr> References: <53657E0B.5050501@free.fr> Message-ID: Thanks Samuel. IDNHVM ;-), since I still do not: - why the behaviour differs from Scilab 5.4.1 to Scilab 5.5.0; is it a bug or an intended change of behaviour? And why? - if this betrays a bug; - how to reocver Scilab 5.4.1 behaviour with Scilab 5.5.0. Eric. 2014-05-04 1:38 GMT+02:00 Samuel Gougeon : > Hello, > > Le 03/05/2014 19:36, Eric Dubois a ?crit : > > Hello. > > I have encountered a strange behaviour of Scilab 5.5.0, which did not > happen with Scilab 5.4.1. > > This happened with the following sequence: > > --> wind=scf() > > --> wind.figure_position=[0,0] > > --> screen_size=get(0,'screensize_px') > > --> wind.figure_size=screen_size(3:4) > > --> plot2d(1:10,1:10) > > With 5.5.0 on Win7_x64, the result is: > - the width of the window is exactly the screen's one. > - the window has no status bar. Resizing it (by 0) makes the bar > appearing. > - the height of the window is too tall exactly by the height of its > bottom border, in such a way that the bottom of the blank background is > exactly at the bottom of the screen, and the border is below so not visible. > - the plot is displayed, but with almost no bottom margin : X labels are > displayed at the very bottom of the screen > > (before this, the OS task bar has been moved on the vertical right, in > order to see the bottom of the screen). > > HTH > Samuel > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From amonmayr at laas.fr Mon May 5 23:48:24 2014 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Mon, 05 May 2014 23:48:24 +0200 Subject: [Scilab-users] =?utf-8?q?GUI=3A_can_we_make_a_graduated_slider_?= =?utf-8?q?=28aka_slider_with_ticks=29=3F?= Message-ID: <5c60-53680700-3-1c342c20@91352763> Hi everyone, I just started to play again with GUI in scilab to experiment with the new layout system and I re-discovered my old frustration with sliders: there are no graduations on them making them difficult to use in practice. Example: slider value goes from 830 to 895: where should I move the cursor to get around a value of 850 or 870, 1/3, 2/5, 3/5? As anyone found a workaround to this problem? I tried to display an axes above to the slider to use the axe's ticks as graduations for the slider. But there is some padding left and right from the slider that makes it difficult to align the start and end of the slider "scale" respectively to the first and last ticks of the axes. Am I this only one annoyed by this "limitation"? What about a "wishlist' bug report to add this property to the sliders? Cheers, Antoine From akhorshidi at live.com Tue May 6 22:45:32 2014 From: akhorshidi at live.com (A Khorshidi) Date: Tue, 6 May 2014 13:45:32 -0700 (PDT) Subject: [Scilab-users] algebraic loop error! In-Reply-To: <1399315517.14380.4.camel@paros> References: <1399315517.14380.4.camel@paros> Message-ID: <1399409132619-4030441.post@n3.nabble.com> Cl?ment David-2 wrote > Hello, > > The algebraic loop error is linked to the fact that clock-like data link > are not handled the same way as event link. To remove this error you > should add a delay (1/z) block after the LOGICAL_OP("OR") block to > delayed the signal by one execution step. > [..] Thank you. But when I add a delay block and convert its output to int8, I get the following error: "Problem in port size or type" I think this issue is similar to the bug # 10781 (please see: http://bugzilla.scilab.org/show_bug.cgi?id=10781). If possible, please add a delay and a convert block to the model, and then let me know if you get the same error. Thank you again. Mehran _ -- View this message in context: http://mailinglists.scilab.org/Scilab-users-algebraic-loop-error-tp4030429p4030441.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From W.Schulz at ove.at Wed May 7 11:13:13 2014 From: W.Schulz at ove.at (SCHULZ Wolfgang) Date: Wed, 7 May 2014 09:13:13 +0000 Subject: [Scilab-users] Plotting problem - subplot with 2 y-axis Message-ID: <07A8AF089844A549B0F0CCC727AF31AA56FD3FEC@OVEKBG.ove.at> Hello, I have a Scilab script with a subplot containing 2 y-axis perfectly working in Scilab 5.4.1 but I have problems in Scilab 5.5 (everything on Win7 64bit). I attached the same plot received with both Scilab versions. Basically I do the following: subplot(2,1,1); plot(amp,DE(sensor_nb,:),"-s","MarkerSize",4,"MarkerFaceColor","b"); set(gca(),"data_bounds",matrix([0,xmax,0,100],2,-1)); a=gca(); a.title.text=main_title; . . a1=newaxes(); a1.filled="off"; // the background of the graphical area should be a1.axes_bounds=a.axes_bounds; plot(amp,anz(sensor_nb,:),'r'); set(gca(),"data_bounds",matrix([0,xmax,0,100],2,-1)); a1=gca(); //get the handle of the newly created axes a1.tight_limits = "on"; a1.y_location = "right"; a1.axes_visible = ["off","on","off"]; . . subplot(2,1,2); . . Any idea what is going wrong? Maybe the axes_bounds are not correct? Thanks for your help Wolfgang -------------- next part -------------- A non-text attachment was scrubbed... Name: de_sensor_001_5.4.1.gif Type: image/gif Size: 21572 bytes Desc: de_sensor_001_5.4.1.gif URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: de_sensor_001_5.5.gif Type: image/gif Size: 25575 bytes Desc: de_sensor_001_5.5.gif URL: From vogt at centre-cired.fr Thu May 8 23:43:47 2014 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Thu, 08 May 2014 17:43:47 -0400 Subject: [Scilab-users] plot histogram from weighted data Message-ID: <536BFA93.1030203@centre-cired.fr> Dear all, I've got weighted data and i'd like to plot an histogram For instance, income distribution from people within revenue segments. Any idea? -- Adrien Vogt-Schilb Consultant (World Bank) and PhD Candidate (Cired) 1 202 473 7980 From toshi0914 at gmail.com Thu May 8 09:14:24 2014 From: toshi0914 at gmail.com (toshi) Date: Thu, 8 May 2014 00:14:24 -0700 (PDT) Subject: [Scilab-users] How can I solve simultaneous eqs with "dynamic" boundaries ? Message-ID: <1399533264262-4030445.post@n3.nabble.com> Hi! I'm trying to solve simultaneous equations using Scilab. The constraints of the variables are like 0 < x1 < x2 < 1. A program using leastsq shown below does not work: ---------------------------------------------- binf = [ 0, xopt(1)]; bsup = [xopt(2), 1] [fopt, xopt] = leastsq(myfunc, 'b',binf,bsup, x0) ---------------------------------------------- Obviously because xopt(1) and xopt(2) are not determined before calling leastsq but they are used as boundaries. So, could somebody tell me how to solve this kind of problem ? toshi -- View this message in context: http://mailinglists.scilab.org/How-can-I-solve-simultaneous-eqs-with-dynamic-boundaries-tp4030445.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From jakub.lukasz.rojewski at gmail.com Thu May 8 09:52:53 2014 From: jakub.lukasz.rojewski at gmail.com (Royek) Date: Thu, 8 May 2014 00:52:53 -0700 (PDT) Subject: [Scilab-users] Scilab 5.5.0 on Ubuntu 14.04 LTS Message-ID: <1399535573201-4030446.post@n3.nabble.com> Hi, I have installed Scilab via Ubuntu Software Center. During code generation in XCOS I got message: Startup execution: loading initial environment Generate a loader file Generate a Makefile ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR ilib_gen_Make: Copy Untitled__84736_AM.c to TMPDIR ilib_gen_Make: Copy Untitled__84736_AM_void_io.c to TMPDIR ilib_gen_Make: Copy Untitled__84736_AM_Cblocks.c to TMPDIR ilib_gen_Make: configure : Generate Makefile. ilib_gen_Make: Modification of the Makefile in TMPDIR. Running the Makefile !sorry compiling problem ! ! ! !ilib_compile: Could not find the built library '.libs/libUntitled__84736_AM.so'. ! Can anybody help me? Do I need to install something else? Royek -- View this message in context: http://mailinglists.scilab.org/Scilab-5-5-0-on-Ubuntu-14-04-LTS-tp4030446.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From andre.regis13 at gmail.com Thu May 8 20:34:42 2014 From: andre.regis13 at gmail.com (andre.regis13 at gmail.com) Date: Thu, 8 May 2014 18:34:42 +0000 Subject: [Scilab-users] =?utf-8?q?FFT_doubt?= Message-ID: <536bd20b.48a7ec0a.5349.ffffb26c@mx.google.com> Dear colleagues, I have two functions f1(x) and f2(x). Using the following formula:? to calculate the results, get: 5.125[units]. I tried to calculate separately by F1=fft(f1) , F2=fft(f2) and then multiply stems one by one and adding the results. I found two problems: 1 - I have been used Hamming window to minimize noise. The amplitude of each signal changes and the final results too; 2 - When I change the number of samples, the results change too. None the results in 1 or 2 are igual or close to 5.125 (this is right). What am I doing wrong? Can someone help me? Thanks a lot. _______ Eng. Andr? Luiz Regis Monteiro, M.Sc andre.regis13 at gmail.com Enviado do Email do Windows -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Image948.png Type: image/png Size: 2230 bytes Desc: Image948.png URL: From sgougeon at free.fr Fri May 9 10:44:51 2014 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 09 May 2014 10:44:51 +0200 Subject: [Scilab-users] FFT doubt In-Reply-To: <536bd20b.48a7ec0a.5349.ffffb26c@mx.google.com> References: <536bd20b.48a7ec0a.5349.ffffb26c@mx.google.com> Message-ID: <536C9583.7090004@free.fr> Hello, Le 08/05/2014 20:34, andre.regis13 at gmail.com a ?crit : > Dear colleagues, > > I have two functions f1(x) and f2(x). Using the following formula: > > to calculate the results, get: 5.125[units]. > I tried to calculate separately by F1=fft(f1) , F2=fft(f2) and then > multiply stems one by one and adding the results. I found two problems: This is a question about numerical computing rather than Scilab itself. Anyway, why do you use some FFT instead of some straightforward integration function (such as intg()) ? FFT would be useful whether the expected result would be e.g. the cross-correlation function of your f1() and f2() ; but it is not the case : no lag appears in the integrand between arguments of f1 and f2... HTH Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From clement.david at scilab-enterprises.com Mon May 12 08:52:28 2014 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 12 May 2014 08:52:28 +0200 Subject: [Scilab-users] Scilab 5.5.0 on Ubuntu 14.04 LTS In-Reply-To: <1399535573201-4030446.post@n3.nabble.com> References: <1399535573201-4030446.post@n3.nabble.com> Message-ID: <1399877548.2179.4.camel@paros> Hello, Can you try to reproduce using the official Scilab version ? If it works, just file a bug on the ubuntu side ; if not, use our bugzilla. Did you try to generate the code using an Scilab/Xcos demo (exemple Kalman.zcos) ? -- Cl?ment Le jeudi 08 mai 2014 ? 00:52 -0700, Royek a ?crit : > Hi, > I have installed Scilab via Ubuntu Software Center. > During code generation in XCOS I got message: > > Startup execution: > loading initial environment > Generate a loader file > Generate a Makefile > ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR > ilib_gen_Make: Copy Untitled__84736_AM.c to TMPDIR > ilib_gen_Make: Copy Untitled__84736_AM_void_io.c to TMPDIR > ilib_gen_Make: Copy Untitled__84736_AM_Cblocks.c to TMPDIR > ilib_gen_Make: configure : Generate Makefile. > ilib_gen_Make: Modification of the Makefile in TMPDIR. > Running the Makefile > > !sorry compiling problem > ! > ! > ! > !ilib_compile: Could not find the built library > '.libs/libUntitled__84736_AM.so'. ! > > Can anybody help me? Do I need to install something else? > Royek > > > > -- > View this message in context: http://mailinglists.scilab.org/Scilab-5-5-0-on-Ubuntu-14-04-LTS-tp4030446.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 Christophe.Dang at sidel.com Mon May 12 09:25:19 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Mon, 12 May 2014 09:25:19 +0200 Subject: [Scilab-users] plot histogram from weighted data In-Reply-To: <536BFA93.1030203@centre-cired.fr> References: <536BFA93.1030203@centre-cired.fr> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F3297143B4@301EX00100.sidel.com> Hello, > De la part de Adrien Vogt-Schilb > Envoy? : jeudi 8 mai 2014 23:44 > > I've got weighted data and i'd like to plot an histogram You are a talented scilaber so I guess you already digged in the usual sources. Maybe you can cheat on your favorite software and use R. There seem to be several packages to do this, such as weights http://cran.r-project.org/web/packages/weights/weights.pdf plotrix http://svitsrv25.epfl.ch/R-doc/library/plotrix/html/weighted.hist.html ggplot2 http://docs.ggplot2.org/0.9.3.1/geom_histogram.html -- 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 vogt at centre-cired.fr Mon May 12 15:04:44 2014 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Mon, 12 May 2014 09:04:44 -0400 Subject: [Scilab-users] How can I solve simultaneous eqs with "dynamic" boundaries ? In-Reply-To: <1399533264262-4030445.post@n3.nabble.com> References: <1399533264262-4030445.post@n3.nabble.com> Message-ID: <5370C6EC.4090100@centre-cired.fr> Hy Toschi I guess one way is to use qpsolve (or qp_solve or quapro), using 0 Hi! > > I'm trying to solve simultaneous equations using Scilab. > The constraints of the variables are like 0 < x1 < x2 < 1. > A program using leastsq shown below does not work: > ---------------------------------------------- > binf = [ 0, xopt(1)]; > bsup = [xopt(2), 1] > [fopt, xopt] = leastsq(myfunc, 'b',binf,bsup, x0) > ---------------------------------------------- > Obviously because xopt(1) and xopt(2) are not determined > before calling leastsq but they are used as boundaries. > > So, could somebody tell me how to solve this kind of problem ? > > toshi > > > > -- > View this message in context: http://mailinglists.scilab.org/How-can-I-solve-simultaneous-eqs-with-dynamic-boundaries-tp4030445.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Adrien Vogt-Schilb Consultant (World Bank) and PhD Candidate (Cired) 1 202 473 7980 From vogt at centre-cired.fr Mon May 12 15:05:18 2014 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Mon, 12 May 2014 09:05:18 -0400 Subject: [Scilab-users] How can I solve simultaneous eqs with "dynamic" boundaries ? In-Reply-To: <1399533264262-4030445.post@n3.nabble.com> References: <1399533264262-4030445.post@n3.nabble.com> Message-ID: <5370C70E.4000306@centre-cired.fr> Hy Toschi I guess one way is to use qpsolve (or qp_solve or quapro), using 0 Hi! > > I'm trying to solve simultaneous equations using Scilab. > The constraints of the variables are like 0 < x1 < x2 < 1. > A program using leastsq shown below does not work: > ---------------------------------------------- > binf = [ 0, xopt(1)]; > bsup = [xopt(2), 1] > [fopt, xopt] = leastsq(myfunc, 'b',binf,bsup, x0) > ---------------------------------------------- > Obviously because xopt(1) and xopt(2) are not determined > before calling leastsq but they are used as boundaries. > > So, could somebody tell me how to solve this kind of problem ? > > toshi > > > > -- > View this message in context: http://mailinglists.scilab.org/How-can-I-solve-simultaneous-eqs-with-dynamic-boundaries-tp4030445.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Adrien Vogt-Schilb Consultant (World Bank) and PhD Candidate (Cired) 1 202 473 7980 From vogt at centre-cired.fr Mon May 12 15:07:46 2014 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Mon, 12 May 2014 09:07:46 -0400 Subject: [Scilab-users] plot histogram from weighted data In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F3297143B4@301EX00100.sidel.com> References: <536BFA93.1030203@centre-cired.fr> <3B5FFC67498DFF49AE7271A584867D16F3297143B4@301EX00100.sidel.com> Message-ID: <5370C7A2.80604@centre-cired.fr> On 12/05/2014 03:25, Dang, Christophe wrote: > Hello, > >> De la part de Adrien Vogt-Schilb >> Envoy? : jeudi 8 mai 2014 23:44 >> >> I've got weighted data and i'd like to plot an histogram > You are a talented scilaber so I guess you already digged in the usual sources. > > Maybe you can cheat on your favorite software and use R. > There seem to be several packages to do this, such as > > weights > http://cran.r-project.org/web/packages/weights/weights.pdf > > plotrix > http://svitsrv25.epfl.ch/R-doc/library/plotrix/html/weighted.hist.html > > ggplot2 > http://docs.ggplot2.org/0.9.3.1/geom_histogram.html > Ha ha ggplot2 is my workaround right now. Actually i then decided to switch to python, so i am now trying to do this with matplotlib. Anyway, i'm still interested on a way to do this in Scilab, and I actually believe it should be implemented in histplot Adrien -- Adrien Vogt-Schilb Consultant (World Bank) and PhD Candidate (Cired) 1 202 473 7980 From Christophe.Dang at sidel.com Mon May 12 15:46:41 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Mon, 12 May 2014 15:46:41 +0200 Subject: [Scilab-users] plot histogram from weighted data In-Reply-To: <5370C7A2.80604@centre-cired.fr> References: <536BFA93.1030203@centre-cired.fr> <3B5FFC67498DFF49AE7271A584867D16F3297143B4@301EX00100.sidel.com> <5370C7A2.80604@centre-cired.fr> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F3297848CE@301EX00100.sidel.com> De : Adrien Vogt-Schilb Envoy? : lundi 12 mai 2014 15:08 > I actually believe it should be implemented in histplot I Agree. We should add it on our Bugzilla Christmas list. A quick search on that famous similar commercial software seem to show that it is not native either. Contributors proposed .m files on the File Exchange, or do it manually. -- 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 W.Schulz at ove.at Mon May 12 18:56:46 2014 From: W.Schulz at ove.at (SCHULZ Wolfgang) Date: Mon, 12 May 2014 16:56:46 +0000 Subject: [Scilab-users] Plotting problem - subplot with 2 y-axis In-Reply-To: <07A8AF089844A549B0F0CCC727AF31AA56FD3FEC@OVEKBG.ove.at> References: <07A8AF089844A549B0F0CCC727AF31AA56FD3FEC@OVEKBG.ove.at> Message-ID: <07A8AF089844A549B0F0CCC727AF31AA56FD614B@OVEKBG.ove.at> Hello, I haven't heard anything. Are you guy thinking that this is a bug which I should report on bugzilla? Thanks for your help Wolfgang > -----Urspr?ngliche Nachricht----- > Von: users [mailto:users-bounces at lists.scilab.org] Im Auftrag von SCHULZ > Wolfgang > Gesendet: Mittwoch, 07. Mai 2014 11:13 > An: International users mailing list for Scilab. > Betreff: [Scilab-users] Plotting problem - subplot with 2 y-axis > > Hello, > I have a Scilab script with a subplot containing 2 y-axis perfectly working in > Scilab 5.4.1 but I have problems in Scilab 5.5 (everything on Win7 64bit). > > I attached the same plot received with both Scilab versions. > > Basically I do the following: > subplot(2,1,1); > plot(amp,DE(sensor_nb,:),"-s","MarkerSize",4,"MarkerFaceColor","b"); > set(gca(),"data_bounds",matrix([0,xmax,0,100],2,-1)); > a=gca(); > a.title.text=main_title; > . > . > a1=newaxes(); > a1.filled="off"; // the background of the graphical area should be > a1.axes_bounds=a.axes_bounds; > > plot(amp,anz(sensor_nb,:),'r'); > set(gca(),"data_bounds",matrix([0,xmax,0,100],2,-1)); > a1=gca(); //get the handle of the newly created axes > a1.tight_limits = "on"; > a1.y_location = "right"; > a1.axes_visible = ["off","on","off"]; . > . > subplot(2,1,2); > . > . > > Any idea what is going wrong? Maybe the axes_bounds are not correct? > Thanks for your help > Wolfgang From jrafaelbguerra at hotmail.com Mon May 12 19:30:52 2014 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Mon, 12 May 2014 18:30:52 +0100 Subject: [Scilab-users] Displaying large amount of text outside the Scilab console Message-ID: Hello, Does anyone know how to properly display a large amount of plain text stored in a string variable of size (N,1), i.e. with N text lines of variable length, outside the Scilab console window? For instance, is it possible to issue Scilab command to display the text variable in one of Scinotes or Scipad tabs? Thanks and regards, Rafael G. From vogt at centre-cired.fr Mon May 12 20:05:12 2014 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Mon, 12 May 2014 14:05:12 -0400 Subject: [Scilab-users] Displaying large amount of text outside the Scilab console In-Reply-To: References: Message-ID: <53710D58.4080401@centre-cired.fr> Hi I would export it with *csvWrite *then open it with an editor. on windows you can even use *winopen *to open it with the defautl editor. on all platforms you can use *editor *to open files in editor. *write *is also a function used to export text to the hard drive, i believe. but I prefer using csvWrite for everything. On 12/05/2014 13:30, Rafael Guerra wrote: > Hello, > > Does anyone know how to properly display a large amount of plain text stored > in a string variable of size (N,1), i.e. with N text lines of variable > length, outside the Scilab console window? > > For instance, is it possible to issue Scilab command to display the text > variable in one of Scinotes or Scipad tabs? > > Thanks and regards, > Rafael G. > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Adrien Vogt-Schilb Consultant (World Bank) and PhD Candidate (Cired) 1 202 473 7980 -------------- next part -------------- An HTML attachment was scrubbed... URL: From cfuttrup at gmail.com Mon May 12 20:29:12 2014 From: cfuttrup at gmail.com (Claus Futtrup) Date: Mon, 12 May 2014 20:29:12 +0200 Subject: [Scilab-users] Displaying large amount of text outside the Scilab console In-Reply-To: References: Message-ID: <537112F8.3030008@gmail.com> Hi Rafael Yes it is possible to save the string to a file, then load it into the Scinotes editor. I've done this for years. fd = mopen(filename1,'wt') mfprintf(fd, yourstring) mfprintf(fd,"\n"); mclose(fd); if (isdef('editor') | (funptr('editor')<>0)) then editor(filename1) end /Claus On 12-May-14 19:30, Rafael Guerra wrote: > Hello, > > Does anyone know how to properly display a large amount of plain text stored > in a string variable of size (N,1), i.e. with N text lines of variable > length, outside the Scilab console window? > > For instance, is it possible to issue Scilab command to display the text > variable in one of Scinotes or Scipad tabs? > > Thanks and regards, > Rafael G. > > _______________________________________________ > 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 Mon May 12 22:44:34 2014 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 12 May 2014 22:44:34 +0200 Subject: [Scilab-users] Plotting problem - subplot with 2 y-axis In-Reply-To: <07A8AF089844A549B0F0CCC727AF31AA56FD614B@OVEKBG.ove.at> References: <07A8AF089844A549B0F0CCC727AF31AA56FD3FEC@OVEKBG.ove.at> <07A8AF089844A549B0F0CCC727AF31AA56FD614B@OVEKBG.ove.at> Message-ID: <537132B2.2010706@free.fr> Hello Wolfgang, Le 12/05/2014 18:56, SCHULZ Wolfgang a ?crit : > Hello, > I haven't heard anything. Are you guy thinking that this is a bug which I should report on bugzilla? > Thanks for your help It is hard to test and help debugging without the full piece of code and the related data... Samuel From sgougeon at free.fr Mon May 12 23:06:26 2014 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 12 May 2014 23:06:26 +0200 Subject: [Scilab-users] plot histogram from weighted data In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F3297848CE@301EX00100.sidel.com> References: <536BFA93.1030203@centre-cired.fr> <3B5FFC67498DFF49AE7271A584867D16F3297143B4@301EX00100.sidel.com> <5370C7A2.80604@centre-cired.fr> <3B5FFC67498DFF49AE7271A584867D16F3297848CE@301EX00100.sidel.com> Message-ID: <537137D2.6050204@free.fr> Le 12/05/2014 15:46, Dang, Christophe a ?crit : > De : Adrien Vogt-Schilb > Envoy? : lundi 12 mai 2014 15:08 > >> I actually believe it should be implemented in histplot > I Agree. So do i. There is already a ongoing thread on bugzilla about histplot(), histc(), & hist3d() (partially implemented for Scilab 5.5.0 by Paul and Mehran): http://bugzilla.scilab.org/show_bug.cgi?id=12925 Making histplot() accepting weighted data is somewhat planned, but time was missing (to me) to design a full SEP about histograms management in Scilab (please see the thread for ideas). For weighted data, two cases are possible: 1) input data are already fully categorized in predefined bins. histplot() must just plot them 2) input data are already in some bins with related populations (weights), but bins must be aggregated into "overbins" before plotting the resulting populations. > We should add it on our Bugzilla Christmas list. You may also become Santa Claus for some times, even in July or before :-) Cheers Samuel From jrafaelbguerra at hotmail.com Mon May 12 23:34:47 2014 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Mon, 12 May 2014 22:34:47 +0100 Subject: [Scilab-users] Displaying large amount of text outside the Scilab console In-Reply-To: <537112F8.3030008@gmail.com> References: <537112F8.3030008@gmail.com> Message-ID: Hi Claus and Adrien, Thanks for you feedback and workaround. Not the cleanest way of doing this but it works. Below Claus code with small syntax modification to handle my Nx1 text string and also cleaning the temporary disk file: fd = mopen("text_out.txt",'wt'); mfprintf(fd,'%s\n',my_Nx1_string); mclose(fd); if (isdef('editor') | (funptr('editor')<>0)) then editor("text_out.txt"); mdelete("text_out.txt"); end PS: In my case editor() opens Scipad 8.72. Regards Rafael G. From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Claus Futtrup Sent: Monday, May 12, 2014 7:29 PM To: users at lists.scilab.org Subject: Re: [Scilab-users] Displaying large amount of text outside the Scilab console Hi Rafael Yes it is possible to save the string to a file, then load it into the Scinotes editor. I've done this for years. fd = mopen(filename1,'wt') mfprintf(fd, yourstring) mfprintf(fd,"\n"); mclose(fd); if (isdef('editor') | (funptr('editor')<>0)) then editor(filename1) end /Claus On 12-May-14 19:30, Rafael Guerra wrote: Hello, Does anyone know how to properly display a large amount of plain text stored in a string variable of size (N,1), i.e. with N text lines of variable length, outside the Scilab console window? For instance, is it possible to issue Scilab command to display the text variable in one of Scinotes or Scipad tabs? Thanks and regards, Rafael G. _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users . -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Tue May 13 08:55:14 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Tue, 13 May 2014 08:55:14 +0200 Subject: [Scilab-users] plot histogram from weighted data In-Reply-To: <537137D2.6050204@free.fr> References: <536BFA93.1030203@centre-cired.fr> <3B5FFC67498DFF49AE7271A584867D16F3297143B4@301EX00100.sidel.com> <5370C7A2.80604@centre-cired.fr> <3B5FFC67498DFF49AE7271A584867D16F3297848CE@301EX00100.sidel.com> <537137D2.6050204@free.fr> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F329784CD3@301EX00100.sidel.com> De : Samuel Gougeon Envoy? : lundi 12 mai 2014 23:06 > You may also become Santa Claus for some times, > even in July or before :-) Uh, I'm already Santa Clausing somewhere else. Some french geeks are waiting for translation from German... -- 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 www.kanibani at gmail.com Mon May 12 19:49:21 2014 From: www.kanibani at gmail.com (Gona) Date: Mon, 12 May 2014 10:49:21 -0700 (PDT) Subject: [Scilab-users] Bicycle Dynamics Message-ID: <1399916961487-4030466.post@n3.nabble.com> Hello All, First time poster here. Apologies in advance I am doing something in a wrong way or not following the conventions. I have been using Scilab for few days now and I am trying to model a Bicycle with it. The output of the system I modeled is not what i expected. As a first time user i am not so sure whether I have done the steps right or modeled the system right in first place. If anyone with some modeling experience can comment on whether what I have done is wrong or right it would be much appreciated. To start with I modeled the bicycle as an inverted pendulum. and I am trying to control the bike with steering angle. As we can see the horizontal force is a function of turning radius and it in turn a function of steering angle. Function between steering angle and turning radius is given by, After simple algebra I got the dynamic equation of the bike to be, 1. Can anyone please comment up to this point what I have done is correct ? Then I tried to model this equation in XCOS and this is the block diagram I came up with. 2. Can anyone please comment up to this point what I have done is correct. May be I have committed a stupid mistake like changing +-? The output of the system came like this for a delta input in the steering angle. 3. I guess the output should be diverging theta with exp like behavior. But may be the output is linear because with theta change there is also the turning radius changes and it compensate the m.g.sin\theta.l term. If anyone could confirm that the model seems to be realistic/ or correct I would be so thankful. Thanks again Gona. -- View this message in context: http://mailinglists.scilab.org/Bicycle-Dynamics-tp4030466.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From patrick_seeboerger at yahoo.de Mon May 12 20:27:10 2014 From: patrick_seeboerger at yahoo.de (Patrick Seeboerger) Date: Mon, 12 May 2014 19:27:10 +0100 (BST) Subject: [Scilab-users] Scilab versus matlab Message-ID: <1399919230.76591.YahooMailNeo@web133004.mail.ir2.yahoo.com> Dear Sir or Madame, I am starting to use Scilab instead of Matlab more and more so I have to translate? some code from a Matlab M-file into Scilab. So when I write an argumental function in Matlab I can write it for example like: U_q=@(f_u) k_U*2*pi*f_u; Now my question: Which operator do I have to use in Scilab instead of =@ ? Thank you, Best regards, Patrick Seeb?rger -------------- next part -------------- An HTML attachment was scrubbed... URL: From toshi0914 at gmail.com Mon May 12 23:12:57 2014 From: toshi0914 at gmail.com (toshi) Date: Mon, 12 May 2014 14:12:57 -0700 (PDT) Subject: [Scilab-users] How can I solve simultaneous eqs with "dynamic" boundaries ? In-Reply-To: <5370C6EC.4090100@centre-cired.fr> References: <1399533264262-4030445.post@n3.nabble.com> <5370C6EC.4090100@centre-cired.fr> Message-ID: <1399929177205-4030471.post@n3.nabble.com> Dear Adrien, Thank your for your reply and letting me know qpsolve. The function qpsolve really makes linear constraints and so it may help me. Unfortunately, my equations to be solved are not linear but trigonometric. The problem is not straightforward, but I will try to check whether it is possible or not to change the problem into linear problem. Thank you very much in any way. Toshi -- View this message in context: http://mailinglists.scilab.org/How-can-I-solve-simultaneous-eqs-with-dynamic-boundaries-tp4030445p4030471.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Christophe.Dang at sidel.com Tue May 13 11:08:49 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Tue, 13 May 2014 11:08:49 +0200 Subject: [Scilab-users] Bicycle Dynamics In-Reply-To: <1399916961487-4030466.post@n3.nabble.com> References: <1399916961487-4030466.post@n3.nabble.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F329784FB0@301EX00100.sidel.com> Hello, > De : Gona > Envoy? : lundi 12 mai 2014 19:49 Lets start with physics: > I modeled the bicycle as an inverted pendulum. [...] > I guess this is the bicycle seen from behind (or front, no matter), and that the frame of reference is the bicycle. > Function between steering angle and turning radius is given by, > You forgot to define w, delta and phi. If phi is the adherence angle, then it is a limit is not in the relationship as long as theta <= phi. The rotational equilibrium in the frame of reference is just v^2/r/g = tan(theta). >From what I understand you're trying to do, we don't have the same equation in the end. So, maybe you should clarify the points above (what is represented, what is the frame of reference, what are the different variables), to see if I misunderstood something, who is right. Only then can we go on with the next point: Scilab/Xcos. Now concerning > The output of the system came like this for a delta input in the > steering angle. > You did not specify what you are drawing. You may think that we can understand from the block diagram you provided. However, you want to check the consistency with the reality/physical laws, so we must know what you expect to draw. Regards. -- Christophe Dang Ngoc Chan Mechanical calculation engineer ______________________________________________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ______________________________________________________________________ From Christophe.Dang at sidel.com Tue May 13 11:16:48 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Tue, 13 May 2014 11:16:48 +0200 Subject: [Scilab-users] Scilab versus matlab In-Reply-To: <1399919230.76591.YahooMailNeo@web133004.mail.ir2.yahoo.com> References: <1399919230.76591.YahooMailNeo@web133004.mail.ir2.yahoo.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F329784FDE@301EX00100.sidel.com> Hello, > De : Patrick Seeboerger > Envoy? : lundi 12 mai 2014 20:27 > > So when I write an argumental function in Matlab I can write it for > example like: > > U_q=@(f_u) k_U*2*pi*f_u; I'm not a Matlaber, but a quick search on the Mathwork website tells me you're trying to deine an anonymous function, right? I don't think such things exist in Scilab. You can define the function with function [y]=U_q(f_U) y = k_U*2*%pi*f_U endfunction or with deff("y = U_q(f_U)", "y = k_U*2*%pi*f_U") Now, if it is important for you to have an anonymous function and not a "normal" function, you should tell us why so we can give you the "right" solution. HTH -- Christophe Dang Ngoc Chan Mechanical calculation engineer ______________________________________________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ______________________________________________________________________ From iurcic at gmail.com Tue May 13 11:43:13 2014 From: iurcic at gmail.com (Iurie) Date: Tue, 13 May 2014 10:43:13 +0100 Subject: [Scilab-users] Scilab versus matlab In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F329784FDE@301EX00100.sidel.com> References: <1399919230.76591.YahooMailNeo@web133004.mail.ir2.yahoo.com> <3B5FFC67498DFF49AE7271A584867D16F329784FDE@301EX00100.sidel.com> Message-ID: btw is there a way to see what bibliotecs exist in matlab and does not exist in scilab? for example in matlab we have Partial Differential Equation module but not yet in scilab On Tue, May 13, 2014 at 10:16 AM, Dang, Christophe < Christophe.Dang at sidel.com> wrote: > Hello, > > > De : Patrick Seeboerger > > Envoy? : lundi 12 mai 2014 20:27 > > > > So when I write an argumental function in Matlab I can write it for > > example like: > > > > U_q=@(f_u) k_U*2*pi*f_u; > > I'm not a Matlaber, but a quick search on the Mathwork website tells me > you're trying to deine an anonymous function, right? > > I don't think such things exist in Scilab. > > You can define the function with > > function [y]=U_q(f_U) > y = k_U*2*%pi*f_U > endfunction > > or with > > deff("y = U_q(f_U)", "y = k_U*2*%pi*f_U") > > Now, if it is important for you to have an anonymous function and not a > "normal" function, you should tell us why so we can give you the "right" > solution. > > HTH > > -- > Christophe Dang Ngoc Chan > Mechanical calculation engineer > > ______________________________________________________________________ > > This e-mail may contain confidential and/or privileged information. If you > are not the intended recipient (or have received this e-mail in error), > please notify the sender immediately and destroy this e-mail. Any > unauthorized copying, disclosure or distribution of the material in this > e-mail is strictly forbidden. > ______________________________________________________________________ > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From W.Schulz at ove.at Tue May 13 14:42:27 2014 From: W.Schulz at ove.at (SCHULZ Wolfgang) Date: Tue, 13 May 2014 12:42:27 +0000 Subject: [Scilab-users] Plotting problem - subplot with 2 y-axis In-Reply-To: <537132B2.2010706@free.fr> References: <07A8AF089844A549B0F0CCC727AF31AA56FD3FEC@OVEKBG.ove.at> <07A8AF089844A549B0F0CCC727AF31AA56FD614B@OVEKBG.ove.at> <537132B2.2010706@free.fr> Message-ID: <07A8AF089844A549B0F0CCC727AF31AA56FD6310@OVEKBG.ove.at> Here is the test script: If you enable the line //a.x_label.text="Sensor Amplitude [LLP-Units]"; You see the same problem. Is it a bug? Thanks for your help Wolfgang x=0:0.1:2*%pi; y=sin(x); subplot(2,1,1); plot(x,y,"-s","MarkerSize",4,"MarkerFaceColor","b"); set(gca(),"data_bounds",matrix([0,6,-2,2],2,-1)); a=gca(); a.title.text="Test"; //a.x_label.text="Sensor Amplitude [LLP-Units]"; a.y_label.text="Relative Sensor DE [%]"; a1=newaxes(); a1.filled="off"; // the background of the graphical area should be a1.axes_bounds=a.axes_bounds; plot(x,4*cos(x),'r'); set(gca(),"data_bounds",matrix([0,6,-2,2],2,-1)); a1=gca(); //get the handle of the newly created axes a1.tight_limits = "on"; a1.y_location = "right"; a1.axes_visible = ["off","on","off"]; . subplot(2,1,2); > -----Urspr?ngliche Nachricht----- > Von: users [mailto:users-bounces at lists.scilab.org] Im Auftrag von Samuel > Gougeon > Gesendet: Montag, 12. Mai 2014 22:45 > An: International users mailing list for Scilab. > Betreff: Re: [Scilab-users] Plotting problem - subplot with 2 y-axis > > Hello Wolfgang, > > Le 12/05/2014 18:56, SCHULZ Wolfgang a ?crit : > > Hello, > > I haven't heard anything. Are you guy thinking that this is a bug which I should > report on bugzilla? > > Thanks for your help > It is hard to test and help debugging without the full piece of code and the > related data... > > Samuel > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From Christophe.Dang at sidel.com Tue May 13 15:24:49 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Tue, 13 May 2014 15:24:49 +0200 Subject: [Scilab-users] Scilab versus matlab In-Reply-To: References: <1399919230.76591.YahooMailNeo@web133004.mail.ir2.yahoo.com> <3B5FFC67498DFF49AE7271A584867D16F329784FDE@301EX00100.sidel.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F329785444@301EX00100.sidel.com> Hello, > De : Iurie > Envoy? : mardi 13 mai 2014 11:43 > > btw is there a way to see what bibliotecs exist in matlab and does not > exist in scilab? You should keep in mind that some functions that are available in toolboxes for Matlab are included in Scilab (e.g. the optimisaiton functions). So the best is to look first at http://help.scilab.org/ and either browse by topics, or type the name of the Matlab function and see if it fits. Then look at the modules, described at http://atoms.scilab.org/ Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer ______________________________________________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ______________________________________________________________________ From fausto_barbuto at yahoo.ca Tue May 13 16:26:09 2014 From: fausto_barbuto at yahoo.ca (Fausto Arinos de A. Barbuto) Date: Tue, 13 May 2014 07:26:09 -0700 (PDT) Subject: [Scilab-users] Scilab 5.5.0 crashes on Windows7 Ultimate, 64-bit Message-ID: <1399991169.16678.YahooMailNeo@web121204.mail.ne1.yahoo.com> I've just updated from 5.4.4 and found out that Scilab 5.5.0 merely flashes its GUI before crashing. Should I reboot?? I wasn't asked to. F. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Tue May 13 16:29:01 2014 From: sgougeon at free.fr (sgougeon at free.fr) Date: Tue, 13 May 2014 16:29:01 +0200 (CEST) Subject: [Scilab-users] Plotting problem - subplot with 2 y-axis In-Reply-To: <07A8AF089844A549B0F0CCC727AF31AA56FD6310@OVEKBG.ove.at> Message-ID: <915404137.1301081365.1399991341051.JavaMail.root@zimbra75-e12.priv.proxad.net> Hello Wolfgang, If you were dealing about the mismatch between both axes frames: This is a side effect of the new axes.auto_margin attribute. In order to fix it in your example, you may just add a1.margins = a.margins; HTH Samuel From W.Schulz at ove.at Tue May 13 17:29:07 2014 From: W.Schulz at ove.at (SCHULZ Wolfgang) Date: Tue, 13 May 2014 15:29:07 +0000 Subject: [Scilab-users] Plotting problem - subplot with 2 y-axis In-Reply-To: <915404137.1301081365.1399991341051.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <07A8AF089844A549B0F0CCC727AF31AA56FD6310@OVEKBG.ove.at> <915404137.1301081365.1399991341051.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: <07A8AF089844A549B0F0CCC727AF31AA56FD6496@OVEKBG.ove.at> Hello Samuel, thanks a lot - I would have never found this alone!!! Wolfgang > -----Urspr?ngliche Nachricht----- > Von: users [mailto:users-bounces at lists.scilab.org] Im Auftrag von > sgougeon at free.fr > Gesendet: Dienstag, 13. Mai 2014 16:29 > An: International users mailing list for Scilab. > Betreff: Re: [Scilab-users] Plotting problem - subplot with 2 y-axis > > Hello Wolfgang, > > If you were dealing about the mismatch between both axes frames: > This is a side effect of the new axes.auto_margin attribute. > In order to fix it in your example, you may just add a1.margins = a.margins; > > HTH > Samuel > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From cfuttrup at gmail.com Tue May 13 18:16:03 2014 From: cfuttrup at gmail.com (Claus Futtrup) Date: Tue, 13 May 2014 18:16:03 +0200 Subject: [Scilab-users] Plotting problem - subplot with 2 y-axis In-Reply-To: <07A8AF089844A549B0F0CCC727AF31AA56FD6496@OVEKBG.ove.at> References: <07A8AF089844A549B0F0CCC727AF31AA56FD6310@OVEKBG.ove.at> <915404137.1301081365.1399991341051.JavaMail.root@zimbra75-e12.priv.proxad.net> <07A8AF089844A549B0F0CCC727AF31AA56FD6496@OVEKBG.ove.at> Message-ID: <53724543.3090309@gmail.com> Indeed a very nice tip. Maybe add as an example in the help file? (I didn't check if it's already there ... but it's a good tip). Best regards, Claus On 13-May-14 17:29, SCHULZ Wolfgang wrote: > Hello Samuel, > thanks a lot - I would have never found this alone!!! > Wolfgang > >> -----Urspr?ngliche Nachricht----- >> Von: users [mailto:users-bounces at lists.scilab.org] Im Auftrag von >> sgougeon at free.fr >> Gesendet: Dienstag, 13. Mai 2014 16:29 >> An: International users mailing list for Scilab. >> Betreff: Re: [Scilab-users] Plotting problem - subplot with 2 y-axis >> >> Hello Wolfgang, >> >> If you were dealing about the mismatch between both axes frames: >> This is a side effect of the new axes.auto_margin attribute. >> In order to fix it in your example, you may just add a1.margins = a.margins; >> >> HTH >> Samuel >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com From cfuttrup at gmail.com Tue May 13 18:17:10 2014 From: cfuttrup at gmail.com (Claus Futtrup) Date: Tue, 13 May 2014 18:17:10 +0200 Subject: [Scilab-users] Scilab 5.5.0 crashes on Windows7 Ultimate, 64-bit In-Reply-To: <1399991169.16678.YahooMailNeo@web121204.mail.ne1.yahoo.com> References: <1399991169.16678.YahooMailNeo@web121204.mail.ne1.yahoo.com> Message-ID: <53724586.3020805@gmail.com> Hi Fausto I don't remember restarting the PC. Scilab should work without restart, AFAIR. Scilab shouldn't crash on you, I think something went wrong during your installation. /Claus On 13-May-14 16:26, Fausto Arinos de A. Barbuto wrote: > > I've just updated from 5.4.4 and found out that Scilab 5.5.0 merely > flashes its GUI before crashing. > Should I reboot? I wasn't asked to. > > F. > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed May 14 01:45:58 2014 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 14 May 2014 01:45:58 +0200 Subject: [Scilab-users] Scilab versus matlab In-Reply-To: <1399919230.76591.YahooMailNeo@web133004.mail.ir2.yahoo.com> References: <1399919230.76591.YahooMailNeo@web133004.mail.ir2.yahoo.com> Message-ID: <5372AEB6.8090205@free.fr> Hello, As answered by Christophe, you shall use deff(..). In Scilab, all functions are somewhat anonymous, in the way that their names are "handles" that some functions may accept as is (functions names are some variables with specific types). Some examples: deff("y = what_do_you_want_to_do(action, param)", "y = action(param)") -->what_do_you_want_to_do(sqrt, 2) ans = 1.4142136 -->what_do_you_want_to_do(max, [2 -1 3 0]) ans = 3. -->what_do_you_want_to_do(min, [2 -1 3 0]) ans = - 1. It is possible to make aliases of functions as of variables: -->quadratwurzel = sqrt -->quadratwurzel(2) ans = 1.4142136 and so on. HTH, Samuel Le 12/05/2014 20:27, Patrick Seeboerger a ?crit : > Dear Sir or Madame, > > I am starting to use Scilab instead of Matlab more and more so I have > to translate > some code from a Matlab M-file into Scilab. > > So when I write an argumental function in Matlab I can write it for > example like: > > U_q=@(f_u) k_U*2*pi*f_u; > > Now my question: > > Which operator do I have to use in Scilab instead of =@ ? > > Thank you, > > Best regards, > > Patrick Seeb?rger > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From fausto_barbuto at yahoo.ca Wed May 14 05:07:25 2014 From: fausto_barbuto at yahoo.ca (Fausto Arinos de A. Barbuto) Date: Tue, 13 May 2014 20:07:25 -0700 (PDT) Subject: [Scilab-users] Mailing list newbie question Message-ID: <1400036845.10987.YahooMailNeo@web121204.mail.ne1.yahoo.com> Why can't I login to the mailing list's web interface to reply to a post? My account is there, I can login to change my options if I need to and yet I'm denied access to the web interface?! Sorry, I know this isn't the right place to ask that, but I'm lost. Fausto -------------- next part -------------- An HTML attachment was scrubbed... URL: From www.kanibani at gmail.com Tue May 13 13:30:26 2014 From: www.kanibani at gmail.com (Gona) Date: Tue, 13 May 2014 04:30:26 -0700 (PDT) Subject: [Scilab-users] Bicycle Dynamics In-Reply-To: <1399916961487-4030466.post@n3.nabble.com> References: <1399916961487-4030466.post@n3.nabble.com> Message-ID: <1399980626294-4030480.post@n3.nabble.com> Hi Christophe, first of all let me thank you so much for your time and effort on this. I was referring to this wiki article from the beginning. http://en.wikipedia.org/wiki/Bicycle_and_motorcycle_dynamics About the points that you have raised, > I guess this is the bicycle seen from behind (or front, no matter), and > that the frame of reference is the bicycle. Yes it is the bicycle seen from behind > You forgot to define w, delta and phi. where r is the approximate radius, w is the wheelbase, ? is the lean angle, ? is the steer angle, and ? is the caster angle of the steering axis > The rotational equilibrium in the frame of reference is just v^2/r/g = > tan(theta). That is true for the rotational equilibrium. But what I have done is deriving an deferential equation describing the system. > You did not specify what you are drawing. In the first xcos schematic what I have shown is how I implemented above equation in xcos. In the second picture what I have shown is the impulse response of the system ( The out put theta to the impulse input delta) Thanks a lot for the effort and I really do appreciate it. Best Gona -- View this message in context: http://mailinglists.scilab.org/Bicycle-Dynamics-tp4030466p4030480.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From dharma.yoga9 at gmail.com Tue May 13 20:53:11 2014 From: dharma.yoga9 at gmail.com (Dharma Yoga) Date: Wed, 14 May 2014 01:53:11 +0700 Subject: [Scilab-users] QTT1 Message-ID: <000001cf6edc$9a717120$cf545360$@gmail.com> Helo, my name is Yoga, I'm a student of graduate school of IPB. I have some questions about Quantification Theory Type 1 (QTT1). First, what is different between QTT1 and common multiple linear regression? Second, do scilab have any library to solve QTT1? Thank you before for respond my questions. Regards Dharma Yoga -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Wed May 14 11:02:32 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Wed, 14 May 2014 11:02:32 +0200 Subject: [Scilab-users] Bicycle Dynamics In-Reply-To: <1399980626294-4030480.post@n3.nabble.com> References: <1399916961487-4030466.post@n3.nabble.com> <1399980626294-4030480.post@n3.nabble.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F3297CEC3B@301EX00100.sidel.com> Hello, > De : De la part de Gona > Envoy? : mardi 13 mai 2014 13:30 > > I was referring to this wiki article from the beginning. > http://en.wikipedia.org/wiki/Bicycle_and_motorcycle_dynamics OK, that clarifies a bit. I guess we can trust the Wikipedians (and have no time to make the calculation myself). > That is true for the rotational equilibrium. Yes, I thought about it just after clicking "send", we are here in dynamics. > In the second picture what I have shown is the impulse response of the > system ( The out put theta to the impulse input delta) OK. I just wonder what you call l. If it is the height of the center of gravity when the bike is upright, then it is not the length that is in the moment of inertia. Your bike+biker is not a uniform rod. You may define a radius of gyration for the body about its center of gravity, then apply the Huygens-Steiner theorem where we find l. But this is rather complicated as you don't have the radius of gyration. You might keep I as a parameter itself. But this is just a proportional factor and should not have a qualitative influence. Then: when you calculate the torque of the forces, it seems to me it should be mg*l*cos(theta) - (mv^2/r)*l*sin(theta) and not the contrary. Or? -- Christophe Dang Ngoc Chan Mechanical calculation engineer ______________________________________________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ______________________________________________________________________ From Christophe.Dang at sidel.com Wed May 14 11:16:15 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Wed, 14 May 2014 11:16:15 +0200 Subject: [Scilab-users] Bicycle Dynamics In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F3297CEC3B@301EX00100.sidel.com> References: <1399916961487-4030466.post@n3.nabble.com> <1399980626294-4030480.post@n3.nabble.com> <3B5FFC67498DFF49AE7271A584867D16F3297CEC3B@301EX00100.sidel.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F3297CEC8F@301EX00100.sidel.com> > it seems to me it should be > mg*l*cos(theta) - (mv^2/r)*l*sin(theta) > and not the contrary. > > Or? Or not. Sorry, you're right, I messed the axes up. A shame for someone writing "Mechanical calculation engineer" in his signature ;-) So, your calculation seems globally right. Now, your question "If anyone could confirm that the model seems to be realistic/ or correct" is not obvious: I ride my bike everyday to go to work, and if I have a pulse in the steering angle, I correct it with my balance... Not sure 'bout what I'm saying (and I wrote enough silly things yet), but once delta goes back to 0, r is back to infinity (straight movement), so what you should see is the biker falling. -- 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 latifkhank1 at box.az Wed May 14 22:13:35 2014 From: latifkhank1 at box.az (heyjude) Date: Wed, 14 May 2014 13:13:35 -0700 (PDT) Subject: [Scilab-users] Scilab Advanced CLI problem Message-ID: <1400098414987-4030496.post@n3.nabble.com> Hello, I recently installed Scilab (for the first time) I was trying to check everything but everytime I open Scilab Advanced CLI, I receive this warning message: libEGL warning: DRI2: failed to authenticate Scilab 5.5.0 My OS is Ubuntu 14.04, APU is AMD A8-3520M with Radeon HD 6620G What should I do to get rid of this and what are the implications? I have java installed if that helps Thanks in advance -- View this message in context: http://mailinglists.scilab.org/Scilab-Advanced-CLI-problem-tp4030496.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From www.kanibani at gmail.com Wed May 14 13:09:39 2014 From: www.kanibani at gmail.com (Gona) Date: Wed, 14 May 2014 04:09:39 -0700 (PDT) Subject: [Scilab-users] Bicycle Dynamics In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F3297CEC8F@301EX00100.sidel.com> References: <1399916961487-4030466.post@n3.nabble.com> <1399980626294-4030480.post@n3.nabble.com> <3B5FFC67498DFF49AE7271A584867D16F3297CEC3B@301EX00100.sidel.com> <3B5FFC67498DFF49AE7271A584867D16F3297CEC8F@301EX00100.sidel.com> Message-ID: <1400065779182-4030494.post@n3.nabble.com> >so what you should see is the biker falling. Yes. Thats true. What I am concerned here is that whether it falls with constant angular velocity or with accelaration. so shouldnt it be an sin diverge .only acting force is mg.l.sin\theta at this point since centrifugal force is 0. I am wondering how come it is a linear -- View this message in context: http://mailinglists.scilab.org/Bicycle-Dynamics-tp4030466p4030494.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From mjmccann at iee.org Wed May 14 14:48:39 2014 From: mjmccann at iee.org (Michael J. McCann) Date: Wed, 14 May 2014 12:48:39 +0000 Subject: [Scilab-users] Bicycle Dynamics In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F3297CEC8F@301EX00100.sidel.com> References: <1399916961487-4030466.post@n3.nabble.com> <1399980626294-4030480.post@n3.nabble.com> <3B5FFC67498DFF49AE7271A584867D16F3297CEC3B@301EX00100.sidel.com> <3B5FFC67498DFF49AE7271A584867D16F3297CEC8F@301EX00100.sidel.com> Message-ID: <53736627.5070308@iee.org> Note my official Scilab address is via mjmccann at ieee.org (IEEE in US) but my email client uses my address mjmccann at iee.org (IEE now IET, in UK) If you are interested in bicycle dynamics, stability and control you should look at the special edition of the IEEE Control Systems Magazine, October 2006, Volume 26 number 5, "Advances in Motorcycle Design and Control" There are hundreds of references going back to the late 1800s. Key authors in this journal were Alessandro Beghi and Ruggero Frezza, also David J. N. Limebeer and Robin S. Sharp. I happened to keep a copy for personal interest, but I haven't worked in this field. It's all there, stability, wobble, weaving, shimmy, stabilization methods and geometry effects. On page 110 there's a picture of Albert Einstein turning a corner on a bicycle with his quote, "Life is like riding a bicycle. To keep your balance you must keep moving". Thinking about the problem discussed here in Scilab/Xcos it seems to me that you are interested in the rotation about the contact line with the road, that the radius of gyration will be dominated by the height of the rider's CG above the road unless it's a motor bike in which case the mass of the bike could well dominate the analysis and furthermore, since turning involves rotation about a vertical axis and at high speed, the wheels can have significant angular momentum (gyroscopic effect) you may have to consider the angular momentum in 3 space. Good luck. Mike. Dr. M.J. McCann, MJMcCann Consulting ================ On 14/05/2014 09:16, Dang, Christophe wrote: >> it seems to me it should be >> mg*l*cos(theta) - (mv^2/r)*l*sin(theta) >> and not the contrary. >> >> Or? > Or not. > Sorry, you're right, I messed the axes up. > A shame for someone writing "Mechanical calculation engineer" in his signature ;-) > > So, your calculation seems globally right. > > Now, your question "If anyone could confirm that the model seems to be realistic/ or correct" is not obvious: > I ride my bike everyday to go to work, and if I have a pulse in the steering angle, I correct it with my balance... > > Not sure 'bout what I'm saying (and I wrote enough silly things yet), but once delta goes back to 0, r is back to infinity (straight movement), > so what you should see is the biker falling. > > -- > Christophe Dang Ngoc Chan > Mechanical calculation engineer > > ________________________________ From ramestica at gmail.com Wed May 14 19:18:08 2014 From: ramestica at gmail.com (ramestica) Date: Wed, 14 May 2014 10:18:08 -0700 (PDT) Subject: [Scilab-users] FFTCMPLX_f ? Message-ID: <1400087888664-4030495.post@n3.nabble.com> Hello, why is that I cannot find the module in the subject within xcos' palettes? (running scilab 5.5.0 under xubuntu). I came aware of such module by the link shown below. Thanks, Rodrigo http://www.scicos.org/ScicosModNum/modnum_web/src/modnum_43b/interf/scicos/help/eng/htm/FFTCMPLX_f.htm -- View this message in context: http://mailinglists.scilab.org/FFTCMPLX-f-tp4030495.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Christophe.Dang at sidel.com Thu May 15 10:34:36 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Thu, 15 May 2014 10:34:36 +0200 Subject: [Scilab-users] Bicycle Dynamics In-Reply-To: <1400065779182-4030494.post@n3.nabble.com> References: <1399916961487-4030466.post@n3.nabble.com> <1399980626294-4030480.post@n3.nabble.com> <3B5FFC67498DFF49AE7271A584867D16F3297CEC3B@301EX00100.sidel.com> <3B5FFC67498DFF49AE7271A584867D16F3297CEC8F@301EX00100.sidel.com> <1400065779182-4030494.post@n3.nabble.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F329829A85@301EX00100.sidel.com> Hello, > De : Gona > Envoy? : mercredi 14 mai 2014 13:10 > What I am concerned here is that whether it falls with > constant angular velocity or with accelaration. Acceleration of course. -- 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 FlorianAug at posteo.de Thu May 15 11:26:17 2014 From: FlorianAug at posteo.de (Flo89) Date: Thu, 15 May 2014 02:26:17 -0700 (PDT) Subject: [Scilab-users] Problems with Arx-algorithm Message-ID: <1400145977634-4030499.post@n3.nabble.com> Hello, I did some measurements and data analysis on a system. Now I want to let scilab calculate a transfer function with armax algorithm but I'm running into problems. input_short is the input vector and the same with output_short. Then I do: [arc,resid]=armax(8,5,output_short,input_short) [z]=arsimul(arc,input_short); And afterwards I'm plotting the real output and the simulated one: plot(scalar,[z' output_short']); Now here are four different value pairs of the plot: And here is the real system with input and output: (Is longer, the above is only a extract) Now I really don't know what to do to get satisfying results? Anyone got an advice? Thank you so much! Florian -- View this message in context: http://mailinglists.scilab.org/Problems-with-Arx-algorithm-tp4030499.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From fausto_barbuto at yahoo.ca Thu May 15 19:06:03 2014 From: fausto_barbuto at yahoo.ca (Fausto Arinos de A. Barbuto) Date: Thu, 15 May 2014 10:06:03 -0700 (PDT) Subject: [Scilab-users] Scilab 5.5.0 definitely doesn't work on Windows7 Ultimate 64-bit Message-ID: <1400173563.8639.YahooMailNeo@web121202.mail.ne1.yahoo.com> Hello, Neither 32- nor the 64-bit versions of Scilab 5.5.0 seem to like this computer and it's 64-bit W7 Ultimate OS.? The installs go fine, but when I start Scilab up all it does is to flash its GUI for a tenth of a second and then vanishes.? Task Manager says it's not there either running on the background yet invisible or not responding. What could that problem be?? Can anyone help?? Have any of you had this problem before?? What other packages not self-contained in the installer do I need?? I have Java 8 64-bit, would that be the problem?? Does Scilab generate an error log report I could post here/somewhere to get some insight on the problem? Many thanks in advance. Fausto -------------- next part -------------- An HTML attachment was scrubbed... URL: From obs.psr at wanadoo.fr Fri May 16 10:38:25 2014 From: obs.psr at wanadoo.fr (Serge Montagnac) Date: Fri, 16 May 2014 10:38:25 +0200 Subject: [Scilab-users] Scilab 5.5.0 definitely doesn't work on Windows7 Ultimate 64-bit In-Reply-To: <1400173563.8639.YahooMailNeo@web121202.mail.ne1.yahoo.com> References: <1400173563.8639.YahooMailNeo@web121202.mail.ne1.yahoo.com> Message-ID: <5375CE81.9090207@wanadoo.fr> An HTML attachment was scrubbed... URL: From www.kanibani at gmail.com Fri May 16 11:29:52 2014 From: www.kanibani at gmail.com (Gona) Date: Fri, 16 May 2014 02:29:52 -0700 (PDT) Subject: [Scilab-users] CLSS Problem. System doesnt behave as expected. Message-ID: <1400232592468-4030506.post@n3.nabble.com> Hi all, I was trying to model a linearized system in Xcos with CLSS block in state space form. But the output of the system doesn't seems to be realistic at all. The equation I wanted to model is this. With small angle approximation, the state space representation came as, The system I modeled with Xcos is as follows with following parameters. The output of the CLSS system came as, I modeled the exact same system as a non linear model in Xcos and output appears to be correct. Can anybody please let me know if I have done something wrong in this simple system and does the CLSS work as its expected to be ? Thanks a lot in advance BR Gona -- View this message in context: http://mailinglists.scilab.org/CLSS-Problem-System-doesnt-behave-as-expected-tp4030506.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From www.kanibani at gmail.com Fri May 16 11:32:31 2014 From: www.kanibani at gmail.com (Gona) Date: Fri, 16 May 2014 02:32:31 -0700 (PDT) Subject: [Scilab-users] Bicycle Dynamics In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F329829A85@301EX00100.sidel.com> References: <1399916961487-4030466.post@n3.nabble.com> <1399980626294-4030480.post@n3.nabble.com> <3B5FFC67498DFF49AE7271A584867D16F3297CEC3B@301EX00100.sidel.com> <3B5FFC67498DFF49AE7271A584867D16F3297CEC8F@301EX00100.sidel.com> <1400065779182-4030494.post@n3.nabble.com> <3B5FFC67498DFF49AE7271A584867D16F329829A85@301EX00100.sidel.com> Message-ID: <1400232751172-4030507.post@n3.nabble.com> Hi, Thanks all for the support. Now the model is working fine. I have changed nothing. I am not sure what caused the previous plot to be incorrect. May be the cashed variables has caused this damage. I have experienced another problem when I tried to use CLSS block in Xcos and I opened another thread on that topic here. http://mailinglists.scilab.org/CLSS-Problem-System-doesnt-behave-as-expected-td4030506.html If you have experienced the same kind of problem appreciate your valuable feedback.. Thanks again everyone for your time and effort helping out. BR Gona. -- View this message in context: http://mailinglists.scilab.org/Bicycle-Dynamics-tp4030466p4030507.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From www.kanibani at gmail.com Fri May 16 11:58:35 2014 From: www.kanibani at gmail.com (Gona) Date: Fri, 16 May 2014 02:58:35 -0700 (PDT) Subject: [Scilab-users] PID tuning with Optimization Message-ID: <1400234315932-4030508.post@n3.nabble.com> Hi All, I was trying to tune my PID controller following this article. http://wiki.scilab.org/Xcos/Examples/PID I have setup my environment like this, And up to the first simulation, the process went well. I got a warning for the CMSCOPE but I guess it has nothing to do with this problem. *CMSCOPE('set'): Wrong size for block parameter 'Refresh period': 2 expected, getting 30 30 30 30 * But when I tried to start the optimization, I got this error. *-->[f_opt, x_opt] = optim(my_optim_pid,'b',Lower,Upper,x0,algo='qn','ar',MaxEvalFunc,MaxEvalFunc,1e-3,1e-3,[1e-3;1e-3]); CMSCOPE('set'): Wrong size for block parameter 'Refresh period': 2 expecte d, getting 30 30 30 30 !--error 21 Invalid index. at line 12 of function f_pid called by : at line 2 of function my_optim_pid called by : unc,MaxEvalFunc,1e-3,1e-3,[1e-3;1e-3])* My f_pid function goes like this. *function y = f_pid(x) global Iter; %scicos_context.l = l %scicos_context.g = g %scicos_context.v = v %scicos_context.phi = phi %scicos_context.w = w %scicos_context.P = x(1)*Pfact; %scicos_context.I = x(2)*Ifact; Iter = Iter + 1; Info = scicos_simulate(scs_m,list(),%scicos_context,flag='nw'); y_error = mean(abs((block_output('values')(:,1) - block_output('values')(:,2)))); y_diff = mean(abs(diff(block_output('values')(:,2)))); y = 0.5*y_error + 0.5*1*y_diff; ... printf('Evaluation %d - P = %f I = %f y = %f (y_error = %f, y_diff = %f)\n',Iter,x(1),x(2),y,y_error,y_diff); endfunction* I guess the problem lies in the block_output variable. When I tried to see the content of the block_output('values')(:,2) I got the same error. *-->block_output('values')(:,2) !--error 21 Invalid index.* I guess in my system the block_output is not in the same dimensions as that of the example shown in the article. How can I fix this issue. Anyone please shed some light on this issue ? and how can I add the D gain in to the optimization ? any help is highly appreciated. Thanks BR Gona -- View this message in context: http://mailinglists.scilab.org/PID-tuning-with-Optimization-tp4030508.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From jrafaelbguerra at hotmail.com Fri May 16 15:22:07 2014 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Fri, 16 May 2014 14:22:07 +0100 Subject: [Scilab-users] Question about uigetfile function Message-ID: Hello, Does anyone know how if it is possible to propose a File name inside the GUI of uigetfile? For example: filename= uigetfile(["*.txt"],"", "Write output file name", %f); It would be handy to be able to propose a file name in uigetfile, based on a Scilab variable related to data to be saved, instead of having to type it. Thanks and regards, Rafael G. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.jpg Type: image/jpeg Size: 5796 bytes Desc: not available URL: From fausto_barbuto at yahoo.ca Fri May 16 16:39:26 2014 From: fausto_barbuto at yahoo.ca (Fausto Arinos de A. Barbuto) Date: Fri, 16 May 2014 07:39:26 -0700 (PDT) Subject: [Scilab-users] Scilab 5.5.0 definitely doesn't work on Windows7 Ultimate 64-bit In-Reply-To: <5375CE81.9090207@wanadoo.fr> References: <1400173563.8639.YahooMailNeo@web121202.mail.ne1.yahoo.com> <5375CE81.9090207@wanadoo.fr> Message-ID: <1400251166.87689.YahooMailNeo@web121204.mail.ne1.yahoo.com> Hi Serge, Merci pour votre r?ponse. Unfortunately, there's not such a "glxinfo" command on my W7 system.? But I checked the info about the graphics card (an AMD HD 6670) and apparently OpenGL is there and active (version 6.14.10.12874).? I even updated the driver -- to no avail.? Scilab 5.5.0 keeps crashing. This is frustrating because I don't remember it ever happening before with Scilab or any other application. I don't have to use Scilab, but I like it and would keep it if I could.? But, much to my regret, it seems that I either go back to a previous Scilab version or quit Scilab altogether. Regards, Fausto On Friday, May 16, 2014 5:38:27 AM, Serge Montagnac wrote: > > >On 05/15/2014 07:06 PM, Fausto Arinos de A. Barbuto wrote: > > >>Hello, >> >>Neither 32- nor the 64-bit versions of Scilab 5.5.0 seem to like this computer and it's >>64-bit W7 Ultimate OS.? The installs go fine, but when I start Scilab up all it does >>is to flash its GUI for a tenth of a second and then vanishes.? Task Manager says it's >>not there either running on the background yet invisible or not responding. >> >>What could that problem be?? Can anyone help?? Have any of you had this problem >>before?? What other packages not self-contained in the installer do I need?? I have >>Java 8 64-bit, would that be the problem?? Does Scilab generate an error log report >>I could post here/somewhere to get some insight on the problem? >> >>Many thanks in advance. >> >>Fausto >> >> >> >> >> >>_______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users Hi Fausto, > >I flew away from Microsoft 23 years ago, but I remember that it was possible for you to >open a DOS terminal? ;-)) > >The reason of your problems is probably an OpenGL configuration problem. > >Could you type "glxinfo" without the quotes and post the result of this command. > >...if it does not begin like this ... try first to configure correctly your graphic card driver >for OpenGL and direct rendering (DRI or DRI2) compatibility. > > >[serge at darkstar ~]$ glxinfo >name of display: :0 >display: :0? screen: 0 >direct rendering: Yes >server glx vendor string: NVIDIA Corporation >server glx version string: 1.4 >server glx extensions: >??? GLX_ARB_create_context, GLX_ARB_create_context_profile, >??? GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float, >??? GLX_ARB_multisample, GLX_EXT_buffer_age, >??? GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile, >??? GLX_EXT_framebuffer_sRGB, GLX_EXT_swap_control, GLX_EXT_swap_control_tear, >??? GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating, >??? GLX_NV_float_buffer, GLX_NV_multisample_coverage, GLX_SGIX_fbconfig, >??? GLX_SGIX_pbuffer, GLX_SGI_swap_control, GLX_SGI_video_sync >client glx vendor string: NVIDIA Corporation >client glx version string: 1.4 >client glx extensions: >??? GLX_ARB_create_context, GLX_ARB_create_context_profile, >??? GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float, ............................... > > > >-- "We all know Linux is great...it does infinite loops in 5 seconds." Linus Torvalds -------------------------- Serge Montagnac http://www.obs-psr.com obs-psr at orange.fr -------------------------- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From akhorshidi at live.com Fri May 16 17:40:54 2014 From: akhorshidi at live.com (A Khorshidi) Date: Fri, 16 May 2014 08:40:54 -0700 (PDT) Subject: [Scilab-users] Problems with Arx-algorithm In-Reply-To: <1400145977634-4030499.post@n3.nabble.com> References: <1400145977634-4030499.post@n3.nabble.com> Message-ID: <1400254854851-4030512.post@n3.nabble.com> Hi. >From the simulation point of view, the resulting model may not be satisfactory due to two main reason; 1: inappropriate model structure, 2:Nosiy data. If you intend to use only the ARMAX model, then you should change the orders of the polynomials so that a good estimated model can be obtained. So, you've also change the orders four times. Why not try more other orders? As far as I know, the fitness value between 85-90% is acceptable. So, as a side note, the normalized root mean square error can be used to compare estimated data (ysim) with measured data (y): fitness_percentage = 100*(1-(norm(y-ysim)/norm(y-mean(y)))) However, if the fitness value was not admissible, the measured data may be contaminated by noise. Then, you should filler the measurements before starting the parameter estimation. Use the frequency response of an estimated model to find the frequency range which needs to be filtered. HTH Mehran _ -- View this message in context: http://mailinglists.scilab.org/Problems-with-Arx-algorithm-tp4030499p4030512.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From akhorshidi at live.com Fri May 16 17:41:32 2014 From: akhorshidi at live.com (A Khorshidi) Date: Fri, 16 May 2014 08:41:32 -0700 (PDT) Subject: [Scilab-users] CLSS Problem. System doesnt behave as expected. In-Reply-To: <1400232592468-4030506.post@n3.nabble.com> References: <1400232592468-4030506.post@n3.nabble.com> Message-ID: <1400254892337-4030513.post@n3.nabble.com> Hi. It seems that your model is not valid. I think you wanna simulate the equation of the motion of a 1-dof robot arm or a simple pendulum. Therefore, the correct model can be derived from Euler's law as below (You've not considered the effect of gravity correctly): mL^2(thetadoubledot) + gLsin(theta) = Tau However if you wanna simulate your given model, then state equations become: x1=theta --> xdot1=thetadot=x2 x2=thetadot --> xdot1=thetadoubledot=x1/L + Tau/mL^2 So, correct the matrix B as below: B=[0, 1/mL^2] Instead of using Xcos, you can simulate the model in Scilab environment by using ode function. That is the response that you should expect to see in Xcos simulations. clc, clear L=1; m=1; Tau=1; function xdot=Model(t, x) xdot(1)= x(2); xdot(2)= sin(x(1))/L + Tau/(m*L^2); endfunction theta0=0; tethadot0=0; t0=0; t=0:.01:10; x0=[theta0; tethadot0]; y=ode("rk",x0,t0,t, Model); subplot(211) plot(t, y(1,:)) set(gca(),"grid",[1 1]*color('gray')); xtitle('$\theta(t)$', 'Time (s)', 'Angle (rad)'); subplot(212) plot(t,y(2,:)) set(gca(),"grid",[1 1]*color('gray')); xtitle('$\dot{\Theta}(t)$', 'Time (s)', ' Angular Velocity (rad/s)'); To simulate the non-linear system in Xcos, you should use the "EXPRESSION" block to handle mathematical functions (e.g. sin(theta)). Therefore, your non-linear scheme also appears wrong. HTH Mehran _ -- View this message in context: http://mailinglists.scilab.org/CLSS-Problem-System-doesnt-behave-as-expected-tp4030506p4030513.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From akhorshidi at live.com Fri May 16 17:49:14 2014 From: akhorshidi at live.com (A Khorshidi) Date: Fri, 16 May 2014 08:49:14 -0700 (PDT) Subject: [Scilab-users] Problems with Arx-algorithm In-Reply-To: <1400254854851-4030512.post@n3.nabble.com> References: <1400145977634-4030499.post@n3.nabble.com> <1400254854851-4030512.post@n3.nabble.com> Message-ID: <1400255354116-4030514.post@n3.nabble.com> A Khorshidi wrote > [..] Then, you should filler [..]. Sorry, "filter" is correct! -- View this message in context: http://mailinglists.scilab.org/Problems-with-Arx-algorithm-tp4030499p4030514.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Fri May 16 22:30:45 2014 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 16 May 2014 22:30:45 +0200 Subject: [Scilab-users] Question about uigetfile function In-Reply-To: References: Message-ID: <53767575.7030802@free.fr> Hello Rafael, Le 16/05/2014 15:22, Rafael Guerra a ?crit : > Hello, > > Does anyone know how if it is possible to propose a File name inside the GUI of uigetfile? > > For example: > > filename=uigetfile(["*.txt"],"","Write output file name",%f); > > > It would be handy to be able to propose a file name in uigetfile, based on a Scilab variable related to data to be saved, instead of having to type it. AFAIU, uigetfile and uiputfile are not intended to propose a (new) filename but to interactively select an existing one. If a new file must be created, why do you want to locate it interactively (but for selecting the homing dir, with uigetdir) ? Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 5796 bytes Desc: not available URL: From Paul.Martin.28130 at gmail.com Fri May 16 22:36:51 2014 From: Paul.Martin.28130 at gmail.com (Paul Martin) Date: Fri, 16 May 2014 13:36:51 -0700 (PDT) Subject: [Scilab-users] Share variable between Xcos Blocks Message-ID: <1400272611068-4030520.post@n3.nabble.com> Hi, I have created my own Xcos Block. I try to share variable between them without any link. I want to have the same behavior than the GOTO/FROM Blocks, but i want to manage the variable inside my own block. My blocks are developped in C, i thought use the globlal variable, but i dont know how to use it in C files. Thanks, Paul -- View this message in context: http://mailinglists.scilab.org/Share-variable-between-Xcos-Blocks-tp4030520.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Fri May 16 23:09:01 2014 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 16 May 2014 23:09:01 +0200 Subject: [Scilab-users] Question about uigetfile function In-Reply-To: <53767575.7030802@free.fr> References: <53767575.7030802@free.fr> Message-ID: <53767E6D.1030002@free.fr> Le 16/05/2014 22:30, Samuel Gougeon a ?crit : > Hello Rafael, > > Le 16/05/2014 15:22, Rafael Guerra a ?crit : >> Hello, >> >> Does anyone know how if it is possible to propose a File name inside the GUI of uigetfile? >> >> For example: >> >> filename=uigetfile(["*.txt"],"","Write output file name",%f); >> >> >> It would be handy to be able to propose a file name in uigetfile, based on a Scilab variable related to data to be saved, instead of having to type it. Right, /ui//*put*//file/ could also be used to set interactively in a once a new filename (with a default proposal) in the right chosen dir. A wish that could be reported in bugzilla. Cheers Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 5796 bytes Desc: not available URL: From akhorshidi at live.com Sat May 17 18:13:36 2014 From: akhorshidi at live.com (A Khorshidi) Date: Sat, 17 May 2014 09:13:36 -0700 (PDT) Subject: [Scilab-users] CLSS Problem. System doesnt behave as expected. In-Reply-To: <1400260589384-4030516.post@n3.nabble.com> References: <1400232592468-4030506.post@n3.nabble.com> <1400254892337-4030513.post@n3.nabble.com> <1400260589384-4030516.post@n3.nabble.com> Message-ID: <1400343216719-4030526.post@n3.nabble.com> Gona wrote > [..] > I tried changing the B matrix as you suggested and still the system gives > out a result which is not acceptable. > [..] Hi; Please see the state equations above. So, you must also correct the matrix A: A= [0 1; 1/L 0] Regards, Mehran _ -- View this message in context: http://mailinglists.scilab.org/CLSS-Problem-System-doesnt-behave-as-expected-tp4030506p4030526.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From rodmra at yahoo.com.br Mon May 19 00:49:38 2014 From: rodmra at yahoo.com.br (rodmra) Date: Sun, 18 May 2014 15:49:38 -0700 (PDT) Subject: [Scilab-users] fmincon will work In-Reply-To: <5358BAD4.9080101@utc.fr> References: <530E0C50.4050809@scilab-enterprises.com> <530E3FB2.5050301@utc.fr> <5321F997.9020006@dica.unict.it> <1398275295050-4030356.post@n3.nabble.com> <5358BAD4.9080101@utc.fr> Message-ID: <1400453378788-4030529.post@n3.nabble.com> Thank you St?phane Mottelet. Now fmincon will work on Linux Ubuntu 14.04 LTS 64-bit version! Instructions (what I did): a) Install pre-requisite packages (terminal command): sudo apt-get install scilab subversion gfortran ; b) Run Scilab 5.5, click on ATOMS button and install Apifun and Fmincon (SciIPOpt will be automatically installed); c) Restart Scilab, click on ATOMS button, click on each package installed and uncheck Autoload feature, close Scilab; d) Download sci-ipopt sources (terminal command): svn checkout http://scilab-mip.googlecode.com/svn/trunk/sci-ipopt ; e) Start Scilab, open and run ~/sci-ipopt/builder.sce /if all works you will see this in Scilab 5.5.0 console: Downloading Ipopt ... please wait ... Running script for downloading the source code for BLAS ... Running script for downloading the source code for LAPACK ... Running script for downloading the source code for the METIS ... Running script for downloading the source code for MUMPS ... Configuring Ipopt ... please wait ... Building Ipopt ... please wait ... Installing Ipopt ... please wait ... Building macros... ... Cleaning Ipopt ... please wait --> _ / f) Now copy the contents of folder "~/sci-ipopt/" to folder "~/.Scilab/scilab-5.5.0/atoms/sci_ipopt/0.1.1-1" g) Start Scilab, click on ATOMS button, click on each package installed and check Autoload feature; h) Restart Scilab and voil?... fmincon now works! -- View this message in context: http://mailinglists.scilab.org/Scilab-users-fmincon-won-t-work-tp4029000p4030529.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From www.kanibani at gmail.com Fri May 16 18:26:16 2014 From: www.kanibani at gmail.com (Gona) Date: Fri, 16 May 2014 09:26:16 -0700 (PDT) Subject: [Scilab-users] PID tuning with Optimization In-Reply-To: <1400234315932-4030508.post@n3.nabble.com> References: <1400234315932-4030508.post@n3.nabble.com> Message-ID: <1400257576845-4030515.post@n3.nabble.com> Hi, I found out whats wrong basically in my system I have modeled. I hadnt had the input pushed in to the workspace variable block_output. I fixed that issue and now the system and output look like this. Note: I used D gain fixed at 1 as my system is unstable without D When I initialized the x0 variable to [1;5] (Initial P and I gains), The optimization routine calculated the optimum gains 1 and 5 for P and I respectively after 90 iterations. * Evaluation 90 - P = 0.999831 I = 4.997351 y = 0.007559 (y_error = 0.015119, y_diff = 0.000000) * and the system response for the square wave looks like this Then I tried to initialize the x0 variable to [1;1] and started the optimization routine; after 72 iterations I got 1 for P and 1 for I as optimal gains. * Evaluation 71 - P = 0.999973 I = 1.001996 y = 0.240250 (y_error = 0.446943, y_diff = 0.033557) Evaluation 72 - P = 0.999973 I = 0.997996 y = 0.240493 (y_error = 0.447429, y_diff = 0.033557) * 1. Why is that the optimization routine seems to take optimal values very close to the initially given values. ? I am not a pro but I guess it might have something to do with quasi-Newton method which had been used in this example as its only possible to find local minima ? In this case do we need to guess the correct value approximately before running the optimization ? 2. How can I incorporate D gain in to this. Thanks a lot in advance. -- View this message in context: http://mailinglists.scilab.org/PID-tuning-with-Optimization-tp4030508p4030515.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From www.kanibani at gmail.com Fri May 16 19:16:29 2014 From: www.kanibani at gmail.com (Gona) Date: Fri, 16 May 2014 10:16:29 -0700 (PDT) Subject: [Scilab-users] CLSS Problem. System doesnt behave as expected. In-Reply-To: <1400254892337-4030513.post@n3.nabble.com> References: <1400232592468-4030506.post@n3.nabble.com> <1400254892337-4030513.post@n3.nabble.com> Message-ID: <1400260589384-4030516.post@n3.nabble.com> Hi Mehran, Thanks a lot for your reply. I tried changing the B matrix as you suggested and still the system gives out a result which is not acceptable. Can you please let me know what I have done wrong here assuming my equation is correct. As I have shown above I have modeled the same equation in Xcos Schematic and I got the output as you have suggested in your simulation. Thanks in advance BR Gona PS: Sorry about my previous misleading info stating non-linear system. I just referred to the Xcos Schematic and thanks a lot for correcting my equation. I got your point. -- View this message in context: http://mailinglists.scilab.org/CLSS-Problem-System-doesnt-behave-as-expected-tp4030506p4030516.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From www.kanibani at gmail.com Sat May 17 17:10:41 2014 From: www.kanibani at gmail.com (Gona) Date: Sat, 17 May 2014 08:10:41 -0700 (PDT) Subject: [Scilab-users] PID tuning with Optimization In-Reply-To: <1400257576845-4030515.post@n3.nabble.com> References: <1400234315932-4030508.post@n3.nabble.com> <1400257576845-4030515.post@n3.nabble.com> Message-ID: <1400339441710-4030525.post@n3.nabble.com> Hi, Its none of the guesses I made above. In the example tuning shown in scilab article initial values are set to [1,1] but final P value comes around 50. I am posting here my system in SS form and TF form thinking it might give some insight. Does the optim function work in the order of my TF ? or do I need to think about another optimization algorithm. ? Any feedback is really valuable for me and I do appreciate your time and effort on this. Thanks in advance. BR Gona. -- View this message in context: http://mailinglists.scilab.org/PID-tuning-with-Optimization-tp4030508p4030525.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From csuchocki at o2.pl Sat May 17 21:49:10 2014 From: csuchocki at o2.pl (Cyprek) Date: Sat, 17 May 2014 12:49:10 -0700 (PDT) Subject: [Scilab-users] Scilab not starting on Ubuntu 12.04 Message-ID: <1400356150517-4030527.post@n3.nabble.com> Greetings, I have been using Scilab on Ubuntu 12.04 for about a year. Everything always worked fine. But today I am not able to start Scilab. I simply click on the icon and nothing happens. I do not get any error messages. The program simply does not start. I have tried to reinstall Scilab but with no effect. Any help much appreciated. Regards, Cyprek -- View this message in context: http://mailinglists.scilab.org/Scilab-not-starting-on-Ubuntu-12-04-tp4030527.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From www.kanibani at gmail.com Sun May 18 01:27:25 2014 From: www.kanibani at gmail.com (Gona) Date: Sat, 17 May 2014 16:27:25 -0700 (PDT) Subject: [Scilab-users] CLSS Problem. System doesnt behave as expected. In-Reply-To: <1400343216719-4030526.post@n3.nabble.com> References: <1400232592468-4030506.post@n3.nabble.com> <1400254892337-4030513.post@n3.nabble.com> <1400260589384-4030516.post@n3.nabble.com> <1400343216719-4030526.post@n3.nabble.com> Message-ID: <1400369245098-4030528.post@n3.nabble.com> Thank you so much. I messed it up. My bad. Now everything is clear. Thanks again. BR Gona -- View this message in context: http://mailinglists.scilab.org/CLSS-Problem-System-doesnt-behave-as-expected-tp4030506p4030528.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From clement.david at scilab-enterprises.com Mon May 19 09:37:33 2014 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 19 May 2014 09:37:33 +0200 Subject: [Scilab-users] Share variable between Xcos Blocks In-Reply-To: <1400272611068-4030520.post@n3.nabble.com> References: <1400272611068-4030520.post@n3.nabble.com> Message-ID: <1400485053.2043.8.camel@paros> Le vendredi 16 mai 2014 ? 13:36 -0700, Paul Martin a ?crit : > Hi, > > I have created my own Xcos Block. > I try to share variable between them without any link. > > I want to have the same behavior than the GOTO/FROM Blocks, but i want to > manage the variable inside my own block. > My blocks are developped in C, i thought use the globlal variable, but i > dont know how to use it in C files. > > Thanks, > > Paul Hello, To "share a variable" at simulation time, I suggest you to implement your own data management, store any shared pointer in the block->work field at flag=4 (Initialization) and reusing it while the simulation goes on. GOTO/FROM blocks are handled during diagram transformation and do not have any simulation function. Regards, -- Cl?ment From vincent.couvert at scilab-enterprises.com Mon May 19 09:47:32 2014 From: vincent.couvert at scilab-enterprises.com (Vincent COUVERT) Date: Mon, 19 May 2014 09:47:32 +0200 Subject: [Scilab-users] Scilab not starting on Ubuntu 12.04 In-Reply-To: <1400356150517-4030527.post@n3.nabble.com> References: <1400356150517-4030527.post@n3.nabble.com> Message-ID: <5379B714.6000402@scilab-enterprises.com> Hello, Can you try to start Scilab from a Terminal and give us the error message returned by Scilab? Regards, Le 17/05/2014 21:49, Cyprek a ?crit : > Greetings, > > I have been using Scilab on Ubuntu 12.04 for about a year. Everything > always worked fine. > But today I am not able to start Scilab. I simply click on the icon and > nothing happens. I do not get any error messages. The program simply does > not start. > > I have tried to reinstall Scilab but with no effect. > > Any help much appreciated. > > Regards, > > Cyprek > > > > -- > View this message in context: http://mailinglists.scilab.org/Scilab-not-starting-on-Ubuntu-12-04-tp4030527.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 sandro.hardy at kom.tu-darmstadt.de Mon May 19 10:02:58 2014 From: sandro.hardy at kom.tu-darmstadt.de (Sandro Hardy - KOM) Date: Mon, 19 May 2014 10:02:58 +0200 Subject: [Scilab-users] xcos UDP send and receive, DSP blocks Message-ID: <5379BAB2.5010003@kom.tu-darmstadt.de> Hello together, I was searching for UDP send/receive blocks in xcos as well as high/low/band pass filters. Are there some available? Best wishes Sandro -- Sandro Hardy, M.Sc. Multimedia Communications Lab (KOM) http://www.kom.tu-darmstadt.de Technische Universitaet Darmstadt Dept. of Electrical Engineering & Information Technology tel: +49 6151 16 75164 fax: +49 6151 16 6152 E-Mail: Sandro.Hardy at kom.tu-darmstadt.de postal address: TU Darmstadt, FB 18, KOM, Rundeturmstr. 10, S320/106 D-64283 Darmstadt, Germany From bmbouter at gmail.com Mon May 19 12:56:38 2014 From: bmbouter at gmail.com (Brian Bouterse) Date: Mon, 19 May 2014 06:56:38 -0400 Subject: [Scilab-users] GROCER VAR-HMM Example Output Different from Chapter 23 Message-ID: Hi Scilab community! I'm new to Scilab, and the AR-HMM and VAR-HMM solving capabilities of GROCER are what interest me. I have a question relating to Chapter 23 from the GROCER manual[0]. This is the univariate MS-AR(3) solved using the function ms_reg_d() on the us_revu.dat data included with GROCER. I have made no adjustment from the example statements in Chapter 23. The example output is shown on pages 4 and 5 of the Chapter 23 module. Compare that against the output I receive. http://fpaste.org/102978/14004958/ Here are my questions: 1. The numerical output is completely different. I expected it to be the same since the data is provided by GROCER, and I've done the example exactly as shown in Chapter 23. Is there some explanation to why the solved solution I receive is different than the example output in the chapter? 2. I see output like %i*8.4469016 which seems like an error because %i looks like a variable that yet needs to be replaced, and then multiplied to get to its final value. Is this some kind of bug or error? Thanks for any help the community can provide. We'll be using this for a seminar on HMM, AR-HMM, and VAR-HMM at North Carolina State University. I'm also a developer, so I really appreciate all the effort that has been put into scilab and GROCER. Thanks, Brian [0]: http://dubois.ensae.net/Grocer_manual_v1.6.zip -- Brian Bouterse -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrea.amorosi76 at gmail.com Mon May 19 23:49:35 2014 From: andrea.amorosi76 at gmail.com (Andrea Amorosi) Date: Mon, 19 May 2014 23:49:35 +0200 Subject: [Scilab-users] How to mantain the xcos superblock when generating code from it? Message-ID: <537A7C6F.1000101@gmail.com> Hi to all, I do not have a great experience with scilab and none at all with xcos, however having more than 8 years of expertise with matlab\simulink I'm trying to use xcos to see if and how it can generate code from a model. So I've created a very simple model (2 input ports, a sum block and an output port). Then I've created the superblock selecting the sum one and I've configured the inputs ports to be scalar ones. Finally I've selected the superblock and I've created code from it. Now the problem for me is that apparently it has erased the original xcos block and has created a new block which calls the c code generate from it. If I do the same thing in simulink (namely if I create an sfunction of a block), it creates a new block in a new model without erasing the simulink original one. The problem with the way xcos generates code from a block is that in case the model is a very complicated one and the user creates code from it, he loses the possibility to modify the xcos block since at the end he has only the c code. Is it the way it should behave? Is it possible to configure xcos so that not to erase the original block? Am I doing something wrong? From arawak1 at yahoo.com Tue May 20 06:11:39 2014 From: arawak1 at yahoo.com (Ron) Date: Tue, 20 May 2014 00:11:39 -0400 Subject: [Scilab-users] Please remove my name from all scilab mailing lists. I can no longer appreciate the use of Scilab. Thanks for all the years of enjoying Silab. Message-ID: Sent from my iPad From arawak1 at yahoo.com Tue May 20 06:17:10 2014 From: arawak1 at yahoo.com (Ron) Date: Tue, 20 May 2014 00:17:10 -0400 Subject: [Scilab-users] Please allow me to unsubscribe from this mailing list. Thanks. Message-ID: <832045A9-0AE4-4B09-B6CD-3C3A915D2D7B@yahoo.com> Sent from my iPad From Paul.Martin.28130 at gmail.com Tue May 20 21:35:04 2014 From: Paul.Martin.28130 at gmail.com (Paul Martin) Date: Tue, 20 May 2014 12:35:04 -0700 (PDT) Subject: [Scilab-users] Problem with get_scicos_time() discrete time c block In-Reply-To: <1378715502.10381.3.camel@paros> References: <1377421314334-4027276.post@n3.nabble.com> <1378715502.10381.3.camel@paros> Message-ID: <1400614504047-4030545.post@n3.nabble.com> Hello, I had the same problem in a block created with scicos_block4.h If you want to use get_scicos_time() in a Block with a scicos_block4.h file, you have to have include scicos.h. I don't really know why but it's work ^^ Paul -- View this message in context: http://mailinglists.scilab.org/Problem-with-get-scicos-time-discrete-time-c-block-tp4027276p4030545.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From grocer.toolbox at gmail.com Tue May 20 21:55:16 2014 From: grocer.toolbox at gmail.com (Eric Dubois) Date: Tue, 20 May 2014 21:55:16 +0200 Subject: [Scilab-users] GROCER VAR-HMM Example Output Different from Chapter 23 In-Reply-To: References: Message-ID: Hello Brian Sorry for this late answer, but I have been quite busy these days. I did not notice the problem with this version of the MS programs. Indeed I have changed the optimization device of all GROCER programs and I have not adapted the defaults for the MS programs. If you run: --> global GROCERDIR; --> load(GROCERDIR+'\data\us_revu.dat') --> bounds('1967m4','2004m2') --> nb_states=2 --> switch_var=2 // variances are switching --> var_opt=3 // unrestricted var-cov matrix --> r=ms_var('cte',3,'100*(log(us_revu)-lagts(2,log(us_revu)))',nb_states,switch_var,var_opt,'prt=initial;final','opt_convg=0') (see chapter 6 of the manual for explanations) Then the results of the ms_var demo is restaured. I will change the default in Grocer next version . Regards. ?ric. 2014-05-19 12:56 GMT+02:00 Brian Bouterse : > Hi Scilab community! > > I'm new to Scilab, and the AR-HMM and VAR-HMM solving capabilities of > GROCER are what interest me. > > I have a question relating to Chapter 23 from the GROCER manual[0]. This > is the univariate MS-AR(3) solved using the function ms_reg_d() on the > us_revu.dat data included with GROCER. I have made no adjustment from the > example statements in Chapter 23. > > The example output is shown on pages 4 and 5 of the Chapter 23 module. > Compare that against the output I receive. > > http://fpaste.org/102978/14004958/ > > Here are my questions: > > 1. The numerical output is completely different. I expected it to be the > same since the data is provided by GROCER, and I've done the example > exactly as shown in Chapter 23. Is there some explanation to why the > solved solution I receive is different than the example output in the > chapter? > > 2. I see output like %i*8.4469016 which seems like an error because %i > looks like a variable that yet needs to be replaced, and then multiplied to > get to its final value. Is this some kind of bug or error? > > Thanks for any help the community can provide. We'll be using this for a > seminar on HMM, AR-HMM, and VAR-HMM at North Carolina State University. > I'm also a developer, so I really appreciate all the effort that has been > put into scilab and GROCER. > > Thanks, > Brian > > > [0]: http://dubois.ensae.net/Grocer_manual_v1.6.zip > > > -- > Brian Bouterse > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.llom at gmail.com Tue May 20 20:44:34 2014 From: richard.llom at gmail.com (Richard Llom) Date: Tue, 20 May 2014 20:44:34 +0200 Subject: [Scilab-users] Why so slow? Message-ID: Hello, I need to read in a csv of about 360.000 lines with date and numerical values. Attached is a sample excerpt of that file. So far I did: ==== CODE ==== // read in tic mydat = csvRead('dat04-2011.csv', ';', ',', 'double', [], [], [], 6); toc (= 5,213 secs) mydat = mydat(:,2:6); tic mystring = csvRead('dat04-2011.csv', ';', ',', 'string', [], [], [], 6); toc (= 3,077 secs) mystring = mystring(:,1); tic for i=1:size(mydat,1) mydate(i,:) = strtod(strsplit(mystring(i,1),['.';' ';':']))'; end toc (= 186,473 secs) ==== CODE ==== (I filled in the toc values). As you can see this is unfortunately very slow. The read in of the csv, but especially the for loop. So I have several question: 1) Is there a faster way to read in the csv? Note that I need the 'header' option. 2) Instead of the loop I would like to use mydate = strtod(strsplit(mystring(:,1),['.';' ';':']))'; but this doesn't work. Is there another way to avoid the loop? 3) The raw csv file is around 15MB, but when I want to read it in the second time, Scilab says this will exceed the stacksize. Which is default by 76MB. So I don't quite understand how two times the 15MB file takes so much memory? I raised the stacksize now, but I would rather like not to. Any help is appreciated. Thanks! Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: dat04-2011.csv Type: text/csv Size: 405 bytes Desc: not available URL: From michael.dunn at ubm.com Wed May 21 00:29:06 2014 From: michael.dunn at ubm.com (Michael Dunn) Date: Tue, 20 May 2014 22:29:06 +0000 Subject: [Scilab-users] Why so slow? In-Reply-To: References: Message-ID: I had a whole slew of CSV problems too - over a year ago. Guess they haven't been fixed yet. Michael Dunn | Editor, EDN Design Ideas PCB , IC/FPGA & Medical Design Centers (519) 744-9395 (Canada) (226) 336-6033 (Mobile) (415) 947-6096 (USA) EDN Profile | LinkedIn | Skype: MichaelDunn_UBM -----Original Message----- From: Richard Llom Reply-To: "International users mailing list for Scilab." Date: Tuesday, May 20, 2014 2:44 PM To: "users at lists.scilab.org" Subject: [Scilab-users] Why so slow? >Hello, >I need to read in a csv of about 360.000 lines with date and numerical >values. Attached is a sample excerpt of that file. > >So far I did: >==== CODE ==== > >// read in >tic >mydat = csvRead('dat04-2011.csv', ';', ',', 'double', [], [], [], 6); >toc (= 5,213 secs) >mydat = mydat(:,2:6); >tic >mystring = csvRead('dat04-2011.csv', ';', ',', 'string', [], [], [], 6); >toc (= 3,077 secs) >mystring = mystring(:,1); > > >tic >for i=1:size(mydat,1) > mydate(i,:) = strtod(strsplit(mystring(i,1),['.';' ';':']))'; >end >toc (= 186,473 secs) > > >==== CODE ==== >(I filled in the toc values). > > >As you can see this is unfortunately very slow. The read in of the csv, >but >especially the for loop. > >So I have several question: > >1) >Is there a faster way to read in the csv? Note that I need the 'header' >option. > >2) >Instead of the loop I would like to use >mydate = strtod(strsplit(mystring(:,1),['.';' ';':']))'; >but this doesn't work. Is there another way to avoid the loop? > >3) >The raw csv file is around 15MB, but when I want to read it in the second >time, Scilab says this will exceed the stacksize. Which is default by >76MB. >So I don't quite understand how two times the 15MB file takes so much >memory? I raised the stacksize now, but I would rather like not to. > > >Any help is appreciated. >Thanks! >Richard From vogt at centre-cired.fr Wed May 21 01:54:49 2014 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Tue, 20 May 2014 19:54:49 -0400 Subject: [Scilab-users] Why so slow? In-Reply-To: References: Message-ID: <537BEB49.9020002@centre-cired.fr> Hi The code you provide does not run on my sci 5.5.0 anyway, i would read only the once the matrix, as a string, and then use csvTextScan on mydat(:,2:6) to convert that part to double. Taht already saves time. in your loop i believe strtod is extremely slow. Again, use csvtextscan instead. Hope this helps Adrien On 20/05/2014 14:44, Richard Llom wrote: > Hello, > I need to read in a csv of about 360.000 lines with date and numerical > values. Attached is a sample excerpt of that file. > > So far I did: > ==== CODE ==== > > // read in > tic > mydat = csvRead('dat04-2011.csv', ';', ',', 'double', [], [], [], 6); > toc (= 5,213 secs) > mydat = mydat(:,2:6); > tic > mystring = csvRead('dat04-2011.csv', ';', ',', 'string', [], [], [], 6); > toc (= 3,077 secs) > mystring = mystring(:,1); > > > tic > for i=1:size(mydat,1) > mydate(i,:) = strtod(strsplit(mystring(i,1),['.';' ';':']))'; > end > toc (= 186,473 secs) > > > ==== CODE ==== > (I filled in the toc values). > > > As you can see this is unfortunately very slow. The read in of the csv, but > especially the for loop. > > So I have several question: > > 1) > Is there a faster way to read in the csv? Note that I need the 'header' > option. > > 2) > Instead of the loop I would like to use > mydate = strtod(strsplit(mystring(:,1),['.';' ';':']))'; > but this doesn't work. Is there another way to avoid the loop? > > 3) > The raw csv file is around 15MB, but when I want to read it in the second > time, Scilab says this will exceed the stacksize. Which is default by 76MB. > So I don't quite understand how two times the 15MB file takes so much > memory? I raised the stacksize now, but I would rather like not to. > > > Any help is appreciated. > Thanks! > Richard > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Adrien Vogt-Schilb Consultant (World Bank) and PhD Candidate (Cired) 1 202 473 7980 -------------- next part -------------- An HTML attachment was scrubbed... URL: From clement.david at scilab-enterprises.com Wed May 21 10:06:44 2014 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Wed, 21 May 2014 10:06:44 +0200 Subject: [Scilab-users] How to mantain the xcos superblock when generating code from it? In-Reply-To: <537A7C6F.1000101@gmail.com> References: <537A7C6F.1000101@gmail.com> Message-ID: <1400659604.2102.17.camel@paros> Hello Andrea, I agree with you, please report a bug on bugzilla.scilab.org describing your issue and what is expected (a new schema with the C block, a copy of the schema with the C block or anything else). -- Cl?ment Le lundi 19 mai 2014 ? 23:49 +0200, Andrea Amorosi a ?crit : > Hi to all, > I do not have a great experience with scilab and none at all with xcos, > however having more than 8 years of expertise with matlab\simulink I'm > trying to use xcos to see if and how it can generate code from a model. > So I've created a very simple model (2 input ports, a sum block and an > output port). Then I've created the superblock selecting the sum one and > I've configured the inputs ports to be scalar ones. Finally I've > selected the superblock and I've created code from it. > Now the problem for me is that apparently it has erased the original > xcos block and has created a new block which calls the c code generate > from it. > If I do the same thing in simulink (namely if I create an sfunction of a > block), it creates a new block in a new model without erasing the > simulink original one. > The problem with the way xcos generates code from a block is that in > case the model is a very complicated one and the user creates code from > it, he loses the possibility to modify the xcos block since at the end > he has only the c code. > Is it the way it should behave? Is it possible to configure xcos so that > not to erase the original block? Am I doing something wrong? > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From vogt at centre-cired.fr Wed May 21 23:27:03 2014 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Wed, 21 May 2014 14:27:03 -0700 (PDT) Subject: [Scilab-users] Equivalent of matlab area plot In-Reply-To: <4D399BC8.7040507@univ-lemans.fr> References: <4D399BC8.7040507@univ-lemans.fr> Message-ID: <1400707623816-4030553.post@n3.nabble.com> Samuel, all is there a way to display the axes and the ticks in the top of the shaded areas? -- View this message in context: http://mailinglists.scilab.org/Equivalent-of-matlab-area-plot-tp2618761p4030553.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Paul.Martin.28130 at gmail.com Wed May 21 23:31:27 2014 From: Paul.Martin.28130 at gmail.com (Paul Martin) Date: Wed, 21 May 2014 14:31:27 -0700 (PDT) Subject: [Scilab-users] Share variable between Xcos Blocks In-Reply-To: <1400485053.2043.8.camel@paros> References: <1400272611068-4030520.post@n3.nabble.com> <1400485053.2043.8.camel@paros> Message-ID: <1400707887993-4030554.post@n3.nabble.com> Thanks for your help. It's a good idea but block->work is already used. I think i'll use another solution suggested by Serge in developers mailing. Import.h allow me to read block->work of all the blocks of my diagram. I'll be easier for me. Paul, -- View this message in context: http://mailinglists.scilab.org/Share-variable-between-Xcos-Blocks-tp4030520p4030554.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From vogt at centre-cired.fr Wed May 21 23:52:24 2014 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Wed, 21 May 2014 17:52:24 -0400 Subject: [Scilab-users] Equivalent of matlab area plot In-Reply-To: <1400707623816-4030553.post@n3.nabble.com> References: <4D399BC8.7040507@univ-lemans.fr> <1400707623816-4030553.post@n3.nabble.com> Message-ID: <537D2018.60405@centre-cired.fr> On 21/05/2014 17:27, Adrien Vogt-Schilb wrote: > Samuel, all > is there a way to display the axes and the ticks in the top of the shaded > areas? > Sorry I was reacting to the following code: Herebelow is an example with any number of curves. Cheers Samuel -------------- // area() y = [1 5 3; // Data 3 2 7; 1 5 3; 2 6 1]; [nL, nC] = size(y); x=[ 1 1:nL nL]; base = min(y)-1; // Base level bottom = ones(1,nC)*base; // proper bottom closure clf, plot2d(x,[ bottom ; flipdim(cumsum(y,"c"),2) ; bottom]) e = gce(); areas = e.children; // iD of the set of curves areas(:).polyline_style=5; // switching to filled mode for i=1:nC, areas(i).foreground = color(255*i/nC,0,0); end // recoloring according to any wish From sgougeon at free.fr Wed May 21 23:55:19 2014 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 21 May 2014 23:55:19 +0200 Subject: [Scilab-users] Equivalent of matlab area plot In-Reply-To: <1400707623816-4030553.post@n3.nabble.com> References: <4D399BC8.7040507@univ-lemans.fr> <1400707623816-4030553.post@n3.nabble.com> Message-ID: <537D20C7.5090607@free.fr> Le 21/05/2014 23:27, Adrien Vogt-Schilb a ?crit : > Samuel, all > is there a way to display the axes and the ticks in the top of the shaded > areas? I am afraid i do not catch it... Could you be a bit more explicit? Are you speaking about inner ticks? From sgougeon at free.fr Thu May 22 00:07:26 2014 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 22 May 2014 00:07:26 +0200 Subject: [Scilab-users] Equivalent of matlab area plot In-Reply-To: <537D2018.60405@centre-cired.fr> References: <4D399BC8.7040507@univ-lemans.fr> <1400707623816-4030553.post@n3.nabble.com> <537D2018.60405@centre-cired.fr> Message-ID: <537D239E.2020405@free.fr> Le 21/05/2014 23:52, Adrien Vogt-Schilb a ?crit : > On 21/05/2014 17:27, Adrien Vogt-Schilb wrote: >> Samuel, all >> is there a way to display the axes and the ticks in the top of the >> shaded >> areas? >> > Sorry I was reacting to the following code: Do you mean above, like with a = gca(); a.x_location = "top"; From adrien.vogt.schilb at gmail.com Thu May 22 16:11:30 2014 From: adrien.vogt.schilb at gmail.com (Adrien Vogt-Schilb) Date: Thu, 22 May 2014 10:11:30 -0400 Subject: [Scilab-users] move a string after display Message-ID: <537E0592.9000605@gmail.com> Dear al Can i move a string once i have displayed it? I 'd like to do something like xstring(1,1,"Hello") the_string = gce(); ... the_string.position = [1,2] //new position Best Adrien From paul.bignier at scilab-enterprises.com Thu May 22 16:25:52 2014 From: paul.bignier at scilab-enterprises.com (Paul Bignier) Date: Thu, 22 May 2014 16:25:52 +0200 Subject: [Scilab-users] move a string after display In-Reply-To: <537E0592.9000605@gmail.com> References: <537E0592.9000605@gmail.com> Message-ID: <537E08F0.1030700@scilab-enterprises.com> Hello Adrien, You may use the "data field :) xstring(1,1,"Hello") the_string = gce(); the_string.data = [1,2] // new position Regards, Paul On 05/22/2014 04:11 PM, Adrien Vogt-Schilb wrote: > Dear al > > Can i move a string once i have displayed it? > > I 'd like to do something like > > xstring(1,1,"Hello") > the_string = gce(); > > ... > > the_string.position = [1,2] //new position > > > Best > Adrien > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Paul BIGNIER Development engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.69 http://www.scilab-enterprises.com From vogt at centre-cired.fr Thu May 22 17:36:47 2014 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Thu, 22 May 2014 11:36:47 -0400 Subject: [Scilab-users] Equivalent of matlab area plot In-Reply-To: <537D239E.2020405@free.fr> References: <4D399BC8.7040507@univ-lemans.fr> <1400707623816-4030553.post@n3.nabble.com> <537D2018.60405@centre-cired.fr> <537D239E.2020405@free.fr> Message-ID: <537E198F.7040104@centre-cired.fr> On 21/05/2014 18:07, Samuel Gougeon wrote: > Le 21/05/2014 23:52, Adrien Vogt-Schilb a ?crit : >> On 21/05/2014 17:27, Adrien Vogt-Schilb wrote: >>> Samuel, all >>> is there a way to display the axes and the ticks in the top of the >>> shaded >>> areas? >>> >> Sorry I was reacting to the following code: > Do you mean above, like with > a = gca(); > a.x_location = "top"; > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users Nope The areas make the axes invisible, as if the axes were dranw first, and the area painted after. Curretly I work around this by plotting my area starting a (0.01, 0.01) instead of (0,0) -- Adrien Vogt-Schilb Consultant (World Bank) and PhD Candidate (Cired) 1 202 473 7980 From vogt at centre-cired.fr Thu May 22 17:39:20 2014 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Thu, 22 May 2014 11:39:20 -0400 Subject: [Scilab-users] Equivalent of matlab area plot In-Reply-To: <537E198F.7040104@centre-cired.fr> References: <4D399BC8.7040507@univ-lemans.fr> <1400707623816-4030553.post@n3.nabble.com> <537D2018.60405@centre-cired.fr> <537D239E.2020405@free.fr> <537E198F.7040104@centre-cired.fr> Message-ID: <537E1A28.6010105@centre-cired.fr> On 22/05/2014 11:36, Adrien Vogt-Schilb wrote: > On 21/05/2014 18:07, Samuel Gougeon wrote: >> Le 21/05/2014 23:52, Adrien Vogt-Schilb a ?crit : >>> On 21/05/2014 17:27, Adrien Vogt-Schilb wrote: >>>> Samuel, all >>>> is there a way to display the axes and the ticks in the top of >>>> the shaded >>>> areas? >>>> >>> Sorry I was reacting to the following code: >> Do you mean above, like with >> a = gca(); >> a.x_location = "top"; >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > Nope > > The areas make the axes invisible, as if the axes were dranw first, > and the area painted after. > Curretly I work around this by plotting my area starting a (0.01, > 0.01) instead of (0,0) > See how the gree area makes the x axis invisible. inner tics would be invisible also -- Adrien Vogt-Schilb Consultant (World Bank) and PhD Candidate (Cired) 1 202 473 7980 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: jhgdgbia.png Type: image/png Size: 5008 bytes Desc: not available URL: From adrien.vogt.schilb at gmail.com Thu May 22 17:54:27 2014 From: adrien.vogt.schilb at gmail.com (Adrien Vogt-Schilb) Date: Thu, 22 May 2014 11:54:27 -0400 Subject: [Scilab-users] example for xstringl fontId argument with latex-rendered strings Message-ID: <537E1DB3.1080809@gmail.com> Hi Does anyone have an example fo using xstringl with Latex-rendered strings? Thanks Adrien From vogt at centre-cired.fr Thu May 22 17:55:13 2014 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Thu, 22 May 2014 11:55:13 -0400 Subject: [Scilab-users] move a string after display In-Reply-To: <537E08F0.1030700@scilab-enterprises.com> References: <537E0592.9000605@gmail.com> <537E08F0.1030700@scilab-enterprises.com> Message-ID: <537E1DE1.5070509@centre-cired.fr> Thanks that works On 22/05/2014 10:25, Paul Bignier wrote: > > Hello Adrien, > > You may use the "data field :) > > xstring(1,1,"Hello") > the_string = gce(); > the_string.data = [1,2] // new position > > Regards, > Paul > > > On 05/22/2014 04:11 PM, Adrien Vogt-Schilb wrote: >> Dear al >> >> Can i move a string once i have displayed it? >> >> I 'd like to do something like >> >> xstring(1,1,"Hello") >> the_string = gce(); >> >> ... >> >> the_string.position = [1,2] //new position >> >> >> Best >> Adrien >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > -- Adrien Vogt-Schilb Consultant (World Bank) and PhD Candidate (Cired) 1 202 473 7980 From p.muehlmann at gmail.com Thu May 22 23:33:06 2014 From: p.muehlmann at gmail.com (=?UTF-8?Q?Philipp_M=C3=BChlmann?=) Date: Thu, 22 May 2014 23:33:06 +0200 Subject: [Scilab-users] example for xstringl fontId argument with latex-rendered strings In-Reply-To: <537E1DB3.1080809@gmail.com> References: <537E1DB3.1080809@gmail.com> Message-ID: I just checked the help page http://help.scilab.org/docs/5.3.3/en_US/xstringl.html The last example deals with strings in LaTeX format. Does this help? Cheers, Phil 2014-05-22 17:54 GMT+02:00 Adrien Vogt-Schilb : > Hi > > Does anyone have an example fo using xstringl with Latex-rendered strings? > > Thanks > > Adrien > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- There we have the salad. From vogt at centre-cired.fr Fri May 23 02:23:12 2014 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Thu, 22 May 2014 20:23:12 -0400 Subject: [Scilab-users] example for xstringl fontId argument with latex-rendered strings In-Reply-To: References: <537E1DB3.1080809@gmail.com> Message-ID: <537E94F0.3050001@centre-cired.fr> Thanks Actually i'd like to know if in the following the "2" stands for "I am using Latex/MathML" . Calixte? str=["SCILAB","can write LaTeX :","$\frac{abc}{xyz}$";"or","MathML :",mathml] ; r2 = xstringl(0.5,0.5,str,2,5) Adrien On 22/05/2014 17:33, Philipp M?hlmann wrote: > I just checked the help page > > http://help.scilab.org/docs/5.3.3/en_US/xstringl.html > > The last example deals with strings in LaTeX format. > > Does this help? > > Cheers, > Phil > > 2014-05-22 17:54 GMT+02:00 Adrien Vogt-Schilb : >> Hi >> >> Does anyone have an example fo using xstringl with Latex-rendered strings? >> >> Thanks >> >> Adrien >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > -- Adrien Vogt-Schilb Consultant (World Bank) and PhD Candidate (Cired) 1 202 473 7980 From p.muehlmann at gmail.com Fri May 23 10:23:05 2014 From: p.muehlmann at gmail.com (=?UTF-8?Q?Philipp_M=C3=BChlmann?=) Date: Fri, 23 May 2014 10:23:05 +0200 Subject: [Scilab-users] example for xstringl fontId argument with latex-rendered strings In-Reply-To: <537E94F0.3050001@centre-cired.fr> References: <537E1DB3.1080809@gmail.com> <537E94F0.3050001@centre-cired.fr> Message-ID: the "2" stands for the font ID...hence you should be able to change font style by entering a different number there..see the help page The $-sign in the str = (...) defines that the string is drawn in LaTeX mode. note that there are at least two modes to write LaTeX - a text mode - a math mode using just the $-sign will enable LaTeX format but in math mode. hence white space won't be drawn using "$\mbox{}$" enables LaTeX mode (the $-sign), but now everything that is written in between the brackets of \mbox{} is written in text mode...hence white space is also drawn. You may try following example code: As you may recognize I used the gce() command to change the font style. I do this because changing the font style within xstringl() somehow doesn't work for me. plot2d([0;1],[0;1],0); // Only valid from Scilab 5.2 str1=["simple text"] ; str2=["$\mbox{LaTeX format in text mode}$" ; "" ; "" ; "$LaTeX format in mathmode$"] ; r1 = xstringl(0.1,0.1,str1,2,4); r2 = xstringl(0.1,0.4,str2); xrects([r1(1) r1(2)+r1(4) r1(3) r1(4)]'); // computes rectangle around string xstring(r1(1),r1(2),str1); xrects([r2(1) r2(2)+r2(4) r2(3) r2(4)]'); // computes rectangle around string xstring(r2(1),r2(2),str2); // use just xstring xstring(0.5,0.2,str2,0,1); // computes as well rectangle around string, since angle = 0 deg xstring(0.5,0.5,str2,0,0); // no rectangle asince bounding box value = 0 xstring(0.5,0.7,str2,-10,1); // no rectangle around string since angle = -45deg e = gce(); e.font_style = 2; e.font_size = 4; e.box = 'on' ; xstring(0.5,0.1,str1); e = gce(); e.font_style = 2; e.font_size = 4; e.box = 'on' ; 2014-05-23 2:23 GMT+02:00, Adrien Vogt-Schilb : > Thanks > > Actually i'd like to know if in the following the "2" stands for "I am > using Latex/MathML" . > Calixte? > > str=["SCILAB","can write LaTeX :","$\frac{abc}{xyz}$";"or","MathML > :",mathml] ; > r2 = xstringl(0.5,0.5,str,2,5) > > > Adrien > > > > On 22/05/2014 17:33, Philipp M?hlmann wrote: >> I just checked the help page >> >> http://help.scilab.org/docs/5.3.3/en_US/xstringl.html >> >> The last example deals with strings in LaTeX format. >> >> Does this help? >> >> Cheers, >> Phil >> >> 2014-05-22 17:54 GMT+02:00 Adrien Vogt-Schilb >> : >>> Hi >>> >>> Does anyone have an example fo using xstringl with Latex-rendered >>> strings? >>> >>> Thanks >>> >>> Adrien >>> >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users >> >> > > > -- > Adrien Vogt-Schilb > Consultant (World Bank) and PhD Candidate (Cired) > 1 202 473 7980 > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -- There we have the salad. From jaavedakram at hotmail.com Fri May 23 06:07:52 2014 From: jaavedakram at hotmail.com (javed akram) Date: Thu, 22 May 2014 21:07:52 -0700 (PDT) Subject: [Scilab-users] Matrix plot using Matplot syntax Message-ID: <1400818072754-4030568.post@n3.nabble.com> Hello everyone, Does anyone knows how to specify the color in Matplot ? I am trying to plot the matrix using Matplot and my matrix consist of 0 and 1. In Matplot black color is assigned for both 0 and 1. So, i can not distinguish between 0 and 1 while plotting the matrix. Your help will be really appreciated. Thanks Javed -- View this message in context: http://mailinglists.scilab.org/Matrix-plot-using-Matplot-syntax-tp4030568.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From p.muehlmann at gmail.com Fri May 23 13:24:27 2014 From: p.muehlmann at gmail.com (=?UTF-8?Q?Philipp_M=C3=BChlmann?=) Date: Fri, 23 May 2014 13:24:27 +0200 Subject: [Scilab-users] Matrix plot using Matplot syntax In-Reply-To: <1400818072754-4030568.post@n3.nabble.com> References: <1400818072754-4030568.post@n3.nabble.com> Message-ID: mat = [ 0 1 ;1 0]; Matplot(mat); // creates plot with black pixels // infact the black shading should be different but maybe the difference is just not visible? scale = 255; // parameter to define gray value mat2 = mat .* scale Matplot(mat2); // the plot should now have black and white (255) pixel hope this help cheers, Phil 2014-05-23 6:07 GMT+02:00 javed akram : > Hello everyone, > > Does anyone knows how to specify the color in Matplot ? I am trying to plot > the matrix using Matplot and my matrix consist of 0 and 1. In Matplot black > color is assigned for both 0 and 1. So, i can not distinguish between 0 and > 1 while plotting the matrix. > > Your help will be really appreciated. > > Thanks > Javed > > > > -- > View this message in context: http://mailinglists.scilab.org/Matrix-plot-using-Matplot-syntax-tp4030568.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- There we have the salad. From bmbouter at gmail.com Fri May 23 14:13:02 2014 From: bmbouter at gmail.com (Brian Bouterse) Date: Fri, 23 May 2014 08:13:02 -0400 Subject: [Scilab-users] GROCER VAR-HMM Example Output Different from Chapter 23 In-Reply-To: References: Message-ID: Thanks for the reply Eric. It is great to get hints and suggestions from the author directly! I used the commands that you outlined, and they were able to reproduce the expected output verbatim, which is great. Thanks for clearing that up for me. I've gotten further towards my goal. I've now got three questions: 1) I get an unexpected result when I run ms_var() on my own data. I run these commands: load('arhmm_example.dat') nb_states=2 switch_var=2 // variances are switching var_opt=3 // unrestricted var-cov matrix r=ms_var('cte',3,'ardata',nb_states,switch_var,var_opt,'prt=initial;final','opt_convg=0') I receive this output: WARNING: in overlay, series number 2 has been ignored because of a bad frequency !--error 10000 series ends before the end date of the bounds at line 39 of function ts2vec0 called by : at line 101 of function explone called by : at line 253 of function ms_var called by : r=ms_var('cte',3,'ardata',nb_states,switch_var,var_opt,'prt=initial;final','opt_convg=0') The arhmm_example.dat file is available here[0], and it was made by running.the following command on the original csv[1] file arhmm_example.csv. impexc2bd('arhmm_example.csv', ';', 'arhmm_example.dat') I believe I either don't have the dates configured correctly, or it requires a specific number of data points to match the frequency value, which also may be wrong. Do you have some insight into this error message? I've been reading the docs on the ts structure, and I will continue to try to solve this roadblock. 2) My goal in doing all this is to analyze Autoregressive Hidden Markov Models. As I understand it, the VAR-HMM that ms_var provides is a multivariate case of an Autoregressive Hidden Markov Model. The terms Markov Switching Model, and Hidden Markov Model refer to the same thing. Using a single variable with ms_var() as I show above in the example, will simulate an AR-HMM(3). I would like to check if these statements agree with your understanding. 3) How could I contribute to the grocer code. At the very least I could improve the docs some. [0]: https://s3.amazonaws.com/dfsklfdsklfds/fdsjkfsdjkfds/arhmm_example.dat [1]: https://s3.amazonaws.com/dfsklfdsklfds/fdsjkfsdjkfds/arhmm_example.csv Thanks, Brian On Tue, May 20, 2014 at 3:55 PM, Eric Dubois wrote: > Hello Brian > > Sorry for this late answer, but I have been quite busy these days. > > I did not notice the problem with this version of the MS programs. Indeed > I have changed the optimization device of all GROCER programs and I have > not adapted the defaults for the MS programs. > > If you run: > --> global GROCERDIR; > --> load(GROCERDIR+'\data\us_revu.dat') > --> bounds('1967m4','2004m2') > > --> nb_states=2 > --> switch_var=2 // variances are switching > --> var_opt=3 // unrestricted var-cov matrix > > --> > r=ms_var('cte',3,'100*(log(us_revu)-lagts(2,log(us_revu)))',nb_states,switch_var,var_opt,'prt=initial;final','opt_convg=0') > (see chapter 6 of the manual for explanations) > > Then the results of the ms_var demo is restaured. > > I will change the default in Grocer next version . > > Regards. > > ?ric. > > > 2014-05-19 12:56 GMT+02:00 Brian Bouterse : > >> Hi Scilab community! >> >> I'm new to Scilab, and the AR-HMM and VAR-HMM solving capabilities of >> GROCER are what interest me. >> >> I have a question relating to Chapter 23 from the GROCER manual[0]. This >> is the univariate MS-AR(3) solved using the function ms_reg_d() on the >> us_revu.dat data included with GROCER. I have made no adjustment from the >> example statements in Chapter 23. >> >> The example output is shown on pages 4 and 5 of the Chapter 23 module. >> Compare that against the output I receive. >> >> http://fpaste.org/102978/14004958/ >> >> Here are my questions: >> >> 1. The numerical output is completely different. I expected it to be >> the same since the data is provided by GROCER, and I've done the example >> exactly as shown in Chapter 23. Is there some explanation to why the >> solved solution I receive is different than the example output in the >> chapter? >> >> 2. I see output like %i*8.4469016 which seems like an error because %i >> looks like a variable that yet needs to be replaced, and then multiplied to >> get to its final value. Is this some kind of bug or error? >> >> Thanks for any help the community can provide. We'll be using this for a >> seminar on HMM, AR-HMM, and VAR-HMM at North Carolina State University. >> I'm also a developer, so I really appreciate all the effort that has been >> put into scilab and GROCER. >> >> Thanks, >> Brian >> >> >> [0]: http://dubois.ensae.net/Grocer_manual_v1.6.zip >> >> >> -- >> Brian Bouterse >> >> _______________________________________________ >> 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 > > -- Brian Bouterse -------------- next part -------------- An HTML attachment was scrubbed... URL: From grocer.toolbox at gmail.com Fri May 23 21:48:29 2014 From: grocer.toolbox at gmail.com (Eric Dubois) Date: Fri, 23 May 2014 21:48:29 +0200 Subject: [Scilab-users] GROCER VAR-HMM Example Output Different from Chapter 23 In-Reply-To: References: Message-ID: Dear Brian 1) For me it works fine; I suspect that you have run ms_var with your data after having run with the manual example. I expect that if you reopen Scialb and run your problem, starting from load('arhmm_example.dat'), it will work. A good advice anyway is to set the bounds before each estimation or to run: --> bounds() if you want to use the greatest available time span with your data 2) I agree; indeed the example in the manual as well as yours are univariate, but ms_var also works with multivariate series (I have run some tests which worked well) 3) If you want to contribute, do not hesitate to send me code (at grocer.toolbox at gmail.com or grocer.toolbox at free.fr); add your copyright; if you can create a help file it would still be better (I have some tools do help doing that if you want them); and if you can add to the manual, it would be marvellous! If you want to imporve the docs you are also welcome; I can sned you the OpenOffice files you need if you find it suitable ?ric. 2014-05-23 14:13 GMT+02:00 Brian Bouterse : > Thanks for the reply Eric. It is great to get hints and suggestions from > the author directly! > > I used the commands that you outlined, and they were able to reproduce the > expected output verbatim, which is great. Thanks for clearing that up for > me. I've gotten further towards my goal. > > I've now got three questions: > > 1) I get an unexpected result when I run ms_var() on my own data. I run > these commands: > > load('arhmm_example.dat') > nb_states=2 > switch_var=2 // variances are switching > var_opt=3 // unrestricted var-cov matrix > > r=ms_var('cte',3,'ardata',nb_states,switch_var,var_opt,'prt=initial;final','opt_convg=0') > > I receive this output: > > WARNING: in overlay, series number 2 has been ignored because of a bad > frequency > !--error 10000 > series ends before the end date of the bounds > at line 39 of function ts2vec0 called by : > at line 101 of function explone called by : > at line 253 of function ms_var called by : > > r=ms_var('cte',3,'ardata',nb_states,switch_var,var_opt,'prt=initial;final','opt_convg=0') > > The arhmm_example.dat file is available here[0], and it was made by > running.the following command on the original csv[1] file arhmm_example.csv. > > impexc2bd('arhmm_example.csv', ';', 'arhmm_example.dat') > > I believe I either don't have the dates configured correctly, or it > requires a specific number of data points to match the frequency value, > which also may be wrong. Do you have some insight into this error message? > I've been reading the docs on the ts structure, and I will continue to try > to solve this roadblock. > > > 2) My goal in doing all this is to analyze Autoregressive Hidden Markov > Models. As I understand it, the VAR-HMM that ms_var provides is a > multivariate case of an Autoregressive Hidden Markov Model. The terms > Markov Switching Model, and Hidden Markov Model refer to the same thing. > Using a single variable with ms_var() as I show above in the example, will > simulate an AR-HMM(3). I would like to check if these statements agree with > your understanding. > > > 3) How could I contribute to the grocer code. At the very least I could > improve the docs some. > > > [0]: > https://s3.amazonaws.com/dfsklfdsklfds/fdsjkfsdjkfds/arhmm_example.dat > [1]: > https://s3.amazonaws.com/dfsklfdsklfds/fdsjkfsdjkfds/arhmm_example.csv > > Thanks, > Brian > > > On Tue, May 20, 2014 at 3:55 PM, Eric Dubois wrote: > >> Hello Brian >> >> Sorry for this late answer, but I have been quite busy these days. >> >> I did not notice the problem with this version of the MS programs. Indeed >> I have changed the optimization device of all GROCER programs and I have >> not adapted the defaults for the MS programs. >> >> If you run: >> --> global GROCERDIR; >> --> load(GROCERDIR+'\data\us_revu.dat') >> --> bounds('1967m4','2004m2') >> >> --> nb_states=2 >> --> switch_var=2 // variances are switching >> --> var_opt=3 // unrestricted var-cov matrix >> >> --> >> r=ms_var('cte',3,'100*(log(us_revu)-lagts(2,log(us_revu)))',nb_states,switch_var,var_opt,'prt=initial;final','opt_convg=0') >> (see chapter 6 of the manual for explanations) >> >> Then the results of the ms_var demo is restaured. >> >> I will change the default in Grocer next version . >> >> Regards. >> >> ?ric. >> >> >> 2014-05-19 12:56 GMT+02:00 Brian Bouterse : >> >>> Hi Scilab community! >>> >>> I'm new to Scilab, and the AR-HMM and VAR-HMM solving capabilities of >>> GROCER are what interest me. >>> >>> I have a question relating to Chapter 23 from the GROCER manual[0]. >>> This is the univariate MS-AR(3) solved using the function ms_reg_d() on >>> the us_revu.dat data included with GROCER. I have made no adjustment from >>> the example statements in Chapter 23. >>> >>> The example output is shown on pages 4 and 5 of the Chapter 23 module. >>> Compare that against the output I receive. >>> >>> http://fpaste.org/102978/14004958/ >>> >>> Here are my questions: >>> >>> 1. The numerical output is completely different. I expected it to be >>> the same since the data is provided by GROCER, and I've done the example >>> exactly as shown in Chapter 23. Is there some explanation to why the >>> solved solution I receive is different than the example output in the >>> chapter? >>> >>> 2. I see output like %i*8.4469016 which seems like an error because %i >>> looks like a variable that yet needs to be replaced, and then multiplied to >>> get to its final value. Is this some kind of bug or error? >>> >>> Thanks for any help the community can provide. We'll be using this for >>> a seminar on HMM, AR-HMM, and VAR-HMM at North Carolina State University. >>> I'm also a developer, so I really appreciate all the effort that has been >>> put into scilab and GROCER. >>> >>> Thanks, >>> Brian >>> >>> >>> [0]: http://dubois.ensae.net/Grocer_manual_v1.6.zip >>> >>> >>> -- >>> Brian Bouterse >>> >>> _______________________________________________ >>> 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 >> >> > > > -- > Brian Bouterse > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From latifkhank1 at box.az Sat May 24 11:23:09 2014 From: latifkhank1 at box.az (Latifkhan Karimov) Date: Sat, 24 May 2014 14:23:09 +0500 Subject: [Scilab-users] Error Message-ID: Hello, I opened to new topic in scilab mailing lists to get a little problem straightened out, but for some reason it had subscribed me to many different irrelevant topic and I'm getting emails from all of them (over 50 in less than a week) Can you please take my email off ANY subscription list? I'm really sorry for the inconvenienceThanks in advance My best regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From raghu.char at gmail.com Sat May 24 17:26:01 2014 From: raghu.char at gmail.com (Raghu Char) Date: Sat, 24 May 2014 20:56:01 +0530 Subject: [Scilab-users] memory leak? Message-ID: Hi List, I have Scilab 5.5.0, 64 bit on windows 7 , i found that WScilex.exe (scilab 5.5.0 GUI) does not exit, after quitting scilab, i have to open task manager & kill it any one else noticed this?, is there a fix? -- Thanx ,Regards raghu -------------- next part -------------- An HTML attachment was scrubbed... URL: From bmbouter at gmail.com Sat May 24 17:59:00 2014 From: bmbouter at gmail.com (Brian Bouterse) Date: Sat, 24 May 2014 11:59:00 -0400 Subject: [Scilab-users] Error In-Reply-To: References: Message-ID: Hi Latifkhan, I believe the way this list works is that everyone receives every mail sent to the users at lists.scilab.org address. To stop receiving all communication, you can unsubscribe yourself using this web interface[0]. [0]: http://lists.scilab.org/mailman/listinfo/users Best, Brian On Sat, May 24, 2014 at 5:23 AM, Latifkhan Karimov wrote: > Hello, I opened to new topic in scilab mailing lists to get a little > problem straightened out, but for some reason it had subscribed me to many > different irrelevant topic and I'm getting emails from all of them (over 50 > in less than a week) > > Can you please take my email off ANY subscription list? > > I'm really sorry for the inconvenience > Thanks in advance > > My best regards > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -- Brian Bouterse -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdr at durietz.se Sat May 24 18:04:10 2014 From: sdr at durietz.se (Stefan Du Rietz) Date: Sat, 24 May 2014 18:04:10 +0200 Subject: [Scilab-users] memory leak? In-Reply-To: References: Message-ID: <5380C2FA.6060507@durietz.se> Hello, I have noticed in Xubuntu Linux that, after Scilab stopped working and I had to stop it by clicking the close button of the console window (the menu did not work), I could still see scilab-bin in top (which shows all running programs). Regards Stefan On 2014-05-24 17:26, Raghu Char wrote: -------------------- > Hi List, > I have Scilab 5.5.0, 64 bit on windows 7 , > i found that WScilex.exe (scilab 5.5.0 GUI) does not exit, after > quitting scilab, > i have to open task manager & kill it > any one else noticed this?, is there a fix? > > -- > Thanx ,Regards raghu > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From cfuttrup at gmail.com Sat May 24 22:03:16 2014 From: cfuttrup at gmail.com (Claus Futtrup) Date: Sat, 24 May 2014 22:03:16 +0200 Subject: [Scilab-users] Matlab to Scilab Message-ID: <5380FB04.50103@gmail.com> Hi there A colleague of mine cannot write Scilab code yet, so he writes in Matlab and I convert. So far I've run into a couple of issues that I don't know what to make of. Please help us. The .sce script file is attached. 1) The "plot" which is commented out on line 41 crashes Scilab. I wonder why - is it because I'm plotting 24000 data points? 2) At the end of the script (line 111) I get a memory allocation error with "conv" ... please help on this one. P.S. My colleague is trying to generate IEC 268-1 noise ... later to compress it and make IEC 268-5 (EN 60268-5) test signal for power testing loudspeakers. /Claus --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -------------- next part -------------- // IEC noise generator and filter // used to calculate voltages during power tests // creater: PB + CF xdel(winsid()); // Clear graphics // clc clear; // Clear variables //close all tic // define state variables Fs = 48000; // sampling freq T = 60; // length of signal in seconds // Create sample array t = linspace(1,Fs*T,Fs*T); // generate white gausian noise rand_array = grand(1,length(t),"nor",1,1); // rand_array = zeros(1,length(t)); rand_array(1) = 1; %dirac impulse // specify frequency weighting 20Hz - 20kHz // n = -17:1:13; f_weighting = [0 20 25 31.5 40 50 63 80 100 125 160 200 250 315 400 500 630 800 1000 1250 1600 2000 2500 3150 4000 5000 6300 8000 10000 12500 16000 20000 Fs/2]; // 1000 * (10.^(n/10)); weighting = [-100 -13.5 -10.2 -7.4 -5.2 -3.5 -2.3 -1.4 -0.9 -0.5 -0.2 -0.1 0 0 0 0 0 0 -0.1 -0.3 -0.6 -1.0 -1.6 -2.5 -3.7 -5.1 -7.0 -9.4 -11.9 -14.8 -18.2 -21.6 -100]; limits = [%inf 3 2 1 1 1 1 1 0.8 0.6 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.6 0.7 0.8 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.5 2.0 3.0 %inf]; a = gca(); // prepare plot of figure a plot(f_weighting(2:$-1),weighting(2:$-1)); // plot graph a - of weighting a.log_flags = "lnn"; // make x-axis logarithmic legend("Weighting curve"); // add curve description to legend // a.data_bounds = []; // limit plot range // grid on - there's no Scilab equivalent, AFAIK. // interpolate weighting array to get more frequency points N = Fs; // number of points f_weighting_N = linspace(min(f_weighting),max(f_weighting),N/2); weighting_N = interp1(f_weighting,weighting,f_weighting_N); weighting_N(1) = weighting(1); // b = gca(); // plot(f_weighting_N, weighting_N); // b.log_flags = "lnn"; // calculate magnitude of weighting in linear scale IEC_noise_weighting = 10.^ (weighting_N./20); // create freq array for IFFT W = zeros(1,N); inv_IEC_noise_weighting = conj(IEC_noise_weighting(:,$:-1:1)); W(1:N/2) = IEC_noise_weighting; W(N/2 + 1:N) = inv_IEC_noise_weighting; // get impulse response of IEC weighting filter T_weighting = real(ifft(W)); // shift the impulse response back in time to make it causal IEC_filter_impulse = zeros(1,N); IEC_filter_impulse(1:(N/2)) = T_weighting((N/2)+1:N); IEC_filter_impulse((N/2)+1:N) = T_weighting(1:(N/2)); function [B] = rot90(A,k) // define rot90 as a function call (not native) in Scilab // Output variables initialisation (not found in input variables) B=[]; // Number of arguments in function call [%nargout,%nargin] = argn(0) // Display mode mode(0); // Display warning for floating point exception ieee(1); if ~type(A)==1 then error("rot90: Wrong type for input argument #1: Real or complex matrix expected."); return; end; [m,n] = size(A); if %nargin==1 then k = 1; else if ~type(k)==1 then error("rot90: Wrong type for input argument #2: A real expected."); return; end; k = k-fix(k ./4) .*4; if mtlb_logic(k,"<",0) then k = mtlb_a(k,4); end; end; if mtlb_logic(k,"==",1) then A = mtlb_0(A); B = A(n:-1:1,:); elseif mtlb_logic(k,"==",2) then B = A(m:-1:1,n:-1:1); elseif mtlb_logic(k,"==",3) then B = A(m:-1:1,:); B = mtlb_0(B); else B = A; end; endfunction // window the impulse response IEC_filter_impulse_W = rot90(window('hn',N)) .* IEC_filter_impulse'; // convolve IEC response filter with white noise IEC_noise = conv(rand_array,IEC_filter_impulse_W); D = length(IEC_noise); // length of array // find RMS level of IEC noise // simple method RMS_level = sqrt((1/D).*sum(IEC_noise.^2)); // integral method RMS_int = sqrt((1/D).*trapz(IEC_noise.^2)); // scale IEC noise to unity RMS level IEC_noise_scaled = IEC_noise ./ RMS_level; // block for impulse signal // IEC_noise_scaled = IEC_noise; %block for noise signal - use for impulse From raghu.char at gmail.com Sun May 25 08:05:13 2014 From: raghu.char at gmail.com (Raghu Char) Date: Sun, 25 May 2014 11:35:13 +0530 Subject: [Scilab-users] Matlab to Scilab In-Reply-To: <5380FB04.50103@gmail.com> References: <5380FB04.50103@gmail.com> Message-ID: there seems to be your problem with rand_array in IEC_noise = conv(rand_array,IEC_filter_impulse_W); !--error 17 stack size exceeded! Use stacksize function to increase it. Memory used for variables: 6081036 Intermediate memory needed: -3918962 Total memory available: 10000000 On Sun, 25 May 2014 01:33:16 +0530, Claus Futtrup wrote: > Hi there > > A colleague of mine cannot write Scilab code yet, so he writes in Matlab > and I convert. So far I've run into a couple of issues that I don't know > what to make of. Please help us. The .sce script file is attached. > > 1) The "plot" which is commented out on line 41 crashes Scilab. I wonder > why - is it because I'm plotting 24000 data points? > > 2) At the end of the script (line 111) I get a memory allocation error > with "conv" ... please help on this one. > > P.S. My colleague is trying to generate IEC 268-1 noise ... later to > compress it and make IEC 268-5 (EN 60268-5) test signal for power > testing loudspeakers. > > /Claus > > > --- > This email is free from viruses and malware because avast! Antivirus > protection is active. > http://www.avast.com -- Regards raghu From omorr at uns.ac.rs Sun May 25 07:50:38 2014 From: omorr at uns.ac.rs (Radovan Omorjan) Date: Sun, 25 May 2014 07:50:38 +0200 Subject: [Scilab-users] Matlab to Scilab In-Reply-To: <5380FB04.50103@gmail.com> References: <5380FB04.50103@gmail.com> Message-ID: <538184AE.6040203@uns.ac.rs> Hello, I just tried your code and it works for me. The plot did not crash Scilab. I had to change something - instead of using conv() I ised convol(). Previously I had to increase the stack size with stacksize('max'). One more thing, trapz() should be changed to inttrap() I do not know if this is correct - just tried to see if this would work. (Scilab 5.5.0) Regards, Radovan On 5/24/2014 10:03 PM, Claus Futtrup wrote: > Hi there > > A colleague of mine cannot write Scilab code yet, so he writes in > Matlab and I convert. So far I've run into a couple of issues that I > don't know what to make of. Please help us. The .sce script file is > attached. > > 1) The "plot" which is commented out on line 41 crashes Scilab. I > wonder why - is it because I'm plotting 24000 data points? > > 2) At the end of the script (line 111) I get a memory allocation error > with "conv" ... please help on this one. > > P.S. My colleague is trying to generate IEC 268-1 noise ... later to > compress it and make IEC 268-5 (EN 60268-5) test signal for power > testing loudspeakers. > > /Claus > > > --- > This email is free from viruses and malware because avast! Antivirus > protection is active. > http://www.avast.com > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users --- U ovoj e-po?ti nema virusa i zlonamjernih programa jer je aktivna avast! antivirusna za?tita. http://www.avast.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: plot2.gif Type: image/gif Size: 4782 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: plot1.gif Type: image/gif Size: 4478 bytes Desc: not available URL: From cfuttrup at gmail.com Sun May 25 09:08:34 2014 From: cfuttrup at gmail.com (Claus Futtrup) Date: Sun, 25 May 2014 09:08:34 +0200 Subject: [Scilab-users] Matlab to Scilab In-Reply-To: <538184AE.6040203@uns.ac.rs> References: <5380FB04.50103@gmail.com> <538184AE.6040203@uns.ac.rs> Message-ID: <538196F2.2090100@gmail.com> Hi Radovan Thanks for the help. I changed stacksize, I use convol and it works (Scilab 5.5.0). Also thank you for looking ahead - I'll change trapz to inttrap. Also thanks to Raghu Char for identifying the stacksize problem. My error message was on Memory allocation (slightly different). /Claus On 25-May-14 07:50, Radovan Omorjan wrote: > Hello, > > I just tried your code and it works for me. The plot did not crash > Scilab. I had to change something - instead of using conv() I ised > convol(). Previously I had to increase the stack size with > stacksize('max'). One more thing, trapz() should be changed to inttrap() > > I do not know if this is correct - just tried to see if this would > work. (Scilab 5.5.0) > > Regards, > Radovan --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From cfuttrup at gmail.com Sun May 25 12:21:15 2014 From: cfuttrup at gmail.com (Claus Futtrup) Date: Sun, 25 May 2014 12:21:15 +0200 Subject: [Scilab-users] tic toc time Message-ID: <5381C41B.40907@gmail.com> Hi there Converting from matlab to scilab is finished, but the matlab code contains a tic toc (begin/end of script timer). The Scilab code doesn't display anything. I thought I'd go like this (based on example from the Scilab manual): tic(); realtimeinit(1); realtime(0); realtime(10); t = toc; printf("Time (tic-toc) %f \n",t); That doesn't work. How do I make Scilab display the registered time ??? /Claus --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Sun May 25 12:27:08 2014 From: paul.carrico at free.fr (Paul CARRICO) Date: Sun, 25 May 2014 12:27:08 +0200 Subject: [Scilab-users] tic toc time In-Reply-To: <5381C41B.40907@gmail.com> References: <5381C41B.40907@gmail.com> Message-ID: <000601cf7803$e1e80cf0$a5b826d0$@carrico@free.fr> toc() i.e with () instead of toc Paul De : users [mailto:users-bounces at lists.scilab.org] De la part de Claus Futtrup Envoy? : dimanche 25 mai 2014 12:21 ? : International users mailing list for Scilab. Objet : [Scilab-users] tic toc time Hi there Converting from matlab to scilab is finished, but the matlab code contains a tic toc (begin/end of script timer). The Scilab code doesn't display anything. I thought I'd go like this (based on example from the Scilab manual): tic(); realtimeinit(1); realtime(0); realtime(10); t = toc; printf("Time (tic-toc) %f \n",t); That doesn't work. How do I make Scilab display the registered time ??? /Claus _____ This email is free from viruses and malware because avast! Antivirus protection is active. --- Ce courrier ?lectronique ne contient aucun virus ou logiciel malveillant parce que la protection avast! Antivirus est active. http://www.avast.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From cfuttrup at gmail.com Sun May 25 13:09:28 2014 From: cfuttrup at gmail.com (Claus Futtrup) Date: Sun, 25 May 2014 13:09:28 +0200 Subject: [Scilab-users] tic toc time In-Reply-To: <5381c58d.2256b40a.0cb5.2222SMTPIN_ADDED_BROKEN@mx.google.com> References: <5381C41B.40907@gmail.com> <5381c58d.2256b40a.0cb5.2222SMTPIN_ADDED_BROKEN@mx.google.com> Message-ID: <5381CF68.5070507@gmail.com> Hi Paul You're right - a very basic error. /Claus On 25-May-14 12:27, Paul CARRICO wrote: > > toc() ... i.e with () ... instead of toc > > Paul > --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jaavedakram at hotmail.com Fri May 23 18:29:31 2014 From: jaavedakram at hotmail.com (javed akram) Date: Fri, 23 May 2014 09:29:31 -0700 (PDT) Subject: [Scilab-users] Matrix plot using Matplot syntax In-Reply-To: References: <1400818072754-4030568.post@n3.nabble.com> Message-ID: <1400862571667-4030578.post@n3.nabble.com> Dear Phil, Thank you very much. It worked. Really appreciated. -- View this message in context: http://mailinglists.scilab.org/Matrix-plot-using-Matplot-syntax-tp4030568p4030578.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From jim.gong at ygregistry.org.cn Sun May 25 12:35:11 2014 From: jim.gong at ygregistry.org.cn (Jim Gong) Date: Sun, 25 May 2014 18:35:11 +0800 Subject: [Scilab-users] "scilab" Message-ID: <9EC88EC57D1695217CAA7A63678F03DD@ewcjocj> Dear Manager, (If you are not the person who is in charge of this, please forward this to your CEO,Thanks) This email is from China domain name registration center, which mainly deal with the domain name registration and dispute internationally in China. We received an application from Huahong Ltd on May 20, 2014. They want to register " scilab " as their Internet Keyword and " scilab .cn "?" scilab .com.cn " ?" scilab .net.cn "?" scilab .org.cn " domain names etc.., they are in China domain names. But after checking it, we find " scilab " conflicts with your company. In order to deal with this matter better, so we send you email and confirm whether this company is your distributor or business partner in China or not? Best Regards, Jim General Manager Shanghai Office (Head Office) 3002, Nanhai Building, No. 854 Nandan Road, Xuhui District, Shanghai 200070, China Tel: +86 216191 8696 Mobile: +86 1870199 4951 Fax: +86 216191 8697 Web: www.ygregistry.org.cn -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdr at durietz.se Mon May 26 20:39:54 2014 From: sdr at durietz.se (Stefan Du Rietz) Date: Mon, 26 May 2014 20:39:54 +0200 Subject: [Scilab-users] Figure Message-ID: <53838A7A.2080405@durietz.se> Hello, I am trying to get my figures from 5.4.1 in 5.5.0. Why is everything red? (no help found and no answer to an equal question on the Internet) Regards Stefan From sgougeon at free.fr Mon May 26 21:53:22 2014 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 26 May 2014 21:53:22 +0200 Subject: [Scilab-users] Figure In-Reply-To: <53838A7A.2080405@durietz.se> References: <53838A7A.2080405@durietz.se> Message-ID: <53839BB2.3020005@free.fr> Le 26/05/2014 20:39, Stefan Du Rietz a ?crit : > Hello, > I am trying to get my figures from 5.4.1 in 5.5.0. > > Why is everything red? (no help found and no answer to an equal > question on the Internet) Like here?: http://bugzilla.scilab.org/attachment.cgi?id=3561 http://bugzilla.scilab.org/show_bug.cgi?id=12788 From sterg at teikav.edu.gr Tue May 27 13:10:21 2014 From: sterg at teikav.edu.gr (sterg) Date: Tue, 27 May 2014 14:10:21 +0300 Subject: [Scilab-users] SciLab on OpenSuSE 13.1 Message-ID: <5384729D.3010107@teikav.edu.gr> Hi all, I tried to install the latest SciLab 5.5.0 on OpenSUSE 13.1 Linux, but here is what I get when I try to execute the scilab script Why? Best Regards Stergios scilab-bin: /home/sterg/SciLab/scilab-5.5.0/lib/thirdparty/libcurl.so.4: no version information available (required by /home/sterg/SciLab/scilab-5.5.0/lib/scilab/libscilab-cli.so.0) scilab-bin: /home/sterg/SciLab/scilab-5.5.0/lib/thirdparty/libcrypto.so.0.9.8: no version information available (required by /home/sterg/SciLab/scilab-5.5.0/lib/thirdparty/libcurl.so.4) scilab-bin: /home/sterg/SciLab/scilab-5.5.0/lib/thirdparty/libssl.so.0.9.8: no version information available (required by /home/sterg/SciLab/scilab-5.5.0/lib/thirdparty/libcurl.so.4) *** Error in `scilab-bin': free(): invalid pointer: 0x000000000068ac40 *** ======= Backtrace: ========= /lib64/libc.so.6(+0x7410f)[0x7f8884ac710f] /lib64/libc.so.6(+0x7996e)[0x7f8884acc96e] /lib64/libc.so.6(+0x7a647)[0x7f8884acd647] /usr/lib64/gtk-2.0/2.10.0/engines/liboxygen-gtk.so(_ZN6Oxygen10QtSettings17loadOxygenOptionsEv+0x12c)[0x7f8825e6892c] /usr/lib64/gtk-2.0/2.10.0/engines/liboxygen-gtk.so(_ZN6Oxygen10QtSettings10initializeEj+0x6ed)[0x7f8825e7126d] /usr/lib64/gtk-2.0/2.10.0/engines/liboxygen-gtk.so(_ZN6Oxygen5Style10initializeEj+0x40)[0x7f8825e7ffd0] /usr/lib64/libgtk-x11-2.0.so.0(+0x1f3816)[0x7f882a31f816] /usr/lib64/libgobject-2.0.so.0(g_type_module_use+0x81)[0x7f882891efe1] /usr/lib64/libgtk-x11-2.0.so.0(gtk_theme_engine_get+0x2d)[0x7f882a31f91d] /usr/lib64/libgtk-x11-2.0.so.0(+0x17f8cf)[0x7f882a2ab8cf] /usr/lib64/libgtk-x11-2.0.so.0(+0x1801d5)[0x7f882a2ac1d5] /usr/lib64/libgtk-x11-2.0.so.0(+0x18036f)[0x7f882a2ac36f] /usr/lib64/libgtk-x11-2.0.so.0(+0x17eb68)[0x7f882a2aab68] /usr/lib64/libgtk-x11-2.0.so.0(+0x1801d5)[0x7f882a2ac1d5] /usr/lib64/libgtk-x11-2.0.so.0(+0x18036f)[0x7f882a2ac36f] /usr/lib64/libgtk-x11-2.0.so.0(gtk_rc_reparse_all_for_settings+0x12f)[0x7f882a2acbdf] /usr/lib64/libgtk-x11-2.0.so.0(gtk_settings_get_for_screen+0xb2)[0x7f882a2c8b12] /usr/lib64/gtk-2.0/modules/libcanberra-gtk-module.so(+0x3e66)[0x7f8826d66e66] /usr/lib64/gtk-2.0/modules/libcanberra-gtk-module.so(gtk_module_init+0x48)[0x7f8826d67128] /usr/lib64/libgtk-x11-2.0.so.0(+0x14d441)[0x7f882a279441] /usr/lib64/libgobject-2.0.so.0(g_closure_invoke+0x138)[0x7f88288fb318] /usr/lib64/libgobject-2.0.so.0(+0x22cad)[0x7f882890ccad] /usr/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0xde9)[0x7f88289149b9] /usr/lib64/libgobject-2.0.so.0(g_signal_emit+0x82)[0x7f8828914c72] /usr/lib64/libgobject-2.0.so.0(+0x15695)[0x7f88288ff695] /usr/lib64/libgobject-2.0.so.0(g_object_notify+0x16b)[0x7f8828901c4b] /usr/lib64/libgdk-x11-2.0.so.0(gdk_display_open_default_libgtk_only+0x75)[0x7f8829e977b5] /usr/lib64/libgtk-x11-2.0.so.0(gtk_init_check+0x14)[0x7f882a2614b4] /home/sterg/SciLab/scilab-5.5.0/thirdparty/java/lib/amd64/xawt/libmawt.so(+0x3547f)[0x7f887dc3a47f] /home/sterg/SciLab/scilab-5.5.0/thirdparty/java/lib/amd64/xawt/libmawt.so(Java_sun_awt_UNIXToolkit_load_1gtk+0xb)[0x7f887dc244cb] [0x7f887f475eee] ======= Memory map: ======== 00400000-00486000 r-xp 00000000 08:13 1972208 /home/sterg/SciLab/scilab-5.5.0/bin/scilab-bin 00686000-00688000 r--p 00086000 08:13 1972208 /home/sterg/SciLab/scilab-5.5.0/bin/scilab-bin 00688000-00689000 rw-p 00088000 08:13 1972208 /home/sterg/SciLab/scilab-5.5.0/bin/scilab-bin 00689000-0069d000 rw-p 00000000 00:00 0 0179a000-02f46000 rw-p 00000000 00:00 0 [heap] eae00000-ec2c0000 rw-p 00000000 00:00 0 ec2c0000-f0000000 rw-p 00000000 00:00 0 f0000000-f52f0000 rw-p 00000000 00:00 0 f52f0000-faab0000 rw-p 00000000 00:00 0 faab0000-fd420000 rw-p 00000000 00:00 0 fd420000-100000000 rw-p 00000000 00:00 0 7f8820000000-7f8820021000 rw-p 00000000 00:00 0 7f8820021000-7f8824000000 ---p 00000000 00:00 0 7f8824943000-7f8824944000 ---p 00000000 00:00 0 7f8824944000-7f8825144000 rwxp 00000000 00:00 0 [stack:6414] 7f8825144000-7f8825145000 ---p 00000000 00:00 0 7f8825145000-7f8825945000 rwxp 00000000 00:00 0 [stack:6413] 7f8825945000-7f882597b000 r-xp 00000000 08:12 538807 /usr/lib64/libgvfscommon.so.0.0.0 7f882597b000-7f8825b7b000 ---p 00036000 08:12 538807 /usr/lib64/libgvfscommon.so.0.0.0 7f8825b7b000-7f8825b80000 r--p 00036000 08:12 538807 /usr/lib64/libgvfscommon.so.0.0.0 7f8825b80000-7f8825b81000 rw-p 0003b000 08:12 538807 /usr/lib64/libgvfscommon.so.0.0.0 7f8825b81000-7f8825bb1000 r-xp 00000000 08:12 538552 /usr/lib64/gio/modules/libgvfsdbus.so 7f8825bb1000-7f8825db1000 ---p 00030000 08:12 538552 /usr/lib64/gio/modules/libgvfsdbus.so 7f8825db1000-7f8825db2000 r--p 00030000 08:12 538552 /usr/lib64/gio/modules/libgvfsdbus.so 7f8825db2000-7f8825db4000 rw-p 00031000 08:12 538552 /usr/lib64/gio/modules/libgvfsdbus.so 7f8825db4000-7f8825efe000 r-xp 00000000 08:12 548786 /usr/lib64/gtk-2.0/2.10.0/engines/liboxygen-gtk.so 7f8825efe000-7f88260fd000 ---p 0014a000 08:12 548786 /usr/lib64/gtk-2.0/2.10.0/engines/liboxygen-gtk.so 7f88260fd000-7f8826103000 r--p 00149000 08:12 548786 /usr/lib64/gtk-2.0/2.10.0/engines/liboxygen-gtk.so 7f8826103000-7f8826106000 rw-p 0014f000 08:12 548786 /usr/lib64/gtk-2.0/2.10.0/engines/liboxygen-gtk.so 7f8826106000-7f8826107000 rw-p 00000000 00:00 0 7f8826107000-7f882610d000 r-xp 00000000 08:12 528429 /usr/lib64/libogg.so.0.8.0 7f882610d000-7f882630c000 ---p 00006000 08:12 528429 /usr/lib64/libogg.so.0.8.0 7f882630c000-7f882630d000 r--p 00005000 08:12 528429 /usr/lib64/libogg.so.0.8.0 7f882630d000-7f882630e000 rw-p 00006000 08:12 528429 /usr/lib64/libogg.so.0.8.0 7f882630e000-7f882633a000 r-xp 00000000 08:12 530240 /usr/lib64/libvorbis.so.0.4.6 7f882633a000-7f882653a000 ---p 0002c000 08:12 530240 /usr/lib64/libvorbis.so.0.4.6 7f882653a000-7f882653b000 r--p 0002c000 08:12 530240 /usr/lib64/libvorbis.so.0.4.6 7f882653b000-7f882653c000 rw-p 0002d000 08:12 530240 /usr/lib64/libvorbis.so.0.4.6 7f882653c000-7f8826545000 r-xp 00000000 08:12 534779 /usr/lib64/libltdl.so.7.3.0 7f8826545000-7f8826744000 ---p 00009000 08:12 534779 /usr/lib64/libltdl.so.7.3.0 7f8826744000-7f8826745000 r--p 00008000 08:12 534779 /usr/lib64/libltdl.so.7.3.0 7f8826745000-7f8826746000 rw-p 00009000 08:12 534779 /usr/lib64/libltdl.so.7.3.0 7f8826746000-7f882674e000 r-xp 00000000 08:12 528425 /usr/lib64/libvorbisfile.so.3.3.5 7f882674e000-7f882694d000 ---p 00008000 08:12 528425 /usr/lib64/libvorbisfile.so.3.3.5 7f882694d000-7f882694e000 r--p 00007000 08:12 528425 /usr/lib64/libvorbisfile.so.3.3.5 7f882694e000-7f882694f000 rw-p 00008000 08:12 528425 /usr/lib64/libvorbisfile.so.3.3.5 7f882694f000-7f882695d000 r-xp 00000000 08:12 534872 /usr/lib64/libcanberra.so.0.2.5 7f882695d000-7f8826b5c000 ---p 0000e000 08:12 534872 /usr/lib64/libcanberra.so.0.2.5 7f8826b5c000-7f8826b5d000 r--p 0000d000 08:12 534872 /usr/lib64/libcanberra.so.0.2.5 7f8826b5d000-7f8826b5e000 rw-p 0000e000 08:12 534872 /usr/lib64/libcanberra.so.0.2.5 7f8826b5e000-7f8826b62000 r-xp 00000000 08:12 534901 /usr/lib64/libcanberra-gtk.so.0.1.9 7f8826b62000-7f8826d61000 ---p 00004000 08:12 534901 /usr/lib64/libcanberra-gtk.so.0.1.9 7f8826d61000-7f8826d62000 r--p 00003000 08:12 534901 /usr/lib64/libcanberra-gtk.so.0.1.9 7f8826d62000-7f8826d63000 rw-p 00004000 08:12 534901 /usr/lib64/libcanberra-gtk.so.0.1.9 7f8826d63000-7f8826d68000 r-xp 00000000 08:12 534974 /usr/lib64/gtk-2.0/modules/libcanberra-gtk-module.so 7f8826d68000-7f8826f67000 ---p 00005000 08:12 534974 /usr/lib64/gtk-2.0/modules/libcanberra-gtk-module.so 7f8826f67000-7f8826f68000 r--p 00004000 08:12 534974 /usr/lib64/gtk-2.0/modules/libcanberra-gtk-module.so 7f8826f68000-7f8826f69000 rw-p 00005000 08:12 534974 /usr/lib64/gtk-2.0/modules/libcanberra-gtk-module.so 7f8826f69000-7f8826f6b000 r-xp 00000000 08:12 548436 /usr/lib64/gconv/ISO8859-1.so 7f8826f6b000-7f882716a000 ---p 00002000 08:12 548436 /usr/lib64/gconv/ISO8859-1.so 7f882716a000-7f882716b000 r--p 00001000 08:12 548436 /usr/lib64/gconv/ISO8859-1.so 7f882716b000-7f882716c000 rw-p 00002000 08:12 548436 /usr/lib64/gconv/ISO8859-1.so 7f882716c000-7f882729c000 r--p 00000000 08:12 675445 /usr/lib/locale/en_US.utf8/LC_COLLATE 7f882729c000-7f882729d000 r-xp 00000000 08:12 532919 /usr/lib64/libgthread-2.0.so.0.3800.1 7f882729d000-7f882749c000 ---p 00001000 08:12 532919 /usr/lib64/libgthread-2.0.so.0.3800.1 7f882749c000-7f882749d000 r--p 00000000 08:12 532919 /usr/lib64/libgthread-2.0.so.0.3800.1 7f882749d000-7f882749e000 rw-p 00001000 08:12 532919 /usr/lib64/libgthread-2.0.so.0.3800.1 7f882749e000-7f88274b8000 r-xp 00000000 08:12 528436 /usr/lib64/libgraphite2.so.3.0.1 7f88274b8000-7f88276b7000 ---p 0001a000 08:12 528436 /usr/lib64/libgraphite2.so.3.0.1 7f88276b7000-7f88276b9000 r--p 00019000 08:12 528436 /usr/lib64/libgraphite2.so.3.0.1 7f88276b9000-7f88276ba000 rw-p 0001b000 08:12 528436 /usr/lib64/libgraphite2.so.3.0.1 7f88276ba000-7f882770b000 r-xp 00000000 08:12 529088 /usr/lib64/libharfbuzz.so.0.921.0 7f882770b000-7f882790b000 ---p 00051000 08:12 529088 /usr/lib64/libharfbuzz.so.0.921.0 7f882790b000-7f882790c000 r--p 00051000 08:12 529088 /usr/lib64/libharfbuzz.so.0.921.0 7f882790c000-7f882790d000 rw-p 00052000 08:12 529088 /usr/lib64/libharfbuzz.so.0.921.0 7f882790d000-7f8827921000 r-xp 00000000 08:12 1050639 /lib64/libresolv-2.18.so 7f8827921000-7f8827b20000 ---p 00014000 08:12 1050639 /lib64/libresolv-2.18.so 7f8827b20000-7f8827b21000 r--p 00013000 08:12 1050639 /lib64/libresolv-2.18.so 7f8827b21000-7f8827b22000 rw-p 00014000 08:12 1050639 /lib64/libresolv-2.18.so 7f8827b22000-7f8827b24000 rw-p 00000000 00:00 0 7f8827b24000-7f8827b2c000 r-xp 00000000 08:12 528679 /usr/lib64/libxcb-render.so.0.0.0 7f8827b2c000-7f8827d2c000 ---p 00008000 08:12 528679 /usr/lib64/libxcb-render.so.0.0.0 7f8827d2c000-7f8827d2d000 r--p 00008000 08:12 528679 /usr/lib64/libxcb-render.so.0.0.0 7f8827d2d000-7f8827d2e000 rw-p 00009000 08:12 528679 /usr/lib64/libxcb-render.so.0.0.0 7f8827d2e000-7f8827d30000 r-xp 00000000 08:12 528607 /usr/lib64/libxcb-shm.so.0.0.0 7f8827d30000-7f8827f2f000 ---p 00002000 08:12 528607 /usr/lib64/libxcb-shm.so.0.0.0 7f8827f2f000-7f8827f30000 r--p 00001000 08:12 528607 /usr/lib64/libxcb-shm.so.0.0.0 7f8827f30000-7f8827f31000 rw-p 00002000 08:12 528607 /usr/lib64/libxcb-shm.so.0.0.0 7f8827f31000-7f8827fd2000 r-xp 00000000 08:12 528683 /usr/lib64/libpixman-1.so.0.30.2 7f8827fd2000-7f88281d2000 ---p 000a1000 08:12 528683 /usr/lib64/libpixman-1.so.0.30.2 7f88281d2000-7f88281d9000 r--p 000a1000 08:12 528683 /usr/lib64/libpixman-1.so.0.30.2 7f88281d9000-7f88281da000 rw-p 000a8000 08:12 528683 /usr/lib64/libpixman-1.so.0.30.2 7f88281da000-7f88281dc000 r-xp 00000000 08:12 529094 /usr/lib64/libXcomposite.so.1.0.0 7f88281dc000-7f88283db000 ---p 00002000 08:12 529094 /usr/lib64/libXcomposite.so.1.0.0 7f88283db000-7f88283dc000 r--p 00001000 08:12 529094 /usr/lib64/libXcomposite.so.1.0.0 7f88283dc000-7f88283dd000 rw-p 00002000 08:12 529094 /usr/lib64/libXcomposite.so.1.0.0 7f88283dd000-7f88283e6000 r-xp 00000000 08:12 532936 /usr/lib64/libXrandr.so.2.2.0 7f88283e6000-7f88285e5000 ---p 00009000 08:12 532936 /usr/lib64/libXrandr.so.2.2.0 7f88285e5000-7f88285e6000 r--p 00008000 08:12 532936 /usr/lib64/libXrandr.so.2.2.0 7f88285e6000-7f88285e7000 rw-p 00009000 08:12 532936 /usr/lib64/libXrandr.so.2.2.0 7f88285e7000-7f88286e8000 r-xp 00000000 08:12 528631 /usr/lib64/libglib-2.0.so.0.3800.1 7f88286e8000-7f88288e7000 ---p 00101000 08:12 528631 /usr/lib64/libglib-2.0.so.0.3800.1 7f88288e7000-7f88288e8000 r--p 00100000 08:12 528631 /usr/lib64/libglib-2.0.so.0.3800.1 7f88288e8000-7f88288e9000 rw-p 00101000 08:12 528631 /usr/lib64/libglib-2.0.so.0.3800.1 7f88288e9000-7f88288ea000 rw-p 00000000 00:00 0 7f88288ea000-7f8828939000 r-xp 00000000 08:12 528941 /usr/lib64/libgobject-2.0.so.0.3800.1 7f8828939000-7f8828b39000 ---p 0004f000 08:12 528941 /usr/lib64/libgobject-2.0.so.0.3800.1 7f8828b39000-7f8828b3a000 r--p 0004f000 08:12 528941 /usr/lib64/libgobject-2.0.so.0.3800.1 7f8828b3a000-7f8828b3b000 rw-p 00050000 08:12 528941 /usr/lib64/libgobject-2.0.so.0.3800.1 7f8828b3b000-7f8828b84000 r-xp 00000000 08:12 528942 /usr/lib64/libpango-1.0.so.0.3600.0 7f8828b84000-7f8828d84000 ---p 00049000 08:12 528942 /usr/lib64/libpango-1.0.so.0.3600.0 7f8828d84000-7f8828d86000 r--p 00049000 08:12 528942 /usr/lib64/libpango-1.0.so.0.3600.0 7f8828d86000-7f8828d87000 rw-p 0004b000 08:12 528942 /usr/lib64/libpango-1.0.so.0.3600.0 7f8828d87000-7f8828d9a000 r-xp 00000000 08:12 530164 /usr/lib64/libpangoft2-1.0.so.0.3600.0 7f8828d9a000-7f8828f99000 ---p 00013000 08:12 530164 /usr/lib64/libpangoft2-1.0.so.0.3600.0 7f8828f99000-7f8828f9a000 r--p 00012000 08:12 530164 /usr/lib64/libpangoft2-1.0.so.0.3600.0 7f8828f9a000-7f8828f9b000 rw-p 00013000 08:12 530164 /usr/lib64/libpangoft2-1.0.so.0.3600.0 7f8828f9b000-7f88290fa000 r-xp 00000000 08:12 528923 /usr/lib64/libgio-2.0.so.0.3800.1 7f88290fa000-7f88292fa000 ---p 0015f000 08:12 528923 /usr/lib64/libgio-2.0.so.0.3800.1 7f88292fa000-7f88292fe000 r--p 0015f000 08:12 528923 /usr/lib64/libgio-2.0.so.0.3800.1 7f88292fe000-7f8829300000 rw-p 00163000 08:12 528923 /usr/lib64/libgio-2.0.so.0.3800.1 7f8829300000-7f8829302000 rw-p 00000000 00:00 0 7f8829302000-7f8829322000 r-xp 00000000 08:12 532911 /usr/lib64/libgdk_pixbuf-2.0.so.0.3000.0 7f8829322000-7f8829521000 ---p 00020000 08:12 532911 /usr/lib64/libgdk_pixbuf-2.0.so.0.3000.0 7f8829521000-7f8829522000 r--p 0001f000 08:12 532911 /usr/lib64/libgdk_pixbuf-2.0.so.0.3000.0 7f8829522000-7f8829523000 rw-p 00020000 08:12 532911 /usr/lib64/libgdk_pixbuf-2.0.so.0.3000.0 7f8829523000-7f882963c000 r-xp 00000000 08:12 528725 /usr/lib64/libcairo.so.2.11200.16 7f882963c000-7f882983c000 ---p 00119000 08:12 528725 /usr/lib64/libcairo.so.2.11200.16 7f882983c000-7f882983f000 r--p 00119000 08:12 528725 /usr/lib64/libcairo.so.2.11200.16 7f882983f000-7f8829841000 rw-p 0011c000 08:12 528725 /usr/lib64/libcairo.so.2.11200.16 7f8829841000-7f8829842000 rw-p 00000000 00:00 0 7f8829842000-7f8829863000 r-xp 00000000 08:12 528844 /usr/lib64/libatk-1.0.so.0.21009.1 7f8829863000-7f8829a63000 ---p 00021000 08:12 528844 /usr/lib64/libatk-1.0.so.0.21009.1 7f8829a63000-7f8829a65000 r--p 00021000 08:12 528844 /usr/lib64/libatk-1.0.so.0.21009.1 7f8829a65000-7f8829a66000 rw-p 00023000 08:12 528844 /usr/lib64/libatk-1.0.so.0.21009.1 7f8829a66000-7f8829a72000 r-xp 00000000 08:12 528958 /usr/lib64/libpangocairo-1.0.so.0.3600.0 7f8829a72000-7f8829c71000 ---p 0000c000 08:12 528958 /usr/lib64/libpangocairo-1.0.so.0.3600.0 7f8829c71000-7f8829c72000 r--p 0000b000 08:12 528958 /usr/lib64/libpangocairo-1.0.so.0.3600.0 7f8829c72000-7f8829c73000 rw-p 0000c000 08:12 528958 /usr/lib64/libpangocairo-1.0.so.0.3600.0 7f8829c73000-7f8829c76000 r-xp 00000000 08:12 528657 /usr/lib64/libgmodule-2.0.so.0.3800.1 7f8829c76000-7f8829e75000 ---p 00003000 08:12 528657 /usr/lib64/libgmodule-2.0.so.0.3800.1 7f8829e75000-7f8829e76000 r--p 00002000 08:12 528657 /usr/lib64/libgmodule-2.0.so.0.3800.1 7f8829e76000-7f8829e77000 rw-p 00003000 08:12 528657 /usr/lib64/libgmodule-2.0.so.0.3800.1 7f8829e77000-7f8829f27000 r-xp 00000000 08:12 532947 /usr/lib64/libgdk-x11-2.0.so.0.2400.22 7f8829f27000-7f882a126000 ---p 000b0000 08:12 532947 /usr/lib64/libgdk-x11-2.0.so.0.2400.22 7f882a126000-7f882a12a000 r--p 000af000 08:12 532947 /usr/lib64/libgdk-x11-2.0.so.0.2400.22 7f882a12a000-7f882a12c000 rw-p 000b3000 08:12 532947 /usr/lib64/libgdk-x11-2.0.so.0.2400.22 7f882a12c000-7f882a55d000 r-xp 00000000 08:12 528663 /usr/lib64/libgtk-x11-2.0.so.0.2400.22 7f882a55d000-7f882a75d000 ---p 00431000 08:12 528663 /usr/lib64/libgtk-x11-2.0.so.0.2400.22 7f882a75d000-7f882a764000 r--p 00431000 08:12 528663 /usr/lib64/libgtk-x11-2.0.so.0.2400.22 7f882a764000-7f882a768000 rw-p 00438000 08:12 528663 /usr/lib64/libgtk-x11-2.0.so.0.2400.22 7f882a768000-7f882a76b000 rw-p 00000000 00:00 0 7f882a76b000-7f882adb8000 r-xp 00000000 08:12 546874 /usr/lib64/dri/nouveau_dri.so 7f882adb8000-7f882afb7000 ---p 0064d000 08:12 546874 /usr/lib64/dri/nouveau_dri.so 7f882afb7000-7f882afd8000 r--p 0064c000 08:12 546874 /usr/lib64/dri/nouveau_dri.so 7f882afd8000-7f882afe4000 rw-p 0066d000 08:12 546874 /usr/lib64/dri/nouveau_dri.so 7f882afe4000-7f882b1c6000 rw-p 00000000 00:00 0 7f882b1c6000-7f882b1c8000 r-xp 00000000 08:12 529116 /usr/lib64/libXinerama.so.1.0.0 7f882b1c8000-7f882b3c7000 ---p 00002000 08:12 529116 /usr/lib64/libXinerama.so.1.0.0 7f882b3c7000-7f882b3c8000 r--p 00001000 08:12 529116 /usr/lib64/libXinerama.so.1.0.0 7f882b3c8000-7f882b3c9000 rw-p 00002000 08:12 529116 /usr/lib64/libXinerama.so.1.0.0 7f882b3c9000-7f882b3d0000 r-xp 00000000 08:12 528959 /usr/lib64/libGLESv2.so.2.0.0 7f882b3d0000-7f882b5cf000 ---p 00007000 08:12 528959 /usr/lib64/libGLESv2.so.2.0.0 7f882b5cf000-7f882b5d0000 r--p 00006000 08:12 528959 /usr/lib64/libGLESv2.so.2.0.0 7f882b5d0000-7f882b5d1000 rw-p 00007000 08:12 528959 /usr/lib64/libGLESv2.so.2.0.0 7f882b5d1000-7f882b60b000 r-xp 00000000 08:12 529061 /usr/lib64/libLLVMObject.so 7f882b60b000-7f882b80b000 ---p 0003a000 08:12 529061 /usr/lib64/libLLVMObject.so 7f882b80b000-7f882b80d000 r--p 0003a000 08:12 529061 /usr/lib64/libLLVMObject.so 7f882b80d000-7f882b80e000 rw-p 0003c000 08:12 529061 /usr/lib64/libLLVMObject.so 7f882b80e000-7f882b832000 r-xp 00000000 08:12 530220 /usr/lib64/libLLVMMCParser.so 7f882b832000-7f882ba32000 ---p 00024000 08:12 530220 /usr/lib64/libLLVMMCParser.so 7f882ba32000-7f882ba33000 r--p 00024000 08:12 530220 /usr/lib64/libLLVMMCParser.so 7f882ba33000-7f882ba34000 rw-p 00025000 08:12 530220 /usr/lib64/libLLVMMCParser.so 7f882ba34000-7f882ba6b000 r-xp 00000000 08:12 530172 /usr/lib64/libLLVMRuntimeDyld.so 7f882ba6b000-7f882bc6a000 ---p 00037000 08:12 530172 /usr/lib64/libLLVMRuntimeDyld.so 7f882bc6a000-7f882bc6d000 r--p 00036000 08:12 530172 /usr/lib64/libLLVMRuntimeDyld.so 7f882bc6d000-7f882bc6e000 rw-p 00039000 08:12 530172 /usr/lib64/libLLVMRuntimeDyld.so 7f882bc6e000-7f882bc70000 r-xp 00000000 08:12 532917 /usr/lib64/libLLVMX86Utils.so 7f882bc70000-7f882be70000 ---p 00002000 08:12 532917 /usr/lib64/libLLVMX86Utils.so 7f882be70000-7f882be71000 r--p 00002000 08:12 532917 /usr/lib64/libLLVMX86Utils.so 7f882be71000-7f882be72000 rw-p 00003000 08:12 532917 /usr/lib64/libLLVMX86Utils.so 7f882be72000-7f882be8e000 r-xp 00000000 08:12 528599 /usr/lib64/libLLVMX86AsmPrinter.so 7f882be8e000-7f882c08d000 ---p 0001c000 08:12 528599 /usr/lib64/libLLVMX86AsmPrinter.so 7f882c08d000-7f882c08e000 r--p 0001b000 08:12 528599 /usr/lib64/libLLVMX86AsmPrinter.so 7f882c08e000-7f882c08f000 rw-p 0001c000 08:12 528599 /usr/lib64/libLLVMX86AsmPrinter.so 7f882c08f000-7f882c0a9000 r-xp 00000000 08:12 528721 /usr/lib64/libLLVMR600AsmPrinter.so 7f882c0a9000-7f882c2a8000 ---p 0001a000 08:12 528721 /usr/lib64/libLLVMR600AsmPrinter.so 7f882c2a8000-7f882c2a9000 r--p 00019000 08:12 528721 /usr/lib64/libLLVMR600AsmPrinter.so 7f882c2a9000-7f882c2aa000 rw-p 0001a000 08:12 528721 /usr/lib64/libLLVMR600AsmPrinter.so 7f882c2aa000-7f882c401000 r-xp 00000000 08:12 530270 /usr/lib64/libLLVMSelectionDAG.so 7f882c401000-7f882c601000 ---p 00157000 08:12 530270 /usr/lib64/libLLVMSelectionDAG.so 7f882c601000-7f882c603000 r--p 00157000 08:12 530270 /usr/lib64/libLLVMSelectionDAG.so 7f882c603000-7f882c605000 rw-p 00159000 08:12 530270 /usr/lib64/libLLVMSelectionDAG.so 7f882c605000-7f882c606000 rw-p 00000000 00:00 0 7f882c606000-7f882c66b000 r-xp 00000000 08:12 528441 /usr/lib64/libLLVMMC.so 7f882c66b000-7f882c86b000 ---p 00065000 08:12 528441 /usr/lib64/libLLVMMC.so 7f882c86b000-7f882c86f000 r--p 00065000 08:12 528441 /usr/lib64/libLLVMMC.so 7f882c86f000-7f882c870000 rw-p 00069000 08:12 528441 /usr/lib64/libLLVMMC.so 7f882c870000-7f882ca09000 r-xp 00000000 08:12 528918 /usr/lib64/libLLVMCodeGen.so 7f882ca09000-7f882cc08000 ---p 00199000 08:12 528918 /usr/lib64/libLLVMCodeGen.so 7f882cc08000-7f882cc10000 r--p 00198000 08:12 528918 /usr/lib64/libLLVMCodeGen.so 7f882cc10000-7f882cc13000 rw-p 001a0000 08:12 528918 /usr/lib64/libLLVMCodeGen.so 7f882cc13000-7f882cc16000 rw-p 00000000 00:00 0 7f882cc16000-7f882cc61000 r-xp 00000000 08:12 532913 /usr/lib64/libLLVMAsmPrinter.so 7f882cc61000-7f882ce61000 ---p 0004b000 08:12 532913 /usr/lib64/libLLVMAsmPrinter.so 7f882ce61000-7f882ce62000 r--p 0004b000 08:12 532913 /usr/lib64/libLLVMAsmPrinter.so 7f882ce62000-7f882ce63000 rw-p 0004c000 08:12 532913 /usr/lib64/libLLVMAsmPrinter.so 7f882ce63000-7f882ce64000 rw-p 00000000 00:00 0 7f882ce64000-7f882ce83000 r-xp 00000000 08:12 529086 /usr/lib64/libLLVMipa.so 7f882ce83000-7f882d083000 ---p 0001f000 08:12 529086 /usr/lib64/libLLVMipa.so 7f882d083000-7f882d084000 r--p 0001f000 08:12 529086 /usr/lib64/libLLVMipa.so 7f882d084000-7f882d085000 rw-p 00020000 08:12 529086 /usr/lib64/libLLVMipa.so 7f882d085000-7f882d0b9000 r-xp 00000000 08:12 532905 /usr/lib64/libLLVMVectorize.so 7f882d0b9000-7f882d2b9000 ---p 00034000 08:12 532905 /usr/lib64/libLLVMVectorize.so 7f882d2b9000-7f882d2ba000 r--p 00034000 08:12 532905 /usr/lib64/libLLVMVectorize.so 7f882d2ba000-7f882d2bb000 rw-p 00035000 08:12 532905 /usr/lib64/libLLVMVectorize.so 7f882d2bb000-7f882d2bc000 rw-p 00000000 00:00 0 7f882d2bc000-7f882d337000 r-xp 00000000 08:12 528676 /usr/lib64/libLLVMTransformUtils.so 7f882d337000-7f882d537000 ---p 0007b000 08:12 528676 /usr/lib64/libLLVMTransformUtils.so 7f882d537000-7f882d539000 r--p 0007b000 08:12 528676 /usr/lib64/libLLVMTransformUtils.so 7f882d539000-7f882d53b000 rw-p 0007d000 08:12 528676 /usr/lib64/libLLVMTransformUtils.so 7f882d53b000-7f882d5a9000 r-xp 00000000 08:12 528895 /usr/lib64/libLLVMInstCombine.so 7f882d5a9000-7f882d7a8000 ---p 0006e000 08:12 528895 /usr/lib64/libLLVMInstCombine.so 7f882d7a8000-7f882d7a9000 r--p 0006d000 08:12 528895 /usr/lib64/libLLVMInstCombine.so 7f882d7a9000-7f882d7aa000 rw-p 0006e000 08:12 528895 /usr/lib64/libLLVMInstCombine.so 7f882d7aa000-7f882d8e9000 r-xp 00000000 08:12 528527 /usr/lib64/libLLVMAnalysis.so 7f882d8e9000-7f882dae8000 ---p 0013f000 08:12 528527 /usr/lib64/libLLVMAnalysis.so 7f882dae8000-7f882daee000 r--p 0013e000 08:12 528527 /usr/lib64/libLLVMAnalysis.so 7f882daee000-7f882daf1000 rw-p 00144000 08:12 528527 /usr/lib64/libLLVMAnalysis.so 7f882daf1000-7f882daf2000 rw-p 00000000 00:00 0 7f882daf2000-7f882dbdc000 r-xp 00000000 08:12 529104 /usr/lib64/libstdc++.so.6.0.18 7f882dbdc000-7f882dddb000 ---p 000ea000 08:12 529104 /usr/lib64/libstdc++.so.6.0.18 7f882dddb000-7f882dde3000 r--p 000e9000 08:12 529104 /usr/lib64/libstdc++.so.6.0.18 7f882dde3000-7f882dde5000 rw-p 000f1000 08:12 529104 /usr/lib64/libstdc++.so.6.0.18 7f882dde5000-7f882ddfa000 rw-p 00000000 00:00 0 terminate called after throwing an instance of 'GiwsException::JniCallMethodException' what(): Exception when calling Java method : org/scilab/modules/gui/bridge/CallScilabBridge at sun.awt.UNIXToolkit.load_gtk(Native Method) at sun.awt.UNIXToolkit.checkGTK(Unknown Source) at com.sun.java.swing.plaf.gtk.GTKEngine.(Unknown Source) at com.sun.java.swing.plaf.gtk.GTKLookAndFeel.getGTKStyleFactory(Unknown Source) at com.sun.java.swing.plaf.gtk.GTKLookAndFeel.loadStyles(Unknown Source) at com.sun.java.swing.plaf.gtk.GTKLookAndFeel.initialize(Unknown Source) at javax.swing.UIManager.setLookAndFeel(Unknown Source) at javax.swing.UIManager.setLookAndFeel(Unknown Source) at org.scilab.modules.gui.utils.LookAndFeelManager$1.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$400(Unknown Source) at java.awt.EventQueue$2.run(Unknown Source) at java.awt.EventQueue$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) org/scilab/modules/gui/bridge/CallScilabBridge at sun.awt.UNIXToolkit.load_gtk(Native Method) at sun.awt.UNIXToolkit.checkGTK(Unknown Source) at com.sun.java.swing.plaf.gtk.GTKEngine.(Unknown Source) at com.sun.java.swing.plaf.gtk.GTKLookAndFeel.getGTKStyleFactory(Unknown Source) at com.sun.java.swing.plaf.gtk.GTKLookAndFeel.loadStyles(Unknown Source) at com.sun.java.swing.plaf.gtk.GTKLookAndFeel.initialize(Unknown Source) at javax.swing.UIManager.setLookAndFeel(Unknown Source) at javax.swing.UIManager.setLookAndFeel(Unknown Source) at org.scilab.modules.gui.utils.LookAndFeelManager$1.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$400(Unknown Source) at java.awt.EventQueue$2.run(Unknown Source) at java.awt.EventQueue$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) -------------- next part -------------- An HTML attachment was scrubbed... URL: From grivet at cnrs-orleans.fr Tue May 27 13:49:25 2014 From: grivet at cnrs-orleans.fr (grivet) Date: Tue, 27 May 2014 13:49:25 +0200 Subject: [Scilab-users] function find() In-Reply-To: <533ED1BB.5050307@scilab-enterprises.com> References: <1396616855090-4030250.post@n3.nabble.com> <533ED0E5.4070007@cnrs-orleans.fr> <533ED1BB.5050307@scilab-enterprises.com> Message-ID: <53847BC5.9010208@cnrs-orleans.fr> Hello, While trying to compute pairwise distances between random points, I have come across a behavior of function find() that I don't understand. I do the following: // initialisation diam = 0.2; nd = 10; etat = (rand(nd,2) -0.5)*4; distance = zeros(nd,nd); //compute distance matrix for i = 1:(nd-1) for j = (i+1):nd distance(i,j) = sqrt((etat(i,1)-etat(j,1))**2+(etat(i,2)-etat(j,2)**2)); end end //find close pairs [li,lj] = find(distance References: <1396616855090-4030250.post@n3.nabble.com> <533ED0E5.4070007@cnrs-orleans.fr> <533ED1BB.5050307@scilab-enterprises.com> <53847BC5.9010208@cnrs-orleans.fr> Message-ID: <53848493.3040709@scilab-enterprises.com> Hi, You are computing "operator<" over complex number (which is not defined) because your distance matrix has an error Try with this change distance(i,j) = sqrt((etat(i,1)-etat(j,1))**2+(etat(i,2)-etat(j,2)**2)); => distance(i,j) = sqrt((etat(i,1)-etat(j,1))**2+(etat(i,2)-etat(j,2))**2); Full script: // initialisation diam = 0.2; nd = 10; etat = (rand(nd,2) -0.5)*4; distance = zeros(nd,nd); //compute distance matrix for i = 1:(nd-1) for j = (i+1):nd distance(i,j) = sqrt((etat(i,1)-etat(j,1))**2+(etat(i,2)-etat(j,2))**2); end end //find close pairs [li,lj] = find(distance Hello, > While trying to compute pairwise distances between random points, I > have come across > a behavior of function find() that I don't understand. I do the > following: > > // initialisation > diam = 0.2; > nd = 10; > etat = (rand(nd,2) -0.5)*4; > distance = zeros(nd,nd); > //compute distance matrix > for i = 1:(nd-1) > for j = (i+1):nd > distance(i,j) = > sqrt((etat(i,1)-etat(j,1))**2+(etat(i,2)-etat(j,2)**2)); > end > end > //find close pairs > [li,lj] = find(distance > With both Scilab 5.4.1 and Scilab 5.5, the last line raises the error > message: > !--error 144 > Op?ration non d?finie pour les op?randes donn?es. > > I will be grateful to anybody who spots my error. > > Thank your for your time, > JP Grivet > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Pierre-Aim? Agnel Development Team ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.68 http://www.scilab-enterprises.com From Christophe.Dang at sidel.com Tue May 27 14:45:11 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Tue, 27 May 2014 14:45:11 +0200 Subject: [Scilab-users] function find() In-Reply-To: <53848493.3040709@scilab-enterprises.com> References: <1396616855090-4030250.post@n3.nabble.com> <533ED0E5.4070007@cnrs-orleans.fr> <533ED1BB.5050307@scilab-enterprises.com> <53847BC5.9010208@cnrs-orleans.fr> <53848493.3040709@scilab-enterprises.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F32B110E4E@301EX00100.sidel.com> Hello, Appart from the parenthetis error pointed out by Pierre-Aim?, something imho a bit more efficient: distance(i,j) = norm([etat(i, :) - etat(j, :)]) Best regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer ______________________________________________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ______________________________________________________________________ From grivet at cnrs-orleans.fr Tue May 27 14:53:58 2014 From: grivet at cnrs-orleans.fr (grivet) Date: Tue, 27 May 2014 14:53:58 +0200 Subject: [Scilab-users] function find() In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F32B110E4E@301EX00100.sidel.com> References: <1396616855090-4030250.post@n3.nabble.com> <533ED0E5.4070007@cnrs-orleans.fr> <533ED1BB.5050307@scilab-enterprises.com> <53847BC5.9010208@cnrs-orleans.fr> <53848493.3040709@scilab-enterprises.com> <3B5FFC67498DFF49AE7271A584867D16F32B110E4E@301EX00100.sidel.com> Message-ID: <53848AE6.7050709@cnrs-orleans.fr> Le 27/05/2014 14:45, Dang, Christophe a ?crit : > Hello, > > Appart from the parenthetis error pointed out by Pierre-Aim?, > something imho a bit more efficient: > > distance(i,j) = norm([etat(i, :) - etat(j, :)]) > > Best regards > Thank you Pierre-Aim? and Daniel for pointing ou this simple error. JP Grivet From grivet at cnrs-orleans.fr Tue May 27 16:01:19 2014 From: grivet at cnrs-orleans.fr (grivet) Date: Tue, 27 May 2014 16:01:19 +0200 Subject: [Scilab-users] distance matrix In-Reply-To: <53848AE6.7050709@cnrs-orleans.fr> References: <1396616855090-4030250.post@n3.nabble.com> <533ED0E5.4070007@cnrs-orleans.fr> <533ED1BB.5050307@scilab-enterprises.com> <53847BC5.9010208@cnrs-orleans.fr> <53848493.3040709@scilab-enterprises.com> <3B5FFC67498DFF49AE7271A584867D16F32B110E4E@301EX00100.sidel.com> <53848AE6.7050709@cnrs-orleans.fr> Message-ID: <53849AAF.7040903@cnrs-orleans.fr> I have a suggestion related to my previous post concerning pairwise distances. I have just learned the Matlab provides a function, pdist, that computes these in a single instruction: pdist(M). it would be convenient if the same functionwere implemented in Scilab. JP Grivet From pierre-aime.agnel at scilab-enterprises.com Tue May 27 16:06:05 2014 From: pierre-aime.agnel at scilab-enterprises.com (=?ISO-8859-1?Q?Pierre-Aim=E9_Agnel?=) Date: Tue, 27 May 2014 16:06:05 +0200 Subject: [Scilab-users] distance matrix In-Reply-To: <53849AAF.7040903@cnrs-orleans.fr> References: <1396616855090-4030250.post@n3.nabble.com> <533ED0E5.4070007@cnrs-orleans.fr> <533ED1BB.5050307@scilab-enterprises.com> <53847BC5.9010208@cnrs-orleans.fr> <53848493.3040709@scilab-enterprises.com> <3B5FFC67498DFF49AE7271A584867D16F32B110E4E@301EX00100.sidel.com> <53848AE6.7050709@cnrs-orleans.fr> <53849AAF.7040903@cnrs-orleans.fr> Message-ID: <53849BCD.8010309@scilab-enterprises.com> Hi, Thanks for the suggestion, can you add this as a feature request on Scilab bug tracking system http://bugzilla.scilab.org/ Best, On 05/27/2014 04:01 PM, grivet wrote: > I have a suggestion related to my previous post concerning pairwise > distances. I have just learned the Matlab provides a function, pdist, > that computes these in a single instruction: pdist(M). it would be > convenient if the same functionwere implemented in Scilab. > JP Grivet > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Pierre-Aim? Agnel Development Team ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.68 http://www.scilab-enterprises.com From akhorshidi at live.com Tue May 27 17:10:05 2014 From: akhorshidi at live.com (A Khorshidi) Date: Tue, 27 May 2014 08:10:05 -0700 (PDT) Subject: [Scilab-users] distance matrix In-Reply-To: <53849BCD.8010309@scilab-enterprises.com> References: <1396616855090-4030250.post@n3.nabble.com> <533ED0E5.4070007@cnrs-orleans.fr> <533ED1BB.5050307@scilab-enterprises.com> <53847BC5.9010208@cnrs-orleans.fr> <53848493.3040709@scilab-enterprises.com> <3B5FFC67498DFF49AE7271A584867D16F32B110E4E@301EX00100.sidel.com> <53848AE6.7050709@cnrs-orleans.fr> <53849AAF.7040903@cnrs-orleans.fr> <53849BCD.8010309@scilab-enterprises.com> Message-ID: <1401203405773-4030605.post@n3.nabble.com> Hi all; @JP Grivet: The following manual can guide you how to write own Scilab function for distance computations. http://docs.scipy.org/doc/scipy-0.13.0/reference/generated/scipy.spatial.distance.pdist.html Moreover, there are two statistics toolboxes which provide what you need. Please see the links below. @Pierre-Aim? Agnel: There are two Scilab function which do the same task as Matlab one. nan_pdist() from NaN toolbox (Please see: https://atoms.scilab.org/toolboxes/nan) scidoe_pdist() from Scidoe toolbox (https://atoms.scilab.org/toolboxes/scidoe) Regards, Mehran _ -- View this message in context: http://mailinglists.scilab.org/Plot-overlays-on-images-tp2617675p4030605.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Tue May 27 17:40:19 2014 From: sgougeon at free.fr (sgougeon at free.fr) Date: Tue, 27 May 2014 17:40:19 +0200 (CEST) Subject: [Scilab-users] function find() In-Reply-To: <53847BC5.9010208@cnrs-orleans.fr> Message-ID: <1614730346.12588424.1401205219601.JavaMail.root@zimbra75-e12.priv.proxad.net> Hello, >// initialisation >diam = 0.2; >nd = 10; >etat = (rand(nd,2) -0.5)*4; >distance = zeros(nd,nd); >//compute distance matrix >for i = 1:(nd-1) > for j = (i+1):nd > distance(i,j) = sqrt((etat(i,1)-etat(j,1))**2+(etat(i,2)-etat(j,2)**2)); > end >end You may do without explicit nested loops: [X,Y] = meshgrid(etat(:,1), etat(:,2)); distance = sqrt((X-X.').^2 + (Y-Y.').^2) Samuel From raghu.char at gmail.com Wed May 28 11:39:46 2014 From: raghu.char at gmail.com (Raghu Char) Date: Wed, 28 May 2014 15:09:46 +0530 Subject: [Scilab-users] share holding Message-ID: cheena, FYI share holding pattern -- Regards raghu -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Share Holdings- Relation.xlsx Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet Size: 14071 bytes Desc: not available URL: From grivet at cnrs-orleans.fr Wed May 28 16:53:46 2014 From: grivet at cnrs-orleans.fr (grivet) Date: Wed, 28 May 2014 16:53:46 +0200 Subject: [Scilab-users] function find() In-Reply-To: <1614730346.12588424.1401205219601.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <1614730346.12588424.1401205219601.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: <5385F87A.3090106@cnrs-orleans.fr> Thank you all for your suggestions concerning pair-wise distances. The motivation behind my question is that I am writing a simplistic molecular dynamics program, where hard disks move freely inside a plane region, except when colliding with boudaries or with other disks. I hoped that my program could be as fast as the beautiful Python program of Jake Vanderplas (http://jakevdp.github.com) but, up to now, the Python code is still significantly faster. JP Grive From sdr at durietz.se Wed May 28 21:32:55 2014 From: sdr at durietz.se (Stefan Du Rietz) Date: Wed, 28 May 2014 21:32:55 +0200 Subject: [Scilab-users] Figure In-Reply-To: <53839BB2.3020005@free.fr> References: <53838A7A.2080405@durietz.se> <53839BB2.3020005@free.fr> Message-ID: <538639E7.7080102@durietz.se> On 2014-05-26 21:53, Samuel Gougeon wrote: > Le 26/05/2014 20:39, Stefan Du Rietz a ?crit : >> Hello, >> I am trying to get my figures from 5.4.1 in 5.5.0. >> >> Why is everything red? (no help found and no answer to an equal >> question on the Internet) > Like here?: > http://bugzilla.scilab.org/attachment.cgi?id=3561 > http://bugzilla.scilab.org/show_bug.cgi?id=12788 > Thank you, Samuel. I have made a comment to your bug report. Another question: Is it possible to get rid of the extra title bar in a figure? It just repeats the text in the main title bar and makes the axes space lower, to no avail whatsoever. Regards Stefan From sterg at teikav.edu.gr Thu May 29 11:25:35 2014 From: sterg at teikav.edu.gr (Stergios Papadimitriou) Date: Thu, 29 May 2014 12:25:35 +0300 Subject: [Scilab-users] SciLab within GroovyLab Message-ID: <5386FD0F.2080600@teikav.edu.gr> Hi all, I currently added support for cooperating with SciLab from the GroovyLab project https://code.google.com/p/jlabgroovy/wiki/SciLabInGroovyLab?ts=1401355143&updated=SciLabInGroovyLab and it seems interested, SciLab build-in operations as svd, are really fast! To anyone interested SciLab, the version of GroovyLab that can cooperate with SciLab can be found in https://sourceforge.net/projects/groovylab/ Looking forward for feedback and improvements hints! ... and: SciLab runs on OpenSuSE 13.1? It runs on OpenSUSE 12.2, but it seems to have a problem in execute time in 13.1 Best Regards Stergios From bmbouter at gmail.com Thu May 29 13:24:57 2014 From: bmbouter at gmail.com (Brian Bouterse) Date: Thu, 29 May 2014 07:24:57 -0400 Subject: [Scilab-users] GROCER VAR-HMM Example Output Different from Chapter 23 In-Reply-To: References: Message-ID: Hi Eric, Thanks again for the response. What you told me to do worked. If I closed Scilab, and rerun the example from my earlier e-mail, I do not see any warnings, which is good. The output I received is not what I expected in several ways, so I'll ask some more questions here. There are a lot of different questions here, but they all relate to the example below, and the use of ms_var and GROCER. Thanks in advance for any insight into the issues I am experiencing. The example: I have a file arhmm_example_280.dat [0] that was generated and loaded from arhmm_example_280.csv [1] using the following commands: impexc2bd('arhmm_example_280.csv', ';', 'arhmm_example_280.dat') load('arhmm_example_280.dat') I then run, what I expect to be a single variable, 2-regime, nb_states=2 switch_var=2 var_opt=3 r=ms_var('cte',3,'ardata',nb_states,switch_var,var_opt,'prt=initial;final','opt_convg=0') I then receive this output: http://ur1.ca/hej98 1) In the "coefficients" section of the output, the output doesn't seem to contain enough numbers to describe the expected number of outputs. The model has 2 regimes, and it is autoregressive with order 3, so I expect there to be 3 coefficients for EACH regime (regime 1 and regime 2). Instead, I see a single coefficient for Regime 1 (0.9313736) and a single coefficient for Regime 2 (8.2685973). Where are the three autoregressive parameters for regime 1 and the other three autoregressive parameters for regime 2? 2) There is a section in the output called "All Regimes" which is in the "Coefficients" section contains 3 coefficients. Do these correspond to the autoregressive aspect of the model [0.2258037, 0.4757391, -0.3161730). I expected to see a section like this for Regime 1, and one for Regime 2, but I did not. I'm not sure how these 3 coefficients for "All Regimes" fit in. The Markov Switching Model switches the autoregressive coefficients with each Regime, so I'm not sure how to interpret coefficients that are for "both regimes". 3) I believe each regime will have its error term estimated, and I do see that in the output. For example under Regime 2, the variance of the error term is 2.3164941. This is listed in the section "Variance-covariance matrix of residuals" which is a subsection under "Regime 2". Am I interpreting the output correctly? Where is the mean value for the regime? 4) My overall goal is to validate that I can hand a list of observations to GROCER+scilab, along with the order of the autoregressive model, and the number of regimes, and have it estimate the Markov hidden state transition probabilities, the estimated regime that is in effect at time t, and coefficients for each regime, and the error term that can be used for prediction of the t+1 observation. I don't know of a "well known" data set that allows for this type of validation, so I wrote a simple AR-HMM generator named koa marhn [2], which outputs AR-HMM data that follows a set of parameters. This is the program that generated the 280 point data set in the arhmm_example_280.csv [1] file. You can see the parameters used to generate this file here: https://github.com/bmbouter/koa_marhn/blob/master/arhmm_example.py A[i][j] is the probability transition from regime i to regime j. C[x][y] is the autoregressive coefficient for regime x used for generation of the t+1 element from the t, t-1, t-2, ..., t-y summation. Each y is a coefficient for regime x. R[q] contains mean and std_deviation values for regime q pi[m] contains the starting state probabilities that the regime is in state m at time t=0 The output from http://ur1.ca/hej98 does not correspond at all with the values of these inputs, which means something unexpected is going on! Do you have insight into why scilab doesn't produce these expected numbers? 5) One possibility is that maybe it is "working", but there isn't enough data for it to estimate the parameters correctly. I had koa marhn [2] output 10,000 observations, but I ran into trouble transforming it from a csv file to a dat file using impexc2bd. My input file is arhmm_example_10000.csv [3]. I tried to convert to .dat using: impexc2bd('arhmm_example_10000.csv', ';', 'arhmm_example_10000.dat') I receive this output, and the .dat file in NOT created !--error 10000 dates are entered neither in chronlogical order nor in reverseerse chronological order at line 87 of function read_dates called by : at line 188 of function impexc2bd called by : arhmm_example_10000.dat' How do you transform a large .csv file to .dat? Is there some problem with the data file, the way I am making it? [0]: https://s3.amazonaws.com/scilab_data_files/arhmm_example_280.dat [1]: https://s3.amazonaws.com/scilab_data_files/arhmm_example_280.csv [2]: https://github.com/bmbouter/koa_marhn [3]: https://s3.amazonaws.com/scilab_data_files/arhmm_example_10000.csv [4]: https://s3.amazonaws.com/scilab_data_files/arhmm_example_1000.csv [5]: https://s3.amazonaws.com/scilab_data_files/arhmm_example_1000.dat This e-mail is way to long, but I wanted to fully recap the issues I've considered as I use ms_var(). Thanks for any help you can provide. You can also find me in the #scilab channel on the OFTC IRC servers. Thanks, Brian On Fri, May 23, 2014 at 3:48 PM, Eric Dubois wrote: > Dear Brian > > 1) For me it works fine; I suspect that you have run ms_var with your data > after having run with the manual example. I expect that if you reopen > Scialb and run your problem, starting from load('arhmm_example.dat'), it > will work. A good advice anyway is to set the bounds before each estimation > or to run: > --> bounds() > if you want to use the greatest available time span with your data > 2) I agree; indeed the example in the manual as well as yours are > univariate, but ms_var also works with multivariate series (I have run some > tests which worked well) > 3) If you want to contribute, do not hesitate to send me code (at > grocer.toolbox at gmail.com or grocer.toolbox at free.fr); add your copyright; > if you can create a help file it would still be better (I have some tools > do help doing that if you want them); and if you can add to the manual, it > would be marvellous! > If you want to imporve the docs you are also welcome; I can sned you the > OpenOffice files you need if you find it suitable > > ?ric. > > > > 2014-05-23 14:13 GMT+02:00 Brian Bouterse : > > Thanks for the reply Eric. It is great to get hints and suggestions from >> the author directly! >> >> I used the commands that you outlined, and they were able to reproduce >> the expected output verbatim, which is great. Thanks for clearing that up >> for me. I've gotten further towards my goal. >> >> I've now got three questions: >> >> 1) I get an unexpected result when I run ms_var() on my own data. I run >> these commands: >> >> load('arhmm_example.dat') >> nb_states=2 >> switch_var=2 // variances are switching >> var_opt=3 // unrestricted var-cov matrix >> >> r=ms_var('cte',3,'ardata',nb_states,switch_var,var_opt,'prt=initial;final','opt_convg=0') >> >> I receive this output: >> >> WARNING: in overlay, series number 2 has been ignored because of a bad >> frequency >> !--error 10000 >> series ends before the end date of the bounds >> at line 39 of function ts2vec0 called by : >> at line 101 of function explone called by : >> at line 253 of function ms_var called by : >> >> r=ms_var('cte',3,'ardata',nb_states,switch_var,var_opt,'prt=initial;final','opt_convg=0') >> >> The arhmm_example.dat file is available here[0], and it was made by >> running.the following command on the original csv[1] file arhmm_example.csv. >> >> impexc2bd('arhmm_example.csv', ';', 'arhmm_example.dat') >> >> I believe I either don't have the dates configured correctly, or it >> requires a specific number of data points to match the frequency value, >> which also may be wrong. Do you have some insight into this error message? >> I've been reading the docs on the ts structure, and I will continue to try >> to solve this roadblock. >> >> >> 2) My goal in doing all this is to analyze Autoregressive Hidden Markov >> Models. As I understand it, the VAR-HMM that ms_var provides is a >> multivariate case of an Autoregressive Hidden Markov Model. The terms >> Markov Switching Model, and Hidden Markov Model refer to the same thing. >> Using a single variable with ms_var() as I show above in the example, will >> simulate an AR-HMM(3). I would like to check if these statements agree with >> your understanding. >> >> >> 3) How could I contribute to the grocer code. At the very least I could >> improve the docs some. >> >> >> [0]: >> https://s3.amazonaws.com/dfsklfdsklfds/fdsjkfsdjkfds/arhmm_example.dat >> [1]: >> https://s3.amazonaws.com/dfsklfdsklfds/fdsjkfsdjkfds/arhmm_example.csv >> >> Thanks, >> Brian >> >> >> On Tue, May 20, 2014 at 3:55 PM, Eric Dubois >> wrote: >> >>> Hello Brian >>> >>> Sorry for this late answer, but I have been quite busy these days. >>> >>> I did not notice the problem with this version of the MS programs. >>> Indeed I have changed the optimization device of all GROCER programs and I >>> have not adapted the defaults for the MS programs. >>> >>> If you run: >>> --> global GROCERDIR; >>> --> load(GROCERDIR+'\data\us_revu.dat') >>> --> bounds('1967m4','2004m2') >>> >>> --> nb_states=2 >>> --> switch_var=2 // variances are switching >>> --> var_opt=3 // unrestricted var-cov matrix >>> >>> --> >>> r=ms_var('cte',3,'100*(log(us_revu)-lagts(2,log(us_revu)))',nb_states,switch_var,var_opt,'prt=initial;final','opt_convg=0') >>> (see chapter 6 of the manual for explanations) >>> >>> Then the results of the ms_var demo is restaured. >>> >>> I will change the default in Grocer next version . >>> >>> Regards. >>> >>> ?ric. >>> >>> >>> 2014-05-19 12:56 GMT+02:00 Brian Bouterse : >>> >>>> Hi Scilab community! >>>> >>>> I'm new to Scilab, and the AR-HMM and VAR-HMM solving capabilities of >>>> GROCER are what interest me. >>>> >>>> I have a question relating to Chapter 23 from the GROCER manual[0]. >>>> This is the univariate MS-AR(3) solved using the function ms_reg_d() on >>>> the us_revu.dat data included with GROCER. I have made no adjustment from >>>> the example statements in Chapter 23. >>>> >>>> The example output is shown on pages 4 and 5 of the Chapter 23 module. >>>> Compare that against the output I receive. >>>> >>>> http://fpaste.org/102978/14004958/ >>>> >>>> Here are my questions: >>>> >>>> 1. The numerical output is completely different. I expected it to be >>>> the same since the data is provided by GROCER, and I've done the example >>>> exactly as shown in Chapter 23. Is there some explanation to why the >>>> solved solution I receive is different than the example output in the >>>> chapter? >>>> >>>> 2. I see output like %i*8.4469016 which seems like an error because %i >>>> looks like a variable that yet needs to be replaced, and then multiplied to >>>> get to its final value. Is this some kind of bug or error? >>>> >>>> Thanks for any help the community can provide. We'll be using this for >>>> a seminar on HMM, AR-HMM, and VAR-HMM at North Carolina State University. >>>> I'm also a developer, so I really appreciate all the effort that has been >>>> put into scilab and GROCER. >>>> >>>> Thanks, >>>> Brian >>>> >>>> >>>> [0]: http://dubois.ensae.net/Grocer_manual_v1.6.zip >>>> >>>> >>>> -- >>>> Brian Bouterse >>>> >>>> _______________________________________________ >>>> 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 >>> >>> >> >> >> -- >> Brian Bouterse >> >> _______________________________________________ >> 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 > > -- Brian Bouterse -------------- next part -------------- An HTML attachment was scrubbed... URL: From lucien.povy at free.fr Thu May 29 18:15:21 2014 From: lucien.povy at free.fr (Lucien Povy) Date: Thu, 29 May 2014 18:15:21 +0200 Subject: [Scilab-users] SciLab on OpenSuSE 13.1 In-Reply-To: <5384729D.3010107@teikav.edu.gr> References: <5384729D.3010107@teikav.edu.gr> Message-ID: <53875D19.2080107@free.fr> Le 27/05/2014 13:10, sterg a ?crit : > Hi all, > > I tried to install the latest SciLab 5.5.0 on OpenSUSE 13.1 Linux, but > here is what I get > when I try to execute the > scilab > script > > Why? > > Best Regards > > Stergios > > Hi mister Stergios No problem to install the binary version of Scilab 5.5.0 on Opensuse 13.1 : you must use Yast2, the repositorie is http://download.opensuse.org/repositories/Education/opensuse_13.1 Best Regards Lucien Povy -------------- next part -------------- An HTML attachment was scrubbed... URL: From grocer.toolbox at gmail.com Thu May 29 19:41:35 2014 From: grocer.toolbox at gmail.com (Eric Dubois) Date: Thu, 29 May 2014 19:41:35 +0200 Subject: [Scilab-users] GROCER VAR-HMM Example Output Different from Chapter 23 In-Reply-To: References: Message-ID: Hello Brian You did not recover the intial parameters because you did not estimate the same model as the one you generated. This is because you used in ms_var the option 'cte' which means that only the constant is allowed to switch: and this is why the AR coeffcients are only given for 'all regimes'. I f you rather use the option 'all', then all parameters are allowed to switch and the result is now consistent with the parameters of the generated model, that is the true values are within the confidence interval of the estimated ones. This is explained in the help command (see help ms_var): may I ask you why you did not infer it from the help files? As for the big file, I suspect it is truncated into Scilab. Can you try with data in column instead of in rows? ?ric. 2014-05-29 13:24 GMT+02:00 Brian Bouterse : > Hi Eric, > > Thanks again for the response. What you told me to do worked. If I closed > Scilab, and rerun the example from my earlier e-mail, I do not see any > warnings, which is good. The output I received is not what I expected in > several ways, so I'll ask some more questions here. There are a lot of > different questions here, but they all relate to the example below, and the > use of ms_var and GROCER. Thanks in advance for any insight into the issues > I am experiencing. > > The example: > > I have a file arhmm_example_280.dat [0] that was generated and loaded > from arhmm_example_280.csv [1] using the following commands: > > impexc2bd('arhmm_example_280.csv', ';', 'arhmm_example_280.dat') > load('arhmm_example_280.dat') > > I then run, what I expect to be a single variable, 2-regime, > > nb_states=2 > switch_var=2 > var_opt=3 > > r=ms_var('cte',3,'ardata',nb_states,switch_var,var_opt,'prt=initial;final','opt_convg=0') > > I then receive this output: http://ur1.ca/hej98 > > 1) In the "coefficients" section of the output, the output doesn't seem to > contain enough numbers to describe the expected number of outputs. The > model has 2 regimes, and it is autoregressive with order 3, so I expect > there to be 3 coefficients for EACH regime (regime 1 and regime 2). > Instead, I see a single coefficient for Regime 1 (0.9313736) and a single > coefficient for Regime 2 (8.2685973). Where are the three autoregressive > parameters for regime 1 and the other three autoregressive parameters for > regime 2? > > 2) There is a section in the output called "All Regimes" which is in the > "Coefficients" section contains 3 coefficients. Do these correspond to the > autoregressive aspect of the model [0.2258037, 0.4757391, -0.3161730). I > expected to see a section like this for Regime 1, and one for Regime 2, but > I did not. I'm not sure how these 3 coefficients for "All Regimes" fit in. > The Markov Switching Model switches the autoregressive coefficients with > each Regime, so I'm not sure how to interpret coefficients that are for > "both regimes". > > 3) I believe each regime will have its error term estimated, and I do see > that in the output. For example under Regime 2, the variance of the error > term is 2.3164941. This is listed in the section "Variance-covariance > matrix of residuals" which is a subsection under "Regime 2". Am I > interpreting the output correctly? Where is the mean value for the regime? > > 4) My overall goal is to validate that I can hand a list of observations > to GROCER+scilab, along with the order of the autoregressive model, and the > number of regimes, and have it estimate the Markov hidden state transition > probabilities, the estimated regime that is in effect at time t, and > coefficients for each regime, and the error term that can be used for > prediction of the t+1 observation. I don't know of a "well known" data set > that allows for this type of validation, so I wrote a simple AR-HMM > generator named koa marhn [2], which outputs AR-HMM data that follows a set > of parameters. This is the program that generated the 280 point data set in > the arhmm_example_280.csv [1] file. You can see the parameters used to > generate this file here: > > https://github.com/bmbouter/koa_marhn/blob/master/arhmm_example.py > > A[i][j] is the probability transition from regime i to regime j. > C[x][y] is the autoregressive coefficient for regime x used for generation > of the t+1 element from the t, t-1, t-2, ..., t-y summation. Each y is a > coefficient for regime x. > R[q] contains mean and std_deviation values for regime q > pi[m] contains the starting state probabilities that the regime is in > state m at time t=0 > > The output from http://ur1.ca/hej98 does not correspond at all with the > values of these inputs, which means something unexpected is going on! Do > you have insight into why scilab doesn't produce these expected numbers? > > 5) One possibility is that maybe it is "working", but there isn't enough > data for it to estimate the parameters correctly. I had koa marhn [2] > output 10,000 observations, but I ran into trouble transforming it from a > csv file to a dat file using impexc2bd. My input file is > arhmm_example_10000.csv [3]. I tried to convert to .dat using: > > impexc2bd('arhmm_example_10000.csv', ';', 'arhmm_example_10000.dat') > > I receive this output, and the .dat file in NOT created > > !--error 10000 > dates are entered neither in chronlogical order nor in reverseerse > chronological order > at line 87 of function read_dates called by : > at line 188 of function impexc2bd called by : > arhmm_example_10000.dat' > > How do you transform a large .csv file to .dat? Is there some problem with > the data file, the way I am making it? > > [0]: https://s3.amazonaws.com/scilab_data_files/arhmm_example_280.dat > [1]: https://s3.amazonaws.com/scilab_data_files/arhmm_example_280.csv > [2]: https://github.com/bmbouter/koa_marhn > [3]: https://s3.amazonaws.com/scilab_data_files/arhmm_example_10000.csv > [4]: https://s3.amazonaws.com/scilab_data_files/arhmm_example_1000.csv > [5]: https://s3.amazonaws.com/scilab_data_files/arhmm_example_1000.dat > > This e-mail is way to long, but I wanted to fully recap the issues I've > considered as I use ms_var(). Thanks for any help you can provide. You can > also find me in the #scilab channel on the OFTC IRC servers. > > Thanks, > Brian > > > > On Fri, May 23, 2014 at 3:48 PM, Eric Dubois > wrote: > >> Dear Brian >> >> 1) For me it works fine; I suspect that you have run ms_var with your >> data after having run with the manual example. I expect that if you reopen >> Scialb and run your problem, starting from load('arhmm_example.dat'), it >> will work. A good advice anyway is to set the bounds before each estimation >> or to run: >> --> bounds() >> if you want to use the greatest available time span with your data >> 2) I agree; indeed the example in the manual as well as yours are >> univariate, but ms_var also works with multivariate series (I have run some >> tests which worked well) >> 3) If you want to contribute, do not hesitate to send me code (at >> grocer.toolbox at gmail.com or grocer.toolbox at free.fr); add your copyright; >> if you can create a help file it would still be better (I have some tools >> do help doing that if you want them); and if you can add to the manual, it >> would be marvellous! >> If you want to imporve the docs you are also welcome; I can sned you the >> OpenOffice files you need if you find it suitable >> >> ?ric. >> >> >> >> 2014-05-23 14:13 GMT+02:00 Brian Bouterse : >> >> Thanks for the reply Eric. It is great to get hints and suggestions from >>> the author directly! >>> >>> I used the commands that you outlined, and they were able to reproduce >>> the expected output verbatim, which is great. Thanks for clearing that up >>> for me. I've gotten further towards my goal. >>> >>> I've now got three questions: >>> >>> 1) I get an unexpected result when I run ms_var() on my own data. I run >>> these commands: >>> >>> load('arhmm_example.dat') >>> nb_states=2 >>> switch_var=2 // variances are switching >>> var_opt=3 // unrestricted var-cov matrix >>> >>> r=ms_var('cte',3,'ardata',nb_states,switch_var,var_opt,'prt=initial;final','opt_convg=0') >>> >>> I receive this output: >>> >>> WARNING: in overlay, series number 2 has been ignored because of a bad >>> frequency >>> !--error 10000 >>> series ends before the end date of the bounds >>> at line 39 of function ts2vec0 called by : >>> at line 101 of function explone called by : >>> at line 253 of function ms_var called by : >>> >>> r=ms_var('cte',3,'ardata',nb_states,switch_var,var_opt,'prt=initial;final','opt_convg=0') >>> >>> The arhmm_example.dat file is available here[0], and it was made by >>> running.the following command on the original csv[1] file arhmm_example.csv. >>> >>> impexc2bd('arhmm_example.csv', ';', 'arhmm_example.dat') >>> >>> I believe I either don't have the dates configured correctly, or it >>> requires a specific number of data points to match the frequency value, >>> which also may be wrong. Do you have some insight into this error message? >>> I've been reading the docs on the ts structure, and I will continue to try >>> to solve this roadblock. >>> >>> >>> 2) My goal in doing all this is to analyze Autoregressive Hidden Markov >>> Models. As I understand it, the VAR-HMM that ms_var provides is a >>> multivariate case of an Autoregressive Hidden Markov Model. The terms >>> Markov Switching Model, and Hidden Markov Model refer to the same thing. >>> Using a single variable with ms_var() as I show above in the example, will >>> simulate an AR-HMM(3). I would like to check if these statements agree with >>> your understanding. >>> >>> >>> 3) How could I contribute to the grocer code. At the very least I could >>> improve the docs some. >>> >>> >>> [0]: >>> https://s3.amazonaws.com/dfsklfdsklfds/fdsjkfsdjkfds/arhmm_example.dat >>> [1]: >>> https://s3.amazonaws.com/dfsklfdsklfds/fdsjkfsdjkfds/arhmm_example.csv >>> >>> Thanks, >>> Brian >>> >>> >>> On Tue, May 20, 2014 at 3:55 PM, Eric Dubois >>> wrote: >>> >>>> Hello Brian >>>> >>>> Sorry for this late answer, but I have been quite busy these days. >>>> >>>> I did not notice the problem with this version of the MS programs. >>>> Indeed I have changed the optimization device of all GROCER programs and I >>>> have not adapted the defaults for the MS programs. >>>> >>>> If you run: >>>> --> global GROCERDIR; >>>> --> load(GROCERDIR+'\data\us_revu.dat') >>>> --> bounds('1967m4','2004m2') >>>> >>>> --> nb_states=2 >>>> --> switch_var=2 // variances are switching >>>> --> var_opt=3 // unrestricted var-cov matrix >>>> >>>> --> >>>> r=ms_var('cte',3,'100*(log(us_revu)-lagts(2,log(us_revu)))',nb_states,switch_var,var_opt,'prt=initial;final','opt_convg=0') >>>> (see chapter 6 of the manual for explanations) >>>> >>>> Then the results of the ms_var demo is restaured. >>>> >>>> I will change the default in Grocer next version . >>>> >>>> Regards. >>>> >>>> ?ric. >>>> >>>> >>>> 2014-05-19 12:56 GMT+02:00 Brian Bouterse : >>>> >>>>> Hi Scilab community! >>>>> >>>>> I'm new to Scilab, and the AR-HMM and VAR-HMM solving capabilities of >>>>> GROCER are what interest me. >>>>> >>>>> I have a question relating to Chapter 23 from the GROCER manual[0]. >>>>> This is the univariate MS-AR(3) solved using the function ms_reg_d() on >>>>> the us_revu.dat data included with GROCER. I have made no adjustment from >>>>> the example statements in Chapter 23. >>>>> >>>>> The example output is shown on pages 4 and 5 of the Chapter 23 module. >>>>> Compare that against the output I receive. >>>>> >>>>> http://fpaste.org/102978/14004958/ >>>>> >>>>> Here are my questions: >>>>> >>>>> 1. The numerical output is completely different. I expected it to be >>>>> the same since the data is provided by GROCER, and I've done the example >>>>> exactly as shown in Chapter 23. Is there some explanation to why the >>>>> solved solution I receive is different than the example output in the >>>>> chapter? >>>>> >>>>> 2. I see output like %i*8.4469016 which seems like an error because >>>>> %i looks like a variable that yet needs to be replaced, and then multiplied >>>>> to get to its final value. Is this some kind of bug or error? >>>>> >>>>> Thanks for any help the community can provide. We'll be using this >>>>> for a seminar on HMM, AR-HMM, and VAR-HMM at North Carolina State >>>>> University. I'm also a developer, so I really appreciate all the effort >>>>> that has been put into scilab and GROCER. >>>>> >>>>> Thanks, >>>>> Brian >>>>> >>>>> >>>>> [0]: http://dubois.ensae.net/Grocer_manual_v1.6.zip >>>>> >>>>> >>>>> -- >>>>> Brian Bouterse >>>>> >>>>> _______________________________________________ >>>>> 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 >>>> >>>> >>> >>> >>> -- >>> Brian Bouterse >>> >>> _______________________________________________ >>> 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 >> >> > > > -- > Brian Bouterse > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From varun.krk at gmail.com Wed May 28 10:35:35 2014 From: varun.krk at gmail.com (Varun Singh) Date: Wed, 28 May 2014 14:05:35 +0530 Subject: [Scilab-users] Image processing for color positioning and distance from a specific point. Message-ID: Hello I am having problems with a program regarding the color detection and location of that particular color in the picture. I browsed through many tutorials but was unable to put it into effect for the desired output of mine. Basically i want to locate the red points in the attached image and also find the distance between the red and green parts of the image using a scilab program. So can u please send me the commands and instructions regarding how i can proceed through this as i m new to scilab, asap and oblige. Regards Varun Singh -------------- next part -------------- An HTML attachment was scrubbed... URL: From sterg at teikav.edu.gr Fri May 30 12:45:35 2014 From: sterg at teikav.edu.gr (Stergios Papadimitriou) Date: Fri, 30 May 2014 13:45:35 +0300 Subject: [Scilab-users] SciLab on OpenSuSE 13.1 In-Reply-To: <53875D19.2080107@free.fr> References: <5384729D.3010107@teikav.edu.gr> <53875D19.2080107@free.fr> Message-ID: <5388614F.2070403@teikav.edu.gr> Thank you Povy! Yes, with Yast2, the binary of SciLab is installed on OpenSuse 13.1. Only, the direct unzipping of the binary does not work, probably something happens with the dynamic link libraries, that should be placed in accessible paths. Stergios ???? 29/5/2014 7:15 ??, ?/? Lucien Povy ??????: > > Le 27/05/2014 13:10, sterg a ?crit : >> Hi all, >> >> I tried to install the latest SciLab 5.5.0 on OpenSUSE 13.1 Linux, >> but here is what I get >> when I try to execute the >> scilab >> script >> >> Why? >> >> Best Regards >> >> Stergios >> >> > Hi mister Stergios > > No problem to install the binary version of Scilab 5.5.0 on Opensuse > 13.1 : you must use Yast2, > the repositorie is > http://download.opensuse.org/repositories/Education/opensuse_13.1 > Best Regards > Lucien Povy > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From signaloc at gmail.com Fri May 30 13:54:32 2014 From: signaloc at gmail.com (Modestas Bunokas) Date: Fri, 30 May 2014 04:54:32 -0700 (PDT) Subject: [Scilab-users] Scilab not calculating all results. Not a bug, mistake made by me. Message-ID: <1401450872180-4030628.post@n3.nabble.com> Hello, can't find what did wrong. /eps0=8.854e-12; mu0=1.256e-6; eps=4*eps0; mu=4*mu0; zb1=sqrt(mu0/eps0); zb2=sqrt(mu/eps); phi=[0:15:90]; theta=asind(((sqrt(eps0*mu0))/sqrt(eps*mu))*sind(phi)); rho=-((zb1*cosd(theta)-zb2*cosd(phi))/(zb1*cosd(theta)+zb2*cosd(phi))); tau=(2*zb2*cosd(phi))/(zb1*cosd(theta)+zb2*cosd(phi));/ theta calculating perfectly, but last two (rho and tau) getting only one result, and even doubt that it's correct. Seems need to add data in other way. Could someone help me to understand my mistake? Thank you -- View this message in context: http://mailinglists.scilab.org/Scilab-not-calculating-all-results-Not-a-bug-mistake-made-by-me-tp4030628.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From paul.bignier at scilab-enterprises.com Fri May 30 13:59:45 2014 From: paul.bignier at scilab-enterprises.com (Paul Bignier) Date: Fri, 30 May 2014 13:59:45 +0200 Subject: [Scilab-users] Scilab not calculating all results. Not a bug, mistake made by me. In-Reply-To: <1401450872180-4030628.post@n3.nabble.com> References: <1401450872180-4030628.post@n3.nabble.com> Message-ID: <538872B1.80102@scilab-enterprises.com> Hi, You need to add a "." to the "/" operator to make the calculation element-wise: eps0=8.854e-12; mu0=1.256e-6; eps=4*eps0; mu=4*mu0; zb1=sqrt(mu0/eps0); zb2=sqrt(mu/eps); phi=[0:15:90]; theta=asind(((sqrt(eps0*mu0))/sqrt(eps*mu))*sind(phi)); rho=-((zb1*cosd(theta)-zb2*cosd(phi))./(zb1*cosd(theta)+zb2*cosd(phi))); tau=(2*zb2*cosd(phi))./(zb1*cosd(theta)+zb2*cosd(phi)); See http://help.scilab.org/docs/5.5.0/en_US/slash.html for more info. Regards, Paul On 05/30/2014 01:54 PM, Modestas Bunokas wrote: > Hello, can't find what did wrong. > > /eps0=8.854e-12; > mu0=1.256e-6; > eps=4*eps0; > mu=4*mu0; > > zb1=sqrt(mu0/eps0); > zb2=sqrt(mu/eps); > phi=[0:15:90]; > > theta=asind(((sqrt(eps0*mu0))/sqrt(eps*mu))*sind(phi)); > rho=-((zb1*cosd(theta)-zb2*cosd(phi))/(zb1*cosd(theta)+zb2*cosd(phi))); > tau=(2*zb2*cosd(phi))/(zb1*cosd(theta)+zb2*cosd(phi));/ > > theta calculating perfectly, but last two (rho and tau) getting only one > result, and even doubt that it's correct. Seems need to add data in other > way. Could someone help me to understand my mistake? > > Thank you > > > > > -- > View this message in context: http://mailinglists.scilab.org/Scilab-not-calculating-all-results-Not-a-bug-mistake-made-by-me-tp4030628.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Paul BIGNIER Development engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.69 http://www.scilab-enterprises.com From signaloc at gmail.com Fri May 30 14:18:48 2014 From: signaloc at gmail.com (Modestas Bunokas) Date: Fri, 30 May 2014 05:18:48 -0700 (PDT) Subject: [Scilab-users] Scilab not calculating all results. Not a bug, mistake made by me. In-Reply-To: <538872B1.80102@scilab-enterprises.com> References: <1401450872180-4030628.post@n3.nabble.com> <538872B1.80102@scilab-enterprises.com> Message-ID: <1401452328356-4030630.post@n3.nabble.com> Thank you very much, I'm still a total noob, and very happy that scilab have mailing list an people like you -- View this message in context: http://mailinglists.scilab.org/Scilab-not-calculating-all-results-Not-a-bug-mistake-made-by-me-tp4030628p4030630.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From vogt at centre-cired.fr Fri May 30 15:20:21 2014 From: vogt at centre-cired.fr (A. Vogt-Schilb) Date: Fri, 30 May 2014 09:20:21 -0400 Subject: [Scilab-users] Scilab not calculating all results. Not a bug, mistake made by me. Message-ID: In tau and rho, Try replacing the matricidal division / with term by term division ./ cosd(phi))./ Sent from my phone Modestas Bunokas wrote: >Hello, can't find what did wrong. > >/eps0=8.854e-12; >mu0=1.256e-6; >eps=4*eps0; >mu=4*mu0; > >zb1=sqrt(mu0/eps0); >zb2=sqrt(mu/eps); >phi=[0:15:90]; > >theta=asind(((sqrt(eps0*mu0))/sqrt(eps*mu))*sind(phi)); >rho=-((zb1*cosd(theta)-zb2*cosd(phi))/(zb1*cosd(theta)+zb2*cosd(phi))); >tau=(2*zb2*cosd(phi))/(zb1*cosd(theta)+zb2*cosd(phi));/ > >theta calculating perfectly, but last two (rho and tau) getting only one >result, and even doubt that it's correct. Seems need to add data in other >way. Could someone help me to understand my mistake? > >Thank you > > > > >-- >View this message in context: http://mailinglists.scilab.org/Scilab-not-calculating-all-results-Not-a-bug-mistake-made-by-me-tp4030628.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 michael at virtualpianist.com Sat May 31 14:07:12 2014 From: michael at virtualpianist.com (mstoth) Date: Sat, 31 May 2014 05:07:12 -0700 (PDT) Subject: [Scilab-users] How to get SIVP working with Scilab on the Mac? Message-ID: <1401538032926-4030634.post@n3.nabble.com> I may have put this on the wrong list originally, perhaps someone here can help? atoms has SIVP on Windows but not on Mac for some reason. Trying to go through the steps to install SIVP is not working for me on the mac. You need opencv to compile SIVP. If you install opencv with macports, you get the following error ilib_compile: An error occurred during the compilation: In file included from camshift.c:20: In file included from ./common.h:45: In file included from /opt/local/include/opencv/cvaux.h:54: /opt/local/include/opencv2/video/background_segm.hpp:47:10: fatal error: 'list' file not found #include ^ What you see above is the result of running exec('builder.sce') in the sivp directory in Scilab. I have searched the web for this problem and found a couple of references but no solution yet. If you don't use macports to install opencv and use cmake, Scilab won't locate it in the default directory which is /usr/local/bin lib, etc. Then you just get a message about how you need to install opencv. If anyone knows how to enjoy the SIVP experience on the Mac, I'd love to know. Many Thanks, Michael -- View this message in context: http://mailinglists.scilab.org/How-to-get-SIVP-working-with-Scilab-on-the-Mac-tp4030634.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From cfuttrup at gmail.com Sat May 31 22:01:01 2014 From: cfuttrup at gmail.com (Claus Futtrup) Date: Sat, 31 May 2014 22:01:01 +0200 Subject: [Scilab-users] Help write simple GUI Message-ID: <538A34FD.1050505@gmail.com> Hi there I hope someone can help me make a simple GUI front end to my script, preferably without using GUI Builder or guimaker, because I think I'll understand better without using additional tools. The GUI - a window containing two variable input: 1. text + input box + text Again the input is a number, typically an integer (as in "system power : 100 Watt"). 100 being the user variable input. 2. text + input box + text A number, typically an intereger (as in "impedance : 8 ohm"). 8 being the user variable input. The script will then based on 100 Watt into 8 ohm calculate the voltage = sqrt(100*8). I will round the number to one decimal, convert it to a string and create an answer, like "Input level : 28.3 Volt". The GUI should contain two buttons, e.g. an OK + a QUIT button. The OK button runs the calculations. The quit button quits the script (may as well quit Scilab). I've studied the GUI controls in Scilab already and I understand the the old way of making a new window is: f = figure(); but it seems there's a new command in Scilab 5.5.0: f = createWindow(); The new method probably has its advantages, but the Scilab manual doesn't really explain... can anybody explain to me? Can you use the same uicontrol commands with both methods? (can I use examples found on the internet using "figure" and just replace figure with createWindow?). It seems to me that the examples in the createWindow gives uicontrol some inputs named "units" - "normalized" - etc. - which are not present when looking at old figure() examples. My next question will be, how do I create a uicontrol which accepts a string input (as I need 2 of those). The uicontrol documentation says the "Edit" style will do that. Funny, but also a bit strange, that you can find all sorts of examples for using uicontrol with checboxes, listboxes, radiobuttons, pushbuttons, tables etc. - but no examples are provided with this most useful editable string input ... (???) ... hereafter I expect to evaluate the two strings (or if they're returned as numbers, that's fine of course, I just don't need the script to crash if something is not right). Then execute my code. Best regards, Claus --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com