From mathieu.dubois at limsi.fr Mon Feb 1 09:05:10 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Mon, 01 Feb 2010 09:05:10 +0100 Subject: Axis ranging from 1 to %inf Message-ID: <4B668B36.6010907@limsi.fr> Hello, I would like to plot the value of a variable for an integer control parameter (x-axis) ranging from 1 to +Infinity. As screens are not infinite I would like to plot for let say [1, 200] and add a point representing the performance for +Infinity. Ideally there would be small symbols to show the discontinuity of the axis and of the curve. Any idea? Thanks in advance, Mathieu From mathieu.dubois at limsi.fr Mon Feb 1 09:12:06 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Mon, 01 Feb 2010 09:12:06 +0100 Subject: [scilab-Users] plotting marks different colors In-Reply-To: <4B619AFA.1080500@unisi.it> References: <4B619AFA.1080500@unisi.it> Message-ID: <4B668CD6.3020806@limsi.fr> Hello Maso, What would you like to do exactly? Do you want to plot the columns/rows of the matrix as independent curves (like plot2d does)? Or do you want to display each element of the matrix as a 2D surface (like Matplot1)? Mathieu From ricci2 at unisi.it Mon Feb 1 12:40:57 2010 From: ricci2 at unisi.it (Maso Ricci) Date: Mon, 01 Feb 2010 12:40:57 +0100 Subject: [scilab-Users] plotting marks different colors In-Reply-To: <4B668CD6.3020806@limsi.fr> References: <4B619AFA.1080500@unisi.it> <4B668CD6.3020806@limsi.fr> Message-ID: <4B66BDC9.1040708@unisi.it> Mathieu, thanks for your reply. I wasn't so clear. I understand. I have a dataset resulting from a cluster analysis procedure. so the resultig matrix is like : X Y Class 0.8 0.1 1 0.1 0.7 2 ... where the X and the Y are the data parameters and the class is the class where the script allocates a datapoint. I plotted the entire matrix extracting one row at time. In this way I have the chance to declare the variable mystyle which controls the mark style. Something like: for i=1:matrixlength x= matrix(1,i) y=matrix(2,i) class=matrix(3,i) mystyle=class plot2d(x , y , style=-mystyle) end Unfortunately the standard styles are quite similar each other so I wonder I could modify the mark (size and color) at each loop thanks /maso Il 01/02/2010 9.12, Mathieu Dubois ha scritto: > Hello Maso, > > What would you like to do exactly? > > Do you want to plot the columns/rows of the matrix as independent curves > (like plot2d does)? > Or do you want to display each element of the matrix as a 2D surface > (like Matplot1)? > > Mathieu > -- ---------------------------------------- Maso RICCI PhD Dipartimento Farmaco Chimico Tecnologico Universit? degli Studi di Siena Via Aldo Moro,2 Siena phone: +390577234367 email: ricci2 at unisi.it ---------------------------------------- From mathieu.dubois at limsi.fr Mon Feb 1 15:02:59 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Mon, 01 Feb 2010 15:02:59 +0100 Subject: [scilab-Users] plotting marks different colors In-Reply-To: <4B66BDC9.1040708@unisi.it> References: <4B619AFA.1080500@unisi.it> <4B668CD6.3020806@limsi.fr> <4B66BDC9.1040708@unisi.it> Message-ID: <4B66DF13.3090805@limsi.fr> Hello Maso, To answer your question I will explain a bit of how Scilab plots objects (at least of how I understand that :). Sorry if you already know that. Each time you call plot2d Scilab create a "Compound" object in your plot (take a look at the Figure Editor : in your graphic window click on "Edit" and then "Figure Editor"). The "Compound" object contains a "Polyline" object which is your point (it can represents a full line). This objects has a lot of properties. To change the properties the style of each point you can use something like: for i=1:matrixlength x=matrix(1,i) y=matrix(2,i) class=matrix(3,i) plot2d(x , y) e=gce(); // Get a handle on the last Compound object point=e.children(1); // Get a handle on the polyline point.mark_mode="on"; // Turn on mark mode (i.e. each point is represented by a small symbol) point.mark_style=i; // Each marker is an integer (see help polyline_properties for a list) end Once you have the handle you can change almost anything you want. You may have problems with the auto scaling of the axes (see attachment for how to set this). One more thing: plot2d may not be the right function for you. There may be a simpler function to draw just a point... Hope that helps, Mathieu Maso Ricci wrote: > Mathieu, > > thanks for your reply. I wasn't so clear. I understand. > > I have a dataset resulting from a cluster analysis procedure. > > so the resultig matrix is like : > > X Y Class > 0.8 0.1 1 > 0.1 0.7 2 > > ... > > where the X and the Y are the data parameters and the class is the > class where the script allocates a datapoint. > > I plotted the entire matrix extracting one row at time. In this way I > have the chance to declare the variable mystyle which controls the > mark style. > Something like: > > for i=1:matrixlength > > x= matrix(1,i) > y=matrix(2,i) > class=matrix(3,i) > > mystyle=class > > plot2d(x , y , style=-mystyle) > > end > > Unfortunately the standard styles are quite similar each other so I > wonder I could modify the mark (size and color) at each loop > > thanks > > /maso > > > > > Il 01/02/2010 9.12, Mathieu Dubois ha scritto: >> Hello Maso, >> >> What would you like to do exactly? >> >> Do you want to plot the columns/rows of the matrix as independent curves >> (like plot2d does)? >> Or do you want to display each element of the matrix as a 2D surface >> (like Matplot1)? >> >> Mathieu >> > -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: test_maso.sce URL: From clement.david at scilab.org Mon Feb 1 16:28:27 2010 From: clement.david at scilab.org (=?ISO-8859-1?Q?Cl=E9ment?= DAVID) Date: Mon, 01 Feb 2010 16:28:27 +0100 Subject: [scilab-Users] Scilab 5.2 + xcos: Bug when dragging / moving parts In-Reply-To: <201001301645.45680.crptdngl71@gmx.net> References: <201001301645.45680.crptdngl71@gmx.net> Message-ID: <1265038107.2469.26.camel@pinarellu.inria.fr> Hi, It's a strange behaviour. Can you post a screencast of it please (use istanbul) ? This behavior is coupled to the jgraphx library. Have you check its version ? Are you using the scilab stock version (from http://www.scilab.org) or a packaged one ? Regards, davidcl From crptdngl71 at gmx.net Mon Feb 1 17:50:42 2010 From: crptdngl71 at gmx.net (Crypto) Date: Mon, 1 Feb 2010 17:50:42 +0100 Subject: [scilab-Users] Scilab 5.2 + xcos: Bug when dragging / moving parts In-Reply-To: <1265038107.2469.26.camel@pinarellu.inria.fr> References: <201001301645.45680.crptdngl71@gmx.net> <1265038107.2469.26.camel@pinarellu.inria.fr> Message-ID: <201002011750.42820.crptdngl71@gmx.net> Cl?ment DAVID wrote on Monday, 01. February 2010: > Hi, > > It's a strange behaviour. Can you post a screencast of it please (use > istanbul) ? Istanbul does not work here properly - I cannot stop recording and not even quit istanbul. It seems to have problems with newer versions of python (v. 2.5) as I am getting a lot of warnings related to that. "DeprecationWarning: Use the new widget gtk.Tooltip self.tooltips = gtk.Tooltips()" repeated several times for different entries. > This behavior is coupled to the jgraphx library. Have you check its > version ? Are you using the scilab stock version (from > http://www.scilab.org) or a packaged one ? > > Regards, > davidcl > I have got a standard prepackaged debian version (deb-package) of scilab 5.2.0. for my sidux linux (which is 99% debian sid). Version of jgraphx is 1.2.0.8-1. Regards, Crypto. From clement.david at scilab.org Mon Feb 1 18:09:51 2010 From: clement.david at scilab.org (=?ISO-8859-1?Q?Cl=E9ment?= DAVID) Date: Mon, 01 Feb 2010 18:09:51 +0100 Subject: [scilab-Users] Scilab 5.2 + xcos: Bug when dragging / moving parts In-Reply-To: <201002011750.42820.crptdngl71@gmx.net> References: <201001301645.45680.crptdngl71@gmx.net> <1265038107.2469.26.camel@pinarellu.inria.fr> <201002011750.42820.crptdngl71@gmx.net> Message-ID: <1265044191.2469.40.camel@pinarellu.inria.fr> In your first post, you have written that it may be common to blocks. Have you check that ? It may happen only with kind of blocks. * Can you try with a SUM_F (icon block), a CONST_m (label block), etc... please ? * When you drag a component, you will notice 2 state : the view is copied from the "Palette browser" first; then the component is loaded on scilab and perform real view layout. Have you notice this ? If yes can tell us on which state the component is no rendered anymore ? -- OFF topic For Istanbul, after launching it. It will appear on the tooltip bar (near the clock). Just click on the icon (a red filled circle) to record an re-click to end the record. You will then be prompted for filename. Your errors are related to a blending-edge Gtk version. -- OFF topic Regards, davidcl From crptdngl71 at gmx.net Mon Feb 1 22:01:32 2010 From: crptdngl71 at gmx.net (Crypto) Date: Mon, 1 Feb 2010 22:01:32 +0100 Subject: [scilab-Users] Scilab 5.2 + xcos: Bug when dragging / moving parts In-Reply-To: <1265044191.2469.40.camel@pinarellu.inria.fr> References: <201001301645.45680.crptdngl71@gmx.net> <201002011750.42820.crptdngl71@gmx.net> <1265044191.2469.40.camel@pinarellu.inria.fr> Message-ID: <201002012201.32853.crptdngl71@gmx.net> Yes it happens indeed with all blocks, be it an icon block or a label block. I have checked that with different blocks, including SUM_F and CONST_m. The very first block, if a new simulation file is opened ("unknown" file), can always be placed on the layout of the new simulation file and it is displayed there, as it should, but the second block cannot - the second block can be dragged to the new simulation file, but it is not displayed (it is there, as I wrote in my first posting, but not displayed. Once the view is resized - zoomed in or out etc. - all blocks are displayed again). When I move/drag around a block that is placed on the "unknown" new simulation file, it disappears when I release the mouse button. This happens even if only one block is on that simulation file. Again, the block is not gone, but the new position of the block is not displayed properly. Instead, it is drawn at its old position. Further to the Istanbul problem: I keep trying to fix it, though at the moment I do not know how. Istanbul runs like You described (places red filled circle in kicker bar), but after hitting the icon with left mouse button it changes shape to grey square and nothing else happens. Regards, Crypto. Cl?ment DAVID wrote on Monday, 01. February 2010: > In your first post, you have written that it may be common to blocks. > Have you check that ? It may happen only with kind of blocks. > > * Can you try with a SUM_F (icon block), a CONST_m (label block), etc... > please ? > > * When you drag a component, you will notice 2 state : the view is > copied from the "Palette browser" first; then the component is loaded on > scilab and perform real view layout. > > Have you notice this ? If yes can tell us on which state the component > is no rendered anymore ? > > > -- OFF topic > For Istanbul, after launching it. It will appear on the tooltip bar > (near the clock). Just click on the icon (a red filled circle) to record > an re-click to end the record. You will then be prompted for filename. > Your errors are related to a blending-edge Gtk version. > -- OFF topic > > Regards, > davidcl > From clement.david at scilab.org Tue Feb 2 11:26:38 2010 From: clement.david at scilab.org (=?ISO-8859-1?Q?Cl=E9ment?= DAVID) Date: Tue, 02 Feb 2010 11:26:38 +0100 Subject: [scilab-Users] Scilab 5.2 + xcos: Bug when dragging / moving parts In-Reply-To: <201002012201.32853.crptdngl71@gmx.net> References: <201001301645.45680.crptdngl71@gmx.net> <201002011750.42820.crptdngl71@gmx.net> <1265044191.2469.40.camel@pinarellu.inria.fr> <201002012201.32853.crptdngl71@gmx.net> Message-ID: <1265106398.2638.6.camel@pinarellu.inria.fr> > Yes it happens indeed with all blocks, be it an icon block or a label block. I > have checked that with different blocks, including SUM_F and CONST_m. > > The very first block, if a new simulation file is opened ("unknown" file), can > always be placed on the layout of the new simulation file and it is displayed > there, as it should, but the second block cannot - the second block can be > dragged to the new simulation file, but it is not displayed (it is there, as I > wrote in my first posting, but not displayed. Once the view is resized - zoomed > in or out etc. - all blocks are displayed again). > > When I move/drag around a block that is placed on the "unknown" new simulation > file, it disappears when I release the mouse button. This happens even if only > one block is on that simulation file. Again, the block is not gone, but the new > position of the block is not displayed properly. Instead, it is drawn at its > old position. I'm able to reproduce the bug on a VM and sidux. I will investigate it. Please can you open a bug [http://bugzilla.scilab.org/] on the Xcos component ? > Further to the Istanbul problem: I keep trying to fix it, though at the moment > I do not know how. Istanbul runs like You described (places red filled circle > in kicker bar), but after hitting the icon with left mouse button it changes > shape to grey square and nothing else happens. > When the icon change, the record start. To end it, reclick on the icon and a UI will pop-up. > Regards, > Crypto. Regards, davidcl From ricci2 at unisi.it Tue Feb 2 12:45:18 2010 From: ricci2 at unisi.it (Maso Ricci) Date: Tue, 02 Feb 2010 12:45:18 +0100 Subject: [scilab-Users] plotting marks different colors In-Reply-To: <4B66DF13.3090805@limsi.fr> References: <4B619AFA.1080500@unisi.it> <4B668CD6.3020806@limsi.fr> <4B66BDC9.1040708@unisi.it> <4B66DF13.3090805@limsi.fr> Message-ID: <4B68104E.1090706@unisi.it> Hello Mathieu, thanks for your hints. Yesterday I hadn't the chance to try them but this morning I added them to my script and they worked fine. Thanks again Maso Il 01/02/2010 15.02, Mathieu Dubois ha scritto: > Hello Maso, > > To answer your question I will explain a bit of how Scilab plots objects > (at least of how I understand that :). Sorry if you already know that. > > Each time you call plot2d Scilab create a "Compound" object in your plot > (take a look at the Figure Editor : in your graphic window click on > "Edit" and then "Figure Editor"). The "Compound" object contains a > "Polyline" object which is your point (it can represents a full line). > This objects has a lot of properties. > > To change the properties the style of each point you can use something > like: > for i=1:matrixlength > > x=matrix(1,i) > y=matrix(2,i) > class=matrix(3,i) > plot2d(x , y) > > e=gce(); // Get a handle on the last Compound object > point=e.children(1); // Get a handle on the polyline > point.mark_mode="on"; // Turn on mark mode (i.e. each point is > represented by a small symbol) > point.mark_style=i; // Each marker is an integer (see help > polyline_properties for a list) > > end > > Once you have the handle you can change almost anything you want. > You may have problems with the auto scaling of the axes (see attachment > for how to set this). > > One more thing: plot2d may not be the right function for you. There may > be a simpler function to draw just a point... > > Hope that helps, > Mathieu > > Maso Ricci wrote: >> Mathieu, >> >> thanks for your reply. I wasn't so clear. I understand. >> >> I have a dataset resulting from a cluster analysis procedure. >> >> so the resultig matrix is like : >> >> X Y Class >> 0.8 0.1 1 >> 0.1 0.7 2 >> >> ... >> >> where the X and the Y are the data parameters and the class is the >> class where the script allocates a datapoint. >> >> I plotted the entire matrix extracting one row at time. In this way I >> have the chance to declare the variable mystyle which controls the >> mark style. >> Something like: >> >> for i=1:matrixlength >> >> x= matrix(1,i) >> y=matrix(2,i) >> class=matrix(3,i) >> >> mystyle=class >> >> plot2d(x , y , style=-mystyle) >> >> end >> >> Unfortunately the standard styles are quite similar each other so I >> wonder I could modify the mark (size and color) at each loop >> >> thanks >> >> /maso >> >> >> >> >> Il 01/02/2010 9.12, Mathieu Dubois ha scritto: >>> Hello Maso, >>> >>> What would you like to do exactly? >>> >>> Do you want to plot the columns/rows of the matrix as independent curves >>> (like plot2d does)? >>> Or do you want to display each element of the matrix as a 2D surface >>> (like Matplot1)? >>> >>> Mathieu >>> >> > -- ---------------------------------------- Maso RICCI PhD Dipartimento Farmaco Chimico Tecnologico Universit? degli Studi di Siena Via Aldo Moro,2 Siena phone: +390577234367 email: ricci2 at unisi.it ---------------------------------------- From clement.david at scilab.org Tue Feb 2 16:39:27 2010 From: clement.david at scilab.org (=?ISO-8859-1?Q?Cl=E9ment?= DAVID) Date: Tue, 02 Feb 2010 16:39:27 +0100 Subject: [scilab-Users] Scilab 5.2 + xcos: Bug when dragging / moving parts In-Reply-To: <1265106398.2638.6.camel@pinarellu.inria.fr> References: <201001301645.45680.crptdngl71@gmx.net> <201002011750.42820.crptdngl71@gmx.net> <1265044191.2469.40.camel@pinarellu.inria.fr> <201002012201.32853.crptdngl71@gmx.net> <1265106398.2638.6.camel@pinarellu.inria.fr> Message-ID: <1265125167.2545.3.camel@pinarellu.inria.fr> After investigation, the scilab binary works well on sidux linux. Use the 5.2.0 stock version from [http://www.scilab.org/download/index_download.php?page=release#linux] and report a bug on the scilab package for your distribution. Regards, davidcl From sylvestre.ledru at scilab.org Tue Feb 2 11:47:32 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 02 Feb 2010 11:47:32 +0100 Subject: [scilab-Users] Probleme SCILAB sous OS X In-Reply-To: References: Message-ID: <1265107652.3990.24410.camel@zlarin> Hello Fabien, Are you sure you downloaded version 5.2.0 ? If it is the case, could you try to start Scilab from the Terminal ? $ open scilab-5.2.0 And send the error if any. Thanks, Sylvestre Le vendredi 29 janvier 2010 ? 23:51 +0100, Fabien Pradels a ?crit : > Bonjour, > > > J'ai telecharg? SciLab sur votre site internet. Je l'ai install? sans > probl?me. Mais lorsque je tente de lancer l'application, > elle appara?t dans le dock pendant 5 secondes puis dispara?t et rien > d'autre ne se passe. > Savez vous d'ou peut venir ce probl?me? > > > Mac OS X Version 10.5.8 > > > Cordialement > > -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From sylvestre.ledru at scilab.org Tue Feb 2 20:09:46 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 02 Feb 2010 20:09:46 +0100 Subject: [scilab-Users] Probleme SCILAB sous OS X In-Reply-To: <4ac25a721002021103w2a628169qc99046b0a83df7aa@mail.gmail.com> References: <1265107652.3990.24410.camel@zlarin> <4ac25a721002021103w2a628169qc99046b0a83df7aa@mail.gmail.com> Message-ID: <1265137786.3990.24691.camel@zlarin> Hmm, it should be supported. Can you tell me what was the error message ? Sylvestre PS: Next time, could you reply on the mailing list ? It might help other users ;) Le mardi 02 f?vrier 2010 ? 20:03 +0100, Fabien a ?crit : > Sylvestre, > > > Thank you very much for your email. > Actually, I managed to launch the application by changing Java > parameters (apparently Java v6 is not supported by Scilab v5.2.0). > > > Fabien > > Le 2 f?vrier 2010 11:47, Sylvestre Ledru > a ?crit : > Hello Fabien, > > Are you sure you downloaded version 5.2.0 ? > > If it is the case, could you try to start Scilab from the > Terminal ? > $ open scilab-5.2.0 > And send the error if any. > > Thanks, > Sylvestre > > > Le vendredi 29 janvier 2010 ? 23:51 +0100, Fabien Pradels a > ?crit : > > Bonjour, > > > > > > J'ai telecharg? SciLab sur votre site internet. Je l'ai > install? sans > > probl?me. Mais lorsque je tente de lancer l'application, > > elle appara?t dans le dock pendant 5 secondes puis dispara?t > et rien > > d'autre ne se passe. > > Savez vous d'ou peut venir ce probl?me? > > > > > > Mac OS X Version 10.5.8 > > > > > > Cordialement > > > > > -- > ------------------------- > Sylvestre Ledru > ------------------------- > The Scilab Consortium > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay Cedex > France > > > -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From ifriky at gmail.com Wed Feb 3 10:02:22 2010 From: ifriky at gmail.com (Tadadjeu Sokeng Ifriky) Date: Wed, 3 Feb 2010 11:02:22 +0200 Subject: About clustering Message-ID: Greetings. I am to build a cluster to do a monte carlo simulation. The code will be in scilab. what are the hardware requirements for such a cluster? Do each server require a hard drive as in most MATLAB clusters? Thanks. Regards I T S -------------- next part -------------- An HTML attachment was scrubbed... URL: From crptdngl71 at gmx.net Wed Feb 3 20:53:37 2010 From: crptdngl71 at gmx.net (Crypto) Date: Wed, 3 Feb 2010 20:53:37 +0100 Subject: [scilab-Users] Scilab 5.2 + xcos: Bug when dragging / moving parts In-Reply-To: <1265125167.2545.3.camel@pinarellu.inria.fr> References: <201001301645.45680.crptdngl71@gmx.net> <1265106398.2638.6.camel@pinarellu.inria.fr> <1265125167.2545.3.camel@pinarellu.inria.fr> Message-ID: <201002032053.37453.crptdngl71@gmx.net> Cl?ment DAVID wrote on Tuesday, 02. February 2010: > After investigation, the scilab binary works well on sidux linux. Use > the 5.2.0 stock version from > [http://www.scilab.org/download/index_download.php?page=release#linux] > and report a bug on the scilab package for your distribution. > > Regards, > davidcl > Thankyou for such a quick helping response - this is what I love about open source software. I have downloaded the 64bit binary archive of Scilab. And now xcos works - amazing. I'll do a bug report for the deb package version. Thanks again and kind regards, Crypto. From michael.baudin at scilab.org Wed Feb 3 21:16:31 2010 From: michael.baudin at scilab.org (michael.baudin at scilab.org) Date: Wed, 03 Feb 2010 21:16:31 +0100 Subject: [scilab-Users] About clustering In-Reply-To: References: Message-ID: <16a5a34e541537bf905de146ff100395@localhost> Hi, Quasi Monte-Carlo based on low discrepancy sequences (Halton, Sobol, Faure, Niederreiter, reverse Halton, etc...) can save a significant amount of simulations. If you want to try them in Scilab, please contact me. Best regards, Micha?l On Wed, 3 Feb 2010 11:02:22 +0200, Tadadjeu Sokeng Ifriky wrote: > Greetings. > I am to build a cluster to do a monte carlo simulation. > The code will be in scilab. > what are the hardware requirements for such a cluster? > Do each server require a hard drive as in most MATLAB clusters? > Thanks. > Regards > I T S From sylvestre.ledru at scilab.org Wed Feb 3 23:23:35 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 03 Feb 2010 23:23:35 +0100 Subject: [scilab-Users] Scilab 5.2 + xcos: Bug when dragging / moving parts In-Reply-To: <201002032053.37453.crptdngl71@gmx.net> References: <201001301645.45680.crptdngl71@gmx.net> <1265106398.2638.6.camel@pinarellu.inria.fr> <1265125167.2545.3.camel@pinarellu.inria.fr> <201002032053.37453.crptdngl71@gmx.net> Message-ID: <1265235815.31574.4406.camel@zlarin> Le mercredi 03 f?vrier 2010 ? 20:53 +0100, Crypto a ?crit : > Cl?ment DAVID wrote on Tuesday, 02. February 2010: > > > After investigation, the scilab binary works well on sidux linux. Use > > the 5.2.0 stock version from > > [http://www.scilab.org/download/index_download.php?page=release#linux] > > and report a bug on the scilab package for your distribution. > > > > Regards, > > davidcl > > > > Thankyou for such a quick helping response - this is what I love about open > source software. > > I have downloaded the 64bit binary archive of Scilab. And now xcos works - > amazing. I'll do a bug report for the deb package version. Don't bother. David fixed the issue for me in the Debian package. I fix an other bug and I upload it into the archive. Sylvestre From mathieu.dubois at limsi.fr Thu Feb 4 08:57:25 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Thu, 04 Feb 2010 08:57:25 +0100 Subject: [scilab-Users] About clustering In-Reply-To: References: Message-ID: <4B6A7DE5.6040100@limsi.fr> Tadadjeu Sokeng Ifriky wrote: > Greetings. > I am to build a cluster to do a monte carlo simulation. > The code will be in scilab. > what are the hardware requirements for such a cluster? > Do each server require a hard drive as in most MATLAB clusters? > Thanks. > Regards > I T S Hello, I don't know if it is the place to talk about that but you should take a look at ROCKS (http://www.rocksclusters.org/wordpress/) or OSCAR (http://svn.oscar.openclustergroup.org/trac/oscar). Those are a set of tools on top of a standard linux distribution (CentOS for ROCKS, RedHat or several others for OSCAR) to ease cluster installation & management (adding users, adding software, adding nodes, etc...). Usually they require a hard drive on each node. OSCAR seems a bit more flexible but the new version is not stable enough. ROCKS works fine (I use it but I have never tried Scilab). Scialb has some PVM facilities built-in. I know that OSCAR sets up a PVM server on the cluster. For the hardware side I think that any reasonably modern computer can run Scilab fast enough... Hope that helps, Mathieu From mathieu.dubois at limsi.fr Thu Feb 4 10:06:14 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Thu, 04 Feb 2010 10:06:14 +0100 Subject: [scilab-Users] Axis ranging from 1 to %inf In-Reply-To: <4B668B36.6010907@limsi.fr> References: <4B668B36.6010907@limsi.fr> Message-ID: <4B6A8E06.3000104@limsi.fr> Hello, In case some people would like to do the same I post here my own solution. The basic idea is to plot the data for +Infinity at some value (220 in my case) and then change the label. In Addition I draw a small rectangle to break the curves. PLOT_AXIS_TICKS=[0 50 100 150 200 220]; PLOT_AXIS_LABELS=['0' '50' '100' '150' '200' string(%inf)]; plot2d(x_data, y_data); a=gca(); a.x_ticks=tlist('ticks', PLOT_AXIS_TICKS, PLOT_AXIS_LABELS); xrects([210 1.0 2.0 0.35]', 0); // Break the curves e=gce(); e.children.fill_mode="on"; The Scilab 5.2 latex feature could also help (to display a nice +Infinity). Nevertheless if I use it on the x axis I have to use it on the y axis (otherwise the fonts are different). Maybe there could be a simple way to render all the text in a plot with JLatexMath... Mathieu From wp at dan-cole.com Fri Feb 5 02:43:30 2010 From: wp at dan-cole.com (Dan Cole) Date: Thu, 4 Feb 2010 19:43:30 -0600 Subject: load() error 246 and lincos() error 10000 Message-ID: <8443cbbb1002041743n1aa9beb4v9ae61f5c342af0ff@mail.gmail.com> I'm using Scilab 5.2.0 under Fedora 12 Linux. When I do: load('test.xcos');, I get error 246: Function not defined for given argument type. When I do the command again however, I get the warning: file 'text.xcos' already opened in Scilab, along with the previous error, 246. When I try to use the function lincos() on this file, I get error 10000: Can't convert old diagram (problem in version) at line 69 of function lincos. However, the diagram was created in xcos from Scilab 5.2.0, not in an older version. How can I over come these problems? I wouldn't think I'd be the first to encounter these problems, but I haven't been able to find anything online relating to this. If this is not a problem with the software, can you give me a test case with instruction on how to properly create a diagram in xocs, then load and run it in Scilab. I've gotten this same concept to work in Scilab 4, however I would like to start doing this in Scilab 5. Thanks, Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From eduardo at softwork.co.il Fri Feb 5 09:55:51 2010 From: eduardo at softwork.co.il (Eduardo Tarasiuk) Date: Fri, 05 Feb 2010 10:55:51 +0200 Subject: Problems in Matlab to Scilab conversion Message-ID: <8396f638f4601e44ada5ed91b257eec2@srv1.softwork.co.il> I am facing problems in the conversion of the most trivial Matlab Problem to Scilab in version 5.2. Version 5.1 works OK. I did not check a previous to 5.1 version. The problem occurs in both interactive and mfile2sci call. My System Environment is a clean (Op Sys +Scilab 5.2) Windows XP Service Pack 3 system. The problem can be replicated on every XP machine (I did not check on Linux), even on a clean pristine XP installation. Changing the TEMP directory, or working as Local Administrator has no any effect. The directory SCI_TMP_1824 (see above) is created, and inside: an empty resumelogfile.dat file a logfile and an empty Modelica directory. It seems that it is a bug. Was someone facing the same problem ? Here the error message: Startup execution: loading initial environment ****** Beginning of mfile2sci() session ****** File to convert: D:/exe.m Result file path: D:/Program Files/scilab-5.2.0/ Recursive mode: OFF Only double values used in M-file: NO Verbose mode: 3 Generate formated code: NO M-file reading... M-file reading: Done Syntax modification... Syntax modification: Done Macro to tree conversion... Conversion of M-tree... Conversion of M-tree: Done !--error 240 File "D:\DOCUME~1\taras\LOCALS~1\Temp\SCI_TMP_1824_\resumelogfile.dat" already exists or directory write access denied. at line 238 of function mfile2sci called by : at line 142 of function cb_m2sci_gui called by : dgcbo = gcbo; end;gcbo = getcallbackobject(13);cb_m2sci_gui;if exists("%oldgcbo") then gcbo = while executing a callback Thanks for any reply Eduardo -------------- next part -------------- An HTML attachment was scrubbed... URL: From allan.cornet at scilab.org Fri Feb 5 10:21:49 2010 From: allan.cornet at scilab.org (Allan CORNET) Date: Fri, 5 Feb 2010 10:21:49 +0100 Subject: [scilab-Users] Problems in Matlab to Scilab conversion In-Reply-To: <8396f638f4601e44ada5ed91b257eec2@srv1.softwork.co.il> References: <8396f638f4601e44ada5ed91b257eec2@srv1.softwork.co.il> Message-ID: <001801caa644$a525b820$ef712860$@cornet@scilab.org> Hi, See : http://bugzilla.scilab.org/show_bug.cgi?id=6399 Fixed in current nightly build: http://www.scilab.org/download/index_download.php?page=nightly_builds_5.2 Best Regards Allan CORNET -- Allan CORNET ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France De : Eduardo Tarasiuk [mailto:eduardo at softwork.co.il] Envoy? : vendredi 5 f?vrier 2010 09:56 ? : users at lists.scilab.org Objet : [scilab-Users] Problems in Matlab to Scilab conversion I am facing problems in the conversion of the most trivial Matlab Problem to Scilab in version 5.2. Version 5.1 works OK. I did not check a previous to 5.1 version. The problem occurs in both interactive and mfile2sci call. My System Environment is a clean (Op Sys +Scilab 5.2) Windows XP Service Pack 3 system. The problem can be replicated on every XP machine (I did not check on Linux), even on a clean pristine XP installation. Changing the TEMP directory, or working as Local Administrator has no any effect. The directory SCI_TMP_1824 (see above) is created, and inside: an empty resumelogfile.dat file a logfile and an empty Modelica directory. It seems that it is a bug. Was someone facing the same problem ? Here the error message: Startup execution: loading initial environment ****** Beginning of mfile2sci() session ****** File to convert: D:/exe.m Result file path: D:/Program Files/scilab-5.2.0/ Recursive mode: OFF Only double values used in M-file: NO Verbose mode: 3 Generate formated code: NO M-file reading... M-file reading: Done Syntax modification... Syntax modification: Done Macro to tree conversion... Conversion of M-tree... Conversion of M-tree: Done !--error 240 File "D:\DOCUME~1\taras\LOCALS~1\Temp\SCI_TMP_1824_\resumelogfile.dat" already exists or directory write access denied. at line 238 of function mfile2sci called by : at line 142 of function cb_m2sci_gui called by : dgcbo = gcbo; end;gcbo = getcallbackobject(13);cb_m2sci_gui;if exists("%oldgcbo") then gcbo = while executing a callback Thanks for any reply Eduardo -------------- next part -------------- An HTML attachment was scrubbed... URL: From eduardo at softwork.co.il Fri Feb 5 10:26:03 2010 From: eduardo at softwork.co.il (Eduardo Tarasiuk) Date: Fri, 05 Feb 2010 11:26:03 +0200 Subject: [scilab-Users] Problems in Matlab to Scilab conversion In-Reply-To: <001801caa644$a525b820$ef712860$%cornet@scilab.org> Message-ID: <8f888fcf3509f8488fd7928eb7955788@srv1.softwork.co.il> Thanks very much for your extraordinary quick reply !! Eduardo From: Allan CORNET [mailto:allan.cornet at scilab.org] Sent: ? 05 ?????? 2010 11:22 To: users at lists.scilab.org Subject: RE: [scilab-Users] Problems in Matlab to Scilab conversion Hi, See : http://bugzilla.scilab.org/show_bug.cgi?id=6399 Fixed in current nightly build: http://www.scilab.org/download/index_download.php?page=nightly_builds_5. 2 Best Regards Allan CORNET -- Allan CORNET ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France De : Eduardo Tarasiuk [mailto:eduardo at softwork.co.il] Envoy? : vendredi 5 f?vrier 2010 09:56 ? : users at lists.scilab.org Objet : [scilab-Users] Problems in Matlab to Scilab conversion I am facing problems in the conversion of the most trivial Matlab Problem to Scilab in version 5.2. Version 5.1 works OK. I did not check a previous to 5.1 version. The problem occurs in both interactive and mfile2sci call. My System Environment is a clean (Op Sys +Scilab 5.2) Windows XP Service Pack 3 system. The problem can be replicated on every XP machine (I did not check on Linux), even on a clean pristine XP installation. Changing the TEMP directory, or working as Local Administrator has no any effect. The directory SCI_TMP_1824 (see above) is created, and inside: an empty resumelogfile.dat file a logfile and an empty Modelica directory. It seems that it is a bug. Was someone facing the same problem ? Here the error message: Startup execution: loading initial environment ****** Beginning of mfile2sci() session ****** File to convert: D:/exe.m Result file path: D:/Program Files/scilab-5.2.0/ Recursive mode: OFF Only double values used in M-file: NO Verbose mode: 3 Generate formated code: NO M-file reading... M-file reading: Done Syntax modification... Syntax modification: Done Macro to tree conversion... Conversion of M-tree... Conversion of M-tree: Done !--error 240 File "D:\DOCUME~1\taras\LOCALS~1\Temp\SCI_TMP_1824_\resumelogfile.dat" already exists or directory write access denied. at line 238 of function mfile2sci called by : at line 142 of function cb_m2sci_gui called by : dgcbo = gcbo; end;gcbo = getcallbackobject(13);cb_m2sci_gui;if exists("%oldgcbo") then gcbo = while executing a callback Thanks for any reply Eduardo -------------- next part -------------- An HTML attachment was scrubbed... URL: From clement.david at scilab.org Fri Feb 5 11:07:36 2010 From: clement.david at scilab.org (=?ISO-8859-1?Q?Cl=E9ment?= DAVID) Date: Fri, 05 Feb 2010 11:07:36 +0100 Subject: [scilab-Users] load() error 246 and lincos() error 10000 In-Reply-To: <8443cbbb1002041743n1aa9beb4v9ae61f5c342af0ff@mail.gmail.com> References: <8443cbbb1002041743n1aa9beb4v9ae61f5c342af0ff@mail.gmail.com> Message-ID: <1265364456.2553.33.camel@pinarellu.inria.fr> Hi, In Xcos, we have changed the diagram format thus it's not a scilab structure anymore (it's an xml file). If you want to use the lincos function please first load the Xcos diagram file with the right function and then apply lincos(...) on the scs_m structure. For example to load the Controller demo : // load the scs_m object importXcosDiagram(SCI + "/modules/xcos/demos/Controller.xcos") // use it xcos_compile -- davidcl Le jeudi 04 f?vrier 2010 ? 19:43 -0600, Dan Cole a ?crit : > I'm using Scilab 5.2.0 under Fedora 12 Linux. > > When I do: load('test.xcos');, I get error 246: Function not defined > for given argument type. > When I do the command again however, I get the warning: file > 'text.xcos' already opened in Scilab, along with the previous error, > 246. > > When I try to use the function lincos() on this file, I get error > 10000: Can't convert old diagram (problem in version) at line 69 of > function lincos. However, the diagram was created in xcos from Scilab > 5.2.0, not in an older version. > > How can I over come these problems? I wouldn't think I'd be the first > to encounter these problems, but I haven't been able to find anything > online relating to this. > > If this is not a problem with the software, can you give me a test > case with instruction on how to properly create a diagram in xocs, > then load and run it in Scilab. I've gotten this same concept to work > in Scilab 4, however I would like to start doing this in Scilab 5. > > Thanks, > Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From pierre.marechal at scilab.org Fri Feb 5 17:29:56 2010 From: pierre.marechal at scilab.org (Pierre MARECHAL) Date: Fri, 05 Feb 2010 17:29:56 +0100 Subject: [scilab-Users] How to manage Scilab external modules easily In-Reply-To: <8A464598AD25E74587F3692211174FD6047B020ED9@mucse404.eu.infineon.com> References: <4B56E575.7020503@scilab.org> <8A464598AD25E74587F3692211174FD6047B020ED9@mucse404.eu.infineon.com> Message-ID: <4B6C4784.3080705@scilab.org> Hi Martin, Le 27/01/2010 16:08, Martin.Blasczyk at lantiq.com a ?crit : > Hello, > > Great new feature, thanks! > > For Scilab-Clients connected to a local network without internet access, is it possible to setup a local ATOMS-server for supplying them with additional modules? Yes. If internet (http://atoms.scilab.org) is unreachable, two things are possible: - Add a local repository : --> atomsRepositoryAdd('file:///home/bob/tmp/scene1.test.atoms.scilab.org') --> atomsRepositoryAdd('file:///E:\scene1.test.atoms.scilab.org'); - Install a local package --> atomsInstall('/home/bob/mymodule.bin.tar.gz'); --> atomsInstall('E:\mymodule.bin.tar.gz'); This only works with the current nightly builds : - http://www.scilab.org/download/index_download.php?page=nightly_builds_5.2 - http://www.scilab.org/download/index_download.php?page=nightly_builds > Is there a description available for setting up such a server? The beginning of documentation is available here : http://wiki.scilab.org/ATOMS/localrepository This documentation is a rough draft at the moment. It will be filled-out shortly > Best Regards, > Martin Blasczyk > Regards, Pierre -- ============================================== Pierre MARECHAL Ing?nieur Support et D?veloppements ------ Consortium Scilab Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex ------ T?l : +33.1.39.63.56.81 ============================================== From stephane.mottelet at utc.fr Fri Feb 5 17:32:28 2010 From: stephane.mottelet at utc.fr (=?UTF-8?B?U3TCjsOpcGhhbmUgTW90dGVsZXQ=?=) Date: Fri, 05 Feb 2010 17:32:28 +0100 Subject: [scilab-Users] How to manage Scilab external modules easily In-Reply-To: <4B6C4784.3080705@scilab.org> References: <4B56E575.7020503@scilab.org> <8A464598AD25E74587F3692211174FD6047B020ED9@mucse404.eu.infineon.com> <4B6C4784.3080705@scilab.org> Message-ID: <4B6C481C.1060209@utc.fr> Thanks Pierre, it answers to my request for the Plotlib ! S. Pierre MARECHAL a ?crit : > Hi Martin, > > Le 27/01/2010 16:08, Martin.Blasczyk at lantiq.com a ?crit : >> Hello, >> >> Great new feature, thanks! >> >> For Scilab-Clients connected to a local network without internet >> access, is it possible to setup a local ATOMS-server for supplying >> them with additional modules? > Yes. If internet (http://atoms.scilab.org) is unreachable, two things > are possible: > > - Add a local repository : > --> > atomsRepositoryAdd('file:///home/bob/tmp/scene1.test.atoms.scilab.org') > --> atomsRepositoryAdd('file:///E:\scene1.test.atoms.scilab.org'); > > - Install a local package > --> atomsInstall('/home/bob/mymodule.bin.tar.gz'); > --> atomsInstall('E:\mymodule.bin.tar.gz'); > > This only works with the current nightly builds : > > - > http://www.scilab.org/download/index_download.php?page=nightly_builds_5.2 > - http://www.scilab.org/download/index_download.php?page=nightly_builds >> Is there a description available for setting up such a server? > The beginning of documentation is available here : > http://wiki.scilab.org/ATOMS/localrepository > > This documentation is a rough draft at the moment. It will be > filled-out shortly > >> Best Regards, >> Martin Blasczyk >> > > Regards, > > Pierre > From Donald.Kozicki at xerox.com Fri Feb 5 18:20:22 2010 From: Donald.Kozicki at xerox.com (Kozicki, Donald) Date: Fri, 5 Feb 2010 09:20:22 -0800 Subject: FW: Are scicos-hdl palettes available for scilab-5.2.0? Message-ID: <08A89BB2FF341449951BA3D3C1E1E0900A1DD620@USA7061MS03.na.xerox.net> > ______________________________________________ > From: Kozicki, Donald > Sent: Thursday, February 04, 2010 6:19 PM > To: 'user at lists.scilab.org' > Subject: Are scicos-hdl palettes available for scilab-5.2.0? > > Hi, > > I installed scicos-hdl in scilab-5.1.1 and noticed the five HDL > palettes. I installed scicos-hdl in scilab-5.2.0 but I did find the > HDL palettes. Are scicos-hdl palettes available for scilab-5.2.0? > > Thanks, > > Don > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sbihorel at gmail.com Sun Feb 7 00:30:57 2010 From: sbihorel at gmail.com (=?ISO-8859-1?Q?S=E9bastien_Bihorel?=) Date: Sat, 6 Feb 2010 18:30:57 -0500 Subject: Looking for a function... Message-ID: Hello, I was wondering if there is a function in Scilab that allows to display lists in a compact way rather than a (sometime endless) listing. I did not see any link to such function in 'help list'. For those of you who are familiar in the R language, I am looking for something like the 'str' function, as exemplified below: > mylist<-list(a=list(abc=1:10,xyz=letters[1:15]),elem=matrix(1:10,ncol=2)) > mylist $a $a$abc [1] 1 2 3 4 5 6 7 8 9 10 $a$xyz [1] "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" "l" "m" "n" "o" $elem [,1] [,2] [1,] 1 6 [2,] 2 7 [3,] 3 8 [4,] 4 9 [5,] 5 10 > str(mylist) List of 2 $ a :List of 2 ..$ abc: int [1:10] 1 2 3 4 5 6 7 8 9 10 ..$ xyz: chr [1:15] "a" "b" "c" "d" ... $ elem: int [1:5, 1:2] 1 2 3 4 5 6 7 8 9 10 Thanks Sebastien -------------- next part -------------- An HTML attachment was scrubbed... URL: From clement.david at scilab.org Mon Feb 8 09:21:16 2010 From: clement.david at scilab.org (=?ISO-8859-1?Q?Cl=E9ment?= DAVID) Date: Mon, 08 Feb 2010 09:21:16 +0100 Subject: [scilab-Users] FW: Are scicos-hdl palettes available for scilab-5.2.0? In-Reply-To: <08A89BB2FF341449951BA3D3C1E1E0900A1DD620@USA7061MS03.na.xerox.net> References: <08A89BB2FF341449951BA3D3C1E1E0900A1DD620@USA7061MS03.na.xerox.net> Message-ID: <1265617276.2475.12.camel@pinarellu.inria.fr> Hi, The scicos-hdl package has not already been packaged with the new atoms packaging system. Thus it may not automatically work with Xcos. Therefore you can manually add the scicos-hdl specific palettes on the Xcos palette manager by using the 'Add palette' button and select the scicos-hdl palette. Please contact the scicos-hdl maintainers for more informations. > > > ______________________________________________ > From: Kozicki, Donald > Sent: Thursday, February 04, 2010 6:19 PM > To: 'user at lists.scilab.org' > Subject: Are scicos-hdl palettes available for scilab-5.2.0? > > Hi, > > I installed scicos-hdl in scilab-5.1.1 and noticed the five HDL > palettes. I installed scicos-hdl in scilab-5.2.0 but I did find the > HDL palettes. Are scicos-hdl palettes available for scilab-5.2.0? > > Thanks, > > Don -- Cl?ment DAVID Software Development Engineer The Scilab Consortium From pomchip at free.fr Mon Feb 8 19:06:54 2010 From: pomchip at free.fr (=?ISO-8859-1?Q?S=E9bastien_Bihorel?=) Date: Mon, 8 Feb 2010 13:06:54 -0500 Subject: Looking for a function Message-ID: Hello, I was wondering if there is a function in Scilab that allows to display lists in a compact way rather than as a (sometime endless) listing. I did not see any link to such function in 'help list'. For those of you who are familiar in the R language, I am looking for something like the 'str' function, as exemplified below: > mylist<-list(a=list(abc=1:10,xyz=letters[1:15]), elem=matrix(1:10,ncol=2)) > mylist $a $a$abc [1] 1 2 3 4 5 6 7 8 9 10 $a$xyz [1] "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" "l" "m" "n" "o" $elem [,1] [,2] [1,] 1 6 [2,] 2 7 [3,] 3 8 [4,] 4 9 [5,] 5 10 > str(mylist) List of 2 $ a :List of 2 ..$ abc: int [1:10] 1 2 3 4 5 6 7 8 9 10 ..$ xyz: chr [1:15] "a" "b" "c" "d" ... $ elem: int [1:5, 1:2] 1 2 3 4 5 6 7 8 9 10 Thanks Sebastien -------------- next part -------------- An HTML attachment was scrubbed... URL: From satya_sai_chaitanya at daiict.ac.in Tue Feb 9 15:19:11 2010 From: satya_sai_chaitanya at daiict.ac.in (P.S.S.Chaitanya) Date: Tue, 9 Feb 2010 19:49:11 +0530 (IST) Subject: HELP in Compiling and Installing SCILAB Message-ID: <33630.10.100.57.178.1265725151.squirrel@webmail.daiict.ac.in> Sir/Madam, We are student of final semester BTech from an Engineering School in India. We are working on parallelizing modules of Scilab as our final project. We are facing problems in installing source version of Scilab in Linux. Could you please help us regarding this installation, compilation and execution of modules after our modification. Thanking You Yours sincerely P.S.S.Chaitanya 200601094 From sylvestre.ledru at scilab.org Tue Feb 9 15:21:30 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 09 Feb 2010 15:21:30 +0100 Subject: [Scilab-Dev] HELP in Compiling and Installing SCILAB In-Reply-To: <33630.10.100.57.178.1265725151.squirrel@webmail.daiict.ac.in> References: <33630.10.100.57.178.1265725151.squirrel@webmail.daiict.ac.in> Message-ID: <1265725290.5160.309.camel@korcula.inria.fr> Le mardi 09 f?vrier 2010 ? 19:49 +0530, P.S.S.Chaitanya a ?crit : > Sir/Madam, > > We are student of final semester BTech from an Engineering School in > India. We are working on parallelizing modules of Scilab as our final > project. We are facing problems in installing source version of Scilab in > Linux. Could you please help us regarding this installation, compilation > and execution of modules after our modification. Please detail your problems. We cannot help you otherwise. Sylvestre From antonelli1970 at gmail.com Thu Feb 11 13:01:09 2010 From: antonelli1970 at gmail.com (Gianluca Antonelli) Date: Thu, 11 Feb 2010 13:01:09 +0100 Subject: help needed for a grep in a multidimensional struct array Message-ID: <4B73F185.90705@gmail.com> Hi, I have the following problem. I have the following variable: slot = 30x5x10 struct array with fields: modulo cdl I need to find all the indexes for which the field cdl matches a specific grep command. I would like to know if is it possible to have a function such as: out = grep(slot.cdl, "abc") Any hint? Thanks in advance, g. From mathieu.dubois at limsi.fr Thu Feb 11 14:28:46 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Thu, 11 Feb 2010 14:28:46 +0100 Subject: [scilab-Users] help needed for a grep in a multidimensional struct array In-Reply-To: <4B73F185.90705@gmail.com> References: <4B73F185.90705@gmail.com> Message-ID: <4B74060E.5070200@limsi.fr> Hello Gianluca, Did you try a simple: find(slot.cdl=="abc") It should not be difficult to turn this in a function... Mathieu Gianluca Antonelli wrote: > Hi, > > I have the following problem. > > I have the following variable: > > slot = > > 30x5x10 struct array with fields: > modulo > cdl > > I need to find all the indexes for which the field cdl matches a > specific grep command. > > I would like to know if is it possible to have a function such as: > > out = grep(slot.cdl, "abc") > > Any hint? > > Thanks in advance, > g. From antonelli1970 at gmail.com Thu Feb 11 14:37:43 2010 From: antonelli1970 at gmail.com (Gianluca Antonelli) Date: Thu, 11 Feb 2010 14:37:43 +0100 Subject: [scilab-Users] help needed for a grep in a multidimensional struct array In-Reply-To: <4B74060E.5070200@limsi.fr> References: <4B73F185.90705@gmail.com> <4B74060E.5070200@limsi.fr> Message-ID: <4B740827.1090709@gmail.com> Dear Mathieu, thanks for your reply. I tried the synthax you suggest and the output is always empty. Below a simple code to verify it. I know that it is very simple to build a customized grep-like function but my real 3-dimensional struct array is quite large and I'm worried about computational time. Here is a not-working sample code: ----------------------- -->N=10;for i=1:N; for j =1:N; for k=1:N; slot(i,j,k).cdl=""; slot(i,j,k).modulo=""; end; end; end -->slot slot = 10x10x10 struct array with fields: cdl modulo -->slot(1,2,3).cdl="abc"; -->find(slot.cdl=="abc") ans = [] ---------------------- Best, g. Mathieu Dubois wrote: > Hello Gianluca, > > Did you try a simple: > find(slot.cdl=="abc") > > It should not be difficult to turn this in a function... > > Mathieu > > Gianluca Antonelli wrote: >> Hi, >> >> I have the following problem. >> >> I have the following variable: >> >> slot = >> >> 30x5x10 struct array with fields: >> modulo >> cdl >> >> I need to find all the indexes for which the field cdl matches a >> specific grep command. >> >> I would like to know if is it possible to have a function such as: >> >> out = grep(slot.cdl, "abc") >> >> Any hint? >> >> Thanks in advance, >> g. > > From mathieu.dubois at limsi.fr Thu Feb 11 19:37:00 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Thu, 11 Feb 2010 19:37:00 +0100 Subject: [scilab-Users] help needed for a grep in a multidimensional struct array In-Reply-To: <4B740827.1090709@gmail.com> References: <4B73F185.90705@gmail.com> <4B74060E.5070200@limsi.fr> <4B740827.1090709@gmail.com> Message-ID: <4B744E4C.2080303@limsi.fr> Hello Gianluca, Do you really need a multidimensional struct array? I have tried to replace the struct array with a mlist (see attachment). I don't know much about Scilab' struct or mlist but this example works (see Scilab help). Two caveats: - array=="abc" doesn't work with multidimensional arrays (why?) so I use array(:)=="abc" - find therefore return a linear index that I can convert back to subscripts thanks to ind2sub A bit scilabic but it works! Hope that helps, Mi auguro che aiuta, Mathieu Le 11/02/2010 14:37, Gianluca Antonelli a ?crit : > Dear Mathieu, > > thanks for your reply. > > I tried the synthax you suggest and the output is always empty. Below a > simple code to verify it. > > I know that it is very simple to build a customized grep-like function > but my real 3-dimensional struct array is quite large and I'm worried > about computational time. > > Here is a not-working sample code: > > ----------------------- > -->N=10;for i=1:N; for j =1:N; for k=1:N; slot(i,j,k).cdl=""; > slot(i,j,k).modulo=""; end; end; end > > -->slot > slot = > > 10x10x10 struct array with fields: > cdl > modulo > > -->slot(1,2,3).cdl="abc"; > > -->find(slot.cdl=="abc") > ans = > > [] > ---------------------- > > Best, > g. > > > > Mathieu Dubois wrote: >> Hello Gianluca, >> >> Did you try a simple: >> find(slot.cdl=="abc") >> >> It should not be difficult to turn this in a function... >> >> Mathieu >> >> Gianluca Antonelli wrote: >>> Hi, >>> >>> I have the following problem. >>> >>> I have the following variable: >>> >>> slot = >>> >>> 30x5x10 struct array with fields: >>> modulo >>> cdl >>> >>> I need to find all the indexes for which the field cdl matches a >>> specific grep command. >>> >>> I would like to know if is it possible to have a function such as: >>> >>> out = grep(slot.cdl, "abc") >>> >>> Any hint? >>> >>> Thanks in advance, >>> g. >> >> > -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: test_gianluca.sce URL: From antonelli1970 at gmail.com Thu Feb 11 21:20:40 2010 From: antonelli1970 at gmail.com (Gianluca Antonelli) Date: Thu, 11 Feb 2010 21:20:40 +0100 Subject: [scilab-Users] help needed for a grep in a multidimensional struct array In-Reply-To: <4B744E4C.2080303@limsi.fr> References: <4B73F185.90705@gmail.com> <4B74060E.5070200@limsi.fr> <4B740827.1090709@gmail.com> <4B744E4C.2080303@limsi.fr> Message-ID: <4B746698.9010608@gmail.com> Thanks a lot, it works fine! I'll have to think about changing all over the code the type for my variable-to-be-searched but I probably will. Best, g. Mathieu Dubois wrote: > Hello Gianluca, > > Do you really need a multidimensional struct array? > > I have tried to replace the struct array with a mlist (see attachment). > I don't know much about Scilab' struct or mlist but this example works > (see Scilab help). > > Two caveats: > - array=="abc" doesn't work with multidimensional arrays (why?) so I > use array(:)=="abc" > - find therefore return a linear index that I can convert back to > subscripts thanks to ind2sub > > A bit scilabic but it works! > > Hope that helps, Mi auguro che aiuta, > Mathieu > > Le 11/02/2010 14:37, Gianluca Antonelli a ?crit : >> Dear Mathieu, >> >> thanks for your reply. >> >> I tried the synthax you suggest and the output is always empty. Below a >> simple code to verify it. >> >> I know that it is very simple to build a customized grep-like function >> but my real 3-dimensional struct array is quite large and I'm worried >> about computational time. >> >> Here is a not-working sample code: >> >> ----------------------- >> -->N=10;for i=1:N; for j =1:N; for k=1:N; slot(i,j,k).cdl=""; >> slot(i,j,k).modulo=""; end; end; end >> >> -->slot >> slot = >> >> 10x10x10 struct array with fields: >> cdl >> modulo >> >> -->slot(1,2,3).cdl="abc"; >> >> -->find(slot.cdl=="abc") >> ans = >> >> [] >> ---------------------- >> >> Best, >> g. >> >> >> >> Mathieu Dubois wrote: >>> Hello Gianluca, >>> >>> Did you try a simple: >>> find(slot.cdl=="abc") >>> >>> It should not be difficult to turn this in a function... >>> >>> Mathieu >>> >>> Gianluca Antonelli wrote: >>>> Hi, >>>> >>>> I have the following problem. >>>> >>>> I have the following variable: >>>> >>>> slot = >>>> >>>> 30x5x10 struct array with fields: >>>> modulo >>>> cdl >>>> >>>> I need to find all the indexes for which the field cdl matches a >>>> specific grep command. >>>> >>>> I would like to know if is it possible to have a function such as: >>>> >>>> out = grep(slot.cdl, "abc") >>>> >>>> Any hint? >>>> >>>> Thanks in advance, >>>> g. >>> >>> >> From giri at leos.gov.in Fri Feb 12 15:11:45 2010 From: giri at leos.gov.in (Giri) Date: Fri, 12 Feb 2010 09:11:45 -0500 Subject: Plotting data with single x axis and two y axes References: Message-ID: <4B7561A0.FB7E9270@leos.gov.in> An HTML attachment was scrubbed... URL: From mathieu.dubois at limsi.fr Fri Feb 12 09:21:28 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Fri, 12 Feb 2010 09:21:28 +0100 Subject: [scilab-Users] Looking for a function In-Reply-To: References: Message-ID: <4B750F88.4010706@limsi.fr> Hello S?bastien, Thanks to Gianluca I gave a second look to your message. I think that mlist and function overloading fit your needs (see attachment and scilab's help). Please note that I'm not an expert in scilab's mlist so this code comes "as is" with no express or implied warranty for accuracy or accessibility, blah, blah, blah,... HTH, Mathieu S?bastien Bihorel wrote: > Hello, > > I was wondering if there is a function in Scilab that allows to > display lists in a compact way rather than as a (sometime endless) > listing. I did not see any link to such function in 'help list'. For > those of you who are familiar in the R language, I am looking for > something like the 'str' function, as exemplified below: > > > mylist<-list(a=list(abc=1:10,xyz=letters[1:15]), > elem=matrix(1:10,ncol=2)) > > mylist > $a > $a$abc > [1] 1 2 3 4 5 6 7 8 9 10 > > $a$xyz > [1] "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" "l" "m" "n" "o" > > > $elem > [,1] [,2] > [1,] 1 6 > [2,] 2 7 > [3,] 3 8 > [4,] 4 9 > [5,] 5 10 > > > str(mylist) > List of 2 > $ a :List of 2 > ..$ abc: int [1:10] 1 2 3 4 5 6 7 8 9 10 > ..$ xyz: chr [1:15] "a" "b" "c" "d" ... > $ elem: int [1:5, 1:2] 1 2 3 4 5 6 7 8 9 10 > > > Thanks > > Sebastien -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: test_sebastien.sce URL: From communication at scilab.org Fri Feb 12 09:43:47 2010 From: communication at scilab.org (Scilab Communication) Date: Fri, 12 Feb 2010 09:43:47 +0100 Subject: New Scilab Website Message-ID: <4B7514C3.10805@scilab.org> Dear all, The Scilab Consortium R&D Team is glad to inform you that the new Scilab website has been released. The address remains www.scilab.org We hope this new website will suit your needs and that you will find the information you need more easily. If you have any remarks or suggestions please feel free to send them at: communication at scilab.org Best Regards ----------------------------------------------- The Scilab Consortium R&D Team ----------------------------------------------- Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex - France From pomchip at free.fr Fri Feb 12 15:19:41 2010 From: pomchip at free.fr (=?ISO-8859-1?Q?S=E9bastien_Bihorel?=) Date: Fri, 12 Feb 2010 09:19:41 -0500 Subject: [scilab-Users] Looking for a function In-Reply-To: <4B750F88.4010706@limsi.fr> References: <4B750F88.4010706@limsi.fr> Message-ID: Thanks Mathieu, You confirm what I suspected. I would to build the function myself, using a code similar to yours but recursive... Not a big deal, though. Sebastien On Fri, Feb 12, 2010 at 3:21 AM, Mathieu Dubois wrote: > Hello S?bastien, > > Thanks to Gianluca I gave a second look to your message. > > I think that mlist and function overloading fit your needs (see attachment > and scilab's help). > > Please note that I'm not an expert in scilab's mlist so this code comes "as > is" with no express or implied warranty for accuracy or accessibility, blah, > blah, blah,... > > HTH, > Mathieu > > S?bastien Bihorel wrote: > >> Hello, >> >> I was wondering if there is a function in Scilab that allows to display >> lists in a compact way rather than as a (sometime endless) listing. I did >> not see any link to such function in 'help list'. For those of you who are >> familiar in the R language, I am looking for something like the 'str' >> function, as exemplified below: >> >> > mylist<-list(a=list(abc=1:10,xyz=letters[1:15]), >> elem=matrix(1:10,ncol=2)) >> > mylist >> $a >> $a$abc >> [1] 1 2 3 4 5 6 7 8 9 10 >> >> $a$xyz >> [1] "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" "l" "m" "n" "o" >> >> >> $elem >> [,1] [,2] >> [1,] 1 6 >> [2,] 2 7 >> [3,] 3 8 >> [4,] 4 9 >> [5,] 5 10 >> >> > str(mylist) >> List of 2 >> $ a :List of 2 >> ..$ abc: int [1:10] 1 2 3 4 5 6 7 8 9 10 >> ..$ xyz: chr [1:15] "a" "b" "c" "d" ... >> $ elem: int [1:5, 1:2] 1 2 3 4 5 6 7 8 9 10 >> >> >> Thanks >> >> Sebastien >> > > > // R syntax > //mylist<-list(a=list(abc=1:10,xyz=letters[1:15]), > // elem=matrix(1:10,ncol=2)) > > clc; > clear; > > mylist=mlist(['V', 'a', 'xyz', 'elem'], 1:10, 'a':'o', matrix(1:10, > [5,2])); > > typeof(mylist) > > //define display > function []=%V_p(M) > disp('Hello I''m an overloaded function'); > disp('Field a is'); > disp(string(M.a)); > disp('Field xyz is'); > disp(string(M.xyz)); > disp('Field elem is') > disp(string(M.elem)); > endfunction > > mylist > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Sat Feb 13 04:32:32 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Sat, 13 Feb 2010 04:32:32 +0100 Subject: [scilab-Users] Plotting data with single x axis and two y axes In-Reply-To: <4B7561A0.FB7E9270@leos.gov.in> References: <4B7561A0.FB7E9270@leos.gov.in> Message-ID: <20100213043232.17042nwgo5o7stvk@webmail2.univ-lemans.fr> Hello Giri, Here is a commented example showing a way to do what you expect. There are certainly other ones, noticeably by using drawaxis() instead of | in addition to newaxes(); Hope That Help Regards Samuel -------- x=linspace(1,7,100); y1=sin(x); y2=cos(x)*67; clf plot2d(x,y1); xtitle("Sample with 2 different Y-scales","X","sinus(x)") legend("sin(x)",-5,%f); // -5 => above the left top corner, no frame a=newaxes(); // Creates a new default system of axes on the same area of the window, and makes it the current one a.filled="off"; // the background of the graphical area should be transparent, to leave the previous plot apparent red=color("red"); plot2d(x,y2,axesflag=3,style=red); // plots new data. axesflag=3 means X at the bottom, and Y at the right // Because the default legend("67.cos(x)",[6,100],%f); // above the right top corner, no frame a.font_color=red; // sets color for ticks labels a.axes_visible=["off","on","off"]; // cancels x axis (else red) a.y_label.font_foreground=red; // sets color for y-label a.y_label.text="67.Cosinus(x)"; // set y label --------------- Giri a ?crit?: Hello friends: I often have to plot data with common x axis values and two independenty axes values. I would like the y axes to appear on the left and right hand sides of the plots. I would be grateful to anyone who can point out how I can do this using plot2d (or any other way). My data file has three columns (x,y1,y2). Thanks for your help. Sincerely, --Giridhar -- M. S. Giridhar Thinfilms and Microsensors Group Laboratory for Electro Optic Systems Indian Space Research Organisation 1st Cross, 1st Stage, Peenya Industrial Estate, Bangalore 560058. Phone:2839 2294, 2839 2291 ext 2212 ---------------------------------------------------------------- This mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. LEOS has taken every reasonable precaution to remove any viruses however you should also carry out your own virus checks before opening the e-mail or attachment. From crptdngl71 at gmx.net Sun Feb 14 14:13:57 2010 From: crptdngl71 at gmx.net (Crypto) Date: Sun, 14 Feb 2010 14:13:57 +0100 Subject: [scilab-Users] Scilab 5.2 + xcos: Bug when dragging / moving parts In-Reply-To: <1265235815.31574.4406.camel@zlarin> References: <201001301645.45680.crptdngl71@gmx.net> <201002032053.37453.crptdngl71@gmx.net> <1265235815.31574.4406.camel@zlarin> Message-ID: <201002141413.57542.crptdngl71@gmx.net> Thankyou very much, it is fixed now. I have re-installed deb-package and it works! Regards, Crypto. Sylvestre Ledru wrote on Wednesday, 03. February 2010: > Le mercredi 03 f?vrier 2010 ? 20:53 +0100, Crypto a ?crit : > > Cl?ment DAVID wrote on Tuesday, 02. February 2010: > > > After investigation, the scilab binary works well on sidux linux. Use > > > the 5.2.0 stock version from > > > [http://www.scilab.org/download/index_download.php?page=release#linux] > > > and report a bug on the scilab package for your distribution. > > > > > > Regards, > > > davidcl > > > > Thankyou for such a quick helping response - this is what I love about > > open source software. > > > > I have downloaded the 64bit binary archive of Scilab. And now xcos works > > - amazing. I'll do a bug report for the deb package version. > > Don't bother. David fixed the issue for me in the Debian package. I fix > an other bug and I upload it into the archive. > > Sylvestre > From giri at leos.gov.in Mon Feb 15 18:33:41 2010 From: giri at leos.gov.in (Giri) Date: Mon, 15 Feb 2010 12:33:41 -0500 Subject: [scilab-Users] Plotting data with single x axis and two y axes References: <4B7561A0.FB7E9270@leos.gov.in> <20100213043232.17042nwgo5o7stvk@webmail2.univ-lemans.fr> Message-ID: <4B798575.5EFBF677@leos.gov.in> Samuel Gougeon wrote: > Hello Giri, > Here is a commented example showing a way to do what you expect. > There are certainly other ones, noticeably by using drawaxis() > instead of | in addition to newaxes(); > Hope That Help > Regards > Samuel > -------- > x=linspace(1,7,100); > y1=sin(x); > y2=cos(x)*67; > > clf > plot2d(x,y1); > xtitle("Sample with 2 different Y-scales","X","sinus(x)") > legend("sin(x)",-5,%f); // -5 => above the left top corner, no frame > a=newaxes(); // Creates a new default system of axes on the same > area of the window, and makes it the current one > a.filled="off"; // the background of the graphical area should be > transparent, to leave the previous plot apparent > red=color("red"); > plot2d(x,y2,axesflag=3,style=red); // plots new data. axesflag=3 > means X at the bottom, and Y at the right > // Because the default > legend("67.cos(x)",[6,100],%f); // above the right top corner, no frame > a.font_color=red; // sets color for ticks labels > a.axes_visible=["off","on","off"]; // cancels x axis (else red) > a.y_label.font_foreground=red; // sets color for y-label > a.y_label.text="67.Cosinus(x)"; // set y label > Hello Samuel: Thank you very much for the code you have posted. The result is exactly what I had in mind. Your commented lines are very helpful and I have learned a few 'tricks' from them. Sincerely Giri. ---------------------------------------------------------------- This mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. LEOS has taken every reasonable precaution to remove any viruses however you should also carry out your own virus checks before opening the e-mail or attachment. From Mike at Page-One.Waitrose.com Mon Feb 15 17:50:35 2010 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Mon, 15 Feb 2010 16:50:35 -0000 Subject: Interpreting profiler results Message-ID: Hi, Does anyone know how to interpret the output of the profiler? The nth row, second column of the profile output is the time (in seconds I guess) taken to execute the nth statement in the function. if I add up all the time given, it is only a small fraction of the time the function actually takes. For example, I have a function that takes about 15 seconds to run. The profiler output totals to only 0.015 seconds. I know that small times are rounded down to zero. In my case, it looks like 0.000016 seconds is the smallest unit of time. But this rounding error cannot account for missing 99.9% of the execution time. Do I have to multiply the times shown by 1000 to get the correct answer? Thanks in advance for any help. Mike. From Samuel.Gougeon at univ-lemans.fr Mon Feb 15 19:20:44 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Mon, 15 Feb 2010 19:20:44 +0100 Subject: [scilab-Users] Interpreting profiler results In-Reply-To: References: Message-ID: <4B79907C.1060100@univ-lemans.fr> ----- Message d'origine ----- De : Mike Page Date : 15/02/2010 17:50: > Hi, > > Does anyone know how to interpret the output of the profiler? The nth row, > second column of the profile output is the time (in seconds I guess) taken > to execute the nth statement in the function. if I add up all the time > given, it is only a small fraction of the time the function actually takes. > For example, I have a function that takes about 15 seconds to run. Did you measure it with tic & toc or timer() (<=>cpu), i mean in a scilab way, or in another way ? It could be either a matter of lack of doc, or else of scilab unconsistency. > The profiler output totals to only 0.015 seconds. > The help page for profile() states that /systems counts how many time each line is executed and how may cpu time is spend *for each line execution*. These data are stored within the function data structure. The profile function allows to extract these data and return them in the two first columns/ Did you try to multiply column#1 x column#2 and to add results? I do not see anything else to try before bug reporting about undocumented time unit. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mike at Page-One.Waitrose.com Mon Feb 15 20:33:19 2010 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Mon, 15 Feb 2010 19:33:19 -0000 Subject: [scilab-Users] Interpreting profiler results In-Reply-To: <4B79907C.1060100@univ-lemans.fr> Message-ID: Hi Samuel, Thanks for your suggestions. Yes, I used tic() and toc(). They showed 15 seconds (which agrees with what I see on a clock). I don't think multiplying the number of executions (column 1) by the time (column 2) would be right. If I double the number of loops in my test program, then I see both column 1 and column 2 values are doubled. In this case, the time is 30 seconds, and the total of column 2 is 0.030. I think this may just be a bug in Scilab. I notice that the function etime.sci (used by tic() and toc() ) has a scale factor of 1e3, because the times reported by getdate end up with milliseconds. The function profile.sci ends with a division by 1000000. Maybe this is the problem? I will report this on the Bugzilla. If nobody else knows about this, I will just multiply my profile times by 1000, as that seems to give the right answers. Regards, Mike. -----Original Message----- From: Samuel Gougeon [mailto:Samuel.Gougeon at univ-lemans.fr] Sent: 15 February 2010 18:21 To: users at lists.scilab.org Subject: Re: [scilab-Users] Interpreting profiler results ----- Message d'origine ----- De : Mike Page Date : 15/02/2010 17:50: Hi, Does anyone know how to interpret the output of the profiler? The nth row, second column of the profile output is the time (in seconds I guess) taken to execute the nth statement in the function. if I add up all the time given, it is only a small fraction of the time the function actually takes. For example, I have a function that takes about 15 seconds to run.Did you measure it with tic & toc or timer() (<=>cpu), i mean in a scilab way, or in another way ? It could be either a matter of lack of doc, or else of scilab unconsistency. The profiler output totals to only 0.015 seconds. The help page for profile() states that systems counts how many time each line is executed and how may cpu time is spend for each line execution. These data are stored within the function data structure. The profile function allows to extract these data and return them in the two first columns Did you try to multiply column#1 x column#2 and to add results? I do not see anything else to try before bug reporting about undocumented time unit. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From giri at leos.gov.in Tue Feb 16 01:58:51 2010 From: giri at leos.gov.in (giri) Date: Tue, 16 Feb 2010 06:28:51 +0530 Subject: [scilab-Users] Plotting data with single x axis and two y axes In-Reply-To: <20100213043232.17042nwgo5o7stvk@webmail2.univ-lemans.fr> References: <4B7561A0.FB7E9270@leos.gov.in> <20100213043232.17042nwgo5o7stvk@webmail2.univ-lemans.fr> Message-ID: -----Original Message----- From: Samuel Gougeon To: users at lists.scilab.org Date: Sat, 13 Feb 2010 04:32:32 +0100 Subject: Re: [scilab-Users] Plotting data with single x axis and two y axes Hello Giri, Here is a commented example showing a way to do what you expect. There are certainly other ones, noticeably by using drawaxis() instead of | in addition to newaxes(); Hope That Help Regards Samuel -------- x=linspace(1,7,100); y1=sin(x); y2=cos(x)*67; clf plot2d(x,y1); xtitle("Sample with 2 different Y-scales","X","sinus(x)") legend("sin(x)",-5,%f); // -5 => above the left top corner, no frame a=newaxes(); // Creates a new default system of axes on the same area of the window, and makes it the current one a.filled="off"; // the background of the graphical area should be transparent, to leave the previous plot apparent red=color("red"); plot2d(x,y2,axesflag=3,style=red); // plots new data. axesflag=3 means X at the bottom, and Y at the right // Because the default legend("67.cos(x)",[6,100],%f); // above the right top corner, no frame a.font_color=red; // sets color for ticks labels a.axes_visible=["off","on","off"]; // cancels x axis (else red) a.y_label.font_foreground=red; // sets color for y-label a.y_label.text="67.Cosinus(x)"; // set y label Hello friends: While the solution given by Mr Gougeon works excellently on Scilab 5 at work I have use an old solaris 8 computer running Scilab 4.0 (RC). This version of scilab does not recognize the "filled" attribute for newaxes(). The second plot simply over writes the first one. Is there any way of making the second one "transparent" after the plot is completed? Thanking you. Sincerely, Giridhar ---------------------------------------------------------------- This mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. LEOS has taken every reasonable precaution to remove any viruses however you should also carry out your own virus checks before opening the e-mail or attachment. -------------- next part -------------- An HTML attachment was scrubbed... URL: From carlosedlima at gmail.com Wed Feb 17 02:27:02 2010 From: carlosedlima at gmail.com (Carlos Eduardo Celia de Lima) Date: Tue, 16 Feb 2010 20:27:02 -0500 Subject: fminsearchbnd Message-ID: Dear Sci-Lab experts, Is there a equivalent function to fminsearchbnd in scilab? I was not able to find it in the documentation. If there is not, is there any workaround to apply boundaries to the variables in an optimization problem? Thank you, Carlos -------------- next part -------------- An HTML attachment was scrubbed... URL: From manjusha.joshi at gmail.com Wed Feb 17 04:42:00 2010 From: manjusha.joshi at gmail.com (Manjusha Joshi) Date: Wed, 17 Feb 2010 03:42:00 +0000 Subject: scilab crashes Message-ID: I am using Scilab 5.1.1 on Mandriva 2010. While trying to export a figure/ graph from graphical window to jpg scilab crashes. Another similar experience I heard from one of the scilab user as follows: I am using Scilab 5.1.1 on Ubuntu 9.10. When I try to export a graph to say xfig or any other format , scilab crashes. Is it a bug? If not, suggest me some remedy. ============= Any solution, pointer will be of great help. Regards, -- Manjusha S. Joshi Lecturer in Computational Mathematics, Bhaskaracharya Instituteof Mathematics, Pune, India www.bprim.org Office phone -020 25434547 Mobile: (betn. 4.30-7pm) 09822 319328 blog: http://manjushajoshi.wordpress.com/ Linkedlin: http://in.linkedin.com/pub/manjusha-joshi/10/a44/97a -------------- next part -------------- An HTML attachment was scrubbed... URL: From pomchip at free.fr Wed Feb 17 13:27:05 2010 From: pomchip at free.fr (=?ISO-8859-1?Q?S=E9bastien_Bihorel?=) Date: Wed, 17 Feb 2010 07:27:05 -0500 Subject: [scilab-Users] fminsearchbnd In-Reply-To: References: Message-ID: Hi Carlos, I don't believe that scilab includes this function. One way to implement boundaries on parameters with fminsearch is to apply them directly in the function to be minimized (and in your custom output function, if you have one). Sebastien. On Tue, Feb 16, 2010 at 8:27 PM, Carlos Eduardo Celia de Lima < carlosedlima at gmail.com> wrote: > Dear Sci-Lab experts, > > Is there a equivalent function to fminsearchbnd in scilab? > I was not able to find it in the documentation. > > If there is not, is there any workaround to apply boundaries to the > variables in an optimization problem? > > Thank you, > > Carlos > -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.baudin at scilab.org Wed Feb 17 14:07:04 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Wed, 17 Feb 2010 14:07:04 +0100 Subject: [scilab-Users] fminsearchbnd In-Reply-To: References: Message-ID: <4B7BE9F8.8090605@scilab.org> Dear Carlos, I assume that you are talking about the Matlab toolbox by John D'Errico. There is no fminsearchbnd in the current release, but there is the neldermead component, which includes a Box algorithm which manages both bounds and general nonlinear constraints. In your console : -->help neldermead Look in the ?> Scilab Demonstrations> Optimization and Simulation> neldermead/Box A The Box A problem is an optimization problem with bounds and nonlinear constraints. You should have no problem with bounds, provided that the number of variables is low : up to 10-20 is a maximum. A typical alternative is to use the unconstrained fminsearch and to apply a penalty when x is not in the bounds. A simple scaling parameter might do the trick, but the scaling obviously depends on the problem, that is, depends on the function value. Best regards, Michael PS Notice that John D'Errico's function is based on variable transformations, while Box's algorithm modifies the updating scheme of the simplex. S?bastien Bihorel a ?crit : > Hi Carlos, > > I don't believe that scilab includes this function. One way to > implement boundaries on parameters with fminsearch is to apply them > directly in the function to be minimized (and in your custom output > function, if you have one). > > Sebastien. > > On Tue, Feb 16, 2010 at 8:27 PM, Carlos Eduardo Celia de Lima > > wrote: > > Dear Sci-Lab experts, > > Is there a equivalent function to fminsearchbnd in scilab? > I was not able to find it in the documentation. > > If there is not, is there any workaround to apply boundaries to > the variables in an optimization problem? > > Thank you, > > Carlos > > -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 From david.mould at jbaconsulting.co.uk Wed Feb 17 14:37:07 2010 From: david.mould at jbaconsulting.co.uk (David Mould) Date: Wed, 17 Feb 2010 13:37:07 +0000 Subject: gridddata Message-ID: <1843500BBA84FB4A9B693AD78BD5D1C0148F7E4286@mail-jba1.jbanorthwest.co.uk> Hi, I'm trying to convert a MATLAB script into Scilab and am struggling to find a replacement for 'griddata'. Unfortunately, I wasn't very involved in the original coding and am a relative novice to Scilab/Matlab! Here is a bit of my code: [XI YI]= meshgrid(min(x):Spacing:max(x),min(y):Spacing:max(y)); for i= 1:3 data(:,:,i) = griddata(x,y,Hyd(:,3+i), XI, YI); end Hyd is an array with 6 data columns: (ID, x, y, z, v, d). The variables x and y were read out of Hyd previously. I'm guessing that the 'data' variable ends up as a multi-dimensional array each containing x, y, and one of z, v and d. Is there a way to do this in Scilab? I hope this makes sense, Many thanks, Dave JBA Consulting | South Barn, Broughton Hall, Skipton, North Yorkshire, BD23 3AE, UK t: +44 (0)1756 799919 | f: +44 (0)1756 799449 JBA is a Carbon Neutral Company. Please don't print this e-mail unless you really need to. This email is covered by JBA Consulting's email disclaimer at http://www.jbaconsulting.co.uk/?q=disclaimer. -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.baudin at scilab.org Wed Feb 17 15:16:03 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Wed, 17 Feb 2010 15:16:03 +0100 Subject: [scilab-Users] fminsearchbnd In-Reply-To: <4B7BE9F8.8090605@scilab.org> References: <4B7BE9F8.8090605@scilab.org> Message-ID: <4B7BFA23.40209@scilab.org> Dear Carlos, You will find in attachement a demo of neldermead with a simple bound-constrained problem. It minimizes x(1)^2+x(2)^2 in the bounds [1 2]x[1 2] and find the minimum at (1,1). Notice that the simplex goes toward the minimum bound, degenerates, then performs a 1 dimensionnal optimization on the min x bound. There is a lot of blabla in the script, but it remains simple. Best regards, Micha?l Micha?l Baudin a ?crit : > Dear Carlos, > > I assume that you are talking about the Matlab toolbox by John D'Errico. > There is no fminsearchbnd in the current release, but there is the > neldermead > component, which includes a Box algorithm which manages both > bounds and general nonlinear constraints. In your console : > > -->help neldermead > > Look in the ?> Scilab Demonstrations> Optimization and Simulation> > neldermead/Box A > The Box A problem is an optimization problem with bounds and nonlinear > constraints. > > You should have no problem with bounds, provided that the number of > variables is > low : up to 10-20 is a maximum. > > A typical alternative is to use the unconstrained fminsearch and to apply > a penalty when x is not in the bounds. A simple scaling parameter might > do the trick, but the scaling obviously depends on the problem, that > is, depends > on the function value. > > Best regards, > > Michael > > PS > Notice that John D'Errico's function is based on variable > transformations, while > Box's algorithm modifies the updating scheme of the simplex. > > S?bastien Bihorel a ?crit : >> Hi Carlos, >> >> I don't believe that scilab includes this function. One way to >> implement boundaries on parameters with fminsearch is to apply them >> directly in the function to be minimized (and in your custom output >> function, if you have one). >> >> Sebastien. >> >> On Tue, Feb 16, 2010 at 8:27 PM, Carlos Eduardo Celia de Lima >> > wrote: >> >> Dear Sci-Lab experts, >> >> Is there a equivalent function to fminsearchbnd in scilab? >> I was not able to find it in the documentation. >> >> If there is not, is there any workaround to apply boundaries to >> the variables in an optimization problem? >> >> Thank you, >> >> Carlos >> >> > > -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: neldermeadBounds.sce URL: From mathieu.dubois at limsi.fr Wed Feb 17 15:57:38 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Wed, 17 Feb 2010 15:57:38 +0100 Subject: [scilab-Users] scilab crashes In-Reply-To: References: Message-ID: <4B7C03E2.1030107@limsi.fr> Manjusha Joshi wrote: > I am using Scilab 5.1.1 on Mandriva 2010. > While trying to export a figure/ graph from graphical window to jpg > scilab crashes. > > Another similar experience I heard from one of the scilab user as follows: > > I am using Scilab 5.1.1 on Ubuntu 9.10. When I try to export a graph to > say xfig or any other format , scilab crashes. Is it a bug? If not, > suggest me some remedy. Hello Joshi, I have some troubles too when exporting figures. I think it's related to Scilab 5 internal graphics system (see http://wiki.scilab.org/Graphical_issues_with_Scilab_5.0). For me it works well with an ATI card and proprietary drivers. You should try such a combination or under other OS (windows)... Mathieu From mathieu.dubois at limsi.fr Wed Feb 17 23:00:39 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Wed, 17 Feb 2010 23:00:39 +0100 Subject: [scilab-Users] gridddata In-Reply-To: <1843500BBA84FB4A9B693AD78BD5D1C0148F7E4286@mail-jba1.jbanorthwest.co.uk> References: <1843500BBA84FB4A9B693AD78BD5D1C0148F7E4286@mail-jba1.jbanorthwest.co.uk> Message-ID: <4B7C6707.6000104@limsi.fr> Hello Dave, > I?m trying to convert a MATLAB script into Scilab and am struggling to > find a replacement for ?griddata?. Unfortunately, I wasn?t very involved > in the original coding and am a relative novice to Scilab/Matlab! > I don't know much about interpolation of data but there is a whole chapter about interpolation on Scilab's manual: http://www.scilab.org/product/man/section_64fa3f01fdb19353faf0c6806a64a533.html According to your code you are performing linear interpolation. I think that the function you are looking for is linear_interpn (see http://www.scilab.org/product/man/linear_interpn.html). There are some examples on the help page (I think that the equivalent for meshgrid is ndgrid). > Here is a bit of my code: > > [XI YI]= meshgrid(min(x):Spacing:max(x),min(y):Spacing:max(y)); > > for i= 1:3 > > data(:,:,i) = griddata(x,y,Hyd(:,3+i), XI, YI); > > end > > Hyd is an array with 6 data columns: (ID, x, y, z, v, d). The variables > x and y were read out of Hyd previously. > In Scilab/Matlab syntax Hyd(:,3+i) is the (3+i)th column of Hyd. Therefore you are interpolating columns 4 (z), 5 (v) and 6 (d). > I?m guessing that the ?data? variable ends up as a multi-dimensional > array each containing x, y, and one of z, v and d. Is there a way to do > this in Scilab? Yes! Scilab handles multi-dimensional arrays (hypermatrices) with the same syntax. See 'help hypermat'. I guess that something like for i= 1:3 data(:,:,i) = linear_interpn(XI, YI, x, y, Hyd(:,3+i)); // Order of arg. is different end should work (no warranty)... Hope that helps, Mathieu From manjusha.joshi at gmail.com Thu Feb 18 04:06:46 2010 From: manjusha.joshi at gmail.com (Manjusha Joshi) Date: Thu, 18 Feb 2010 03:06:46 +0000 Subject: [scilab-Users] scilab crashes In-Reply-To: <4B7C03E2.1030107@limsi.fr> References: <4B7C03E2.1030107@limsi.fr> Message-ID: On Wed, Feb 17, 2010 at 2:57 PM, Mathieu Dubois wrote: > Manjusha Joshi wrote: > >> I am using Scilab 5.1.1 on Mandriva 2010. >> While trying to export a figure/ graph from graphical window to jpg scilab >> crashes. >> >> Another similar experience I heard from one of the scilab user as follows: >> >> I am using Scilab 5.1.1 on Ubuntu 9.10. When I try to export a graph to >> say xfig or any other format , scilab crashes. Is it a bug? If not, >> suggest me some remedy. >> > Hello Joshi, > > I have some troubles too when exporting figures. I think it's related to > Scilab 5 internal graphics system (see > http://wiki.scilab.org/Graphical_issues_with_Scilab_5.0). > > For me it works well with an ATI card and proprietary drivers. You should > try such a combination or under other OS (windows)... > > Mathieu > Thanks! The link you sent is useful. Regards, -- Manjusha S. Joshi Lecturer in Computational Mathematics, Bhaskaracharya Instituteof Mathematics, Pune, India www.bprim.org Office phone -020 25434547 Mobile: (betn. 4.30-7pm) 09822 319328 blog: http://manjushajoshi.wordpress.com/ Linkedlin: http://in.linkedin.com/pub/manjusha-joshi/10/a44/97a -------------- next part -------------- An HTML attachment was scrubbed... URL: From communication at scilab.org Thu Feb 18 13:49:02 2010 From: communication at scilab.org (Scilab Communication) Date: Thu, 18 Feb 2010 13:49:02 +0100 Subject: Release of Scilab 5.2.1 Message-ID: <4B7D373E.6090607@scilab.org> Dear all, The Scilab R&D Team is pleased to announce the release of Scilab 5.2.1. Download and information can be found at: http://www.scilab.org/en/products/scilab/download Best Regards ----------------------------------------------- The Scilab Consortium R&D Team ----------------------------------------------- Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex - France From arante at tecal.udl.cat Thu Feb 18 21:08:55 2010 From: arante at tecal.udl.cat (=?iso-8859-1?Q?Javier_Ar=E1ntegui?=) Date: Thu, 18 Feb 2010 21:08:55 +0100 Subject: Scilab 5.2.1 + xcos: Bug when dragging / moving parts (Mac) Message-ID: Hello, Today I downloaded Scilab 5.2.1 for Mac and and I have the same problem/bug with it that it was described in this e-mail: Subject: Scilab 5.2 + xcos: Bug when dragging / moving parts From: Crypto ####@####.#### Date: 30 Jan 2010 16:45:51 +0100 http://lists.scilab.org/cgi-bin/ezmlm-browse?list=users&cmd=showmsg&msgnum=1639 I subscribed to the list a few minutes ago. This is the reason I link the message to the list archives instead of just replying it. I start using Xcos and everything is fine until the edition window, where the simulation is drawn, stops refreshing. The only way to show the changes is zooming in and out. My system is an iMac 3.06 GHz Intel Core 2 Duo, Mac OS X 10.6.2, Scilab 5.2.1. Please, let me know if you need more information about my system. Thanks, Javier -- Javier Ar?ntegui Dept. Tecnologia de Alimentos / Dept. of Food Technology Universitat de Lleida / University of Lleida (Spain) Tel. +34 973702595 Fax +34 973702596 http://www.tecal.udl.es From w_artichowicz at o2.pl Thu Feb 18 22:24:56 2010 From: w_artichowicz at o2.pl (Wojciech Artichowicz) Date: Thu, 18 Feb 2010 22:24:56 +0100 Subject: add_help_chapter problem Message-ID: Hello, I have a problem adding help chapter. This is the example code, that works fine: //function [z]=TestFun(x,y) exists, and has the demanded structure to use help_from_sci. File: C:\Hlp\TestFun.sci help_from_sci('C:\Hlp\TestFun','C:\Hlp') HlpDIR=xmltohtml("C:\Hlp") R=add_help_chapter("TestFun","C:\html\en_US") //?/ The help HTML files are created and so on. My question is, how can I find the TestFun help using f.ex. "help" command? Regards, W.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pierre.marechal at scilab.org Fri Feb 19 08:17:03 2010 From: pierre.marechal at scilab.org (Pierre MARECHAL) Date: Fri, 19 Feb 2010 08:17:03 +0100 Subject: [scilab-Users] add_help_chapter problem In-Reply-To: References: Message-ID: <4B7E3AEF.1040108@scilab.org> Le 18/02/2010 22:24, Wojciech Artichowicz a ?crit : > > Hello, > > I have a problem adding help chapter. > > This is the example code, that works fine: > > //function [z]=TestFun(x,y) exists, and has the demanded structure to > use help_from_sci. File: C:\Hlp\TestFun.sci > > help_from_sci('C:\Hlp\TestFun','C:\Hlp') > > HlpDIR=xmltohtml("C:\Hlp") > > R=add_help_chapter("TestFun","C:\html\en_US") //?/ > > The help HTML files are created and so on. > > My question is, how can I find the TestFun help using f.ex. "help" > command? > > Regards, > > W.A. > Since scilab 5.0, the online documentation is managed with JavaHelp and the medium is now a jar file. See xmltojar() manual to build this file : /http://www.scilab.org/product/man/xmltojar.html/ Best regards, Pierre -- ============================================== Pierre MARECHAL Ing?nieur Support et D?veloppements ------ Consortium Scilab Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex ------ T?l : +33.1.39.63.56.81 ============================================== -------------- next part -------------- An HTML attachment was scrubbed... URL: From clement.david at scilab.org Fri Feb 19 09:37:19 2010 From: clement.david at scilab.org (=?ISO-8859-1?Q?Cl=E9ment?= DAVID) Date: Fri, 19 Feb 2010 09:37:19 +0100 Subject: [scilab-Users] Scilab 5.2.1 + xcos: Bug when dragging / moving parts (Mac) In-Reply-To: References: Message-ID: <1266568639.6524.85.camel@pinarellu.inria.fr> Hello, The related bug has been resolved by using the right jgraphx version. Are you using the stock binary version from http://www.scilab.org or another one ? PS: For the 5.2.1 release you need jgraphx version 1.2.0.7 [http://www.jgraph.com/downloads/jgraphx/archive/?dir=&download=jgraphx-1_2_0_7.zip]. Regards, -- Cl?ment David > Hello, > > Today I downloaded Scilab 5.2.1 for Mac and and I have the same problem/bug with it that it was described in this e-mail: > > Subject: Scilab 5.2 + xcos: Bug when dragging / moving parts > From: Crypto ####@####.#### > Date: 30 Jan 2010 16:45:51 +0100 > http://lists.scilab.org/cgi-bin/ezmlm-browse?list=users&cmd=showmsg&msgnum=1639 > > I subscribed to the list a few minutes ago. This is the reason I link the message to the list archives instead of just replying it. > > I start using Xcos and everything is fine until the edition window, where the simulation is drawn, stops refreshing. The only way to show the changes is zooming in and out. > > My system is an iMac 3.06 GHz Intel Core 2 Duo, Mac OS X 10.6.2, Scilab 5.2.1. Please, let me know if you need more information about my system. > > Thanks, > > Javier > > > -- > Javier Ar?ntegui > Dept. Tecnologia de Alimentos / Dept. of Food Technology > Universitat de Lleida / University of Lleida (Spain) > > Tel. +34 973702595 > Fax +34 973702596 > http://www.tecal.udl.es > From eduardo at softwork.co.il Fri Feb 19 09:46:00 2010 From: eduardo at softwork.co.il (Eduardo Tarasiuk) Date: Fri, 19 Feb 2010 10:46:00 +0200 Subject: Debugger for Scilab Message-ID: May be this is not the right forum to make this question. I am wondering if there is any plans to add a debugger in Scilab like the debugger in the 4.1.2 version. Thanks very much for your Reply Eduardo -------------- next part -------------- An HTML attachment was scrubbed... URL: From arante at tecal.udl.cat Fri Feb 19 10:15:35 2010 From: arante at tecal.udl.cat (=?iso-8859-1?Q?Javier_Ar=E1ntegui?=) Date: Fri, 19 Feb 2010 10:15:35 +0100 Subject: [scilab-Users] Scilab 5.2.1 + xcos: Bug when dragging / moving parts (Mac) In-Reply-To: <1266568639.6524.85.camel@pinarellu.inria.fr> References: <1266568639.6524.85.camel@pinarellu.inria.fr> Message-ID: Hello, El 19/02/2010, a las 09:37, Cl?ment DAVID escribi?: > The related bug has been resolved by using the right jgraphx version. > Are you using the stock binary version from http://www.scilab.org or > another one ? I installed this binary version: http://www.scilab.org/download/5.2.1/scilab-5.2.1.dmg > For the 5.2.1 release you need jgraphx version 1.2.0.7 > [http://www.jgraph.com/downloads/jgraphx/archive/?dir=&download=jgraphx-1_2_0_7.zip]. I see that there is a "jgraphx.jar" inside the bundle package. It is here "scilab-5.2.1.app/Contents/MacOS/thirdparty". I have no idea how I can know which version is inside the Mac package of Scilab. I downloaded the version 1.2.0.7 and substituted that file of the bundle. Is that enough? Anyway the problems remain. I have downloaded jgraph-1_3_0_1.zip from jgraph.com too. I substituted with it the version of jgraphx.jar in the Scilab bundle. It seems to work a little bit better but the same problem appears quite soon. Javier -- Javier Ar?ntegui Dept. Tecnologia de Alimentos / Dept. of Food Technology Universitat de Lleida / University of Lleida (Spain) Tel. +34 973702595 Fax +34 973702596 http://www.tecal.udl.es From eduardo at softwork.co.il Fri Feb 19 10:27:11 2010 From: eduardo at softwork.co.il (Eduardo Tarasiuk) Date: Fri, 19 Feb 2010 11:27:11 +0200 Subject: Debugger for Scilab Message-ID: I am wondering if there are any plans to add a debugger like the existing in v4.1.2, to future Scilab versions, if yes, to which version ? Thanks very much for your answer Eduardo -------------- next part -------------- An HTML attachment was scrubbed... URL: From clement.david at scilab.org Fri Feb 19 10:33:49 2010 From: clement.david at scilab.org (=?ISO-8859-1?Q?Cl=E9ment?= DAVID) Date: Fri, 19 Feb 2010 10:33:49 +0100 Subject: [scilab-Users] Scilab 5.2.1 + xcos: Bug when dragging / moving parts (Mac) In-Reply-To: References: <1266568639.6524.85.camel@pinarellu.inria.fr> Message-ID: <1266572029.6524.90.camel@pinarellu.inria.fr> After testing with our versions, we were unable to reproduce the buggy behavior. It's not related to a wrong jgraphx version and not to the linked report. Can you tell us what's operations you are performing, please ? With detailed explanation and diagram if possible. -- Cl?ment David > Hello, > > El 19/02/2010, a las 09:37, Cl?ment DAVID escribi?: > > > The related bug has been resolved by using the right jgraphx version. > > Are you using the stock binary version from http://www.scilab.org or > > another one ? > > I installed this binary version: http://www.scilab.org/download/5.2.1/scilab-5.2.1.dmg > > > > For the 5.2.1 release you need jgraphx version 1.2.0.7 > > [http://www.jgraph.com/downloads/jgraphx/archive/?dir=&download=jgraphx-1_2_0_7.zip]. > > > I see that there is a "jgraphx.jar" inside the bundle package. It is here "scilab-5.2.1.app/Contents/MacOS/thirdparty". I have no idea how I can know which version is inside the Mac package of Scilab. > > I downloaded the version 1.2.0.7 and substituted that file of the bundle. Is that enough? Anyway the problems remain. > > I have downloaded jgraph-1_3_0_1.zip from jgraph.com too. I substituted with it the version of jgraphx.jar in the Scilab bundle. It seems to work a little bit better but the same problem appears quite soon. > > Javier > > > -- > Javier Ar?ntegui > Dept. Tecnologia de Alimentos / Dept. of Food Technology > Universitat de Lleida / University of Lleida (Spain) > > Tel. +34 973702595 > Fax +34 973702596 > http://www.tecal.udl.es > From sylvestre.ledru at scilab.org Fri Feb 19 11:24:29 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 19 Feb 2010 11:24:29 +0100 Subject: [scilab-Users] Debugger for Scilab In-Reply-To: References: Message-ID: <1266575069.6251.4272.camel@zlarin> Le vendredi 19 f?vrier 2010 ? 10:46 +0200, Eduardo Tarasiuk a ?crit : > May be this is not the right forum to make this question. > > I am wondering if there is any plans to add a debugger in Scilab like > the debugger in the 4.1.2 version. Due to technical constraints in the 5 family, it won't be possible. This will be released with the 6 family. Sorry for the inconvenience, Sylvestre -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From arante at tecal.udl.cat Fri Feb 19 11:38:16 2010 From: arante at tecal.udl.cat (=?iso-8859-1?Q?Javier_Ar=E1ntegui?=) Date: Fri, 19 Feb 2010 11:38:16 +0100 Subject: [scilab-Users] Scilab 5.2.1 + xcos: Bug when dragging / moving parts (Mac) In-Reply-To: <1266572029.6524.90.camel@pinarellu.inria.fr> References: <1266568639.6524.85.camel@pinarellu.inria.fr> <1266572029.6524.90.camel@pinarellu.inria.fr> Message-ID: <7FD0ECF7-0EAE-4114-B33A-54A1275EAB13@tecal.udl.cat> Hi, El 19/02/2010, a las 10:33, Cl?ment DAVID escribi?: > Can you tell us what's operations you are performing, please ? With > detailed explanation and diagram if possible. I have prepared a short video showing my problem: http://dl.dropbox.com/u/460775/Scilab%20possible%20bug.m4v It will be here for the next couple of weeks. Please, let me know if you have any problem with it. If it is necessary I can code it using a different codec. The problem starts when I try to draw a connector line (second 36 of the video) and while I'm dragging it I release the mouse button in an empty are of the window. Javier -- Javier Ar?ntegui Dept. Tecnologia de Alimentos / Dept. of Food Technology Universitat de Lleida / University of Lleida (Spain) Tel. +34 973702595 Fax +34 973702596 http://www.tecal.udl.es From eduardo at softwork.co.il Fri Feb 19 12:50:22 2010 From: eduardo at softwork.co.il (Eduardo Tarasiuk) Date: Fri, 19 Feb 2010 13:50:22 +0200 Subject: [scilab-Users] Debugger for Scilab In-Reply-To: <1266575069.6251.4272.camel@zlarin> Message-ID: <9be734171c41214e98a25dc86ca90c7f@srv1.softwork.co.il> *This message was transferred with a trial version of CommuniGate(r) Pro* Ok Thanks for the Answer Eduardo -----Original Message----- From: Sylvestre Ledru [mailto:sylvestre.ledru at scilab.org] Sent: ? 19 ?????? 2010 12:24 To: users at lists.scilab.org Subject: Re: [scilab-Users] Debugger for Scilab *This message was transferred with a trial version of CommuniGate(r) Pro* Le vendredi 19 f?vrier 2010 ? 10:46 +0200, Eduardo Tarasiuk a ?crit : > May be this is not the right forum to make this question. > > I am wondering if there is any plans to add a debugger in Scilab like > the debugger in the 4.1.2 version. Due to technical constraints in the 5 family, it won't be possible. This will be released with the 6 family. Sorry for the inconvenience, Sylvestre -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From clement.david at scilab.org Fri Feb 19 14:13:01 2010 From: clement.david at scilab.org (=?ISO-8859-1?Q?Cl=E9ment?= DAVID) Date: Fri, 19 Feb 2010 14:13:01 +0100 Subject: [scilab-Users] Scilab 5.2.1 + xcos: Bug when dragging / moving parts (Mac) In-Reply-To: <7FD0ECF7-0EAE-4114-B33A-54A1275EAB13@tecal.udl.cat> References: <1266568639.6524.85.camel@pinarellu.inria.fr> <1266572029.6524.90.camel@pinarellu.inria.fr> <7FD0ECF7-0EAE-4114-B33A-54A1275EAB13@tecal.udl.cat> Message-ID: <1266585181.6524.274.camel@pinarellu.inria.fr> Fine, thank you for the screencast it shows our bug. For your information I have openned a bug http://bugzilla.scilab.org/show_bug.cgi?id=6642 which track this issue. Thanks for your report. -- Cl?ment DAVID > Hi, > > El 19/02/2010, a las 10:33, Cl?ment DAVID escribi?: > > > Can you tell us what's operations you are performing, please ? With > > detailed explanation and diagram if possible. > > > I have prepared a short video showing my problem: > > http://dl.dropbox.com/u/460775/Scilab%20possible%20bug.m4v > > It will be here for the next couple of weeks. Please, let me know if you have any problem with it. If it is necessary I can code it using a different codec. > > The problem starts when I try to draw a connector line (second 36 of the video) and while I'm dragging it I release the mouse button in an empty are of the window. > > Javier > > > -- > Javier Ar?ntegui > Dept. Tecnologia de Alimentos / Dept. of Food Technology > Universitat de Lleida / University of Lleida (Spain) > > Tel. +34 973702595 > Fax +34 973702596 > http://www.tecal.udl.es > From mathieu.dubois at limsi.fr Fri Feb 19 15:13:33 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Fri, 19 Feb 2010 15:13:33 +0100 Subject: Copying windows in subplot Message-ID: <4B7E9C8D.2070300@limsi.fr> Hello everybody, I have made a lot of plots in different windows and carefully saved the handles in a list. For publication it's easier to have a single large figure with subplots. Therefore I would like to copy each window inside a subplot (because the data are long to process I would like to copy only the plots not rerun the script). I have tried to use copy like in this simple example but it doesn't work: // Two simple plots on different windows x=-%pi:0.1:%pi; h1=scf(); plot(x, sin(x)); h2=scf(); plot(x, cos(x)); h=scf(); // Copy h1 in the first subplot subplot(211); a=gca(); copy(h1, a); // Copy h2 in the second subplot subplot(212); a=gca(); copy(h2, a); Is there a graphic guru to enlighten us (me)? Thanks in advance, Mathieu From manuel.juliachs at scilab.org Fri Feb 19 16:36:25 2010 From: manuel.juliachs at scilab.org (Manuel JULIACHS) Date: Fri, 19 Feb 2010 16:36:25 +0100 Subject: [scilab-Users] Copying windows in subplot In-Reply-To: <4B7E9C8D.2070300@limsi.fr> References: <4B7E9C8D.2070300@limsi.fr> Message-ID: <4B7EAFF9.4070501@scilab.org> Mathieu Dubois a ?crit : > Hello everybody, > > I have made a lot of plots in different windows and carefully saved > the handles in a list. > > For publication it's easier to have a single large figure with > subplots. Therefore I would like to copy each window inside a subplot > (because the data are long to process I would like to copy only the > plots not rerun the script). > > I have tried to use copy like in this simple example but it doesn't work: > // Two simple plots on different windows > x=-%pi:0.1:%pi; > h1=scf(); plot(x, sin(x)); > h2=scf(); plot(x, cos(x)); > > h=scf(); > // Copy h1 in the first subplot > subplot(211); > a=gca(); > copy(h1, a); > > // Copy h2 in the second subplot > subplot(212); > a=gca(); > copy(h2, a); > > Is there a graphic guru to enlighten us (me)? > > Thanks in advance, > Mathieu > Hello, there is an error in your example: the entity copied cannot be a Figure object. Instead, you must copy the Axes objects attached to the first two figures into the third one, using the latter's own Axes object as a destination: x=-%pi:0.1:%pi; scf(); plot(x, sin(x)); h1=gca(); scf(); plot(x, cos(x)); h2=gca(); Furthermore, you can do without using subplot: h=scf(); a=gca(); copy(h1,a); copy(h2,a); However, as h already owns an Axes object (created by default), it must be deleted, as it is supernumerary: delete(h.children(3)); Last, you must resize every copied Axes object by modifying the data_bounds property, in order for them to fit on the figure: h.children(2).axes_bounds=[0.0, 0.0, 1.0, 0.5]; h.children(1).axes_bounds=[0.0, 0.5, 1.0, 0.5]; the full example being: x=-%pi:0.1:%pi; scf(); plot(x, sin(x)); h1=gca(); scf(); plot(x, cos(x)); h2=gca(); h=scf(); a=gca(); copy(h1,a); copy(h2,a); delete(h.children(3)); h.children(2).axes_bounds=[0.0, 0.0, 1.0, 0.5]; h.children(1).axes_bounds=[0.0, 0.5, 1.0, 0.5]; Copying n Axes objects into a single figure essentially requires the same operations (n copy calls). Be careful, though, to correctly recompute each copied object's axes_bounds property as a function of n (check out the axes_properties help page for related information). -- ------------------------- Manuel Juliachs Ing?nieur de d?veloppement ------------------------- Consortium Scilab Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France T?l. : +33.1.39.63.52.71 From mathieu.dubois at limsi.fr Fri Feb 19 17:52:55 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Fri, 19 Feb 2010 17:52:55 +0100 Subject: [scilab-Users] Copying windows in subplot In-Reply-To: <4B7EAFF9.4070501@scilab.org> References: <4B7E9C8D.2070300@limsi.fr> <4B7EAFF9.4070501@scilab.org> Message-ID: <4B7EC1E7.6080905@limsi.fr> Hello Manuel, Thanks for your quick and helpful reply... > there is an error in your example: the entity copied cannot be > a Figure object. Instead, you must copy the Axes objects attached to > the first two figures into the third one, using the latter's own Axes > object > as a destination: It makes sense. The copy help page says that the 2nd handle "should" be an axis handle but it doesn't say anything about the first one... Also the example is not very verbose... > Furthermore, you can do without using subplot: I was using subplot in the hope that it creates the sub-axis with the right bounding boxes. If not then what does subplot do? Is there a way to use it in conjunction with newaxis? Thanks anyway for the example it works very well! Mathieu From fvogelnew1 at free.fr Sat Feb 20 10:26:17 2010 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Sat, 20 Feb 2010 10:26:17 +0100 Subject: [scilab-Users] Debugger for Scilab In-Reply-To: References: Message-ID: <4B7FAAB9.5020106@free.fr> Hi Eduardo, The latest versions of Scipad and the Scipad debugger are now distributed with Scicoslab. Check it out at: http://www.scicoslab.com Enjoy! Francois Eduardo Tarasiuk said on 19/02/2010 10:27: > I am wondering if there are any plans to add a debugger like the > existing in v4.1.2, to future Scilab versions, if yes, to which version ? > > Thanks very much for your answer > > Eduardo > From Samuel.Gougeon at univ-lemans.fr Sat Feb 20 20:51:18 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Sat, 20 Feb 2010 20:51:18 +0100 Subject: [scilab-Users] Copying windows in subplot In-Reply-To: <4B7EC1E7.6080905@limsi.fr> References: <4B7E9C8D.2070300@limsi.fr> <4B7EAFF9.4070501@scilab.org> <4B7EC1E7.6080905@limsi.fr> Message-ID: <20100220205118.13533sbfp8c1be4g@webmail1.univ-lemans.fr> Hello, As a funny thing, i had the same need for cloning a graphic window, in the same hour you posted your request! :-) I was also quite surprised by this restriction about copy(), able to copy every kind of graphic entity, except a whole figure. unfortunately, a figure is not just the set of its children. It includes other properties that then should be copied by hand. Strange thing. Some hints about the reason of this restriction would be nice from the opteam. Or one could wish to extend copy() to whole figures. BTW, exclusion of figures is not indicated in the help page. It should be legal to state: f1=scf(); f2=copy(f1); Before finding copy() in the graphic bag, i tested some simple things such that: cf=gcf() figure() cf2=gcf(); cf2=cf; But it doesn't work. No error is yielded, but it does draw anything. Then i tried to apply replot(), and draw(), etc, without success. Such an intuitive syntax is apparently not supported, despite that cloning is done and no error is displayed. To the opteam: Could we expect that such syntax would be supported with Scilab 6? For cloning and adding an axes from a figure to another one: f1=scf(1); f2=scf(2); f2 += f1.children(1); // isn't it intelligible ? This kind of feature is quite standard in other high level languages. Mathieu Dubois a ?crit?: > .../... > It makes sense. The copy help page says that the 2nd handle "should" > be an axis handle but it doesn't say anything about the first one... What do you mean? Would you like to be able to copy an axes as a rectangle? More transtyping would be a great thing in Scilab. IMHO, it is quite comprehensible that copy is not a function for casting or extraction. So when an axes is copied, it yields an axes. > Also the example is not very verbose... >> Furthermore, you can do without using subplot: > I was using subplot in the hope that it creates the sub-axis with > the right bounding boxes. If not then what does subplot do? Your can edit subplot(). It computes normalized coordinates of the area you are targetting in the figure, and finally calls newaxes() for creating a new axes in this area. Best regards Samuel From end48war at yahoo.fr Mon Feb 22 08:02:06 2010 From: end48war at yahoo.fr (azerty azerty) Date: Mon, 22 Feb 2010 07:02:06 +0000 (GMT) Subject: Problem creating custom C block under Xcos Message-ID: <731186.58202.qm@web25803.mail.ukl.yahoo.com> Hi, I'm using Scilab 5.2.1 and Xcos under Vista. I'm trying to create a custom C block, unsuccessfully up to now. I created my C code, compiled it using ilib_for_link and tested it using a generic block. No problem up to this point. After that, I tried to implement an interface function. I created the function in a ".sci" file. And after that, I don't know how to use it to create a new block. I found several tutorials but they refer to scicos and to a "Edit->Add new block function" that seems not to be implemented under Xcos. Thank you by advance for your help. Best regards, Ben -------------- next part -------------- An HTML attachment was scrubbed... URL: From clement.david at scilab.org Mon Feb 22 09:32:31 2010 From: clement.david at scilab.org (=?ISO-8859-1?Q?Cl=E9ment?= DAVID) Date: Mon, 22 Feb 2010 09:32:31 +0100 Subject: [scilab-Users] Problem creating custom C block under Xcos In-Reply-To: <731186.58202.qm@web25803.mail.ukl.yahoo.com> References: <731186.58202.qm@web25803.mail.ukl.yahoo.com> Message-ID: <1266827551.2527.7.camel@pinarellu.inria.fr> Hi, Can you file a bug at http://bugzilla.scilab.org component=Xcos please ? Regards, -- Cl?ment DAVID > Hi, > > I'm using Scilab 5.2.1 and Xcos under Vista. > I'm trying to create a custom C block, unsuccessfully up to now. > > I created my C code, compiled it using ilib_for_link and tested it > using a generic block. No problem up to this point. > After that, I tried to implement an interface function. I created the > function in a ".sci" file. And after that, I don't know how to use it > to create a new block. > > I found several tutorials but they refer to scicos and to a "Edit->Add > new block function" that seems not to be implemented under Xcos. > > Thank you by advance for your help. > > Best regards, > Ben > > From crptdngl71 at gmx.net Mon Feb 22 18:19:46 2010 From: crptdngl71 at gmx.net (Crypto) Date: Mon, 22 Feb 2010 18:19:46 +0100 Subject: Xcos: Electrical Demos do not work Message-ID: <201002221819.47032.crptdngl71@gmx.net> Hi, I have Scilab 5.2.1-3 debian packages installed taken from debian repositories. The "electrical systems" demonstration files for xcos do not work. Steps to reproduce: 1.) Run scilab. 2.) From the main menu "?", choose "Scilab Demonstrations". 3.) From the demonstration files window, choose Xcos - Electrical Systems. 4.) Tried all of these demo files, none of them runs. I keep getting a form telling me to read the error written in the main console window, which in all cases states: Fatal error: exception Failure ("input_value: code mismatch") It seems to me that Xcos is affected by this problem as the other demonstration files work, although they seem to be rather slow (escpecially the "Mechanical Systems" - "Automotive Suspension" demo). Probably a question of updating the demo files to the new code of Xcos? Kind regards, Crypto. From crptdngl71 at gmx.net Mon Feb 22 18:39:58 2010 From: crptdngl71 at gmx.net (Crypto) Date: Mon, 22 Feb 2010 18:39:58 +0100 Subject: Xcos: blue connection lines/wires do not snap to grid Message-ID: <201002221839.58338.crptdngl71@gmx.net> Hi, Scilab 5.2.1-3 debian packages running here, taken from the standard debian repositories. There appears to be a problem with how Xcos draws parts and aligns the connection lines to the grid. Steps to reproduce: 1.) Run Scilab and then open an Xcos demonstration file, e.g. the RLC_circuit (the following description relates to this file). The parts and connection lines of the circuit are matching/aligning to the grid, I would think. But there are some blue connection lines which do not. Instead, they run in slight "ramps", e.g. the GND connection wire to the bottom left, and the two blue wires running to the MScope to the right. Also, the blue connection wires sometimes poke into the white connection spots of the parts, this happens e.g. with the current sensor and the voltmeter, but also with the vertical inductor and capacitor. This seems to be related to how Xcos scales/zooms the GUI representation of a component and aligns it to the grid. When I select a component I can resize it with the mouse, but there is no way for me to scale it using the grid, i.e. no matter how I scale the component it never "snaps" to the grid so I never know if I have scaled it correctly. There also is now way of reverting the component to 100% of its original size, and there is no option to scale/zoom a component by equally increasing size in both x and y direction (like with a square - sometimes programs offer to zoom in such a way by holding down the STRG button). These are not really terrible bugs, but something that risks the prettyness of how Xcos displays circuits ;-) Kind regards, Crypto. From sylvestre.ledru at scilab.org Mon Feb 22 19:43:04 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Mon, 22 Feb 2010 19:43:04 +0100 Subject: [scilab-Users] Xcos: blue connection lines/wires do not snap to grid In-Reply-To: <201002221839.58338.crptdngl71@gmx.net> References: <201002221839.58338.crptdngl71@gmx.net> Message-ID: <1266864184.10752.16970.camel@zlarin> Le lundi 22 f?vrier 2010 ? 18:39 +0100, Crypto a ?crit : > Hi, > > Scilab 5.2.1-3 debian packages running here, taken from the standard debian > repositories. > > There appears to be a problem with how Xcos draws parts and aligns the > connection lines to the grid. > > Steps to reproduce: > > 1.) Run Scilab and then open an Xcos demonstration file, e.g. the RLC_circuit > (the following description relates to this file). > > The parts and connection lines of the circuit are matching/aligning to the > grid, I would think. > > But there are some blue connection lines which do not. Instead, they run in > slight "ramps", e.g. the GND connection wire to the bottom left, and the two > blue wires running to the MScope to the right. > > Also, the blue connection wires sometimes poke into the white connection spots > of the parts, this happens e.g. with the current sensor and the voltmeter, but > also with the vertical inductor and capacitor. > > This seems to be related to how Xcos scales/zooms the GUI representation of a > component and aligns it to the grid. > > When I select a component I can resize it with the mouse, but there is no way > for me to scale it using the grid, i.e. no matter how I scale the component it > never "snaps" to the grid so I never know if I have scaled it correctly. There > also is now way of reverting the component to 100% of its original size, and > there is no option to scale/zoom a component by equally increasing size in > both x and y direction (like with a square - sometimes programs offer to zoom > in such a way by holding down the STRG button). > > These are not really terrible bugs, but something that risks the prettyness of > how Xcos displays circuits ;-) Hello Thanks for your feedback. It is appreciated! Could you open bug reports ? http://bugzilla.scilab.org/ (a bug per issue) Thanks! Sylvestre -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From crptdngl71 at gmx.net Tue Feb 23 10:11:06 2010 From: crptdngl71 at gmx.net (Crypto) Date: Tue, 23 Feb 2010 10:11:06 +0100 Subject: [scilab-Users] Xcos: blue connection lines/wires do not snap to grid In-Reply-To: <1266864184.10752.16970.camel@zlarin> References: <201002221839.58338.crptdngl71@gmx.net> <1266864184.10752.16970.camel@zlarin> Message-ID: <201002231011.06743.crptdngl71@gmx.net> I have found that this is the same bug that has been reported here: http://bugzilla.scilab.org/show_bug.cgi?id=5676 I can confirm this bug, no need to enter an extra bug report. Crypto. Sylvestre Ledru wrote on Monday, 22. February 2010: > Le lundi 22 f?vrier 2010 ? 18:39 +0100, Crypto a ?crit : > > Hi, > > > > Scilab 5.2.1-3 debian packages running here, taken from the standard > > debian repositories. > > > > There appears to be a problem with how Xcos draws parts and aligns the > > connection lines to the grid. > > > > Steps to reproduce: > > > > 1.) Run Scilab and then open an Xcos demonstration file, e.g. the > > RLC_circuit (the following description relates to this file). > > > > The parts and connection lines of the circuit are matching/aligning to > > the grid, I would think. > > > > But there are some blue connection lines which do not. Instead, they run > > in slight "ramps", e.g. the GND connection wire to the bottom left, and > > the two blue wires running to the MScope to the right. > > > > Also, the blue connection wires sometimes poke into the white connection > > spots of the parts, this happens e.g. with the current sensor and the > > voltmeter, but also with the vertical inductor and capacitor. > > > > This seems to be related to how Xcos scales/zooms the GUI representation > > of a component and aligns it to the grid. > > > > When I select a component I can resize it with the mouse, but there is no > > way for me to scale it using the grid, i.e. no matter how I scale the > > component it never "snaps" to the grid so I never know if I have scaled > > it correctly. There also is now way of reverting the component to 100% of > > its original size, and there is no option to scale/zoom a component by > > equally increasing size in both x and y direction (like with a square - > > sometimes programs offer to zoom in such a way by holding down the STRG > > button). > > > > These are not really terrible bugs, but something that risks the > > prettyness of how Xcos displays circuits ;-) > > Hello > > Thanks for your feedback. It is appreciated! > Could you open bug reports ? > http://bugzilla.scilab.org/ > (a bug per issue) > > Thanks! > Sylvestre > From aleks300178 at mail.ru Wed Feb 24 11:59:39 2010 From: aleks300178 at mail.ru (=?koi8-r?Q?=E1=CC=C5=CB=D3=C1=CE=C4=D2?=) Date: Wed, 24 Feb 2010 13:59:39 +0300 Subject: About function intc Message-ID: Hello! My name is Alexander, I am from Krasnoyarsk, Russia. I'm sorry for my broken English. Thank you for great Scilab! Please, in new version of Scilab enter in function intc absolute and relative error how in intg. If function is singular, but not infinite it can be integrated if absolute and relative error increased. Alexander From vincent.couvert at scilab.org Wed Feb 24 16:21:12 2010 From: vincent.couvert at scilab.org (Vincent COUVERT) Date: Wed, 24 Feb 2010 16:21:12 +0100 Subject: [scilab-Users] Copying windows in subplot In-Reply-To: <20100220205118.13533sbfp8c1be4g@webmail1.univ-lemans.fr> References: <4B7E9C8D.2070300@limsi.fr> <4B7EAFF9.4070501@scilab.org> <4B7EC1E7.6080905@limsi.fr> <20100220205118.13533sbfp8c1be4g@webmail1.univ-lemans.fr> Message-ID: <4B8543E8.4090209@scilab.org> Hi Samuel, Could you post requests about these features for future releases? I think that the fact that "copy" is limited to some types of graphic handles is just a lack of implementation and we should think about improving this function in future releases. Vincent Samuel Gougeon a ?crit : > Hello, > > As a funny thing, i had the same need for cloning a graphic window, > in the same hour you posted your request! :-) > I was also quite surprised by this restriction about copy(), able > to copy every kind of graphic entity, except a whole figure. > unfortunately, a figure is not just the set of its children. > It includes other properties that then should be copied by hand. > Strange thing. > Some hints about the reason of this restriction would be nice from > the opteam. Or one could wish to extend copy() to whole figures. > > BTW, exclusion of figures is not indicated in the help page. > It should be legal to state: f1=scf(); f2=copy(f1); > > > Before finding copy() in the graphic bag, i tested some simple > things such that: > cf=gcf() > figure() > cf2=gcf(); cf2=cf; > But it doesn't work. No error is yielded, but it does draw anything. > Then i tried to apply replot(), and draw(), etc, without success. > Such an intuitive syntax is apparently not supported, despite that > cloning is done and no error is displayed. > To the opteam: Could we expect that such syntax would be supported > with Scilab 6? > For cloning and adding an axes from a figure to another one: > f1=scf(1); f2=scf(2); f2 += f1.children(1); // isn't it intelligible ? > > This kind of feature is quite standard in other high level languages. > > > Mathieu Dubois a ?crit : > >> .../... >> It makes sense. The copy help page says that the 2nd handle "should" >> be an axis handle but it doesn't say anything about the first one... > > What do you mean? Would you like to be able to copy an axes as a > rectangle? > More transtyping would be a great thing in Scilab. IMHO, it is quite > comprehensible that copy is not a function for casting or extraction. > So when an axes is copied, it yields an axes. > > >> Also the example is not very verbose... >>> Furthermore, you can do without using subplot: >> I was using subplot in the hope that it creates the sub-axis with the >> right bounding boxes. If not then what does subplot do? > > Your can edit subplot(). It computes normalized coordinates of the area > you are targetting in the figure, and finally calls newaxes() for > creating a new axes in this area. > > Best regards > Samuel > From mathieu.dubois at limsi.fr Thu Feb 25 11:42:36 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Thu, 25 Feb 2010 11:42:36 +0100 Subject: [scilab-Users] About function intc In-Reply-To: <24676_1267009421_4B85078D_24676_4352385_1_E1NkExv-0001oB-00.aleks300178-mail-ru@f264.mail.ru> References: <24676_1267009421_4B85078D_24676_4352385_1_E1NkExv-0001oB-00.aleks300178-mail-ru@f264.mail.ru> Message-ID: <4B86541C.1060101@limsi.fr> ????????? wrote: > Hello! > My name is Alexander, I am from Krasnoyarsk, Russia. > I'm sorry for my broken English. > > Thank you for great Scilab! > > Please, in new version of Scilab enter in function intc absolute and relative error how in intg. If function is singular, but not infinite it can be integrated if absolute and relative error increased. > > Alexander > > Hello ?????????, I don't know much about integration theory but the function "intc" uses "intg" (so does "integrate"). Did you look at the "integrate" function (help integrate)? Hope that helps, Mathieu From carlosedlima at gmail.com Thu Feb 25 12:14:21 2010 From: carlosedlima at gmail.com (Carlos Eduardo Celia de Lima) Date: Thu, 25 Feb 2010 06:14:21 -0500 Subject: Scilab crashes with the use of neldermead function Message-ID: Hi, I am trying to run an optimization using Scilab but it crashes when I execute it. I am using windows XP64 and I tried versions 5.2.1 and 5.2.0 both 66 and 32 bits. I even downloaded version 4, but there is no support for neldermead. I attached my code. Please let me know if you can run this analysis and what kind of machine you are using. Thank you very much. Carlos -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: function_ode.sce Type: application/octet-stream Size: 2050 bytes Desc: not available URL: From allan.cornet at scilab.org Thu Feb 25 13:25:00 2010 From: allan.cornet at scilab.org (Allan CORNET) Date: Thu, 25 Feb 2010 13:25:00 +0100 Subject: [scilab-Users] Scilab crashes with the use of neldermead function In-Reply-To: References: Message-ID: <001e01cab615$8c82a0e0$a587e2a0$@cornet@scilab.org> Hi, We create a bug report about this trouble. http://bugzilla.scilab.org/show_bug.cgi?id=6681 Best Regards Allan CORNET -- Allan CORNET ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France De : Carlos Eduardo Celia de Lima [mailto:carlosedlima at gmail.com] Envoy? : jeudi 25 f?vrier 2010 12:14 ? : users at lists.scilab.org Objet : [scilab-Users] Scilab crashes with the use of neldermead function Hi, I am trying to run an optimization using Scilab but it crashes when I execute it. I am using windows XP64 and I tried versions 5.2.1 and 5.2.0 both 66 and 32 bits. I even downloaded version 4, but there is no support for neldermead. I attached my code. Please let me know if you can run this analysis and what kind of machine you are using. Thank you very much. Carlos -------------- next part -------------- An HTML attachment was scrubbed... URL: From carlosedlima at gmail.com Thu Feb 25 13:43:58 2010 From: carlosedlima at gmail.com (Carlos Eduardo Celia de Lima) Date: Thu, 25 Feb 2010 07:43:58 -0500 Subject: [scilab-Users] Scilab crashes with the use of neldermead function In-Reply-To: <-2941376968630255341@unknownmsgid> References: <-2941376968630255341@unknownmsgid> Message-ID: Thank you Allan, I also tried in a XP 32 bits machine. Same error occurs. The problem was working fine, until I add a ode function inside my cost function. They work separately , but when I try to optimize the ode - it crashes. The sad part is that my school project is due today. Thanks anyway. Carlos On Thu, Feb 25, 2010 at 7:25 AM, Allan CORNET wrote: > Hi, > > > > We create a bug report about this trouble. > > > > http://bugzilla.scilab.org/show_bug.cgi?id=6681 > > > > Best Regards > > > > Allan CORNET > > > > -- > > Allan CORNET > > ------------------------- > > The Scilab Consortium > > Digiteo > > Domaine de Voluceau > > Rocquencourt - B.P. 105 > > 78153 Le Chesnay Cedex > > France > > > > > > *De :* Carlos Eduardo Celia de Lima [mailto:carlosedlima at gmail.com] > *Envoy? :* jeudi 25 f?vrier 2010 12:14 > *? :* users at lists.scilab.org > *Objet :* [scilab-Users] Scilab crashes with the use of neldermead > function > > > > Hi, > > > > I am trying to run an optimization using Scilab but it crashes when I > execute it. > > > > I am using windows XP64 and I tried versions 5.2.1 and 5.2.0 both 66 and 32 > bits. I even downloaded version 4, but there is no support for neldermead. > > > > I attached my code. Please let me know if you can run this analysis and > what kind of machine you are using. > > > > Thank you very much. > > > > Carlos > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bdiakhat at ucad.sn Thu Feb 25 09:14:43 2010 From: bdiakhat at ucad.sn (bdiakhat at ucad.sn) Date: Thu, 25 Feb 2010 08:14:43 +0000 Subject: demande Message-ID: <20100225081443.17307b778h2eupc8@mail.ucad.sn> 1) ayant le polyn?me suivant p(x)=(x-1)(x-2)(x-3); comment obtenir le polyn?me avec scilab: q=p(sqrt(x))p(-sqrt(x)) c?d q=(sqrt(x)-1)(sqrt(x)-2)(sqrt(x)-3)(-sqrt(x)-1)(-sqrt(x)-2)(-sqrt(x)-3)? 2) si f et g sont deux polyn?mes est ce possible d'obtenir formellement avec scilab r(x)=Res( f(x+y),g(y)), avec Res est le r?sultant des deux polyn?mes f et g? Urgent!!! Cordialement From JKekana at csir.co.za Thu Feb 25 11:30:11 2010 From: JKekana at csir.co.za (Joshua Kekana) Date: Thu, 25 Feb 2010 12:30:11 +0200 Subject: Question Message-ID: <4B866D52.FE36.007D.0@csir.co.za> Hi How do i reference scilab after using it to carry out a masters project Joshua -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. From Samuel.Gougeon at univ-lemans.fr Thu Feb 25 18:59:09 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Thu, 25 Feb 2010 18:59:09 +0100 Subject: [scilab-Users] Scilab crashes with the use of neldermead function In-Reply-To: References: Message-ID: <20100225185909.79953zf48fg9hx1c@webmail2.univ-lemans.fr> Carlos Eduardo Celia de Lima a ?crit?: > Hi, > > I am trying to run an optimization using Scilab but it crashes when I > execute it. Hello Carlos, Just having a look at your script and embedded function definitions, some questions arise, that may be of concern for the crash: * In function xdot=f(t,x,u), you are using z=u(t) while latter in the script, you define function ut=u(t,alpha). I guess that z=u(t) adresses the u passed as an input parameter of f(), and not the function u(). But this is not obvious, and there may be a confusion. * Same thing inside function ut=u(t,alpha) : with u(1)=alpha(1); // line 55) u((c*i)+1)=alpha(i+1); // line 57 While both lines could be interpreted as recursive calls to the _function_ u() only by a not enough clever parser (since u() is here Left Hand Side argument), the next case on line 63 in stranger: u(i+1)=u(i)+ (((time0(i+1)-time0(i))/(time0(w+2)-time0(i)))*(u(w+2)-u(i))); where u(i) and u(w+2) may be understood as recursive calls to the function u(). Finally, line 66: ut=u'; // Whether the parser understands u as the function, then transposing a function could be an issue for it. I don't know if the confusion between both u() as a function and as a vector is the issue. Nevertheless, it could be worthwhile to rename one of both, and then try again. HTH Samuel From carlosedlima at gmail.com Thu Feb 25 20:06:28 2010 From: carlosedlima at gmail.com (Carlos Eduardo Celia de Lima) Date: Thu, 25 Feb 2010 14:06:28 -0500 Subject: [scilab-Users] Scilab crashes with the use of neldermead function In-Reply-To: <20100225185909.79953zf48fg9hx1c@webmail2.univ-lemans.fr> References: <20100225185909.79953zf48fg9hx1c@webmail2.univ-lemans.fr> Message-ID: Samuel, Thanks for your reply. If I understood you correctly, I did the change as you suggested but it still crashes. You were right, my function u(t) returned a vector, and I picked the correct value inside the other function. Now, my function u(t) returns the exact value for u(t), a scalar. I can simulate all the functions normally with no error, but whenever I try to optimize it with nelder_mead, Sci-lab crashes. Unfortunately, it's too fast for me to see the error message. Is there a log file that I can check? Since the file is pretty small, I attached the file. Thank you. Carlos On Thu, Feb 25, 2010 at 12:59 PM, Samuel Gougeon < Samuel.Gougeon at univ-lemans.fr> wrote: > > Carlos Eduardo Celia de Lima a ?crit : > > > Hi, >> >> I am trying to run an optimization using Scilab but it crashes when I >> execute it. >> > > Hello Carlos, > Just having a look at your script and embedded function definitions, > some questions arise, that may be of concern for the crash: > * In function xdot=f(t,x,u), you are using z=u(t) > while latter in the script, you define function ut=u(t,alpha). > I guess that z=u(t) adresses the u passed as an input > parameter of f(), and not the function u(). But this is not obvious, > and there may be a confusion. > * Same thing inside function ut=u(t,alpha) : with > u(1)=alpha(1); // line 55) > u((c*i)+1)=alpha(i+1); // line 57 > While both lines could be interpreted as recursive calls to the > _function_ u() only by a not enough clever parser (since u() is here > Left Hand Side argument), the next case on line 63 in stranger: > u(i+1)=u(i)+ > (((time0(i+1)-time0(i))/(time0(w+2)-time0(i)))*(u(w+2)-u(i))); > where u(i) and u(w+2) may be understood as recursive calls to the function > u(). > Finally, line 66: > ut=u'; // Whether the parser understands u as the function, then > transposing > a function could be an issue for it. > > I don't know if the confusion between both u() as a function and as a > vector > is the issue. Nevertheless, it could be worthwhile to rename one of both, > and then try again. > > HTH > Samuel > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: function_ode.sce Type: application/octet-stream Size: 2080 bytes Desc: not available URL: From d.picard at opgc.univ-bpclermont.fr Fri Feb 26 11:07:05 2010 From: d.picard at opgc.univ-bpclermont.fr (David PICARD) Date: Fri, 26 Feb 2010 11:07:05 +0100 Subject: transfer function, z^-1 form Message-ID: <4B879D49.8080900@opgc.univ-bpclermont.fr> I need some help to define the following transfer function : 0.381417 z^-1 + 0.310306 z^-2 --------------------------------- 1 - 0.857089 z^-1 + 0.548812 z^-2 This is a 2nd order system : w0=1, Damp=1.3, Gain=1.0, Te=1s I tried : -->z=%z; -->sys=syslin(1.0,(0.38*z^-1+0.31*z^-2)/(1+0.86*z^-1+0.55*z^-2)) sys = 0.31 + 0.38z ---------------- 2 0.55 + 0.86z + z But it NOT what I asked !!! Help ! It is so straightforward with GNU Octave, that I am really frustrated ! > sys=tf([0.000000 0.381417 0.310306],[1.000000 -0.857089 0.548812],1.0); > step(sys) // shows the oscillating, stabilizing step response From yann.collette at scilab.org Fri Feb 26 11:13:01 2010 From: yann.collette at scilab.org (Collette yann) Date: Fri, 26 Feb 2010 11:13:01 +0100 Subject: [scilab-Users] transfer function, z^-1 form In-Reply-To: <4B879D49.8080900@opgc.univ-bpclermont.fr> References: <4B879D49.8080900@opgc.univ-bpclermont.fr> Message-ID: <4B879EAD.2060507@scilab.org> For me it corresponds to the good transfert function: 0.31 + 0.38z z^2* (0.31*z^-2 + 0.38*z^-1) ---------------- = ------------------------------------ 0.55 + 0.86z + z ^2 z^2*(0.55*z^-2 + 0.86z^-1 + 1) Scilab seems to have simplified in a way your transfert function YC David PICARD a ?crit : > I need some help to define the following transfer function : > > 0.381417 z^-1 + 0.310306 z^-2 > --------------------------------- > 1 - 0.857089 z^-1 + 0.548812 z^-2 > > This is a 2nd order system : w0=1, Damp=1.3, Gain=1.0, Te=1s > > I tried : > -->z=%z; > -->sys=syslin(1.0,(0.38*z^-1+0.31*z^-2)/(1+0.86*z^-1+0.55*z^-2)) > sys = > > 0.31 + 0.38z > ---------------- > 2 > 0.55 + 0.86z + z > > > But it NOT what I asked !!! Help ! > > It is so straightforward with GNU Octave, that I am really frustrated ! >> sys=tf([0.000000 0.381417 0.310306],[1.000000 -0.857089 0.548812],1.0); >> step(sys) // shows the oscillating, stabilizing step response > > > From d.picard at opgc.univ-bpclermont.fr Fri Feb 26 11:34:20 2010 From: d.picard at opgc.univ-bpclermont.fr (David PICARD) Date: Fri, 26 Feb 2010 11:34:20 +0100 Subject: [scilab-Users] transfer function, z^-1 form In-Reply-To: <4B879EAD.2060507@scilab.org> References: <4B879D49.8080900@opgc.univ-bpclermont.fr> <4B879EAD.2060507@scilab.org> Message-ID: <4B87A3AC.4020608@opgc.univ-bpclermont.fr> Ooops, sorry, you're right. I mistyped the denominator (0.86z^-1 instead of -0.86z^-1) . Of course, I was confused by the weird step response... Is it possible to specify the transfer function with polynoms ? In this case, it would be something like : num = [0 0.38 0.31] den = [1 -0.86 0.55] Regards. Collette yann a ?crit : > > For me it corresponds to the good transfert function: > > 0.31 + 0.38z z^2* (0.31*z^-2 + 0.38*z^-1) > ---------------- = ------------------------------------ > 0.55 + 0.86z + z ^2 z^2*(0.55*z^-2 + 0.86z^-1 + 1) > > Scilab seems to have simplified in a way your transfert function > > YC > > > David PICARD a ?crit : >> I need some help to define the following transfer function : >> >> 0.381417 z^-1 + 0.310306 z^-2 >> --------------------------------- >> 1 - 0.857089 z^-1 + 0.548812 z^-2 >> >> This is a 2nd order system : w0=1, Damp=1.3, Gain=1.0, Te=1s >> >> I tried : >> -->z=%z; >> -->sys=syslin(1.0,(0.38*z^-1+0.31*z^-2)/(1+0.86*z^-1+0.55*z^-2)) >> sys = >> >> 0.31 + 0.38z >> ---------------- >> 2 >> 0.55 + 0.86z + z >> >> >> But it NOT what I asked !!! Help ! >> >> It is so straightforward with GNU Octave, that I am really frustrated ! >>> sys=tf([0.000000 0.381417 0.310306],[1.000000 -0.857089 0.548812],1.0); >>> step(sys) // shows the oscillating, stabilizing step response >> >> >> > > > From sumit.adhikari at gmail.com Fri Feb 26 12:21:32 2010 From: sumit.adhikari at gmail.com (Sumit Adhikari) Date: Fri, 26 Feb 2010 16:51:32 +0530 Subject: [scilab-Users] transfer function, z^-1 form In-Reply-To: <4B87A3AC.4020608@opgc.univ-bpclermont.fr> References: <4B879D49.8080900@opgc.univ-bpclermont.fr> <4B879EAD.2060507@scilab.org> <4B87A3AC.4020608@opgc.univ-bpclermont.fr> Message-ID: Certainly, Try as in following : num = [0 0.38 0.31] den = [1 -0.86 0.55] Hfilt = poly(num,'z','c')/poly(den,'z','c'); [hfilt,fr] = frmag(Hfilt,1024); ......... and then the story you want to build ................. Let me know if it helps. Regards, Sumit On Fri, Feb 26, 2010 at 4:04 PM, David PICARD < d.picard at opgc.univ-bpclermont.fr> wrote: > Ooops, sorry, you're right. I mistyped the denominator (0.86z^-1 instead of > -0.86z^-1) . Of course, I was confused by the weird step response... > > Is it possible to specify the transfer function with polynoms ? In this > case, it would be something like : > num = [0 0.38 0.31] > den = [1 -0.86 0.55] > > Regards. > > > Collette yann a ?crit : > > >> For me it corresponds to the good transfert function: >> >> 0.31 + 0.38z z^2* (0.31*z^-2 + 0.38*z^-1) >> ---------------- = ------------------------------------ >> 0.55 + 0.86z + z ^2 z^2*(0.55*z^-2 + 0.86z^-1 + 1) >> >> Scilab seems to have simplified in a way your transfert function >> >> YC >> >> >> David PICARD a ?crit : >> >>> I need some help to define the following transfer function : >>> >>> 0.381417 z^-1 + 0.310306 z^-2 >>> --------------------------------- >>> 1 - 0.857089 z^-1 + 0.548812 z^-2 >>> >>> This is a 2nd order system : w0=1, Damp=1.3, Gain=1.0, Te=1s >>> >>> I tried : >>> -->z=%z; >>> -->sys=syslin(1.0,(0.38*z^-1+0.31*z^-2)/(1+0.86*z^-1+0.55*z^-2)) >>> sys = >>> >>> 0.31 + 0.38z >>> ---------------- >>> 2 >>> 0.55 + 0.86z + z >>> >>> >>> But it NOT what I asked !!! Help ! >>> >>> It is so straightforward with GNU Octave, that I am really frustrated ! >>> >>>> sys=tf([0.000000 0.381417 0.310306],[1.000000 -0.857089 0.548812],1.0); >>>> step(sys) // shows the oscillating, stabilizing step response >>>> >>> >>> >>> >>> >> >> >> > -- -------------------------------------------- Sumit Adhikari System Design Engineer austriamicrosystems AG Business Unit : Automotive Mob : 00-91-9885271710/00-91-9000161710 -------------- next part -------------- An HTML attachment was scrubbed... URL: From pierre.judet at fr.michelin.com Fri Feb 26 12:55:34 2010 From: pierre.judet at fr.michelin.com (pierre.judet at fr.michelin.com) Date: Fri, 26 Feb 2010 12:55:34 +0100 Subject: installation of Scilab on Linux Message-ID: Bonjour/hello I have difficulties installing Scilab on Linux (Fedora 12). I am not an expert of Linux, and have no understanding of YUM, etc ... Can you help. Many thanks Pierre JUDET -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Fri Feb 26 13:08:30 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 26 Feb 2010 13:08:30 +0100 Subject: [scilab-Users] installation of Scilab on Linux In-Reply-To: References: Message-ID: <1267186110.14126.5589.camel@korcula.inria.fr> Bonjour Pierre, Le vendredi 26 f?vrier 2010 ? 12:55 +0100, pierre.judet at fr.michelin.com a ?crit : > > Bonjour/hello > > I have difficulties installing Scilab on Linux (Fedora 12). Could you detail the difficulties you have? > I am not an expert of Linux, and have no understanding of YUM, > etc ... For now, Scilab is not available in YUM. Nevertheless, this should be fixed in a close future. Sylvestre From inpost at gmail.com Sat Feb 27 10:17:47 2010 From: inpost at gmail.com (e-letter) Date: Sat, 27 Feb 2010 09:17:47 +0000 Subject: tutorial to plot data 3d Message-ID: <298a6f61002270117q304f70b1j7d10254559c153ad@mail.gmail.com> Readers, I cannot see a guide to plot data in 3d. For example a data set: 1.1 2.2 3.3 1.2 2.3 3.4 1.3 2.4 3.5 1.4 2.5 4.6 I do not know which command to load the text file (test.dat) into the program. Where is the documentation to perform this task. yours, scilab at conference.jabber.org From fvogelnew1 at free.fr Sat Feb 27 10:37:45 2010 From: fvogelnew1 at free.fr (=?UTF-8?B?RnJhbsOnb2lzIFZvZ2Vs?=) Date: Sat, 27 Feb 2010 10:37:45 +0100 Subject: [scilab-Users] tutorial to plot data 3d In-Reply-To: <298a6f61002270117q304f70b1j7d10254559c153ad@mail.gmail.com> References: <298a6f61002270117q304f70b1j7d10254559c153ad@mail.gmail.com> Message-ID: <4B88E7E9.1000406@free.fr> e-letter said on 27/02/2010 10:17: > > I do not know which command to load the text file (test.dat) into the > program. Where is the documentation to perform this task. http://groups.google.fr/group/comp.soft-sys.math.scilab/browse_thread/thread/6bb2c75114dd4383/64404dec04d95c53 Francois From tommaso.solcia at mail.polimi.it Sat Feb 27 16:43:28 2010 From: tommaso.solcia at mail.polimi.it (tommaso.solcia at mail.polimi.it) Date: Sat, 27 Feb 2010 16:43:28 +0100 Subject: scicos integrator time Message-ID: <20100227164328.5ztay6u69wgg0o4k@webmail-stud.polimi.it> Hi all, I need to know the actual timestep size used by scicos integrator during the simulation. In other words I need the exact time-grid used. I could only find the integrator setup, where I can define the maximum stepsize and the tolerances, but with that I will never know the actual stepsize used. I need this to synchronize an external process. Thanks to everybody reading this! Tommaso From mike at kordik.net Sun Feb 28 02:09:34 2010 From: mike at kordik.net (Mike Kordik) Date: Sat, 27 Feb 2010 20:09:34 -0500 Subject: How to add the corr function in a simulation? Message-ID: <4B89C24E.1020209@kordik.net> How do I execute the Scilab corr function in an xcos simulation? From D.Picard at opgc.univ-bpclermont.fr Sun Feb 28 09:15:55 2010 From: D.Picard at opgc.univ-bpclermont.fr (D.Picard at opgc.univ-bpclermont.fr) Date: Sun, 28 Feb 2010 09:15:55 +0100 Subject: Xcos MScope default polyline style Message-ID: <1267344955.4b8a263bb4615@wwwobs.univ-bpclermont.fr> Hi, I am modeling discrete tranfer functions/systems and I would like the MScope block to display staircase style lines, instead of interpolated. How can I set this ? Thanks. -------------------------------------------------------------------- This message was sent using IMP at OPGC, the Internet Messaging Program. From D.Picard at opgc.univ-bpclermont.fr Sun Feb 28 09:20:24 2010 From: D.Picard at opgc.univ-bpclermont.fr (D.Picard at opgc.univ-bpclermont.fr) Date: Sun, 28 Feb 2010 09:20:24 +0100 Subject: Xcos MScope default polyline style Message-ID: <1267345224.4b8a2748097c5@wwwobs.univ-bpclermont.fr> Hi, I am modeling discrete tranfer functions/systems and I would like the MScope block to display staircase style lines, instead of interpolated BY DEFAULT. So far, I have to walk the figure properties to change the line style, but it's a hassle... How can I set this ? Thanks. -------------------------------------------------------------------- This message was sent using IMP at OPGC, the Internet Messaging Program. From paul.carrico at free.fr Sun Feb 28 12:03:21 2010 From: paul.carrico at free.fr (Paul CARRICO) Date: Sun, 28 Feb 2010 12:03:21 +0100 Subject: csv file Message-ID: <002001cab865$a3cfe940$eb6fbbc0$@carrico@free.fr> Hi all, I'm a new user in Scilab soft (it seems to be great) as well as on any similar soft (matlab). I downloaded tutorials in the web and I'm working on it. I've lot of question but let me starting by some general ones ... 1) Does Scilab recognize/import the csv files (the columns are separated by a coma and not a space) 2) I wrote a function and I'm learning on how to plot curves . however is it possible to export such curves in excel file ? Thanks for any help or advice Regards PC -------------- next part -------------- An HTML attachment was scrubbed... URL: From pomchip at free.fr Sun Feb 28 14:18:30 2010 From: pomchip at free.fr (=?ISO-8859-1?Q?S=E9bastien_Bihorel?=) Date: Sun, 28 Feb 2010 08:18:30 -0500 Subject: [scilab-Users] csv file In-Reply-To: <-6404138300676182976@unknownmsgid> References: <-6404138300676182976@unknownmsgid> Message-ID: Hi Paul, 1- Have a look at the excel2sci function. It works just fine for me using the following code: tmp = excel2sci('mycsv.csv',','); // reading the file data.headers = tmp(1,:); // extract headers data.data = evstr(tmp(2:size(tmp,1),:)); // extract data 2- IMO, this is an Excel question rather than a Scilab question. If you saved your Scilab Plot in a graph (e.g. png), you could insert it directly in Excel. HIH Sebastien On Sun, Feb 28, 2010 at 6:03 AM, Paul CARRICO wrote: > Hi all, > > > > I?m a new user in Scilab soft (it seems to be great) as well as on any > similar soft (matlab). > > > > I downloaded tutorials in the web and I?m working on it. > > > > > > > > I?ve lot of question but let me starting by some general ones ... > > > > 1) Does Scilab recognize/import the csv files (the columns are > separated by a coma and not a space) > > 2) I wrote a function and I?m learning on how to plot curves ? > however is it possible to export such curves in excel file ? > > > > Thanks for any help or advice > > > > Regards > > > > PC > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Sun Feb 28 17:46:00 2010 From: paul.carrico at free.fr (Paul CARRICO) Date: Sun, 28 Feb 2010 17:46:00 +0100 Subject: [scilab-Users] csv file In-Reply-To: References: <-6404138300676182976@unknownmsgid> Message-ID: <000301cab895$825755c0$87060140$@carrico@free.fr> Thanks for this first answer, Item 2 : this is probably a misunderstanding .. indeed I want to know if SCILAB can generate an excel file with graphs (kind of template for external export) ? Paul De : sbihorel at gmail.com [mailto:sbihorel at gmail.com] De la part de S?bastien Bihorel Envoy? : dimanche 28 f?vrier 2010 14:19 ? : users at lists.scilab.org Objet : Re: [scilab-Users] csv file Hi Paul, 1- Have a look at the excel2sci function. It works just fine for me using the following code: tmp = excel2sci('mycsv.csv',','); // reading the file data.headers = tmp(1,:); // extract headers data.data = evstr(tmp(2:size(tmp,1),:)); // extract data 2- IMO, this is an Excel question rather than a Scilab question. If you saved your Scilab Plot in a graph (e.g. png), you could insert it directly in Excel. HIH Sebastien On Sun, Feb 28, 2010 at 6:03 AM, Paul CARRICO wrote: Hi all, I?m a new user in Scilab soft (it seems to be great) as well as on any similar soft (matlab). I downloaded tutorials in the web and I?m working on it. I?ve lot of question but let me starting by some general ones ... 1) Does Scilab recognize/import the csv files (the columns are separated by a coma and not a space) 2) I wrote a function and I?m learning on how to plot curves however is it possible to export such curves in excel file ? Thanks for any help or advice Regards PC -------------- next part -------------- An HTML attachment was scrubbed... URL: