From motamedi24 at gmail.com Mon Nov 1 05:43:01 2010 From: motamedi24 at gmail.com (hadi motamedi) Date: Mon, 1 Nov 2010 08:13:01 +0330 Subject: Speech processing toolbox? Message-ID: Dear All Do we have speech processing toolbox under SciLab (like the one that MATLAB has) ? Thank you From sam at cctech.co.in Mon Nov 1 12:52:17 2010 From: sam at cctech.co.in (Sam Mathew) Date: Mon, 1 Nov 2010 17:22:17 +0530 Subject: transforming the polynomial variable Message-ID: Hi, Given a polynomial function, how can one find another polynomial function which is obtained by translating the variable by a constant parameter. For e.g., if, Velocity = 2 + 3*x + 5*x^2, if the origin is shifted to say, (2,3), in the positive direction, i.e., x is to be replaced by x-2; is there a built-in function for finding the Velocity function (in polynomial form) in the new coordinate system? Is it possible to extend it to polynomials in two variables? Is it possible to also perform such transformations if a function is of two variables x and y, and the coordinate axes undergo different transformations (translation, rotation, etc.). Thanks and regards, Sam -- Asst. Manager, CFD Centre for Computational Technologies www.cctech.co.in Phone: +91 20 2552 1873 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Mon Nov 1 21:04:55 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Mon, 01 Nov 2010 21:04:55 +0100 Subject: [scilab-Users] transforming the polynomial variable In-Reply-To: References: Message-ID: <20101101210455.87052s3jnxyyx7cw@webmail1.univ-lemans.fr> Hi, Sam Mathew a ?crit?: > Given a polynomial function, how can one find another polynomial function > which is obtained by translating the variable by a constant parameter. > > For e.g., if, > Velocity = 2 + 3*x + 5*x^2, > > if the origin is shifted to say, (2,3), in the positive direction, i.e., x > is to be replaced by x-2; is there a built-in function for finding the > Velocity function (in polynomial form) in the new coordinate system? Let Velocity = poly([2 3 5],"z","coeff") Velocity = 2 2 + 3z + 5z Then : NewVelocity = horner(Velocity,%z-2) -->NewVelocity = horner(Velocity,%z-2) NewVelocity = 2 16 - 17z + 5z // %z is a predefined variable. If you prefer "x", do first x = poly(0,"x") > Is it possible to extend it to polynomials in two variables? Yes, with some work. But it is not yet available in Scilab itself (maybe in an external module. Likely through Maxima) > Is it possible to also perform such transformations if a function is of two > variables x and y, and the coordinate axes undergo different transformations > (translation, rotation, etc.). It could be, whether the polynomial could be applied to a matrix (it can) in a matrix way. But it is not the case : horner() works on a matrix only in a element-wise way. Regards Samuel From monmayrant at laas.fr Tue Nov 2 09:30:44 2010 From: monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 02 Nov 2010 09:30:44 +0100 Subject: [scilab-Users] Having problems Using Plot functions In-Reply-To: References: Message-ID: <4CCFCC34.7040706@laas.fr> Le 30/10/2010 10:37, Thakkar Ishan a ?crit : > Hello, > > I am having problems. Whenever I try to plot any graph, the scilab > crashes and it closes everything. This happens even when I use Scilab > Demonstrations for graphics. > > Is anything missing in my system? Most probably, this is a video driver issue. Try first to install the latest driver for your video card and check that openGL is working properly. > Should I install another improved version of scilab? No, you should check your video driver before trying anything else > Please, help me through as soon as possible. > > Thank you, > -Ishan Antoine From j.s.strom at hslmg.de Tue Nov 2 11:37:12 2010 From: j.s.strom at hslmg.de (Jens Simon) Date: Tue, 2 Nov 2010 10:37:12 +0000 (UTC) Subject: Drawing a pierced rectangle facet References: <20101029012749.13901wvorl8odfcw@webmail2.univ-lemans.fr> Message-ID: Hallo Samuel, thank you for posting your code. I like it more than mine in the 2D case. However - the origin of my question is 3D. I have written a modest "toolbox" with 3D-elements like cylinder, pineapple slice, sphere, cuboid and pierced cuboid using plot3d2. The toolbox is to allow simple 3D drawings which can be zoomed and rotated. To facilitate communication in my post I reduced it to 2D - which was misleading in this case instead of easing, sorry. So I have to stay with my somewhat complicated plot3d2 approach. Kind regards Jens From Francis.Drossaert at pgs.com Tue Nov 2 10:45:26 2010 From: Francis.Drossaert at pgs.com (Francis Drossaert) Date: Tue, 2 Nov 2010 09:45:26 +0000 Subject: [scilab-Users] Problem when plotting under windows with Scilab v5.3 beta4 In-Reply-To: References: Message-ID: <31F3753170EA6B45A8DA96C0FD58E026BA0F866F@lonms20.onshore.pgs.com> A bit difficult to tell without knowing what are you missing? But it looks fine on my LINUX-64bit. From: Hubert Dupond [mailto:glaytozen at gmail.com] Sent: 31 October 2010 16:51 To: users at lists.scilab.org Subject: [scilab-Users] Problem when plotting under windows with Scilab v5.3 beta4 Hi, I have a problem when I execute this routine under Scilab v5.3 beta 4 under windows XP v3 (screen resolution 1280x800). A part of the plot is missing. Someone could tell me if this is already an "official bug"? Does this bug will be fixed in the final version of Scilab v5.3? Thank you. CODE : clear; close; clc; t = linspace(0,61.443281,393267); Z = 750*sin(2.*%pi.*0.25.*t); drawlater() plot2d(t,Z,style=color('red')); a=gca();who a.x_label.font_size = 2; a.y_label.font_size = 2; a.title.font_size = 4; a.font_size = 2; a.sub_tics = [5,4]; a.labels_font_color = 1; id = color(200,200,200); a.grid = [id,id]; a.parent.figure_size = [800,600]; a.parent.figure_position = [0,0]; a.box = "on"; a.x_label.text="Time [s]"; a.x_label.font_style = 6; a.x_label.font_size = 4; a.y_label.text="Amplitude"; a.y_label.font_style = 6; a.y_label.font_size = 4; drawnow() This e-mail, including any attachments and response string, may contain proprietary information which is confidential and may be legally privileged. It is for the intended recipient only. If you are not the intended recipient or transmission error has misdirected this e-mail, please notify the author by return e-mail and delete this message and any attachment immediately. If you are not the intended recipient you must not use, disclose, distribute, forward, copy, print or rely on this e-mail in any way except as permitted by the author. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: f0.png Type: image/png Size: 8326 bytes Desc: f0.png URL: From ginters.buss at gmail.com Tue Nov 2 15:17:54 2010 From: ginters.buss at gmail.com (=?UTF-8?Q?Ginters_Bu=C5=A1s?=) Date: Tue, 2 Nov 2010 16:17:54 +0200 Subject: how to call an executable from Scilab Message-ID: Dear all, Can anybody tell me how to call an executable file with possible input parameters from Scilab? I know in Matlab it is something like run('address\file.exe') or !file.exe but those do not seem to work in Scilab. Sincerely, Ginters -------------- next part -------------- An HTML attachment was scrubbed... URL: From allan.cornet at scilab.org Tue Nov 2 15:36:33 2010 From: allan.cornet at scilab.org (Allan CORNET) Date: Tue, 2 Nov 2010 15:36:33 +0100 Subject: [scilab-Users] how to call an executable from Scilab In-Reply-To: References: Message-ID: <003f01cb7a9b$58ddedd0$0a99c970$@scilab.org> Hi, help unix Allan De : Ginters Bu?s [mailto:ginters.buss at gmail.com] Envoy? : mardi 2 novembre 2010 15:18 ? : users at lists.scilab.org Objet : [scilab-Users] how to call an executable from Scilab Dear all, Can anybody tell me how to call an executable file with possible input parameters from Scilab? I know in Matlab it is something like run('address\file.exe') or !file.exe but those do not seem to work in Scilab. Sincerely, Ginters -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Tue Nov 2 21:08:57 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Tue, 02 Nov 2010 21:08:57 +0100 Subject: [scilab-Users] Drawing a pierced rectangle facet In-Reply-To: <20101029012749.13901wvorl8odfcw@webmail2.univ-lemans.fr> References: <20101029012749.13901wvorl8odfcw@webmail2.univ-lemans.fr> Message-ID: <4CD06FD9.5010407@univ-lemans.fr> ----- Message d'origine ----- De : Samuel Gougeon Date : 29/10/2010 01:27: > > PS: I tried with plot3d() according to the same philosophy, > but it does not work. I didn't figure out why... It is due to a bug, reported here: http://bugzilla.scilab.org/show_bug.cgi?id=8310 Samuel From glaytozen at gmail.com Wed Nov 3 07:11:07 2010 From: glaytozen at gmail.com (Hubert Dupond) Date: Wed, 3 Nov 2010 07:11:07 +0100 Subject: [scilab-Users] Problem when plotting under windows with Scilab v5.3 beta4 In-Reply-To: <31F3753170EA6B45A8DA96C0FD58E026BA0F866F@lonms20.onshore.pgs.com> References: <31F3753170EA6B45A8DA96C0FD58E026BA0F866F@lonms20.onshore.pgs.com> Message-ID: Hi, Sorry. I though I send the picture file too. The last part of the x scale and the signal are missing. I'm on windows XP SP3. Does it help ? Guillaume 2010/11/2 Francis Drossaert > A bit difficult to tell without knowing what are you missing? But it > looks fine on my LINUX-64bit. > > > > > > *From:* Hubert Dupond [mailto:glaytozen at gmail.com] > *Sent:* 31 October 2010 16:51 > *To:* users at lists.scilab.org > *Subject:* [scilab-Users] Problem when plotting under windows with Scilab > v5.3 beta4 > > > > Hi, > > I have a problem when I execute this routine under Scilab v5.3 beta 4 under > windows XP v3 (screen resolution 1280x800). A part of the plot is missing. > > Someone could tell me if this is already an "official bug"? > > Does this bug will be fixed in the final version of Scilab v5.3? > > Thank you. > > > CODE : > > clear; close; clc; > > t = linspace(0,61.443281,393267); > > Z = 750*sin(2.*%pi.*0.25.*t); > > drawlater() > > plot2d(t,Z,style=color('red')); > > a=gca();who > a.x_label.font_size = 2; > a.y_label.font_size = 2; > a.title.font_size = 4; > a.font_size = 2; > > a.sub_tics = [5,4]; > a.labels_font_color = 1; > id = color(200,200,200); > a.grid = [id,id]; > a.parent.figure_size = [800,600]; > a.parent.figure_position = [0,0]; > a.box = "on"; > > a.x_label.text="Time [s]"; > a.x_label.font_style = 6; > a.x_label.font_size = 4; > a.y_label.text="Amplitude"; > a.y_label.font_style = 6; > a.y_label.font_size = 4; > > drawnow() > > > This e-mail, including any attachments and response string, may contain > proprietary information which is confidential and may be legally privileged. > It is for the intended recipient only. If you are not the intended recipient > or transmission error has misdirected this e-mail, please notify the author > by return e-mail and delete this message and any attachment immediately. If > you are not the intended recipient you must not use, disclose, distribute, > forward, copy, print or rely on this e-mail in any way except as permitted > by the author. ?? > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: question.jpg Type: image/jpeg Size: 175873 bytes Desc: not available URL: From Peter.Cusack at csiro.au Tue Nov 2 23:05:51 2010 From: Peter.Cusack at csiro.au (Peter.Cusack at csiro.au) Date: Wed, 3 Nov 2010 09:05:51 +1100 Subject: [scilab-Users] Problem when plotting under windows with Scilab v5.3 beta4 In-Reply-To: References: Message-ID: It works fine under 5.2, Hubert. What is missing from your plot? Is it repeatable? Cheers; Peter From: Hubert Dupond [mailto:glaytozen at gmail.com] Sent: Monday, 1 November 2010 03:51 To: users at lists.scilab.org Subject: [scilab-Users] Problem when plotting under windows with Scilab v5.3 beta4 Hi, I have a problem when I execute this routine under Scilab v5.3 beta 4 under windows XP v3 (screen resolution 1280x800). A part of the plot is missing. Someone could tell me if this is already an "official bug"? Does this bug will be fixed in the final version of Scilab v5.3? Thank you. CODE : clear; close; clc; t = linspace(0,61.443281,393267); Z = 750*sin(2.*%pi.*0.25.*t); drawlater() plot2d(t,Z,style=color('red')); a=gca();who a.x_label.font_size = 2; a.y_label.font_size = 2; a.title.font_size = 4; a.font_size = 2; a.sub_tics = [5,4]; a.labels_font_color = 1; id = color(200,200,200); a.grid = [id,id]; a.parent.figure_size = [800,600]; a.parent.figure_position = [0,0]; a.box = "on"; a.x_label.text="Time [s]"; a.x_label.font_style = 6; a.x_label.font_size = 4; a.y_label.text="Amplitude"; a.y_label.font_style = 6; a.y_label.font_size = 4; drawnow() -------------- next part -------------- An HTML attachment was scrubbed... URL: From glaytozen at gmail.com Wed Nov 3 11:12:31 2010 From: glaytozen at gmail.com (Hubert Dupond) Date: Wed, 3 Nov 2010 11:12:31 +0100 Subject: [scilab-Users] Problem when plotting under windows with Scilab v5.3 beta4 In-Reply-To: References: Message-ID: It's new on 5.3 (i can remember if it's only on beta 4 ?). It happens every time I send the command : a.parent.figure_size = [X,Y]; with this type of previous commands. I send the picture in attached file. Guillaume 2010/11/2 > It works fine under 5.2, Hubert. What is missing from your plot? Is it > repeatable? > > > > Cheers; > > > > Peter > > > > *From:* Hubert Dupond [mailto:glaytozen at gmail.com] > *Sent:* Monday, 1 November 2010 03:51 > > *To:* users at lists.scilab.org > *Subject:* [scilab-Users] Problem when plotting under windows with Scilab > v5.3 beta4 > > > > Hi, > > > I have a problem when I execute this routine under Scilab v5.3 beta 4 under > windows XP v3 (screen resolution 1280x800). A part of the plot is missing. > > Someone could tell me if this is already an "official bug"? > > Does this bug will be fixed in the final version of Scilab v5.3? > > Thank you. > > > CODE : > > clear; close; clc; > > t = linspace(0,61.443281,393267); > > Z = 750*sin(2.*%pi.*0.25.*t); > > drawlater() > > plot2d(t,Z,style=color('red')); > > a=gca();who > a.x_label.font_size = 2; > a.y_label.font_size = 2; > a.title.font_size = 4; > a.font_size = 2; > > a.sub_tics = [5,4]; > a.labels_font_color = 1; > id = color(200,200,200); > a.grid = [id,id]; > a.parent.figure_size = [800,600]; > a.parent.figure_position = [0,0]; > a.box = "on"; > > a.x_label.text="Time [s]"; > a.x_label.font_style = 6; > a.x_label.font_size = 4; > a.y_label.text="Amplitude"; > a.y_label.font_style = 6; > a.y_label.font_size = 4; > > drawnow() > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: question.jpg Type: image/jpeg Size: 175873 bytes Desc: not available URL: From michael.baudin at scilab.org Wed Nov 3 13:55:24 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Wed, 03 Nov 2010 13:55:24 +0100 Subject: [scilab-Users] Stixbox dnorm function - formula error? In-Reply-To: <4CCB3A21.7030309@univ-lemans.fr> References: <4CCB2A11.1000104@sgl.com> <4CCB3A21.7030309@univ-lemans.fr> Message-ID: <4CD15BBC.6030400@scilab.org> Hi, I will fix this one. Best regards, Micha?l Baudin PS But there is a lot of work on this module to achieve a sufficient level of quality. See the bug reports at : http://forge.scilab.org/index.php/p/stixbox/issues/ Le 29/10/2010 23:18, Samuel GOUGEON a ?crit : > Hi Stefan, > > ----- Message d'origine ----- > De : Stefan Elieff > Date : 29/10/2010 22:09: >> >> Have I missed something, or is the function wrong? Judging from the >> comments at the top of the dnorm.sci file (which also has the wrong >> equation) I'd guess it's been like this since 1993. >> >> If this is wrong, any idea how to go about contacting the right >> people to get this fixed? > Congratulations for your perspicacity! > > You may leave a message here: > http://atoms.scilab.org/toolboxes/stixbox/1.2.6 > or register (once again...) and open a ticket here: > http://forge.scilab.org/index.php/p/stixbox/ > > Regards > Samuel > -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 From selieff at sgl.com Wed Nov 3 15:06:33 2010 From: selieff at sgl.com (Stefan Elieff) Date: Wed, 03 Nov 2010 10:06:33 -0400 Subject: [scilab-Users] Stixbox dnorm function - formula error? In-Reply-To: <4CD15BBC.6030400@scilab.org> References: <4CCB2A11.1000104@sgl.com> <4CCB3A21.7030309@univ-lemans.fr> <4CD15BBC.6030400@scilab.org> Message-ID: <4CD16C69.2030707@sgl.com> Thanks. I am more cautious about its use now. Cheers, Stefan On 2010-11-03 8:55 AM, Micha?l Baudin wrote: > Hi, > > I will fix this one. > > Best regards, > > Micha?l Baudin > > PS > But there is a lot of work on this module to achieve a sufficient level > of quality. > See the bug reports at : > http://forge.scilab.org/index.php/p/stixbox/issues/ > > Le 29/10/2010 23:18, Samuel GOUGEON a ?crit : >> Hi Stefan, >> >> ----- Message d'origine ----- >> De : Stefan Elieff >> Date : 29/10/2010 22:09: >>> >>> Have I missed something, or is the function wrong? Judging from the >>> comments at the top of the dnorm.sci file (which also has the wrong >>> equation) I'd guess it's been like this since 1993. >>> >>> If this is wrong, any idea how to go about contacting the right >>> people to get this fixed? >> Congratulations for your perspicacity! >> >> You may leave a message here: >> http://atoms.scilab.org/toolboxes/stixbox/1.2.6 >> or register (once again...) and open a ticket here: >> http://forge.scilab.org/index.php/p/stixbox/ >> >> Regards >> Samuel >> > > -- Sander Geophysics Ltd. 260 Hunt Club Rd. Ottawa, ON K1V 1C1 CANADA Phone: +1 613 521 9626 Fax: +1 613 521 0215 Web: www.sgl.com From j.s.strom at hslmg.de Wed Nov 3 16:59:26 2010 From: j.s.strom at hslmg.de (JensSimon) Date: Wed, 3 Nov 2010 15:59:26 +0000 (UTC) Subject: Drawing a pierced rectangle facet References: <20101029012749.13901wvorl8odfcw@webmail2.univ-lemans.fr> <4CD06FD9.5010407@univ-lemans.fr> Message-ID: Samuel GOUGEON writes: > > ----- Message d'origine ----- > De : Samuel Gougeon > Date : 29/10/2010 01:27: > > > > PS: I tried with plot3d() according to the same philosophy, > > but it does not work. I didn't figure out why... > It is due to a bug, reported here: http://bugzilla.scilab.org/show_bug.cgi?id=8310 > > Samuel Hello Samuel, I think it is due to the different approaches of xfpoly and plot3d2. In plot3d2 the input matrices must be designed so that every 2 x 2-submatrix represents a quadrangle. If necessary the quadrangles can be recuced to triangles or lines by inventing fictive identical values. The latter trick is essential to become capable of acting with plot3d2 Kind regards Jens From jussi.mattila at gtk.fi Thu Nov 4 07:59:06 2010 From: jussi.mattila at gtk.fi (Mattila Jussi) Date: Thu, 4 Nov 2010 08:59:06 +0200 Subject: Tcl/Tk interface for Mac-version Message-ID: <121289105D47A448A65264AFB61012CEF5FAE8758F@EXVS02.postipalvelut.lounet> Hi, It seems that the pre-built Mac-version of Scilab comes without Tcl/Tk interface. How is this so? Due to that I am experiencing problems with editing the figures. Regards, Jussi Mattila -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.baudin at scilab.org Thu Nov 4 10:20:41 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Thu, 04 Nov 2010 10:20:41 +0100 Subject: [scilab-Users] Stixbox dnorm function - formula error? In-Reply-To: <4CD16C69.2030707@sgl.com> References: <4CCB2A11.1000104@sgl.com> <4CCB3A21.7030309@univ-lemans.fr> <4CD15BBC.6030400@scilab.org> <4CD16C69.2030707@sgl.com> Message-ID: <4CD27AE9.4090600@scilab.org> Hi, I fixed the bug : http://forge.scilab.org/index.php/p/stixbox/source/tree/master/macros/dnorm.sci I pushed a new version on ATOMS : http://atoms.scilab.org/toolboxes/stixbox/0.2 "Thanks. I am more cautious about its use now. " As with any other tool: there is nothing special about Stixbox here. Best regards, Micha?l Baudin Le 03/11/2010 15:06, Stefan Elieff a ?crit : > Thanks. I am more cautious about its use now. > > Cheers, > Stefan > > > On 2010-11-03 8:55 AM, Micha?l Baudin wrote: >> Hi, >> >> I will fix this one. >> >> Best regards, >> >> Micha?l Baudin >> >> PS >> But there is a lot of work on this module to achieve a sufficient level >> of quality. >> See the bug reports at : >> http://forge.scilab.org/index.php/p/stixbox/issues/ >> >> Le 29/10/2010 23:18, Samuel GOUGEON a ?crit : >>> Hi Stefan, >>> >>> ----- Message d'origine ----- >>> De : Stefan Elieff >>> Date : 29/10/2010 22:09: >>>> >>>> Have I missed something, or is the function wrong? Judging from the >>>> comments at the top of the dnorm.sci file (which also has the wrong >>>> equation) I'd guess it's been like this since 1993. >>>> >>>> If this is wrong, any idea how to go about contacting the right >>>> people to get this fixed? >>> Congratulations for your perspicacity! >>> >>> You may leave a message here: >>> http://atoms.scilab.org/toolboxes/stixbox/1.2.6 >>> or register (once again...) and open a ticket here: >>> http://forge.scilab.org/index.php/p/stixbox/ >>> >>> Regards >>> Samuel >>> >> >> > -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 From Samuel.Gougeon at univ-lemans.fr Thu Nov 4 10:59:18 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Thu, 04 Nov 2010 10:59:18 +0100 Subject: [scilab-Users] Re: Drawing a pierced rectangle facet In-Reply-To: References: <20101029012749.13901wvorl8odfcw@webmail2.univ-lemans.fr> <4CD06FD9.5010407@univ-lemans.fr> Message-ID: <4CD283F6.7080605@univ-lemans.fr> Hello Jens, ----- Message d'origine ----- De : JensSimon Date : 03/11/2010 16:59: > Hello Samuel, > I think it is due to the different approaches of xfpoly and plot3d2. The bug is about plot3d() -- not plot3d2() -- that was able to draw any set of 3D polygones until Scilab 4.1.2, whatever was the number of their edges, and that is bugged now (= regression). Both 4.1.2 and 5.3.0 results are illustrated in the bug report. By the way, after a xfpoly() instruction, it is straightforward to change the _3D_ coordinates of the polygone's vertices. You may run the updated script given below (see its last lines) > In plot3d2 the input matrices must be designed so that every 2 x 2-submatrix > represents a quadrangle. If necessary the quadrangles can be recuced to > triangles or lines by inventing fictive identical values. The latter trick is > essential to become capable of acting with plot3d2 Quadrangles are not enought to simplify your drawing, and if it is always possible to mask some vertices either by setting one of their coordinates to %nan, or by setting adjacent vertices as identical, it would mainly be required -- but not possible -- to _add_ some vertices to build N-edged polygones. So, unfortunately, there is no easy work-around to the reported bug, and maybe i will increase its severity. Best regards Samuel --------- // Flat rectangle into (xOy) rdX = 5; rdY = 3; rXY = [ 0 0 rdX rdX 0 ; 0 rdY rdY 0 0 ]'; // Flat circular hole into (x0y) n = 40; // number of edges theta = linspace(-%pi,%pi,n+1)'; R = 1; // radius cXo = 3.75; // center's position cYo = 1.2; tho = atan(cYo,cXo); cXY = [ [ cXo+R*cos(theta+tho) ; 0 ] [cYo+R*sin(theta+tho) ; 0 ] ]; // Another one R = 0.3; cXo = 1; cYo = 2; tho = atan(cYo,cXo); cXY2= [ [ cXo+R*cos(theta+tho); 0] [cYo+R*sin(theta+tho); 0] ]; // Connecting & Plotting the whole XY = cat(1,[ 0 0 ], cXY, cXY2, rXY); clf param3d([0 rdX rdX],[0 0 rdY],[0 0 0]) // setting axes bounds... xfpoly(XY(:,1),XY(:,2)); // ... because xfpoly() does not do it! e = gce(); //e.line_mode = "off"; e.background = color("blue"); ca = gca(); ca.isoview="on"; // Animation in Z e = gce(); for i=0:0.05:2, e.data(:,3)=i; sleep(50); end From Samuel.Gougeon at univ-lemans.fr Thu Nov 4 12:13:40 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Thu, 04 Nov 2010 12:13:40 +0100 Subject: double-clic / file : targetting an already open Scilab session Message-ID: <4CD29564.6040302@univ-lemans.fr> Hello, I would like to run some files into _an_already_open_ Scilab session just by double-clicking on them. After having declared the new file type (for Windows XP), double-clicking on a proper file runs it through a _new_ Scilab session. I have not found neither through Windows options, nor through Scilab's command line launching options, how to target an already existing session. Is there a way that i have missed, to do that ? Thank you Samuel From selieff at sgl.com Thu Nov 4 18:53:24 2010 From: selieff at sgl.com (Stefan Elieff) Date: Thu, 04 Nov 2010 13:53:24 -0400 Subject: [scilab-Users] Stixbox dnorm function - formula error? In-Reply-To: <4CD27AE9.4090600@scilab.org> References: <4CCB2A11.1000104@sgl.com> <4CCB3A21.7030309@univ-lemans.fr> <4CD15BBC.6030400@scilab.org> <4CD16C69.2030707@sgl.com> <4CD27AE9.4090600@scilab.org> Message-ID: <4CD2F314.2010805@sgl.com> > "Thanks. I am more cautious about its use now. " > As with any other tool: there is nothing special about Stixbox here. I received the impression from these comments "But there is a lot of work on this module to achieve a sufficient level of quality." "But the global number of unit tests is very low in Stixbox: there is an impressive list of features, but too few tests." that relative to the main SciLab program functions or more widely used tools, more caution is warranted when using Stixbox. Cheers, Stefan On 2010-11-04 5:20 AM, Micha?l Baudin wrote: > Hi, > > I fixed the bug : > > http://forge.scilab.org/index.php/p/stixbox/source/tree/master/macros/dnorm.sci > > > I pushed a new version on ATOMS : > > http://atoms.scilab.org/toolboxes/stixbox/0.2 > > "Thanks. I am more cautious about its use now. " > As with any other tool: there is nothing special about Stixbox here. > > Best regards, > > Micha?l Baudin > > > Le 03/11/2010 15:06, Stefan Elieff a ?crit : >> Thanks. I am more cautious about its use now. >> >> Cheers, >> Stefan >> >> >> On 2010-11-03 8:55 AM, Micha?l Baudin wrote: >>> Hi, >>> >>> I will fix this one. >>> >>> Best regards, >>> >>> Micha?l Baudin >>> >>> PS >>> But there is a lot of work on this module to achieve a sufficient level >>> of quality. >>> See the bug reports at : >>> http://forge.scilab.org/index.php/p/stixbox/issues/ >>> >>> Le 29/10/2010 23:18, Samuel GOUGEON a ?crit : >>>> Hi Stefan, >>>> >>>> ----- Message d'origine ----- >>>> De : Stefan Elieff >>>> Date : 29/10/2010 22:09: >>>>> >>>>> Have I missed something, or is the function wrong? Judging from the >>>>> comments at the top of the dnorm.sci file (which also has the wrong >>>>> equation) I'd guess it's been like this since 1993. >>>>> >>>>> If this is wrong, any idea how to go about contacting the right >>>>> people to get this fixed? >>>> Congratulations for your perspicacity! >>>> >>>> You may leave a message here: >>>> http://atoms.scilab.org/toolboxes/stixbox/1.2.6 >>>> or register (once again...) and open a ticket here: >>>> http://forge.scilab.org/index.php/p/stixbox/ >>>> >>>> Regards >>>> Samuel >>>> >>> >>> >> > > -- Sander Geophysics Ltd. 260 Hunt Club Rd. Ottawa, ON K1V 1C1 CANADA Phone: +1 613 521 9626 Fax: +1 613 521 0215 Web: www.sgl.com From michael.baudin at scilab.org Fri Nov 5 09:01:55 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Fri, 05 Nov 2010 09:01:55 +0100 Subject: [scilab-Users] Stixbox dnorm function - formula error? In-Reply-To: <4CD2F314.2010805@sgl.com> References: <4CCB2A11.1000104@sgl.com> <4CCB3A21.7030309@univ-lemans.fr> <4CD15BBC.6030400@scilab.org> <4CD16C69.2030707@sgl.com> <4CD27AE9.4090600@scilab.org> <4CD2F314.2010805@sgl.com> Message-ID: <4CD3B9F3.3000802@scilab.org> Hi, Thank you for your feedback. I and Allan released the 1.3 version of Stixbox yesterday. To install it : atomsInstall("stixbox") then : atomsLoad("stixbox") (or restart Scilab). To get a quick start : help stixbox_contents To run the unit tests: atomsTest("stixbox") To run the demos : menu ?>Demonstrations>Stixbox Le 04/11/2010 18:53, Stefan Elieff a ?crit : > "But there is a lot of work on this module to achieve a sufficient > level of quality." > relative to the main SciLab program functions or more widely used > tools, more caution is warranted when using Stixbox. I was mainly referring to the lack of examples in many of the help pages, and the lack of unit tests. The second point was unavoidable, given that the unit test system was designed in ~2007-2008, long after the toolbox was first released. For testing purposes, the developpers have written the interactive demonstrations in stixdemo.dem.sce and stixtest.dem.sce. This situation should improve with time, provided that users continue to feed back, as you did. Best regards, Micha?l Baudin -- 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 mathieu.dubois at limsi.fr Fri Nov 5 09:29:05 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Fri, 05 Nov 2010 09:29:05 +0100 Subject: [scilab-Users] Tcl/Tk interface for Mac-version In-Reply-To: <121289105D47A448A65264AFB61012CEF5FAE8758F@EXVS02.postipalvelut.lounet> References: <121289105D47A448A65264AFB61012CEF5FAE8758F@EXVS02.postipalvelut.lounet> Message-ID: <4CD3C051.1090402@limsi.fr> Hello, On 11/04/2010 07:59 AM, Mattila Jussi wrote: > It seems that the pre-built Mac-version of Scilab comes without Tcl/Tk > interface. How is this so? Due to that I am experiencing problems with > editing the figures. I don't use Apple PC but TCL is disabled in the current release: http://www.scilab.org/products/scilab/download/5.2.2/release_notes I don't know the status for 5.3. If you want to change figures, you can do that with regular Scilab functions. You can start with section 7 of "Introduction to Scilab" available here: http://www.scilab.org/support/documentation/tutorials . It takes some time to understand the graphical system but at the end you can really program the look of your figure which is more convenient than repeating the same formatting by hand for every figure (IMHO). And you can go further than classical plots (adding text, arrows to interesting phenomenons, LaTeX formulas)... HTH, Mathieu > Regards, > Jussi Mattila -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Fri Nov 5 11:19:30 2010 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Fri, 5 Nov 2010 11:19:30 +0100 (CET) Subject: Question regarding execstr use Message-ID: <1975941213.3552731288952370432.JavaMail.root@zimbra26-e5.priv.proxad.net> All, Can somebody tell me why the use of execstr leads to an error (?!?!?) ... I had a look on the help documenttation but ???? Thanks for any advice Paul // OK for i = 1 : 5 printf("Hello world %d\n",i) end // error h = 5; execstr("for i = 1 : " + string(h)) execstr("printf(''Hello world %d\n'',i)") execstr("end") Nota : of course execstr are not necessary in the 2 last lines ... last attempts ! From antoine.monmayrant at laas.fr Fri Nov 5 11:32:11 2010 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Fri, 05 Nov 2010 11:32:11 +0100 Subject: [scilab-Users] Question regarding execstr use In-Reply-To: <1975941213.3552731288952370432.JavaMail.root@zimbra26-e5.priv.proxad.net> References: <1975941213.3552731288952370432.JavaMail.root@zimbra26-e5.priv.proxad.net> Message-ID: <4CD3DD2B.7060902@laas.fr> Le 05/11/2010 11:19, paul.carrico at free.fr a ?crit : > All, > > Can somebody tell me why the use of execstr leads to an error (?!?!?) ... I had a look on the help documenttation but ???? > > Thanks for any advice > > Paul > > > // OK > for i = 1 : 5 > printf("Hello world %d\n",i) > end > > > // error > h = 5; > > execstr("for i = 1 : " + string(h)) > execstr("printf(''Hello world %d\n'',i)") > execstr("end") > > Nota : of course execstr are not necessary in the 2 last lines ... last attempts ! You should not split your "for" loop across 3 execstr. If you do everything in one execstr, it works: execstr("for i = 1 : " + string(h)+","+"printf(''Hello world %d\n'',i)"+",end") Antoine From allan.cornet at scilab.org Fri Nov 5 11:33:13 2010 From: allan.cornet at scilab.org (Allan CORNET) Date: Fri, 5 Nov 2010 11:33:13 +0100 Subject: [scilab-Users] Question regarding execstr use In-Reply-To: <1975941213.3552731288952370432.JavaMail.root@zimbra26-e5.priv.proxad.net> References: <1975941213.3552731288952370432.JavaMail.root@zimbra26-e5.priv.proxad.net> Message-ID: <000b01cb7cd4$d95cce00$8c166a00$@scilab.org> Hi, h = 5; execstr("for i = 1 : " + string(h) + ", printf(''Hello world %d\n'',i), end") Allan -----Message d'origine----- De : paul.carrico at free.fr [mailto:paul.carrico at free.fr] Envoy? : vendredi 5 novembre 2010 11:20 ? : users at lists.scilab.org Objet : [scilab-Users] Question regarding execstr use All, Can somebody tell me why the use of execstr leads to an error (?!?!?) ... I had a look on the help documenttation but ???? Thanks for any advice Paul // OK for i = 1 : 5 printf("Hello world %d\n",i) end // error h = 5; execstr("for i = 1 : " + string(h)) execstr("printf(''Hello world %d\n'',i)") execstr("end") Nota : of course execstr are not necessary in the 2 last lines ... last attempts ! From celso.co at gmail.com Fri Nov 5 13:36:38 2010 From: celso.co at gmail.com (Celso Co) Date: Fri, 5 Nov 2010 20:36:38 +0800 Subject: [scilab-Users] Question regarding execstr use In-Reply-To: <1975941213.3552731288952370432.JavaMail.root@zimbra26-e5.priv.proxad.net> References: <1975941213.3552731288952370432.JavaMail.root@zimbra26-e5.priv.proxad.net> Message-ID: Try s="for i=1:5, printf(""Hello World %d\n"",i), end" execstr(s) Note the double quote "". cco On Fri, Nov 5, 2010 at 6:19 PM, wrote: > All, > > Can somebody tell me why the use of execstr leads to an error (?!?!?) ... I had a look on the help documenttation but ???? > > Thanks for any advice > > Paul > > > // OK > for i = 1 : 5 > ? ?printf("Hello world %d\n",i) > end > > > // error > h = 5; > > execstr("for i = 1 : " + string(h)) > ? ?execstr("printf(''Hello world %d\n'',i)") > execstr("end") > > Nota : of course execstr are not necessary in the 2 last lines ... last attempts ! > -- Eng'r Celso B. Co, PhD ECE Assistant Professor Dept. of Electronics, Computer, and Communication Engineering, Loyola Schools of Science and Engineering, Ateneo De Manila From sanjeev211988 at gmail.com Fri Nov 5 16:53:59 2010 From: sanjeev211988 at gmail.com (sanjeev pandey) Date: Fri, 5 Nov 2010 17:53:59 +0200 Subject: License issues with Scilab. Message-ID: Hi, There seems to be several licenses such as: Main software (CeCILL v.2.0), several GPL v.2, BSD, etc. **in the Scilab distribution. I would like to know if the Scilab Consortium has any plans to reduce the number of license and reduce the complexity regarding the licensing issues? Thanks. -- Sanjeev Pandey Graduate Student, Process Systems Engineering Helsinki University of Technology,Finland -------------- next part -------------- An HTML attachment was scrubbed... URL: From motamedi24 at gmail.com Sat Nov 6 06:56:32 2010 From: motamedi24 at gmail.com (hadi motamedi) Date: Sat, 6 Nov 2010 09:26:32 +0330 Subject: 3D plot of Butterworth polynomial? Message-ID: Dear All Can you please let me know how to obtain a 3D plot of the Butterworth polynomial? Thank you For the 2-D Butterworth polynomial , please see :http://www.clear.rice.edu/elec301/Projects01/image_filt/filter.html From sylvestre.ledru at scilab.org Sat Nov 6 19:06:10 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Sat, 06 Nov 2010 19:06:10 +0100 Subject: [scilab-Users] License issues with Scilab. In-Reply-To: References: Message-ID: <1289066770.5389.1030.camel@zlarin> Hello, I don't see any problem here since these licenses are compatible. Many opensource projects are doing the same. Could you explain why you think this would help Scilab to do so ? Regards, Sylvestre Le vendredi 05 novembre 2010 ? 17:53 +0200, sanjeev pandey a ?crit : > Hi, > > There seems to be several licenses such as: Main software (CeCILL > v.2.0), several GPL v.2, BSD, etc. in the Scilab distribution. I would > like to know if the Scilab Consortium has any plans to reduce the > number of license and reduce the complexity regarding the licensing > issues? Thanks. > > -- > Sanjeev Pandey > > Graduate Student, > Process Systems Engineering > Helsinki University of Technology,Finland -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From guillaume.dutilleux at free.fr Sat Nov 6 22:06:45 2010 From: guillaume.dutilleux at free.fr (Guillaume Dutilleux) Date: Sat, 6 Nov 2010 22:06:45 +0100 Subject: trouble compiling Scilab 5.x on OS X 10.5 PPC Message-ID: Hello, Since Scilab 5.x OS X PPC binaries seem to be nowhere to find, I have tried to do the job by myself, before considering the switch to octave or python :-( My machine is a Powerbook G4 running Mac OS X 10.5.8 (highest version for PPC). I also have a G5 bi-processor at my office. I have tried to follow the instructions from Scilab wiki for my platform (http://wiki.scilab.org/Compiling_Scilab_5.x_under_MacOSX). Since I do not want to grow too many unix trees, I have installed the dependencies from the already installed macports + compiled by hand libmatio, instead of using fink. For the time being I am stuck with 2 error messages during the ./ configure process : 1 hdf5.h is not found $./configure --with-hdf5-include=/opt/local/include ... gives : >... >checking hdf5.h usability... no >checking hdf5.h presence... no >checking for hdf5.h... no >configure: error: Cannot find headers (hdf5.h) of the library HDF5 in /opt/local/include/. Please install the dev package However $ls /opt/local/include/hd* >/opt/local/include/hdf5.h /opt/local/include/hdf5_hl.h The error message does not help much since it is not consistent with reality 2 Java Error $./configure --without-hdf5 ... >... >checking JAVA_HOME variable... not defined >checking for zip or jar files to include on CLASSPATH... >checking to see if the java compiler works... yes >Using JAVAC=/System/Library/Frameworks/JavaVM.framework/Commands/javac >Java found in /System/Library/Frameworks/JavaVM.framework >checking type of jvm... jdk >checking java API version... 1.5 >Using the following JNI include flags -I/Developer/SDKs/ MacOSX10.6.sdk/System/Library/Frameworks/JavaVM.framework/Headers >checking if jni.h can be included... configure: error: could not compile file that includes jni.h. If you run Mac OS X please make sure you have 'Java developer package'. This is available on http://connect.apple.com/ ./configure searches for OS X 10.6 SDK : does that mean that there is no chance to compile on 10.5 ? I have installed Java 10.5 SDK downloaded from http:// connect.apple.com/ and modified ./configure script accordingly. But it does not help : >Using the following JNI include flags -I/Developer/SDKs/ MacOSX10.5.sdk/System/Library/Frameworks/JavaVM.framework/Headers >checking if jni.h can be included... configure: error: could not compile file that includes jni.h. If you run Mac OS X please make sure you have 'Java developer package'. This is available on http://connect.apple.com/ Even though this directory is quite populated : $ls /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/ JavaVM.framework/Headers >AWTCocoaComponent.h NSJavaVirtualMachine.h jni_md.h >JDWP.h jawt.h jvmdi.h >JDWPCommands.h jawt_md.h jvmpi.h >JavaVM.h jdwpTransport.h jvmti.h >NSJavaConfiguration.h jni.h Here again, the error message seems to contradict reality. Any idea ? Best regards, Guillaume Dutilleux Scilab user since release 2.x. From bouchra.bensiali at yahoo.fr Sat Nov 6 23:11:47 2010 From: bouchra.bensiali at yahoo.fr (Bouchra Bensiali) Date: Sat, 6 Nov 2010 22:11:47 +0000 (GMT) Subject: grayplot scaling Message-ID: <123690.53209.qm@web29519.mail.ird.yahoo.com> Hello, Is there an equivalent in Scilab to the Matlab caxis Pseudocolor axis scaling? I want to do something like that: -- figure, x = linspace(0,1,101); z = cos(2*pi*x)'*sin(2*pi*x); zm = min(min(z)); zM = max(max(z)); pcolor(x,x,z), shading flat, caxis manual; caxis([zm zM]); colorbar figure, z2 = x'*x*0.4; pcolor(x,x,z2), shading flat, caxis manual; caxis([zm zM]); colorbar -- Thank your for your help. From ron at phenotypescreening.com Sun Nov 7 15:24:39 2010 From: ron at phenotypescreening.com (Ronald Michaels) Date: Sun, 07 Nov 2010 09:24:39 -0500 Subject: [scilab-Users] 3D plot of Butterworth polynomial? In-Reply-To: References: Message-ID: <1289139879.26288.147.camel@SUN> Hi - Assuming that you want a circular filter: Take the first equation in your link below and set a and b to 1. Then set the origin of the x,y axis system to the center of your image, i.e. x = 0 and y = 0 at center of image. Calculate r for each x,y pixel location. Then use r in the second equation in link to find the value of the filter for that x,y location. Find the equivalent position in image coordinates (u,v) and place filter value there in Filter array. Ron On Sat, 2010-11-06 at 09:26 +0330, hadi motamedi wrote: > Dear All > Can you please let me know how to obtain a 3D plot of the Butterworth > polynomial? > Thank you > For the 2-D Butterworth polynomial , please see > :http://www.clear.rice.edu/elec301/Projects01/image_filt/filter.html > From Samuel.Gougeon at univ-lemans.fr Mon Nov 8 00:46:35 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Mon, 08 Nov 2010 00:46:35 +0100 Subject: [scilab-Users] grayplot scaling In-Reply-To: <123690.53209.qm@web29519.mail.ird.yahoo.com> References: <123690.53209.qm@web29519.mail.ird.yahoo.com> Message-ID: <20101108004635.14185yur1m37yjk0@webmail2.univ-lemans.fr> Hello, Bouchra Bensiali a ?crit?: > Hello, > > Is there an equivalent in Scilab to the Matlab caxis Pseudocolor > axis scaling? I > want to do something like that: .../... > caxis manual; caxis([zm zM]); colorbar I am not a Matlaber, but after watching online Matlab help page for caxis(), it comes that these 3 instructions are written as something like colorbar(zm,zM) in Scilab Regards Samuel From bouchra.bensiali at yahoo.fr Mon Nov 8 01:54:42 2010 From: bouchra.bensiali at yahoo.fr (Bouchra Bensiali) Date: Mon, 8 Nov 2010 00:54:42 +0000 (GMT) Subject: [scilab-Users] grayplot scaling In-Reply-To: <20101108004635.14185yur1m37yjk0@webmail2.univ-lemans.fr> References: <123690.53209.qm@web29519.mail.ird.yahoo.com> <20101108004635.14185yur1m37yjk0@webmail2.univ-lemans.fr> Message-ID: <296836.93988.qm@web29501.mail.ird.yahoo.com> Thank you for the answer, I tried that but finally it seems that there is a problem when colorbar is used with grayplot, see http://bugzilla.scilab.org/show_bug.cgi?id=4808. Anyway, the link provides a solution using Sgrayplot with the zminmax option. Another solution would be to use the "Matlab-like" Plotting library for Scilab http://atoms.scilab.org/toolboxes/plotlib/0.42, but I have some problems to plot graphics in scilab-5.2.2. Can I use the plotlib with scilab-4.1.2? Thank you. ----- Message d'origine ---- De : Samuel Gougeon ? : users at lists.scilab.org Envoy? le : Lun 8 novembre 2010, 0h 46min 35s Objet : Re: [scilab-Users] grayplot scaling Hello, Bouchra Bensiali a ?crit : > Hello, > > Is there an equivalent in Scilab to the Matlab caxis Pseudocolor axis scaling? >I > want to do something like that: .../... > caxis manual; caxis([zm zM]); colorbar I am not a Matlaber, but after watching online Matlab help page for caxis(), it comes that these 3 instructions are written as something like colorbar(zm,zM) in Scilab Regards Samuel From sam at cctech.co.in Mon Nov 8 05:10:26 2010 From: sam at cctech.co.in (Sam Mathew) Date: Mon, 8 Nov 2010 09:40:26 +0530 Subject: [scilab-Users] transforming the polynomial variable In-Reply-To: <20101101210455.87052s3jnxyyx7cw@webmail1.univ-lemans.fr> References: <20101101210455.87052s3jnxyyx7cw@webmail1.univ-lemans.fr> Message-ID: Thanks Samuel for that solution. Just that I'm not able to figure out the explanation for the last part: > Is it possible to also perform such transformations if a function is of >> two >> variables x and y, and the coordinate axes undergo different >> transformations >> (translation, rotation, etc.). >> > > *It could be, whether the polynomial could be applied to a > matrix (it can) in a matrix way. But it is not the case : > horner() works on a matrix only in a element-wise way.* > > Regards > Samuel > > > Regards, Sam -- Asst. Manager, CFD Centre for Computational Technologies www.cctech.co.in Phone: +91 20 2552 1873 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sam at cctech.co.in Mon Nov 8 05:13:55 2010 From: sam at cctech.co.in (Sam Mathew) Date: Mon, 8 Nov 2010 09:43:55 +0530 Subject: [scilab-Users] Scilab-Hardware interaction: Serial Port .dll for Scilab 5.x In-Reply-To: <4CCB362A.2070803@univ-lemans.fr> References: <4CCB362A.2070803@univ-lemans.fr> Message-ID: Thanks Samuel. You said that you've been using it for some time already. Is it possible to access some examples or help regarding the toolbox. When I followed the procedure mentioned on the "Read me" file, I just get the toolbox into my Scilab session but don't have access to any help/demo in this regard. *The very best solution is hidden here: > http://www.weizmann.ac.il/home/fesegre/scistuff/Concealing/Serial-0.2.tgz* > * > > It is much better than the former serial.dll working up to 4.1.2* * > and than any other new dll because it is based on TCL. > So, it can be used on any platform supported for Scilab, > while DLLs work only for Windows and sometimes need to > be recompiled. > I am intensively using it, without any problem.* > > > I would like to know how it would be possible to interact with the >> hardware port (e.g., USB port) through SCILAB. If there is any other >> possible solution, it's welcome. >> > > There are some solutions for the GPIB protocol. > For USB, i do not know any solution but may be still through TCL, > whether you would find a USB-TCL layer. > > Hope this help > > Best regards > Samuel > > -- Asst. Manager, CFD Centre for Computational Technologies www.cctech.co.in Phone: +91 20 2552 1873 -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Mon Nov 8 08:58:02 2010 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Mon, 08 Nov 2010 08:58:02 +0100 Subject: [scilab-Users] Re : [scilab-Users] grayplot scaling In-Reply-To: <296836.93988.qm@web29501.mail.ird.yahoo.com> References: <123690.53209.qm@web29519.mail.ird.yahoo.com> <20101108004635.14185yur1m37yjk0@webmail2.univ-lemans.fr> <296836.93988.qm@web29501.mail.ird.yahoo.com> Message-ID: <4CD7AD8A.4040406@utc.fr> Hi, can you give your sample code ? S. On 11/08/10 01:54, Bouchra Bensiali wrote: > Thank you for the answer, I tried that but finally it seems that there is a > problem when colorbar is used with grayplot, see > http://bugzilla.scilab.org/show_bug.cgi?id=4808. Anyway, the link provides a > solution using Sgrayplot with the zminmax option. > > Another solution would be to use the "Matlab-like" Plotting library for Scilab > http://atoms.scilab.org/toolboxes/plotlib/0.42, but I have some problems to plot > graphics in scilab-5.2.2. Can I use the plotlib with scilab-4.1.2? > > Thank you. > > > ----- Message d'origine ---- > De : Samuel Gougeon > ? : users at lists.scilab.org > Envoy? le : Lun 8 novembre 2010, 0h 46min 35s > Objet : Re: [scilab-Users] grayplot scaling > > Hello, > > Bouchra Bensiali a ?crit : > > >> Hello, >> >> Is there an equivalent in Scilab to the Matlab caxis Pseudocolor axis scaling? >> I >> want to do something like that: >> > .../... > >> caxis manual; caxis([zm zM]); colorbar >> > I am not a Matlaber, but after watching online Matlab help page > for caxis(), it comes that these 3 instructions are written as > something like > > colorbar(zm,zM) > > in Scilab > > Regards > Samuel > > > > From stephane.mottelet at utc.fr Mon Nov 8 09:16:02 2010 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Mon, 08 Nov 2010 09:16:02 +0100 Subject: [scilab-Users] Re : [scilab-Users] grayplot scaling In-Reply-To: <296836.93988.qm@web29501.mail.ird.yahoo.com> References: <123690.53209.qm@web29519.mail.ird.yahoo.com> <20101108004635.14185yur1m37yjk0@webmail2.univ-lemans.fr> <296836.93988.qm@web29501.mail.ird.yahoo.com> Message-ID: <4CD7B1C2.2090709@utc.fr> The code you posted before works out of the box, with Scilab >=5.2 provided you change "pi" by "%pi" and that you enable the plotlib macro names without underscores : plotlibmode // done once for all, to be put in your .scilab user startup file figure, x = linspace(0,1,101); z = cos(2*%pi*x)'*sin(2*%pi*x); zm = min(min(z)); zM = max(max(z)); pcolor(x,x,z), shading flat, caxis manual; caxis([zm zM]); colorbar figure, z2 = x'*x*0.4; pcolor(x,x,z2), shading flat, caxis manual; caxis([zm zM]); colorbar S. On 11/08/10 01:54, Bouchra Bensiali wrote: > Thank you for the answer, I tried that but finally it seems that there is a > problem when colorbar is used with grayplot, see > http://bugzilla.scilab.org/show_bug.cgi?id=4808. Anyway, the link provides a > solution using Sgrayplot with the zminmax option. > > Another solution would be to use the "Matlab-like" Plotting library for Scilab > http://atoms.scilab.org/toolboxes/plotlib/0.42, but I have some problems to plot > graphics in scilab-5.2.2. Can I use the plotlib with scilab-4.1.2? > > Thank you. > > > ----- Message d'origine ---- > De : Samuel Gougeon > ? : users at lists.scilab.org > Envoy? le : Lun 8 novembre 2010, 0h 46min 35s > Objet : Re: [scilab-Users] grayplot scaling > > Hello, > > Bouchra Bensiali a ?crit : > > >> Hello, >> >> Is there an equivalent in Scilab to the Matlab caxis Pseudocolor axis scaling? >> I >> want to do something like that: >> > .../... > >> caxis manual; caxis([zm zM]); colorbar >> > I am not a Matlaber, but after watching online Matlab help page > for caxis(), it comes that these 3 instructions are written as > something like > > colorbar(zm,zM) > > in Scilab > > Regards > Samuel > > > > From Peter.Cusack at csiro.au Sun Nov 7 23:28:51 2010 From: Peter.Cusack at csiro.au (Peter.Cusack at csiro.au) Date: Mon, 8 Nov 2010 09:28:51 +1100 Subject: [scilab-Users] Stixbox dnorm function - formula error? In-Reply-To: <4CD3B9F3.3000802@scilab.org> References: <4CCB2A11.1000104@sgl.com> <4CCB3A21.7030309@univ-lemans.fr> <4CD15BBC.6030400@scilab.org> <4CD16C69.2030707@sgl.com> <4CD27AE9.4090600@scilab.org> <4CD2F314.2010805@sgl.com> <4CD3B9F3.3000802@scilab.org> Message-ID: Hi Micha?l I tried the install and test following your instructions. The atomsTest returned this: -------------------------------------------------------------------------- Summary tests 0 - 100 % passed 0 - 0 % failed 0 - 0 % skipped 0 - 0 % length 0.00 sec -------------------------------------------------------------------------- I followed up with the demo which seemed to run ok (at least it produced a graph), and SciLab hung. Neither choosing quit from the file menu or closing the windows had any effect, though entering quit at the prompt did kill it. Is there a loop in the demo that doesn't terminate properly? Cheers; Peter. > -----Original Message----- > From: Micha?l Baudin [mailto:michael.baudin at scilab.org] > Sent: Friday, 5 November 2010 19:02 > To: users at lists.scilab.org > Subject: Re: [scilab-Users] Stixbox dnorm function - formula error? > > Hi, > > Thank you for your feedback. I and Allan released the 1.3 version of > Stixbox yesterday. > To install it : atomsInstall("stixbox") > then : atomsLoad("stixbox") (or restart Scilab). > To get a quick start : help stixbox_contents > To run the unit tests: atomsTest("stixbox") > To run the demos : menu ?>Demonstrations>Stixbox From michael.baudin at scilab.org Mon Nov 8 10:13:57 2010 From: michael.baudin at scilab.org (=?UTF-8?B?TWljaGHDq2wgQmF1ZGlu?=) Date: Mon, 08 Nov 2010 10:13:57 +0100 Subject: [scilab-Users] Convergence problem In-Reply-To: <3777DD50587E4370999184E3BEE4DF26@usera1d930417d> References: <22316810.2356331287404547875.JavaMail.www@wsfrf1117> <3777DD50587E4370999184E3BEE4DF26@usera1d930417d> Message-ID: <4CD7BF55.1020706@scilab.org> Hi, I guess that you are expecting too much from the solver. The exact mathematical result of the integral is 0. Now, the mathematical sin function is approximated by a floating point implementation, which is so that : -->sin(2*%pi) ans = - 2.449D-16 See the script : for atol = [1.e-1 1.e-2 1.e-4 1.e-8 1.e-10 1.e-12 1.e-14] instr = "I = integrate(""sin(x)"",""x"",0,2*%pi,atol);"; ierr = execstr(instr,"errcatch"); if ( ierr == 0 ) then mprintf("atol=%e, I=%.17e\n",atol,I) else mprintf("atol=%e, I=XXX\n",atol) end end This produces : atol=1.000000e-001, I=2.26062574420357380e-016 atol=1.000000e-002, I=2.26062574420357380e-016 atol=1.000000e-004, I=2.26062574420357380e-016 atol=1.000000e-008, I=2.26062574420357380e-016 atol=1.000000e-010, I=2.26062574420357380e-016 atol=1.000000e-012, I=2.26062574420357380e-016 atol=1.000000e-014, I=XXX Hence, it suffices to reduce the request for the absolute error to get an answer. Best regards, Micha?l Baudin PS-1 I admit that there might not be enough informations provided by Scilab in the gateway. The various output of the solvers are described in the ier variable of : http://www.netlib.org/quadpack/dqags.f There are 6 different causes of failures, all of them being represented by the single "Convergence problem". PS-2 A similar problem was discussed at : http://bugzilla.scilab.org/show_bug.cgi?id=5728 PS-3 There are issues with the integrate function, with the management of default input arguments: http://bugzilla.scilab.org/show_bug.cgi?id=8351 Le 18/10/2010 16:25, Jos? Luis Volta Grau a ?crit : > Hi Jean: > Change the tolerance and you will get the result of > integrate('sin(x)','x',0,2*%pi,1e-5) > -->integrate('sin(x)','x',0,2*%pi,1e-5) > ans = > > 2.222D-16 > which is almost zero. > J.L. > > ----- Original Message ----- > *From:* jean podlecki > *To:* users at lists.scilab.org > *Sent:* Monday, October 18, 2010 9:22 AM > *Subject:* [scilab-Users] Convergence problem > > God afternoon, > > Here's my problem. > > ------------------------------------------------- > > -->integrate('sin(x)','x',0,2*%pi) > !--error 24 > Probl?me de convergence ... > > at line 70 of function integrate called by : > integrate('sin(x)','x',0,2*%pi) > > ------------------------------------------------- > > Is it right ? How can I get the correct answer ? > > Jean. > -- 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 HTML attachment was scrubbed... URL: From michael.baudin at scilab.org Mon Nov 8 10:40:19 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Mon, 08 Nov 2010 10:40:19 +0100 Subject: [scilab-Users] Stixbox dnorm function - formula error? In-Reply-To: References: <4CCB2A11.1000104@sgl.com> <4CCB3A21.7030309@univ-lemans.fr> <4CD15BBC.6030400@scilab.org> <4CD16C69.2030707@sgl.com> <4CD27AE9.4090600@scilab.org> <4CD2F314.2010805@sgl.com> <4CD3B9F3.3000802@scilab.org> Message-ID: <4CD7C583.8010008@scilab.org> Hi Peter, I guess that you missed the message in the console : " When paused with -->halt() enter return key to continue" If I guessed well, we are done. But I admit that the demo itself is a fast hack. It should instead display a listbox and let the user choose from one of the several distribution functions which are available. If I guessed wrong, let me know the exact version of Scilab that you use and the OS where it runs. Best regards, Micha?l Baudin PS See the TODOs in : http://forge.scilab.org/index.php/p/stixbox/source/tree/master/readme.txt Le 07/11/2010 23:28, Peter.Cusack at csiro.au a ?crit : > Hi Micha?l > > I tried the install and test following your instructions. > > The atomsTest returned this: > > -------------------------------------------------------------------------- > Summary > > tests 0 - 100 % > passed 0 - 0 % > failed 0 - 0 % > skipped 0 - 0 % > length 0.00 sec > -------------------------------------------------------------------------- > > I followed up with the demo which seemed to run ok (at least it produced a graph), and SciLab hung. Neither choosing quit from the file menu or closing the windows had any effect, though entering quit at the prompt did kill it. Is there a loop in the demo that doesn't terminate properly? > > Cheers; > > Peter. > >> -----Original Message----- >> From: Micha?l Baudin [mailto:michael.baudin at scilab.org] >> Sent: Friday, 5 November 2010 19:02 >> To: users at lists.scilab.org >> Subject: Re: [scilab-Users] Stixbox dnorm function - formula error? >> >> Hi, >> >> Thank you for your feedback. I and Allan released the 1.3 version of >> Stixbox yesterday. >> To install it : atomsInstall("stixbox") >> then : atomsLoad("stixbox") (or restart Scilab). >> To get a quick start : help stixbox_contents >> To run the unit tests: atomsTest("stixbox") >> To run the demos : menu ?>Demonstrations>Stixbox -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 From michael.baudin at scilab.org Mon Nov 8 10:54:39 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Mon, 08 Nov 2010 10:54:39 +0100 Subject: [scilab-Users] Integration of a piecewise function In-Reply-To: <4CB99DF9.8050808@geo.hmg.inpg.fr> References: <4CB99DF9.8050808@geo.hmg.inpg.fr> Message-ID: <4CD7C8DF.8080001@scilab.org> Hi, I tested your script and found that reducing the absolute tolerance allows me to get a result: -->integrate('TranchantNum(x,x1,Vnum)','x',0,15,0.02) ans = - 3204.7066 With 0.02 of absolute tolerance for an integral of -3204.7066 means that you get more than 5 significant digits. Notice also that you may use the "find" function instead of using a for loop: this should perform way faster. Best regards, Micha?l Baudin Le 16/10/2010 14:43, xavier roguiez a ?crit : > Hello, > > I've got the following problem, i need to perform successively two > integrations along the x axis of a beam. > It's consumming large time and memory. And the calculation doesn't > converge at the end... > > I've tried to cut my problem in two parts. I've performed (quite > rapidely) the first integration and store the result in a vector Vnum. > > And i've (naively) try to build a function which is giving the value of > V at the x position (in order to avoid the last integration). > > function [V]=TranchantNum(u,x,Vnum) > for i=1:size(x,1), > if (u<=x(i)) then > V=Vnum(i); > break, > end > end > endfunction > > where Vnum is the result of the last integration, x is a vector which > contains the position (0:0.1:50)', and u is the position along the x > axis where I need the information. > > Then > x1=x > for i=1:size(x,1), > M(i)=integrate('TranchantNum(x,x1,Vnum)','x',0,x(i)) > end > The loop is ok for first value, because Vnum is quite continuous, but > for further values, discontinuities appears in Vnum. > > And I've got the following messages : > -->integrate('TranchantNum(x,x1,Vnum)','x',0,15) > !--error 24 > Probl?me de convergence ... > > at line 70 of function integrate called by : > integrate('TranchantNum(x,x1,Vnum)','x',0,15) > > Does anybody has an idea to solve or reformulate my problem ? > > Thanks in advance for any information > xavier > > PS : I join the data of x and Vnum, in order to test my code, i'm > executing the following code > temp=read('donnees.txt',548,2); > x=temp(:,1); > Vnum=temp(:,2); > > PS : i've tried another formulation of TranchantNum > function [y]=TranchantNum2(u,x,Vnum) > pas=0.1 > y=sum(bool2s((x>=u-pas/2)&(x<=u+pas/2)).*Vnum) > endfunction > which is more compact, but the result is the same. > -- 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 computerprocesscontrol at gmail.com Mon Nov 8 11:35:21 2010 From: computerprocesscontrol at gmail.com (Process Control) Date: Mon, 8 Nov 2010 05:35:21 -0500 Subject: [scilab-Users] scilab documentation In-Reply-To: <1287977486.28424.5354.camel@zlarin> References: <1287977486.28424.5354.camel@zlarin> Message-ID: thanks for replying. scilab is an alternative to matlab. we need to show that. i think it is a great idea to go through most of matlab's online documentation, page by page, and rework everything using scilab code. one of the major reasons why scilab is not popular is lack of quality documentation. many people complain about this when they give scilab a try. regards On Sun, Oct 24, 2010 at 11:31 PM, Sylvestre Ledru < sylvestre.ledru at scilab.org> wrote: > Hello, > Le samedi 23 octobre 2010 ? 16:44 -0400, Process Control a ?crit : > > Has anyone proposed to create matlab-like documentation for scilab? > > this can be done by transforming matlab's documentation into scilab by > > following same examples, contents, and writing style. > Scilab and Matlab are different software. Scilab is not a Matlab clone > and you cannot just take Matlab documentation and adapt it for Scilab... > (or I didn't understand your proposal) > > Sylvestre > > -- > ------------------------- > Sylvestre Ledru > ------------------------- > The Scilab Consortium > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay Cedex > France > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From computerprocesscontrol at gmail.com Mon Nov 8 11:41:04 2010 From: computerprocesscontrol at gmail.com (Process Control) Date: Mon, 8 Nov 2010 05:41:04 -0500 Subject: python vs scilab Message-ID: hello everyone, not exactly a python vs scilab question. i just wanted to know if anyone can share their thoughts about python(scipy/numpy/etc.) from a scilab user's point of view regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.dubois at limsi.fr Mon Nov 8 11:59:23 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Mon, 08 Nov 2010 11:59:23 +0100 Subject: [scilab-Users] python vs scilab In-Reply-To: References: Message-ID: <4CD7D80B.4010302@limsi.fr> Hello, I have used Numpy and been very seduced by it: - first, Python is a general, object-oriented language with many libraries and so one can do more than just data processing scripts; a growing number of scientific projects provide C/C++ library with a python binding (see http://neuralensemble.org/trac/PyNN/ for instance) - second, the default data-type in Numpy is a multi-dimensional array and most algorithms can be used on it - third, the API is coherent and well-documented Nevertheless Scilab has it's own strength. I have projects in scilab and I never felt that switching to python was necessary. I was wondering if one could use scilab (especially the upcoming 6 family) as a core python interpreter (this would be nice to have a grid enabled python). My 2 cents. On 11/08/2010 11:41 AM, Process Control wrote: > hello everyone, > > not exactly a python vs scilab question. i just wanted to know if > anyone can share their thoughts about python(scipy/numpy/etc.) from a > scilab user's point of view > > regards From computerprocesscontrol at gmail.com Mon Nov 8 12:30:51 2010 From: computerprocesscontrol at gmail.com (Process Control) Date: Mon, 8 Nov 2010 06:30:51 -0500 Subject: [scilab-Users] python vs scilab In-Reply-To: <4CD7D80B.4010302@limsi.fr> References: <4CD7D80B.4010302@limsi.fr> Message-ID: thanks for feedback. i agree with you. i haven't really worked with python. for me scilab feels more coherent, at least psychologically. maybe because it is developed by one entity whereas python for scientific computation is a collection of separate projects. i want to mention that there is the python(x,y) project which tries to provide an all-in-one solution for scientific development. this project includes the spyder IDE which is similar to matlab and scilab GUI (i.e. display variables, code completion, history, etc.) the spyder IDE can be installed alone. however, the pythonxy (about 400MB) installs scientific libraries and other dependencies. On Mon, Nov 8, 2010 at 5:59 AM, Mathieu Dubois wrote: > Hello, > > I have used Numpy and been very seduced by it: > - first, Python is a general, object-oriented language with many libraries > and so one can do more than just data processing scripts; a growing number > of scientific projects provide C/C++ library with a python binding (see > http://neuralensemble.org/trac/PyNN/ for instance) > - second, the default data-type in Numpy is a multi-dimensional array and > most algorithms can be used on it > - third, the API is coherent and well-documented > > Nevertheless Scilab has it's own strength. I have projects in scilab and I > never felt that switching to python was necessary. > > I was wondering if one could use scilab (especially the upcoming 6 family) > as a core python interpreter (this would be nice to have a grid enabled > python). > > My 2 cents. > > > On 11/08/2010 11:41 AM, Process Control wrote: > >> hello everyone, >> >> not exactly a python vs scilab question. i just wanted to know if anyone >> can share their thoughts about python(scipy/numpy/etc.) from a scilab user's >> point of view >> >> regards >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Mon Nov 8 13:04:57 2010 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Mon, 8 Nov 2010 13:04:57 +0100 (CET) Subject: legend (plot) & execstr In-Reply-To: <869761002.3910621289217893495.JavaMail.root@zimbra26-e5.priv.proxad.net> Message-ID: <1256074087.3910681289217897090.JavaMail.root@zimbra26-e5.priv.proxad.net> Dear All, I'm spending a lot of time in trying to add a legend in my figure following the scheme herebellow ... nothing appears ! In spite of many attemps tdifferent ways of coding) I've failed .... does somebedy have an idea ? Thanks Paul ############################################################## one example s6 = " ... for h = 1 : Nbre_fichiers , ... ''nom_fichier" + string(h) + "'', ... end , ... " ; execstr(s6) legend(execstr(s6),pos=2) ; From Samuel.Gougeon at univ-lemans.fr Mon Nov 8 18:13:14 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Mon, 08 Nov 2010 18:13:14 +0100 Subject: [scilab-Users] grayplot scaling In-Reply-To: <296836.93988.qm@web29501.mail.ird.yahoo.com> References: <123690.53209.qm@web29519.mail.ird.yahoo.com> <20101108004635.14185yur1m37yjk0@webmail2.univ-lemans.fr> <296836.93988.qm@web29501.mail.ird.yahoo.com> Message-ID: <4CD82FAA.5020308@univ-lemans.fr> ----- Message d'origine ----- De : Bouchra Bensiali Date : 08/11/2010 01:54: > Thank you for the answer, I tried that but finally it seems that there is a > problem when colorbar is used with grayplot, see > http://bugzilla.scilab.org/show_bug.cgi?id=4808. There is no problem: If really needed, data scaling should be done by hand, instead of via an option. But the most intuitive way is to scale the colorbar to data, instead of the opposite, and it works. Samuel From Samuel.Gougeon at univ-lemans.fr Mon Nov 8 18:19:37 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Mon, 08 Nov 2010 18:19:37 +0100 Subject: [scilab-Users] Scilab-Hardware interaction: Serial Port .dll for Scilab 5.x In-Reply-To: References: <4CCB362A.2070803@univ-lemans.fr> Message-ID: <4CD83129.8000904@univ-lemans.fr> ----- Message d'origine ----- De : Sam Mathew Date : 08/11/2010 05:13: > Thanks Samuel. You said that you've been using it for some time already. Is it > possible to access some examples or help regarding the toolbox. There should be a "man" subdirectory in the module. The doc is in HTML in it. The whatis.htm file has hyperlinks to other HTML files with absolute paths. Just remove the root part of them with an editor and browsing through them would turn completely OK. Samuel From stephane.mottelet at utc.fr Mon Nov 8 18:23:57 2010 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Mon, 08 Nov 2010 18:23:57 +0100 Subject: [scilab-Users] Re : [scilab-Users] grayplot scaling In-Reply-To: <4CD82FAA.5020308@univ-lemans.fr> References: <123690.53209.qm@web29519.mail.ird.yahoo.com> <20101108004635.14185yur1m37yjk0@webmail2.univ-lemans.fr> <296836.93988.qm@web29501.mail.ird.yahoo.com> <4CD82FAA.5020308@univ-lemans.fr> Message-ID: <4CD8322D.5060401@utc.fr> Le 08/11/2010 18:13, Samuel GOUGEON a ?crit : > ----- Message d'origine ----- > De : Bouchra Bensiali > Date : 08/11/2010 01:54: >> Thank you for the answer, I tried that but finally it seems that >> there is a >> problem when colorbar is used with grayplot, see >> http://bugzilla.scilab.org/show_bug.cgi?id=4808. > There is no problem: If really needed, data scaling should be done by > hand, instead of via an > option. But the most intuitive way is to scale the colorbar to data, > instead of the > opposite, and it works. What is requested by Bouchra is as intuitive as wanting to change axis limits to easily compare two plots. This feature (caxis stuff) is really missing in Scilab graphics. S. > > Samuel > From Samuel.Gougeon at univ-lemans.fr Mon Nov 8 18:59:19 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Mon, 08 Nov 2010 18:59:19 +0100 Subject: [scilab-Users] transforming the polynomial variable In-Reply-To: References: <20101101210455.87052s3jnxyyx7cw@webmail1.univ-lemans.fr> Message-ID: <4CD83A77.6090707@univ-lemans.fr> ----- Message d'origine ----- De : Sam Mathew Date : 08/11/2010 05:10: > Thanks Samuel for that solution. Just that I'm not able to figure out the > explanation for the last part: > > > Is it possible to also perform such transformations if a function is > of two > variables x and y, and the coordinate axes undergo different > transformations > (translation, rotation, etc.). > > > _It could be, whether the polynomial could be applied to a > matrix (it can) in a matrix way. But it is not the case : > horner() works on a matrix only in a element-wise way._ > You are right, it is a bit obscure, and somewhat useless. I was just wondering about a way to implement bi-variate polynomials with matrices. // Let x=grand(4,1,"uin",0,9) // be the coefficients of p(x) x = 2. 2. 4. 5. // and y=grand(1,3,"uin",0,9) // be the coefficients of q(y) y = 4. 1. 9. // Then, the coefficients of P(x,y)=p(x).q(y) are in the matrix x*y P=x*y P = 8. 2. 18. 8. 2. 18. 16. 4. 36. 20. 5. 45. // where P(i,j) is the coeff of the x^(i-1).y^(j-1) term From there, it should be possible to write a library of matrix-based functions implementing operations between bi-variates polynomials, or even N-variates polynomials (through hypermatrices). Then, the evaluation of such polynomials could not be done with any horner() algo, that does not fit for that, even if it could be called in a matrix-oriented way. For instance, for x=2 and y=3, the following would be required: [X,Y] = ndgrid(x^(0:size(P,1)-1),y^(0:size(P,2)-1)) Result = sum(P.*X.*Y) // evaluates P(x=2,y=3) Other functions would be required for multiplying by-variate polynomials with each others, etc Besides all this stuff, it could be worthwhile to implement a horner() release applicable in a matrix-wise way, instead of a element-wise one. But this has nothing to do with multivariate polynomials. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Mon Nov 8 19:14:13 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Mon, 08 Nov 2010 19:14:13 +0100 Subject: [scilab-Users] grayplot scaling In-Reply-To: <4CD8322D.5060401@utc.fr> References: <123690.53209.qm@web29519.mail.ird.yahoo.com> <20101108004635.14185yur1m37yjk0@webmail2.univ-lemans.fr> <296836.93988.qm@web29501.mail.ird.yahoo.com> <4CD82FAA.5020308@univ-lemans.fr> <4CD8322D.5060401@utc.fr> Message-ID: <4CD83DF5.1010208@univ-lemans.fr> ----- Message d'origine ----- De : St?phane Mottelet Date : 08/11/2010 18:23: > What is requested by Bouchra is as intuitive as wanting to change axis limits > to easily compare two plots. This feature (caxis stuff) is really missing in > Scilab graphics. > > S. For instance to use and share the same colorbar for several plots? Would the following be a work-around? http://bugzilla.scilab.org/show_bug.cgi?id=4808#c3 From Samuel.Gougeon at univ-lemans.fr Mon Nov 8 19:22:02 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Mon, 08 Nov 2010 19:22:02 +0100 Subject: [scilab-Users] legend (plot) & execstr In-Reply-To: <1256074087.3910681289217897090.JavaMail.root@zimbra26-e5.priv.proxad.net> References: <1256074087.3910681289217897090.JavaMail.root@zimbra26-e5.priv.proxad.net> Message-ID: <4CD83FCA.5060705@univ-lemans.fr> Hello, I am not sure to well understand which result you want, if nom_fichier is a variable or a litteral, etc. May be the following would be convenient: legend(nom_fichier+string(1:Nbre_fichiers),2) Samuel From paul.carrico at free.fr Mon Nov 8 19:40:12 2010 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Mon, 8 Nov 2010 19:40:12 +0100 (CET) Subject: [scilab-Users] legend (plot) & execstr In-Reply-To: <1630740245.3983831289241587388.JavaMail.root@zimbra26-e5.priv.proxad.net> Message-ID: <290432830.3983891289241612784.JavaMail.root@zimbra26-e5.priv.proxad.net> Samuel, First of all thanks for your interest/help Since I don't know exactly how many data files I have, I would like to write the following nom_fichier1 = "input_data_X.dat"; nom_fichier2 = "input_data.dat"; nom_fichier3 = "input_data.dat"; then in the plot section I have as many curve as input files ...the what I need is : legend(string(nom_fichier1),string(nom_fichier2),string(nom_fichier3),pos=2) so I tried to use exestr .. but no legend finally appears ... here is my last attempt that fails !!! s6 = " ... tmp_legend = [] , ... for h = 1 : Nbre_fichiers , ... tmp_legend = ""tmp_legend + nom_fichier" + string(h) + " "" + string(ascii(44)) , ... end , ... , ... pos = 2 , ... " ; legend(execstr(s6)) Paul ----- Mail Original ----- De: "Samuel GOUGEON" ?: users at lists.scilab.org Envoy?: Lundi 8 Novembre 2010 19h22:02 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: Re: [scilab-Users] legend (plot) & execstr Hello, I am not sure to well understand which result you want, if nom_fichier is a variable or a litteral, etc. May be the following would be convenient: legend(nom_fichier+string(1:Nbre_fichiers),2) Samuel From Samuel.Gougeon at univ-lemans.fr Mon Nov 8 19:54:32 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Mon, 08 Nov 2010 19:54:32 +0100 Subject: [scilab-Users] legend (plot) & execstr In-Reply-To: <290432830.3983891289241612784.JavaMail.root@zimbra26-e5.priv.proxad.net> References: <290432830.3983891289241612784.JavaMail.root@zimbra26-e5.priv.proxad.net> Message-ID: <4CD84768.1050105@univ-lemans.fr> ----- Message d'origine ----- De : paul.carrico at free.fr Date : 08/11/2010 19:40: > Samuel, > > First of all thanks for your interest/help > > Since I don't know exactly how many data files I have, I do not understand. What was Nbre_fichiers ? > I would like to write the following > > nom_fichier1 = "input_data_X.dat"; > nom_fichier2 = "input_data.dat"; > nom_fichier3 = "input_data.dat"; > > > then in the plot section I have as many curve as input files ...the what I need is : > legend(string(nom_fichier1),string(nom_fichier2),string(nom_fichier3),pos=2) Please forget execstr(), that returns nothing but some error status => help execstr Why don't you store the filenames in a vector of strings: noms = ["data1.dat" "curve2.dat" ..] legend(noms,2) => help legend Samuel From bouchra.bensiali at yahoo.fr Mon Nov 8 21:55:02 2010 From: bouchra.bensiali at yahoo.fr (Bouchra Bensiali) Date: Mon, 8 Nov 2010 20:55:02 +0000 (GMT) Subject: [scilab-Users] Re : [scilab-Users] grayplot scaling In-Reply-To: <4CD83DF5.1010208@univ-lemans.fr> References: <123690.53209.qm@web29519.mail.ird.yahoo.com> <20101108004635.14185yur1m37yjk0@webmail2.univ-lemans.fr> <296836.93988.qm@web29501.mail.ird.yahoo.com> <4CD82FAA.5020308@univ-lemans.fr> <4CD8322D.5060401@utc.fr> <4CD83DF5.1010208@univ-lemans.fr> Message-ID: <973406.638.qm@web29503.mail.ird.yahoo.com> Hello and thank you for your answers. Yes, the context is to use a common color scale among several images, excuse it wasn't clear in my first message. And another use would be for animation, as said in the bugzilla link, "zminmax option is important for animation to have a colorbar scale which is not changing from frame to frame". I tried the following: -- x = linspace(0,1,101); z = cos(2*%pi*x)'*sin(2*%pi*x); zm = min(z); zM = max(z); xset("window",1) xset("colormap",jetcolormap(64)) colorbar(zm,zM) grayplot(x,x,z) z2 = x'*x*0.4; xset("window",2) xset("colormap",jetcolormap(64)) colorbar(zm,zM) grayplot(x,x,z2) e = gce(); m = e.data.z; e.data.z = zm+(m-min(m))/(max(m)-min(m))*(zM-zm); -- but it doesn't work for me, am I doing something wrong? Thanks. ----- Message d'origine ---- De : Samuel GOUGEON ? : users at lists.scilab.org Envoy? le : Lun 8 novembre 2010, 19h 14min 13s Objet : [scilab-Users] Re : [scilab-Users] grayplot scaling ----- Message d'origine ----- De : St?phane Mottelet Date : 08/11/2010 18:23: > What is requested by Bouchra is as intuitive as wanting to change axis limits > to easily compare two plots. This feature (caxis stuff) is really missing in >Scilab graphics. > > S. For instance to use and share the same colorbar for several plots? Would the following be a work-around? http://bugzilla.scilab.org/show_bug.cgi?id=4808#c3 From bouchra.bensiali at yahoo.fr Mon Nov 8 22:14:49 2010 From: bouchra.bensiali at yahoo.fr (Bouchra Bensiali) Date: Mon, 8 Nov 2010 21:14:49 +0000 (GMT) Subject: [scilab-Users] Re : [scilab-Users] grayplot scaling In-Reply-To: <4CD7B1C2.2090709@utc.fr> References: <123690.53209.qm@web29519.mail.ird.yahoo.com> <20101108004635.14185yur1m37yjk0@webmail2.univ-lemans.fr> <296836.93988.qm@web29501.mail.ird.yahoo.com> <4CD7B1C2.2090709@utc.fr> Message-ID: <732728.42664.qm@web29520.mail.ird.yahoo.com> Hello, Ok, I answered you in the google group https://groups.google.com/group/comp.soft-sys.math.scilab/browse_thread/thread/bff4a43197e9bcf9?hl=fr Maybe there is an issue with my graphic card then to use scilab-5.2.2. Thank you for your help. ----- Message d'origine ---- De : St?phane Mottelet ? : users at lists.scilab.org Envoy? le : Lun 8 novembre 2010, 9h 16min 02s Objet : Re: [scilab-Users] Re : [scilab-Users] grayplot scaling The code you posted before works out of the box, with Scilab >=5.2 provided you change "pi" by "%pi" and that you enable the plotlib macro names without underscores : plotlibmode // done once for all, to be put in your .scilab user startup file figure, x = linspace(0,1,101); z = cos(2*%pi*x)'*sin(2*%pi*x); zm = min(min(z)); zM = max(max(z)); pcolor(x,x,z), shading flat, caxis manual; caxis([zm zM]); colorbar figure, z2 = x'*x*0.4; pcolor(x,x,z2), shading flat, caxis manual; caxis([zm zM]); colorbar S. On 11/08/10 01:54, Bouchra Bensiali wrote: > Thank you for the answer, I tried that but finally it seems that there is a > problem when colorbar is used with grayplot, see > http://bugzilla.scilab.org/show_bug.cgi?id=4808. Anyway, the link provides a > solution using Sgrayplot with the zminmax option. > > Another solution would be to use the "Matlab-like" Plotting library for Scilab > http://atoms.scilab.org/toolboxes/plotlib/0.42, but I have some problems to >plot > graphics in scilab-5.2.2. Can I use the plotlib with scilab-4.1.2? > > Thank you. > > > ----- Message d'origine ---- > De : Samuel Gougeon > ? : users at lists.scilab.org > Envoy? le : Lun 8 novembre 2010, 0h 46min 35s > Objet : Re: [scilab-Users] grayplot scaling > > Hello, > > Bouchra Bensiali a ?crit : > > >> Hello, >> >> Is there an equivalent in Scilab to the Matlab caxis Pseudocolor axis scaling? >> I >> want to do something like that: >> > .../... > >> caxis manual; caxis([zm zM]); colorbar >> > I am not a Matlaber, but after watching online Matlab help page > for caxis(), it comes that these 3 instructions are written as > something like > > colorbar(zm,zM) > > in Scilab > > Regards > Samuel > > > > From antoine.monmayrant at laas.fr Mon Nov 8 22:38:31 2010 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Mon, 08 Nov 2010 22:38:31 +0100 Subject: [scilab-Users] Re : [scilab-Users] Re : [scilab-Users] grayplot scaling In-Reply-To: <973406.638.qm@web29503.mail.ird.yahoo.com> References: <123690.53209.qm@web29519.mail.ird.yahoo.com> <20101108004635.14185yur1m37yjk0@webmail2.univ-lemans.fr> <296836.93988.qm@web29501.mail.ird.yahoo.com> <4CD82FAA.5020308@univ-lemans.fr> <4CD8322D.5060401@utc.fr> <4CD83DF5.1010208@univ-lemans.fr> <973406.638.qm@web29503.mail.ird.yahoo.com> Message-ID: <4CD86DD7.6000808@laas.fr> Le 08/11/10 21:55, Bouchra Bensiali a ?crit : > Hello and thank you for your answers. > > Yes, the context is to use a common color scale among several images, excuse it > wasn't clear in my first message. To get the same colorscale on several images, I tend to use contourf instead of grayplot. I have an example at work, I'll post it here tomorrow. BTW, is it just me or scilab.org is down? Antoine > And another use would be for animation, as > said in the bugzilla link, "zminmax option is important for animation to have a > colorbar scale which is not changing from frame to frame". > > I tried the following: > -- > x = linspace(0,1,101); > z = cos(2*%pi*x)'*sin(2*%pi*x); > zm = min(z); zM = max(z); > xset("window",1) > xset("colormap",jetcolormap(64)) > colorbar(zm,zM) > grayplot(x,x,z) > > z2 = x'*x*0.4; > xset("window",2) > xset("colormap",jetcolormap(64)) > colorbar(zm,zM) > grayplot(x,x,z2) > > e = gce(); m = e.data.z; > e.data.z = zm+(m-min(m))/(max(m)-min(m))*(zM-zm); > -- > but it doesn't work for me, am I doing something wrong? > > Thanks. > > > > ----- Message d'origine ---- > De : Samuel GOUGEON > ? : users at lists.scilab.org > Envoy? le : Lun 8 novembre 2010, 19h 14min 13s > Objet : [scilab-Users] Re : [scilab-Users] grayplot scaling > > ----- Message d'origine ----- > De : St?phane Mottelet > Date : 08/11/2010 18:23: >> What is requested by Bouchra is as intuitive as wanting to change axis limits >> to easily compare two plots. This feature (caxis stuff) is really missing in >> Scilab graphics. >> >> S. > For instance to use and share the same colorbar for several plots? > Would the following be a work-around? > http://bugzilla.scilab.org/show_bug.cgi?id=4808#c3 > > > > From antoine.monmayrant at laas.fr Mon Nov 8 22:42:04 2010 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Mon, 08 Nov 2010 22:42:04 +0100 Subject: scilab.org seems down Message-ID: <4CD86EAC.90400@laas.fr> Hi everyone, It seems that scilab.org is down or dead slow. Not sure I am supposed to report it here, but I am sure that someone from the consortium will see this message and report to the right place. Antoine From motamedi24 at gmail.com Tue Nov 9 06:18:46 2010 From: motamedi24 at gmail.com (hadi motamedi) Date: Tue, 9 Nov 2010 08:48:46 +0330 Subject: [scilab-Users] 3D plot of Butterworth polynomial? In-Reply-To: <1289139879.26288.147.camel@SUN> References: <1289139879.26288.147.camel@SUN> Message-ID: On 11/7/10, Ronald Michaels wrote: > Hi - > > Assuming that you want a circular filter: > > Take the first equation in your link below and set a and b to 1. Then > set the origin of the x,y axis system to the center of your image, i.e. > x = 0 and y = 0 at center of image. Calculate r for each x,y pixel > location. Then use r in the second equation in link to find the value > of the filter for that x,y location. Find the equivalent position in > image coordinates (u,v) and place filter value there in Filter array. > > Ron > > Thank you very much for your help. Sorry do you know a free software application that lets me to write complex mathematical expressions? It seems that I didn't describe my case exactly so I need to write the expression by my own and then ask you what I need to do with obtaining such a 2-D filter? From motamedi24 at gmail.com Tue Nov 9 06:43:01 2010 From: motamedi24 at gmail.com (hadi motamedi) Date: Tue, 9 Nov 2010 09:13:01 +0330 Subject: [scilab-Users] 3D plot of Butterworth polynomial? In-Reply-To: <1289139879.26288.147.camel@SUN> References: <1289139879.26288.147.camel@SUN> Message-ID: On 11/7/10, Ronald Michaels wrote: > Hi - > > Assuming that you want a circular filter: > > Take the first equation in your link below and set a and b to 1. Then > set the origin of the x,y axis system to the center of your image, i.e. > x = 0 and y = 0 at center of image. Calculate r for each x,y pixel > location. Then use r in the second equation in link to find the value > of the filter for that x,y location. Find the equivalent position in > image coordinates (u,v) and place filter value there in Filter array. > > Ron > > > > Thank you for your reply. Please find attached the exact expressions . For the 1-D case, it is straightforward as the formula describes it . But for the 2-D case, it needs your help as the filter center must be at the center of the page (but not at the corner on u=0 & v=0) . For example, please imagine an image with 480*480 size so the filter center must be located at (240,240) . Please help me to construct such a filter as you helped me on constructing ideal 2-D low pass filter for my image filtering. -------------- next part -------------- A non-text attachment was scrubbed... Name: formula.rtf Type: application/rtf Size: 604 bytes Desc: not available URL: From allan.cornet at scilab.org Tue Nov 9 08:05:00 2010 From: allan.cornet at scilab.org (Allan CORNET) Date: Tue, 9 Nov 2010 08:05:00 +0100 Subject: [scilab-Users] scilab.org seems down In-Reply-To: <4CD86EAC.90400@laas.fr> References: <4CD86EAC.90400@laas.fr> Message-ID: <000e01cb7fdc$6d16bb10$47443130$@scilab.org> Hi, http://wiki.scilab.org is down. It will be quickly restored. Thanks you for your report Allan -- Allan CORNET ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France -----Message d'origine----- De?: Antoine Monmayrant [mailto:antoine.monmayrant at laas.fr] Envoy??: lundi 8 novembre 2010 22:42 ??: users at lists.scilab.org Objet?: [scilab-Users] scilab.org seems down Hi everyone, It seems that scilab.org is down or dead slow. Not sure I am supposed to report it here, but I am sure that someone from the consortium will see this message and report to the right place. Antoine From bruno.horacio at hotmail.com Mon Nov 8 21:37:00 2010 From: bruno.horacio at hotmail.com (Bruno Begnini) Date: Mon, 8 Nov 2010 18:37:00 -0200 Subject: Problems with SCILAB Message-ID: Hi... I installed in my laptop SCILAB 5 and when I order to plot a function the program close. I have a friend that have the same problem and his computer also is Intel I5. I think this problem is happening with laptops with I5. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From Peter.Cusack at csiro.au Mon Nov 8 23:50:35 2010 From: Peter.Cusack at csiro.au (Peter.Cusack at csiro.au) Date: Tue, 9 Nov 2010 09:50:35 +1100 Subject: [scilab-Users] Stixbox dnorm function - formula error? In-Reply-To: <4CD7C583.8010008@scilab.org> References: <4CCB2A11.1000104@sgl.com> <4CCB3A21.7030309@univ-lemans.fr> <4CD15BBC.6030400@scilab.org> <4CD16C69.2030707@sgl.com> <4CD27AE9.4090600@scilab.org> <4CD2F314.2010805@sgl.com> <4CD3B9F3.3000802@scilab.org> <4CD7C583.8010008@scilab.org> Message-ID: Thanks for your response Micha?l. It is a lack of feedback in the demo. After I click and hit enter a number of times, things progress until I get a popup menu of datasets. Double-clicking any one causes a crash: !--error 4 Undefined variable: x_message at line 32 of function getdata called by : x = getdata(); at line 152 of exec file called by : object(20);script_path = demo_gui_update();exec(script_path,-1);;if exists("%oldgcbo") then gcbo = %oldgcbo; else clear gcbo; end while executing a callback at line 27 of function halt called by : halt() at line 19 of exec file called by : object(20);script_path = demo_gui_update();exec(script_path,-1);;if exists("%oldgcbo") then gcbo = %oldgcbo; else clear gcbo; end while executing a callback I see from the TODOs that the demo script will be updated, and that should clarify what to do to make the demo progress. A short term fix would be to add a meaningful prompt. Even "Press Enter." is more helpful than "-->" Cheers; Peter. > Hi Peter, > > I guess that you missed the message in the console : > > " When paused with -->halt() enter return key to continue" > > If I guessed well, we are done. But I admit that the demo itself is a > fast hack. It should instead display a listbox and let the user choose > from one of the several distribution functions which are available. > > If I guessed wrong, let me know the exact version of Scilab that you use > and the OS where it runs. > > Best regards, > > Micha?l Baudin > > PS > See the TODOs in : > http://forge.scilab.org/index.php/p/stixbox/source/tree/master/readme.tx > t From antoine.monmayrant at laas.fr Tue Nov 9 09:54:44 2010 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 09 Nov 2010 09:54:44 +0100 Subject: [scilab-Users] Re : [scilab-Users] Re : [scilab-Users] grayplot scaling In-Reply-To: <973406.638.qm@web29503.mail.ird.yahoo.com> References: <123690.53209.qm@web29519.mail.ird.yahoo.com> <20101108004635.14185yur1m37yjk0@webmail2.univ-lemans.fr> <296836.93988.qm@web29501.mail.ird.yahoo.com> <4CD82FAA.5020308@univ-lemans.fr> <4CD8322D.5060401@utc.fr> <4CD83DF5.1010208@univ-lemans.fr> <973406.638.qm@web29503.mail.ird.yahoo.com> Message-ID: <4CD90C54.9030301@laas.fr> Le 08/11/2010 21:55, Bouchra Bensiali a ?crit : > Hello and thank you for your answers. > > Yes, the context is to use a common color scale among several images, excuse it > wasn't clear in my first message. As promised yesterday, here is short example on how I do it using contourf: /////////////////////////////////////////////////////////////////////////////////////////// y=linspace(-10,10,100); x=linspace(-15,15,200)'; //two 2D maps with different max/min z1=cos(x*y/10); z2=0.5*cos(x*y/10); //# of colors to use n_color=128; // max and min of the color scale zmin=-1.1; zmax=1.1; // levels of the color scale color_levels=linspace(zmin,zmax,n_color); h=scf(); h.color_map=hotcolormap(n_color); subplot(121) contourf(x,y,z1,color_levels); subplot(122) contourf(x,y,z2,color_levels); colorbar(zmin,zmax); /////////////////////////////////////////////////////////////////////////////////////////// I know that colorbar is screwing my layout, but I usually don't use it. I prefer plotting a dummy 1xn_color map with custom axis and layout. Hope it helps, Antoine > And another use would be for animation, as > said in the bugzilla link, "zminmax option is important for animation to have a > colorbar scale which is not changing from frame to frame". > > I tried the following: > -- > x = linspace(0,1,101); > z = cos(2*%pi*x)'*sin(2*%pi*x); > zm = min(z); zM = max(z); > xset("window",1) > xset("colormap",jetcolormap(64)) > colorbar(zm,zM) > grayplot(x,x,z) > > z2 = x'*x*0.4; > xset("window",2) > xset("colormap",jetcolormap(64)) > colorbar(zm,zM) > grayplot(x,x,z2) > > e = gce(); m = e.data.z; > e.data.z = zm+(m-min(m))/(max(m)-min(m))*(zM-zm); > -- > but it doesn't work for me, am I doing something wrong? > > Thanks. > > > > ----- Message d'origine ---- > De : Samuel GOUGEON > ? : users at lists.scilab.org > Envoy? le : Lun 8 novembre 2010, 19h 14min 13s > Objet : [scilab-Users] Re : [scilab-Users] grayplot scaling > > ----- Message d'origine ----- > De : St?phane Mottelet > Date : 08/11/2010 18:23: >> What is requested by Bouchra is as intuitive as wanting to change axis limits >> to easily compare two plots. This feature (caxis stuff) is really missing in >> Scilab graphics. >> >> S. > For instance to use and share the same colorbar for several plots? > Would the following be a work-around? > http://bugzilla.scilab.org/show_bug.cgi?id=4808#c3 > > > > -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche 31077 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoine.monmayrant at laas.fr permanent email : antoine.monmayrant at polytechnique.org +++++++++++++++++++++++++++++++++++++++++++++++++++++++ From p_ledoux at yahoo.com.br Tue Nov 9 15:43:50 2010 From: p_ledoux at yahoo.com.br (Pedro Ledoux) Date: Tue, 9 Nov 2010 06:43:50 -0800 (PST) Subject: [scilab-Users] 3D plot of Butterworth polynomial? Message-ID: <836131.98096.qm@web120510.mail.ne1.yahoo.com> Among free softwares the circuit simulator Qucs has a very good toolbox to project filters. In it you chose the kind of filter(chebyshev, butterwoth, cauer etc), the cutting frequencies, gain etc and it will give you a schematic of a filter which fit those specifications.If you use Linux, in Ubuntu and Fedora you can find the Qucs easily in it's respective pack manegers. http://qucs.sourceforge.net/ Several months ago I had to project some filtres. I've chose do it using only free softwares. I had to project Active and passive filters. I coul do it sucessfoully with Scilab. One of those filters was a Butterworth. The scilab poly function was exelent to do it. Well. A good way to project an ACTIVE Butterworth Filter using Scilab was project first the equivalent low-pass filter. So you use: s=poly(0,'s'), with s you wright the thansfer function ex: p=1/((s+1)*(s+3)). If your filter is not a low pass you should use the frequency transform. For example, to high pass filter you should type after it:z=poly(0,'z'); s=2*%pi*450000/z; p and now the scilab will show the polynomial function after the frequency transformation. With scilab's bode ploting function you can see the bode diagram for this function. For passive filters I used another procedure. I'm sending my script file which I used in my project of a high pass Chevychev filter. In a Butterworth one only the polynomial chances. --- Em ter, 9/11/10, hadi motamedi escreveu: De: hadi motamedi Assunto: Re: [scilab-Users] 3D plot of Butterworth polynomial? Para: users at lists.scilab.org Data: Ter?a-feira, 9 de Novembro de 2010, 3:18 On 11/7/10, Ronald Michaels wrote: > Hi - > > Assuming that you want a circular filter: > > Take the first equation in your link below and set a and b to 1.? Then > set the origin of the x,y axis system to the center of your image, i.e. > x = 0 and y = 0 at center of image.? Calculate r for each x,y pixel > location.? Then use r in the second equation in link to find the value > of the filter for that x,y location.? Find the equivalent position in > image coordinates (u,v) and place filter value there in Filter array. > > Ron > > Thank you very much for your help. Sorry do you know a free software application that lets me to write complex mathematical expressions? It seems that I didn't describe my case exactly so I need to write the expression by my own and then ask you what I need to do with obtaining such a 2-D filter? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PA_Chebyshev.sce Type: application/octet-stream Size: 1193 bytes Desc: not available URL: From bouchra.bensiali at yahoo.fr Tue Nov 9 20:03:13 2010 From: bouchra.bensiali at yahoo.fr (Bouchra Bensiali) Date: Tue, 9 Nov 2010 19:03:13 +0000 (GMT) Subject: [scilab-Users] Re : [scilab-Users] Re : [scilab-Users] grayplot scaling In-Reply-To: <4CD90C54.9030301@laas.fr> References: <123690.53209.qm@web29519.mail.ird.yahoo.com> <20101108004635.14185yur1m37yjk0@webmail2.univ-lemans.fr> <296836.93988.qm@web29501.mail.ird.yahoo.com> <4CD82FAA.5020308@univ-lemans.fr> <4CD8322D.5060401@utc.fr> <4CD83DF5.1010208@univ-lemans.fr> <973406.638.qm@web29503.mail.ird.yahoo.com> <4CD90C54.9030301@laas.fr> Message-ID: <981025.89833.qm@web29517.mail.ird.yahoo.com> Thank you, it works! So if I summarize the different solutions : - use of Sgrayplot with the zminmax option http://bugzilla.scilab.org/show_bug.cgi?id=4808#c1 - use of Matlab syntax with the caxis command and the "Matlab-like" Plotting library for Scilab http://atoms.scilab.org/toolboxes/plotlib/0.42 (doesn't work for me because I have problems when plotting graphics with scilab-5.2.2...) - rescaling of data http://bugzilla.scilab.org/show_bug.cgi?id=4808#c3 (doesn't work for me, I surely missed something...) - use of contourf with color levels Thanks. ----- Message d'origine ---- De : Antoine Monmayrant ? : users at lists.scilab.org Envoy? le : Mar 9 novembre 2010, 9h 54min 44s Objet : Re: [scilab-Users] Re : [scilab-Users] Re : [scilab-Users] grayplot scaling Le 08/11/2010 21:55, Bouchra Bensiali a ?crit : > Hello and thank you for your answers. > > Yes, the context is to use a common color scale among several images, excuse it > wasn't clear in my first message. As promised yesterday, here is short example on how I do it using contourf: /////////////////////////////////////////////////////////////////////////////////////////// y=linspace(-10,10,100); x=linspace(-15,15,200)'; //two 2D maps with different max/min z1=cos(x*y/10); z2=0.5*cos(x*y/10); //# of colors to use n_color=128; // max and min of the color scale zmin=-1.1; zmax=1.1; // levels of the color scale color_levels=linspace(zmin,zmax,n_color); h=scf(); h.color_map=hotcolormap(n_color); subplot(121) contourf(x,y,z1,color_levels); subplot(122) contourf(x,y,z2,color_levels); colorbar(zmin,zmax); /////////////////////////////////////////////////////////////////////////////////////////// I know that colorbar is screwing my layout, but I usually don't use it. I prefer plotting a dummy 1xn_color map with custom axis and layout. Hope it helps, Antoine > And another use would be for animation, as > said in the bugzilla link, "zminmax option is important for animation to have a > colorbar scale which is not changing from frame to frame". > > I tried the following: > -- > x = linspace(0,1,101); > z = cos(2*%pi*x)'*sin(2*%pi*x); > zm = min(z); zM = max(z); > xset("window",1) > xset("colormap",jetcolormap(64)) > colorbar(zm,zM) > grayplot(x,x,z) > > z2 = x'*x*0.4; > xset("window",2) > xset("colormap",jetcolormap(64)) > colorbar(zm,zM) > grayplot(x,x,z2) > > e = gce(); m = e.data.z; > e.data.z = zm+(m-min(m))/(max(m)-min(m))*(zM-zm); > -- > but it doesn't work for me, am I doing something wrong? > > Thanks. > > > > ----- Message d'origine ---- > De : Samuel GOUGEON > ? : users at lists.scilab.org > Envoy? le : Lun 8 novembre 2010, 19h 14min 13s > Objet : [scilab-Users] Re : [scilab-Users] grayplot scaling > > ----- Message d'origine ----- > De : St?phane Mottelet > Date : 08/11/2010 18:23: >> What is requested by Bouchra is as intuitive as wanting to change axis limits >> to easily compare two plots. This feature (caxis stuff) is really missing in >> Scilab graphics. >> >> S. > For instance to use and share the same colorbar for several plots? > Would the following be a work-around? > http://bugzilla.scilab.org/show_bug.cgi?id=4808#c3 > > > > -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche 31077 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoine.monmayrant at laas.fr permanent email : antoine.monmayrant at polytechnique.org +++++++++++++++++++++++++++++++++++++++++++++++++++++++ From bouchra.bensiali at yahoo.fr Tue Nov 9 20:12:55 2010 From: bouchra.bensiali at yahoo.fr (Bouchra Bensiali) Date: Tue, 9 Nov 2010 19:12:55 +0000 (GMT) Subject: [scilab-Users] Problems with SCILAB In-Reply-To: References: Message-ID: <104695.95760.qm@web29508.mail.ird.yahoo.com> Hello, I have the same problem, and I'm Intel 4. If someone could help us, it would be great. Thank you. ________________________________ De : Bruno Begnini ? : users at lists.scilab.org Envoy? le : Lun 8 novembre 2010, 21h 37min 00s Objet : [scilab-Users] Problems with SCILAB Hi... I installed in my laptop SCILAB 5 and when I order to plot a function the program close. I have a friend that have the same problem and his computer also is Intel I5. I think this problem is happening with laptops with I5. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Tue Nov 9 20:23:17 2010 From: stephane.mottelet at utc.fr (Stephane Mottelet) Date: Tue, 09 Nov 2010 20:23:17 +0100 Subject: [scilab-Users] Re : [scilab-Users] Re : [scilab-Users] Re : [scilab-Users] grayplot scaling In-Reply-To: <981025.89833.qm@web29517.mail.ird.yahoo.com> References: <123690.53209.qm@web29519.mail.ird.yahoo.com> <20101108004635.14185yur1m37yjk0@webmail2.univ-lemans.fr> <296836.93988.qm@web29501.mail.ird.yahoo.com> <4CD82FAA.5020308@univ-lemans.fr> <4CD8322D.5060401@utc.fr> <4CD83DF5.1010208@univ-lemans.fr> <973406.638.qm@web29503.mail.ird.yahoo.com> <4CD90C54.9030301@laas.fr> <981025.89833.qm@web29517.mail.ird.yahoo.com> Message-ID: <20101109202317.66845joifzinxd34@webmail.utc.fr> Hi, you can also use the plotlib 0.21 (the last version working with Scilab 4 branch) and Scilab 4.2.1. I did not propose this solution because versions <= 0.4 do not completely respect the straight Matlab syntax. However, your example should work written like this (issue the caxis command before plotting) : figure, x = linspace(0,1,101); z = cos(2*%pi*x)'*sin(2*%pi*x); zm = min(min(z)); zM = max(max(z)); caxis([zm zM]); pcolor(x,x,z); shading flat, colorbar figure, z2 = x'*x*0.4; caxis([zm zM]); pcolor(x,x,z2), shading flat, colorbar S. Bouchra Bensiali a ?crit?: > Thank you, it works! > > So if I summarize the different solutions : > > - use of Sgrayplot with the zminmax option > http://bugzilla.scilab.org/show_bug.cgi?id=4808#c1 > - use of Matlab syntax with the caxis command and the "Matlab-like" Plotting > library for Scilab http://atoms.scilab.org/toolboxes/plotlib/0.42 > (doesn't work > for me because I have problems when plotting graphics with scilab-5.2.2...) > - rescaling of data > http://bugzilla.scilab.org/show_bug.cgi?id=4808#c3 (doesn't > work for me, I surely missed something...) > - use of contourf with color levels > > Thanks. > > > ----- Message d'origine ---- > De : Antoine Monmayrant > ? : users at lists.scilab.org > Envoy? le : Mar 9 novembre 2010, 9h 54min 44s > Objet : Re: [scilab-Users] Re : [scilab-Users] Re : [scilab-Users] grayplot > scaling > > Le 08/11/2010 21:55, Bouchra Bensiali a ?crit : >> Hello and thank you for your answers. >> >> Yes, the context is to use a common color scale among several images, excuse > it >> wasn't clear in my first message. > As promised yesterday, here is short example on how I do it using contourf: > > /////////////////////////////////////////////////////////////////////////////////////////// > > y=linspace(-10,10,100); > x=linspace(-15,15,200)'; > > //two 2D maps with different max/min > z1=cos(x*y/10); > z2=0.5*cos(x*y/10); > > //# of colors to use > n_color=128; > // max and min of the color scale > zmin=-1.1; > zmax=1.1; > // levels of the color scale > color_levels=linspace(zmin,zmax,n_color); > > > h=scf(); > h.color_map=hotcolormap(n_color); > subplot(121) > contourf(x,y,z1,color_levels); > subplot(122) > contourf(x,y,z2,color_levels); > colorbar(zmin,zmax); > /////////////////////////////////////////////////////////////////////////////////////////// > > > I know that colorbar is screwing my layout, but I usually don't use it. > I prefer plotting a dummy 1xn_color map with custom axis and layout. > Hope it helps, > > Antoine > > >> And another use would be for animation, as >> said in the bugzilla link, "zminmax option is important for >> animation to have > a >> colorbar scale which is not changing from frame to frame". >> >> I tried the following: >> -- >> x = linspace(0,1,101); >> z = cos(2*%pi*x)'*sin(2*%pi*x); >> zm = min(z); zM = max(z); >> xset("window",1) >> xset("colormap",jetcolormap(64)) >> colorbar(zm,zM) >> grayplot(x,x,z) >> >> z2 = x'*x*0.4; >> xset("window",2) >> xset("colormap",jetcolormap(64)) >> colorbar(zm,zM) >> grayplot(x,x,z2) >> >> e = gce(); m = e.data.z; >> e.data.z = zm+(m-min(m))/(max(m)-min(m))*(zM-zm); >> -- >> but it doesn't work for me, am I doing something wrong? >> >> Thanks. >> >> >> >> ----- Message d'origine ---- >> De : Samuel GOUGEON >> ? : users at lists.scilab.org >> Envoy? le : Lun 8 novembre 2010, 19h 14min 13s >> Objet : [scilab-Users] Re : [scilab-Users] grayplot scaling >> >> ----- Message d'origine ----- >> De : St?phane Mottelet >> Date : 08/11/2010 18:23: >>> What is requested by Bouchra is as intuitive as wanting to change >>> axis limits >>> to easily compare two plots. This feature (caxis stuff) is really >>> missing in >>> Scilab graphics. >>> >>> S. >> For instance to use and share the same colorbar for several plots? >> Would the following be a work-around? >> http://bugzilla.scilab.org/show_bug.cgi?id=4808#c3 >> >> >> >> > > > -- > +++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > Antoine Monmayrant LAAS - CNRS > 7 avenue du Colonel Roche > 31077 TOULOUSE > Cedex 4 FRANCE > > Tel:+33 5 61 33 64 59 > > email : antoine.monmayrant at laas.fr > permanent email : antoine.monmayrant at polytechnique.org > > +++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > > > From stephane.mottelet at utc.fr Tue Nov 9 20:26:31 2010 From: stephane.mottelet at utc.fr (Stephane Mottelet) Date: Tue, 09 Nov 2010 20:26:31 +0100 Subject: Graphics Chipset compatibiliy issue In-Reply-To: <981025.89833.qm@web29517.mail.ird.yahoo.com> References: <123690.53209.qm@web29519.mail.ird.yahoo.com> <20101108004635.14185yur1m37yjk0@webmail2.univ-lemans.fr> <296836.93988.qm@web29501.mail.ird.yahoo.com> <4CD82FAA.5020308@univ-lemans.fr> <4CD8322D.5060401@utc.fr> <4CD83DF5.1010208@univ-lemans.fr> <973406.638.qm@web29503.mail.ird.yahoo.com> <4CD90C54.9030301@laas.fr> <981025.89833.qm@web29517.mail.ird.yahoo.com> Message-ID: <20101109202631.12042yqzgsu9udeo@webmail.utc.fr> Hi all, Is there an issue concerning the compatibility of > Mobile Intel(R) 4 Series Express Chipset Family. with Scilab 5 family ? S. From calixte at contrib.scilab.org Tue Nov 9 20:35:31 2010 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Tue, 09 Nov 2010 20:35:31 +0100 Subject: [scilab-Users] Graphics Chipset compatibiliy issue In-Reply-To: <20101109202631.12042yqzgsu9udeo@webmail.utc.fr> References: <123690.53209.qm@web29519.mail.ird.yahoo.com> <20101108004635.14185yur1m37yjk0@webmail2.univ-lemans.fr> <296836.93988.qm@web29501.mail.ird.yahoo.com> <4CD82FAA.5020308@univ-lemans.fr> <4CD8322D.5060401@utc.fr> <4CD83DF5.1010208@univ-lemans.fr> <973406.638.qm@web29503.mail.ird.yahoo.com> <4CD90C54.9030301@laas.fr> <981025.89833.qm@web29517.mail.ird.yahoo.com> <20101109202631.12042yqzgsu9udeo@webmail.utc.fr> Message-ID: <1289331331.30255.16.camel@Calixte-Dell> Le mardi 09 novembre 2010 ? 20:26 +0100, Stephane Mottelet a ?crit : > Hi all, > Hello Stephane, > Is there an issue concerning the compatibility of > > > Mobile Intel(R) 4 Series Express Chipset Family. > > with Scilab 5 family ? > It would seem...: http://bugzilla.scilab.org/show_bug.cgi?id=8344 where JB proposed a workaround. Calixte > S. > From al.bertho at free.fr Tue Nov 9 20:46:06 2010 From: al.bertho at free.fr (alain) Date: Tue, 09 Nov 2010 20:46:06 +0100 Subject: [scilab-Users] uicontrol and callback In-Reply-To: <20101109202631.12042yqzgsu9udeo@webmail.utc.fr> References: <123690.53209.qm@web29519.mail.ird.yahoo.com> <20101108004635.14185yur1m37yjk0@webmail2.univ-lemans.fr> <296836.93988.qm@web29501.mail.ird.yahoo.com> <4CD82FAA.5020308@univ-lemans.fr> <4CD8322D.5060401@utc.fr> <4CD83DF5.1010208@univ-lemans.fr> <973406.638.qm@web29503.mail.ird.yahoo.com> <4CD90C54.9030301@laas.fr> <981025.89833.qm@web29517.mail.ird.yahoo.com> <20101109202631.12042yqzgsu9udeo@webmail.utc.fr> Message-ID: <4CD9A4FE.6020107@free.fr> Hello! I'm building an graphic user interface using uicontrol widgets under Scilab 5.2.2, for linux and windows users. The way to call some code when the widget is clicked is to provide a callback function. This does work fine, except when I want to process a big set of data on a button click, my graphic interface is then slow down and sometimes crash... Is there any way to launch a independant process in scilab (from a callback for example)? Thanks! From antoine.monmayrant at laas.fr Tue Nov 9 21:08:03 2010 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 09 Nov 2010 21:08:03 +0100 Subject: [scilab-Users] Re : [scilab-Users] Problems with SCILAB In-Reply-To: <104695.95760.qm@web29508.mail.ird.yahoo.com> References: <104695.95760.qm@web29508.mail.ird.yahoo.com> Message-ID: <4CD9AA23.8050606@laas.fr> Le 09/11/10 20:12, Bouchra Bensiali a ?crit : > Hello, > I have the same problem, and I'm Intel 4. > If someone could help us, it would be great. Here is a simple rule of thumbs: if scilab seems to work well and only crashes when trying to use any graphic function, it is due to a problem with the driver of your video card. Try to update your videocard driver and check that opengl is working ok (you can try to run glxgears or qtgears if you are using MS windows). Antoine > > Thank you. > > > ------------------------------------------------------------------------ > *De :* Bruno Begnini > *? :* users at lists.scilab.org > *Envoy? le :* Lun 8 novembre 2010, 21h 37min 00s > *Objet :* [scilab-Users] Problems with SCILAB > > Hi... > I installed in my laptop SCILAB 5 and when I order to plot a function > the program close. I have a friend that have the same problem and his > computer also is Intel I5. > I think this problem is happening with laptops with I5. > Thanks > -------------- next part -------------- An HTML attachment was scrubbed... URL: From d.picard at opgc.univ-bpclermont.fr Wed Nov 10 07:54:43 2010 From: d.picard at opgc.univ-bpclermont.fr (David PICARD) Date: Wed, 10 Nov 2010 07:54:43 +0100 Subject: disable splash screen Message-ID: <4CDA41B3.4060501@opgc.univ-bpclermont.fr> Hi, Is it possible to disable Scilab startup splash screen ? Scilab 5.2.2, Win XP. From motamedi24 at gmail.com Wed Nov 10 08:21:40 2010 From: motamedi24 at gmail.com (hadi motamedi) Date: Wed, 10 Nov 2010 10:51:40 +0330 Subject: 2-D Fourier Transform? Message-ID: Dear All To get 2-D Fourier transform from my image , I tried as : ->im=imread("image.png"); ->img=rgb2gray(im); ->imd=im2double(img); ->size(imd) ->yf=fft2(imd,1024,768); ->yfa=abs(yf); ->yfs=yfa.^2; At this point , I tried to make plots of it by using surf(yfa) or Matplot(yfs) but none of them resulted to meaningful drawings. Can you please let me know how can I obtain meaningful graphs for this purpose? Thank you From antoine.monmayrant at laas.fr Wed Nov 10 08:29:07 2010 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 10 Nov 2010 08:29:07 +0100 Subject: [scilab-Users] disable splash screen In-Reply-To: <4CDA41B3.4060501@opgc.univ-bpclermont.fr> References: <4CDA41B3.4060501@opgc.univ-bpclermont.fr> Message-ID: <4CDA49C3.4000603@laas.fr> Le 10/11/10 07:54, David PICARD a ?crit : > Hi, > > Is it possible to disable Scilab startup splash screen ? scilab -nw completely disable the graphical interface, including the splash screen (you can still plot graphics). > > > Scilab 5.2.2, Win XP. > > From d.picard at opgc.univ-bpclermont.fr Wed Nov 10 09:06:39 2010 From: d.picard at opgc.univ-bpclermont.fr (David PICARD) Date: Wed, 10 Nov 2010 09:06:39 +0100 Subject: Xcos : can't delete blocks. Message-ID: <4CDA528F.4070705@opgc.univ-bpclermont.fr> Hi, Xcos refuses to delete 2 blocks that I don't want to use any more : CLOCK_c and CMSCOPE. I can't edit the parameters of these 2 blocks. So I replaced them with new instances. From clement.david at scilab.org Wed Nov 10 09:19:31 2010 From: clement.david at scilab.org (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Wed, 10 Nov 2010 09:19:31 +0100 Subject: [scilab-Users] Xcos : can't delete blocks. In-Reply-To: <4CDA528F.4070705@opgc.univ-bpclermont.fr> References: <4CDA528F.4070705@opgc.univ-bpclermont.fr> Message-ID: <1289377171.2604.2.camel@pinarellu.inria.fr> Hi, It is a reproductible behavior ? Have you done anything specific to these blocks (name, style, implementation, etc...) ? Do not hesitate to open bugs on http://bugzilla.scilab.org for this kind of problem with the buggy diagram attached. Cl?ment Le mercredi 10 novembre 2010 ? 09:06 +0100, David PICARD a ?crit : > Hi, > > Xcos refuses to delete 2 blocks that I don't want to use any more : > CLOCK_c and CMSCOPE. I can't edit the parameters of these 2 blocks. So I > replaced them with new instances. > -- Cl?ment David From Samuel.Gougeon at univ-lemans.fr Wed Nov 10 10:07:25 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Wed, 10 Nov 2010 10:07:25 +0100 Subject: [scilab-Users] disable splash screen In-Reply-To: <4CDA41B3.4060501@opgc.univ-bpclermont.fr> References: <4CDA41B3.4060501@opgc.univ-bpclermont.fr> Message-ID: <4CDA60CD.4070503@univ-lemans.fr> ----- Message d'origine ----- De : David PICARD Date : 10/11/2010 07:54: > Hi, > > Is it possible to disable Scilab startup splash screen ? Yes, you may use the -nb launching option (stands for no banners). It disables both banners, the splashing and the ASCII ones. Regards Samuel From paul.carrico at esterline.com Wed Nov 10 15:46:08 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Wed, 10 Nov 2010 15:46:08 +0100 Subject: resizing image Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AF65@exchsrv.AUXITROL1> Dear All, First of all i would like to thanks Scilab community for their help (it's the right place to do it ....). I've a general question concerning figure resizing => I would like to cut borders / I'm not speaking about having a smaller figure (see attached example) !!!! ... i don't know if it's possible to do / it but if yes it'll be very usefull for me (I've decades of images to modify) ! Does somebedy is experienced on it ? Regards Paul -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: resizing_image.JPG Type: image/jpeg Size: 53392 bytes Desc: resizing_image.JPG URL: From paul.carrico at esterline.com Wed Nov 10 15:48:33 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Wed, 10 Nov 2010 15:48:33 +0100 Subject: resizing image / erratum In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AF65@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AF65@exchsrv.AUXITROL1> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AF66@exchsrv.AUXITROL1> Dear All, First of all i would like to thanks Scilab community for their help (it's the right place to do it ....). I've a general question concerning figure resizing => I would like to cut borders / I'm not speaking about having a smaller figure (see attached example) !!!! ... i don't know if it's possible to do it using (automatic) scilab script / it but if yes it'll be very usefull for me (I've decades of images to modify) ! Does somebedy is experienced on it ? Regards Paul PS : sorry the email was launched by error -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: resizing_image.JPG Type: image/jpeg Size: 53392 bytes Desc: resizing_image.JPG URL: From sylvestre.ledru at scilab.org Wed Nov 10 20:08:57 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 10 Nov 2010 20:08:57 +0100 Subject: [scilab-Users] scilab documentation In-Reply-To: References: <1287977486.28424.5354.camel@zlarin> Message-ID: <1289416137.20382.822.camel@zlarin> Yes, you are right. We had some excellent discussions with Equalis people and various contributors about this subject. It is why we worked harder during the last few weeks on this and we will hopefully release a new web interface for the documentation. However, I'd like to point out that we have limited ressources and we would really appreciate some help in the documentation pages. Just a quick bug report (or email to me directly if people are shy) saying "here is a better description for this function", "here is the LaTeX equation for this function, could you include it into the documentation" or "here is an example for this function" is very helpful and usually fast for the contributor to produce. Sylvestre PS: please keep the same kind of reply when you answer (ie, top to down or down to top but please avoid mixing them). Le lundi 08 novembre 2010 ? 05:35 -0500, Process Control a ?crit : > thanks for replying. scilab is an alternative to matlab. we need to > show that. i think it is a great idea to go through most of matlab's > online documentation, page by page, and rework everything using scilab > code. one of the major reasons why scilab is not popular is lack of > quality documentation. many people complain about this when they give > scilab a try. > > regards > > On Sun, Oct 24, 2010 at 11:31 PM, Sylvestre Ledru > wrote: > Hello, > Le samedi 23 octobre 2010 ? 16:44 -0400, Process Control a > ?crit : > > Has anyone proposed to create matlab-like documentation for > scilab? > > this can be done by transforming matlab's documentation into > scilab by > > following same examples, contents, and writing style. > > Scilab and Matlab are different software. Scilab is not a > Matlab clone > and you cannot just take Matlab documentation and adapt it for > Scilab... > (or I didn't understand your proposal) > > Sylvestre > > -- > ------------------------- > 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 ray at aarden.us Thu Nov 11 05:00:11 2010 From: ray at aarden.us (ray joseph) Date: Wed, 10 Nov 2010 22:00:11 -0600 Subject: [scilab-Users] 2-D Fourier Transform? In-Reply-To: References: Message-ID: I am sorry that I can not offer a direct scilab review but in general, the Fourier transform can have complex results. Rather than square, multiply by the complex conjegate. But you might first look at your resultant data and see if there is complex components. Additionally, consider using test images rather than real images. An example test image would be a one dimensional sinusoidal gradient, f(x,y) = 1+sin(a*x). Ray -----Original Message----- From: hadi motamedi [mailto:motamedi24 at gmail.com] Sent: Wednesday, November 10, 2010 1:22 AM To: users Subject: [scilab-Users] 2-D Fourier Transform? Dear All To get 2-D Fourier transform from my image , I tried as : ->im=imread("image.png"); ->img=rgb2gray(im); ->imd=im2double(img); ->size(imd) ->yf=fft2(imd,1024,768); ->yfa=abs(yf); ->yfs=yfa.^2; At this point , I tried to make plots of it by using surf(yfa) or Matplot(yfs) but none of them resulted to meaningful drawings. Can you please let me know how can I obtain meaningful graphs for this purpose? Thank you From Samuel.Gougeon at univ-lemans.fr Thu Nov 11 13:54:46 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Thu, 11 Nov 2010 13:54:46 +0100 Subject: [scilab-Users] 2-D Fourier Transform? In-Reply-To: References: Message-ID: <4CDBE796.4050603@univ-lemans.fr> ----- Message d'origine ----- De : hadi motamedi Date : 10/11/2010 08:21: > ->yf=fft2(imd,1024,768); fft2() is bugged: http://bugzilla.scilab.org/show_bug.cgi?id=7895 you may use mfft() instead Samuel From luga_2003 at hotmail.com Thu Nov 11 17:01:32 2010 From: luga_2003 at hotmail.com (Lucas Benitez Demmler) Date: Thu, 11 Nov 2010 16:01:32 +0000 Subject: Help !--error 21 Message-ID: Hello, I have a problem when i want to run "SPDsolver.sci" In Scilab Console there appears after executing: !--error 21 Invalid index at line 5 of function zeroslines called by: at line 2 of function SPDverif called by: at line 3 of function SPDsolve called by: SPDsolve(K0,K,P,cDof,cDofasc,nn) SPDsolve file use internally a function called SPDverif but i don't understand why it is not working. Both files were translated form MATLAB to SCILAB and i use loadmatfile command to load all the variables. I would like to know where the mistake is. I'm sending you the .sci files for testing Thanks you very much indeed Lucas Benitez Demmler UTN - FRH - Bs As - Argentina -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: SPDverif.sci Type: application/octet-stream Size: 1961 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: SPDsolve.sci Type: application/octet-stream Size: 2299 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: fuselage_after_bc.mat Type: application/octet-stream Size: 69812 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Scilab console.JPG Type: image/pjpeg Size: 45114 bytes Desc: not available URL: From castaneasativa at free.fr Thu Nov 11 19:20:56 2010 From: castaneasativa at free.fr (=?iso-8859-1?Q?JULIEN_Fr=E9d=E9ric?=) Date: Thu, 11 Nov 2010 19:20:56 +0100 Subject: export data to Excel from Scilab Message-ID: <9C74E792B89041BD96DC7AFE256E927A@pikaia> Hello, I'm a begginer on Scilab. I try to make a program with Scilab. This program must to do: 1) to import data from Excel files. 2) to process data with Scilab program. 3) to export data to Excel files. No problem for the first and the second stage, but I don't know how to solve the third stage (all of my data are in the first Excel cell ). Somebody could help me please ? thanks, Fred -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Thu Nov 11 21:37:30 2010 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Thu, 11 Nov 2010 21:37:30 +0100 (CET) Subject: [scilab-Users] export data to Excel from Scilab In-Reply-To: <279607689.4412241289507693449.JavaMail.root@zimbra26-e5.priv.proxad.net> Message-ID: <1401496781.4412571289507850198.JavaMail.root@zimbra26-e5.priv.proxad.net> Hi, My personal method is to export data in cvs file ... just an example herebellow (copy & paste) Paul // STEP 7 : Sauvegarde des r?sultats dans un fichier cvs printf("\n"); printf("############################################################################\n") printf(" STEP 7 : sauvegarde des r%csultats dans un fichier .cvs \n",ascii(233)) printf("############################################################################\n") printf("\n"); RESU2 = mopen(CHEMIN_DATA + "/epsilon_sigma_" + string(nom_mat) + ".csv",'w') ; mfprintf(RESU2,'Module d''YOUNG E = ; %g ; [MPa]\n',parameters_opti(1)); mfprintf(RESU2,'Limite %clastique RP0.2 = ; %g ; [MPa]\n',ascii(233),Rp02(1,2)); mfprintf(RESU2,'Limite %c striction Rm = ; %g ; [MPa]\n',ascii(224), Rm); mfprintf(RESU2,'Allongement A%c = ; %g ; [%c]\n',ascii(37),A_pourcent,ascii(37)); mfprintf(RESU2,'\n\n'); if ( ((type_fichier_resultat == 1) | (type_fichier_resultat ==2)) | ((type_fichier_resultat == 3) | (type_fichier_resultat == 5))) then mfprintf(RESU2,'Donn%ces essais :\n',ascii(233)); mfprintf(RESU2,'Section initiale S0 : %g\n',section_initiale_S0) mfprintf(RESU2,'Longueur initiale extensom%ctre : %g\n',ascii(232),longueur_extenso_Le) end if (choix_deformations == 1) then mfprintf(RESU2,'EPSILON [-] ; SIGMA RATIONNELLE [MPa]\n'); elseif (choix_deformations == 2) then mfprintf(RESU2,'EPSILON [-] ; SIGMA CONVENTIONNELLE [MPa]\n'); end for i = 1 : nbre_lignes_donnees2 mfprintf(RESU2,'%g ; %g\n',TRACTION(i,1),TRACTION(i,2)) ; end; // fermeture du fichier r?sultat mclose(RESU2); ----- Mail Original ----- De: "JULIEN Fr?d?ric" ?: users at lists.scilab.org Envoy?: Jeudi 11 Novembre 2010 19h20:56 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: [scilab-Users] export data to Excel from Scilab Hello, I'm a begginer on Scilab. I try to make a program with Scilab. This program must to do: 1) to import data from Excel files. 2) to process data with Scilab program. 3) to export data to Excel files. No problem for the first and the second stage, but I don't know how to solve the third stage (all of my data are in the first Excel cell ). Somebody could help me please ? thanks, Fred From antonelli at unicas.it Fri Nov 12 08:53:29 2010 From: antonelli at unicas.it (Gianluca Antonelli) Date: Fri, 12 Nov 2010 08:53:29 +0100 Subject: [scilab-Users] export data to Excel from Scilab In-Reply-To: <1401496781.4412571289507850198.JavaMail.root@zimbra26-e5.priv.proxad.net> References: <1401496781.4412571289507850198.JavaMail.root@zimbra26-e5.priv.proxad.net> Message-ID: <4CDCF279.5020700@unicas.it> Dear Paul, the issue of writing on an xls file is actually important when the file is existing. In my case, it is necessary first to read the values of some cells, perform some operations using the scilab tools and then write in some cells the results. This can not be done via cvs-like files both because the file is existing and/or because it contains some graphics. As far as I know in Scilab it is not possible to write an xls file, am I wrong? Best, Gianluca paul.carrico at free.fr wrote: > Hi, > > My personal method is to export data in cvs file ... just an example herebellow (copy & paste) > > Paul > > // STEP 7 : Sauvegarde des r?sultats dans un fichier cvs > printf("\n"); > printf("############################################################################\n") > printf(" STEP 7 : sauvegarde des r%csultats dans un fichier .cvs \n",ascii(233)) > printf("############################################################################\n") > printf("\n"); > RESU2 = mopen(CHEMIN_DATA + "/epsilon_sigma_" + string(nom_mat) + ".csv",'w') ; > mfprintf(RESU2,'Module d''YOUNG E = ; %g ; [MPa]\n',parameters_opti(1)); > mfprintf(RESU2,'Limite %clastique RP0.2 = ; %g ; [MPa]\n',ascii(233),Rp02(1,2)); > mfprintf(RESU2,'Limite %c striction Rm = ; %g ; [MPa]\n',ascii(224), Rm); > mfprintf(RESU2,'Allongement A%c = ; %g ; [%c]\n',ascii(37),A_pourcent,ascii(37)); > mfprintf(RESU2,'\n\n'); > if ( ((type_fichier_resultat == 1) | (type_fichier_resultat ==2)) | ((type_fichier_resultat == 3) | (type_fichier_resultat == 5))) then > mfprintf(RESU2,'Donn%ces essais :\n',ascii(233)); > mfprintf(RESU2,'Section initiale S0 : %g\n',section_initiale_S0) > mfprintf(RESU2,'Longueur initiale extensom%ctre : %g\n',ascii(232),longueur_extenso_Le) > end > > if (choix_deformations == 1) then > mfprintf(RESU2,'EPSILON [-] ; SIGMA RATIONNELLE [MPa]\n'); > elseif (choix_deformations == 2) then > mfprintf(RESU2,'EPSILON [-] ; SIGMA CONVENTIONNELLE [MPa]\n'); > end > > > for i = 1 : nbre_lignes_donnees2 > mfprintf(RESU2,'%g ; %g\n',TRACTION(i,1),TRACTION(i,2)) ; > end; > > // fermeture du fichier r?sultat > mclose(RESU2); > > > > > > > > > > ----- Mail Original ----- > De: "JULIEN Fr?d?ric" > ?: users at lists.scilab.org > Envoy?: Jeudi 11 Novembre 2010 19h20:56 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne > Objet: [scilab-Users] export data to Excel from Scilab > > > Hello, > > I'm a begginer on Scilab. > I try to make a program with Scilab. This program must to do: > 1) to import data from Excel files. > 2) to process data with Scilab program. > 3) to export data to Excel files. > > No problem for the first and the second stage, but I don't know how to solve the third stage (all of my data are in the first Excel cell ). > > Somebody could help me please ? > > thanks, > > Fred > From paul.carrico at free.fr Fri Nov 12 09:14:23 2010 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Fri, 12 Nov 2010 09:14:23 +0100 (CET) Subject: [scilab-Users] export data to Excel from Scilab In-Reply-To: <951021218.4441581289549397644.JavaMail.root@zimbra26-e5.priv.proxad.net> Message-ID: <48857153.4442111289549663472.JavaMail.root@zimbra26-e5.priv.proxad.net> Dear Gianluca, Excel format is aproprietary format ... I don't know if it's possible to read/write directly in such format (may be you have some information on OpenOffice website/doc)... of course if you find the solution a lot of people will be interested ! In any way and from my understanding I proposed a way i use to write results that can be read/opened by Excel Paul ----- Mail Original ----- De: "Gianluca Antonelli" ?: users at lists.scilab.org Envoy?: Vendredi 12 Novembre 2010 08h53:29 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: Re: [scilab-Users] export data to Excel from Scilab Dear Paul, the issue of writing on an xls file is actually important when the file is existing. In my case, it is necessary first to read the values of some cells, perform some operations using the scilab tools and then write in some cells the results. This can not be done via cvs-like files both because the file is existing and/or because it contains some graphics. As far as I know in Scilab it is not possible to write an xls file, am I wrong? Best, Gianluca paul.carrico at free.fr wrote: > Hi, > > My personal method is to export data in cvs file ... just an example herebellow (copy & paste) > > Paul > > // STEP 7 : Sauvegarde des r?sultats dans un fichier cvs > printf("\n"); > printf("############################################################################\n") > printf(" STEP 7 : sauvegarde des r%csultats dans un fichier .cvs \n",ascii(233)) > printf("############################################################################\n") > printf("\n"); > RESU2 = mopen(CHEMIN_DATA + "/epsilon_sigma_" + string(nom_mat) + ".csv",'w') ; > mfprintf(RESU2,'Module d''YOUNG E = ; %g ; [MPa]\n',parameters_opti(1)); > mfprintf(RESU2,'Limite %clastique RP0.2 = ; %g ; [MPa]\n',ascii(233),Rp02(1,2)); > mfprintf(RESU2,'Limite %c striction Rm = ; %g ; [MPa]\n',ascii(224), Rm); > mfprintf(RESU2,'Allongement A%c = ; %g ; [%c]\n',ascii(37),A_pourcent,ascii(37)); > mfprintf(RESU2,'\n\n'); > if ( ((type_fichier_resultat == 1) | (type_fichier_resultat ==2)) | ((type_fichier_resultat == 3) | (type_fichier_resultat == 5))) then > mfprintf(RESU2,'Donn%ces essais :\n',ascii(233)); > mfprintf(RESU2,'Section initiale S0 : %g\n',section_initiale_S0) > mfprintf(RESU2,'Longueur initiale extensom%ctre : %g\n',ascii(232),longueur_extenso_Le) > end > > if (choix_deformations == 1) then > mfprintf(RESU2,'EPSILON [-] ; SIGMA RATIONNELLE [MPa]\n'); > elseif (choix_deformations == 2) then > mfprintf(RESU2,'EPSILON [-] ; SIGMA CONVENTIONNELLE [MPa]\n'); > end > > > for i = 1 : nbre_lignes_donnees2 > mfprintf(RESU2,'%g ; %g\n',TRACTION(i,1),TRACTION(i,2)) ; > end; > > // fermeture du fichier r?sultat > mclose(RESU2); > > > > > > > > > > ----- Mail Original ----- > De: "JULIEN Fr?d?ric" > ?: users at lists.scilab.org > Envoy?: Jeudi 11 Novembre 2010 19h20:56 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne > Objet: [scilab-Users] export data to Excel from Scilab > > > Hello, > > I'm a begginer on Scilab. > I try to make a program with Scilab. This program must to do: > 1) to import data from Excel files. > 2) to process data with Scilab program. > 3) to export data to Excel files. > > No problem for the first and the second stage, but I don't know how to solve the third stage (all of my data are in the first Excel cell ). > > Somebody could help me please ? > > thanks, > > Fred > From Samuel.Gougeon at univ-lemans.fr Fri Nov 12 09:20:00 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Fri, 12 Nov 2010 09:20:00 +0100 Subject: [scilab-Users] export data to Excel from Scilab In-Reply-To: <4CDCF279.5020700@unicas.it> References: <1401496781.4412571289507850198.JavaMail.root@zimbra26-e5.priv.proxad.net> <4CDCF279.5020700@unicas.it> Message-ID: <4CDCF8B0.2070200@univ-lemans.fr> Hello, ----- Message d'origine ----- De : Gianluca Antonelli Date : 12/11/2010 08:53: > Dear Paul, > > the issue of writing on an xls file is actually important when the file is > existing. > > In my case, it is necessary first to read the values of some cells, perform > some operations using the scilab tools and then write in some cells the results. > > This can not be done via cvs-like files both because the file is existing > and/or because it contains some graphics. > > As far as I know in Scilab it is not possible to write an xls file, am I wrong? You may have a look at : http://atoms.scilab.org/toolboxes/xls_link/0.2 (and http://atoms.scilab.org/toolboxes/Scilab_XLL/0.1 ) Regards Samuel From antonelli at unicas.it Fri Nov 12 10:52:52 2010 From: antonelli at unicas.it (Gianluca Antonelli) Date: Fri, 12 Nov 2010 10:52:52 +0100 Subject: [scilab-Users] export data to Excel from Scilab In-Reply-To: <48857153.4442111289549663472.JavaMail.root@zimbra26-e5.priv.proxad.net> References: <48857153.4442111289549663472.JavaMail.root@zimbra26-e5.priv.proxad.net> Message-ID: <4CDD0E74.8020305@unicas.it> Dear Paul and Samuel, paul.carrico at free.fr wrote: > Dear Gianluca, > > Excel format is aproprietary format ... I don't know if it's possible > to read/write directly in such format (may be you have some > information on OpenOffice website/doc)... of course if you find the > solution a lot of people will be interested ! yes it is possible to read (I currently do it without problems) but I'm missing a writing function. > In any way and from my understanding I proposed a way i use to write > results that can be read/opened by Excel Your code might be usefull, my reply was just to try to "ping" the community and verify is a writing function exists. Samuel GOUGEON wrote: > Hello, > ... > You may have a look at : > http://atoms.scilab.org/toolboxes/xls_link/0.2 > (and http://atoms.scilab.org/toolboxes/Scilab_XLL/0.1 ) It does not appear under Atoms for Scilab 5.2 Linux Best, Gianluca From edgar.ataide at lneg.pt Fri Nov 12 11:22:16 2010 From: edgar.ataide at lneg.pt (=?Windows-1252?Q?Edgar_Ata=EDde?=) Date: Fri, 12 Nov 2010 10:22:16 -0000 Subject: hdf5 format Message-ID: <5F7B2136E87E428F95B6A96A7F710453@delamd64> Please, can anybody tell me if there is a Scilab module which can write and read files in hdf5 format or in another scientific data format? Best regards Edgar Ataide -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Fri Nov 12 13:17:24 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Fri, 12 Nov 2010 13:17:24 +0100 Subject: [scilab-Users] export data to Excel from Scilab In-Reply-To: <4CDD0E74.8020305@unicas.it> References: <48857153.4442111289549663472.JavaMail.root@zimbra26-e5.priv.proxad.net> <4CDD0E74.8020305@unicas.it> Message-ID: <4CDD3054.4060008@univ-lemans.fr> ----- Message d'origine ----- De : Gianluca Antonelli Date : 12/11/2010 10:52: > > Samuel GOUGEON wrote: > > Hello, > > ... > > You may have a look at : > > http://atoms.scilab.org/toolboxes/xls_link/0.2 > > (and http://atoms.scilab.org/toolboxes/Scilab_XLL/0.1 ) > > It does not appear under Atoms for Scilab 5.2 Linux Did you try http://atoms.scilab.org/toolboxes/WriteXmlExcel/0.1 ? It is available under Linux, but would need to upgrade your installation to Scilab 5.3.0. Samuel From edgar.ataide at lneg.pt Fri Nov 12 14:46:47 2010 From: edgar.ataide at lneg.pt (=?Windows-1252?Q?Edgar_Ata=EDde?=) Date: Fri, 12 Nov 2010 13:46:47 -0000 Subject: [scilab-Users] export data to Excel from Scilab References: <48857153.4442111289549663472.JavaMail.root@zimbra26-e5.priv.proxad.net> <4CDD0E74.8020305@unicas.it> <4CDD3054.4060008@univ-lemans.fr> Message-ID: <24D9113146254693909BE576E41D2134@delamd64> Dear Samuel Thank you for your fast answer. However the problem is to write a file in hdf5 format (http://www.hdfgroup.org) and not in excel format, unless the WriteXmlExcel module can write files in hdf5 format. The information that is available at Atoms manager only says that this module write Excel xml files. For your information I am using Scilab 5.3.0-beta 4. Best regards Edgar ----- Original Message ----- From: "Samuel GOUGEON" To: Sent: Friday, November 12, 2010 12:17 PM Subject: Re: [scilab-Users] export data to Excel from Scilab > ----- Message d'origine ----- > De : Gianluca Antonelli > Date : 12/11/2010 10:52: >> >> Samuel GOUGEON wrote: >> > Hello, >> > ... >> > You may have a look at : >> > http://atoms.scilab.org/toolboxes/xls_link/0.2 >> > (and http://atoms.scilab.org/toolboxes/Scilab_XLL/0.1 ) >> >> It does not appear under Atoms for Scilab 5.2 Linux > Did you try http://atoms.scilab.org/toolboxes/WriteXmlExcel/0.1 ? > It is available under Linux, but would need to upgrade your installation > to Scilab 5.3.0. > > Samuel > From Samuel.Gougeon at univ-lemans.fr Fri Nov 12 16:54:50 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Fri, 12 Nov 2010 16:54:50 +0100 Subject: [scilab-Users] hdf5 format In-Reply-To: <5F7B2136E87E428F95B6A96A7F710453@delamd64> References: <5F7B2136E87E428F95B6A96A7F710453@delamd64> Message-ID: <4CDD634A.8020204@univ-lemans.fr> Hey Edgar, ----- Message d'origine ----- De : Edgar Ata?de Date : 12/11/2010 11:22: > Please, can anybody tell me if there is a Scilab module which can write and > read files in hdf5 format or in another scientific data format? The usual way for searching some Scilab resources could be: 1) To have a look at ATOMS : http://atoms.scilab.or 2) To have a look at the Forge : http://forge.scilab.org 3) To have a look at the mailing lists : http://lists.scilab.org where some answers are available : http://lists.scilab.org/cgi-bin/ezmlm-browse?list=users&cmd=showmsg&msgnum=1516 http://lists.scilab.org/cgi-bin/ezmlm-browse?cmd=search&list=dev&terms=hdf&submit=Search+dev Please note that for that time i am not answering in the proper thread about XLS files ;) Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Fri Nov 12 17:55:37 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 12 Nov 2010 17:55:37 +0100 Subject: [scilab-Users] hdf5 format In-Reply-To: <5F7B2136E87E428F95B6A96A7F710453@delamd64> References: <5F7B2136E87E428F95B6A96A7F710453@delamd64> Message-ID: <1289580937.20382.3728.camel@zlarin> You can save your Scilab data to an HDF5 format (export_to_hdf5) but, for now, you can only read these data. We will extend this to other HDF5 formats into a future release of Scilab. Sylvestre PS: Please note that the HDF5 format of export_to_hdf5 is not documented on purpose and should be normalized and documented for Scilab 5.3.1 or 5.4.0. This will also become the default Scilab format for the save/load functions. Le vendredi 12 novembre 2010 ? 10:22 +0000, Edgar Ata?de a ?crit : > Please, can anybody tell me if there is a Scilab module which can > write and read files in hdf5 format or in another scientific data > format? > > Best regards > > Edgar Ataide -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From eddy.pdu at gmail.com Fri Nov 12 18:42:25 2010 From: eddy.pdu at gmail.com (Peng Du) Date: Fri, 12 Nov 2010 17:42:25 +0000 Subject: strange invalid index problem Message-ID: Hi there. My program reads data from a file with 12 columns of hex numbers. The input part is like: while(done==0) [num_read, val(1),val(2),val(3),val(4),val(5),val(6),val(7),val(8),val(9),val(10),val(11),val(12)] = mfscanf(fid, "%x %x %x %x %x %x %x %x %x %x %x %x"); if(num_read>=0) then ... ... else done=1 end end mclose(fid); Such program has been working fine until today when I tried reading a new data file with absolutely no difference in format. Scilab keeps reporting error_21 (invalid index) about one line in the form of "abc = val(1)+val(2)+ ... val(12)". But I can't see anything wrong with that. More interestingly, it worked ok when I limited the program to only read the first, say 100, lines. So would anybody kindly point out what I am doing wrong? Thanks very much. Regards, Peng -------------- next part -------------- An HTML attachment was scrubbed... URL: From heinznabielek at me.com Sun Nov 14 16:23:23 2010 From: heinznabielek at me.com (Heinz Nabielek) Date: Sun, 14 Nov 2010 15:23:23 +0000 (UTC) Subject: Problems on MacOSX Snow Leopard - Scilab not starting References: Message-ID: Kay-Uwe G?tz writes: > > Hi, > > several of us have reported problems about Scilab not starting on one of > their machines while it is starting on their other Mac. ....... > > Regards > Kay-Uwe > > SciLab and Mac friends: I cannot get any Scilab 5.x version starting on my Intel iMac 10.6.5. A Scilab 5.2 beta version had worked at one time, but not any more. Starting error messages are shown below. Help greatly appreciated. Heinz Process: scilab-bin [1396] Path: /Applications/scilab-5.2.2.app/Contents/MacOS/bin/scilab Identifier: org.scilab.modules.jvm.Scilab Version: ??? (???) Code Type: X86 (Native) Parent Process: sh [1371] Date/Time: 2010-11-14 16:06:49.876 +0100 OS Version: Mac OS X 10.6.5 (10H574) Report Version: 6 From luga_2003 at hotmail.com Sun Nov 14 23:11:45 2010 From: luga_2003 at hotmail.com (Lucas Benitez Demmler) Date: Sun, 14 Nov 2010 22:11:45 +0000 Subject: FW: Help !--error 21 In-Reply-To: References: Message-ID: Hello, My name is Lucas , I'm from Argentina , and I'm a frecuently user of Scilab. I found a problem when I try to run "spdsolver.sci" I have a problem when i want to run "SPDsolver.sci" In command window appears an error after executing this: !--error 21 Invalid index SPDSolve file use internally a function called SPDverif but i don't understand why it is not working. Both files were translated form MATLAB to SCILAB and i use loadmatfile command to load all the variables. I would like to know where the mistake is. I'm sending you the .sci files for testing thanks in advance for your help Lucas Benitez Demmler Universidad Tecnologica Nacional - FRHaedo - Bs As - Argentina -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: SPDverif.sci Type: application/octet-stream Size: 1961 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: SPDsolve.sci Type: application/octet-stream Size: 2299 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: fuselage_after_bc.mat Type: application/octet-stream Size: 69812 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Scilab console.JPG Type: image/pjpeg Size: 45114 bytes Desc: not available URL: From mathieu.dubois at limsi.fr Sun Nov 14 23:45:10 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Sun, 14 Nov 2010 23:45:10 +0100 Subject: [scilab-Users] FW: Help !--error 21 In-Reply-To: References: Message-ID: <4CE06676.5070008@limsi.fr> Hello Lucas, Peng Du reported the same problem as you. I think is a matter of stacksize because, as Peng mentionned, reading less data (so using less memory) solves it. Did you (both) try to use stacksize(1000000); // Or event bigger on top of your script? Mathieu Le 14/11/2010 23:11, Lucas Benitez Demmler a ?crit : > Hello, My name is Lucas , I'm from Argentina , and I'm a frecuently user > of Scilab. I found a problem when I try to run "spdsolver.sci" > I have a problem when i want to run "SPDsolver.sci" > In command window appears an error after executing this: > !--error 21 > Invalid index > > SPDSolve file use internally a function called SPDverif but i don't > understand why it is not working. > Both files were translated form MATLAB to SCILAB and i use loadmatfile > command to load all the variables. > I would like to know where the mistake is. > I'm sending you the .sci files for testing > thanks in advance for your help > > Lucas Benitez Demmler > Universidad Tecnologica Nacional - FRHaedo - Bs As - Argentina From eddy.pdu at gmail.com Sun Nov 14 23:54:57 2010 From: eddy.pdu at gmail.com (Peng Du) Date: Sun, 14 Nov 2010 22:54:57 +0000 Subject: [scilab-Users] FW: Help !--error 21 In-Reply-To: <4CE06676.5070008@limsi.fr> References: <4CE06676.5070008@limsi.fr> Message-ID: Hi Mathieu, Thanks for bringing this up. The thing I don't understand is, if the problem roots from the size of data file / amount of memory being used, why it doesn't report a exceeded stack size error (what I asked you in http://comments.gmane.org/gmane.comp.mathematics.scilab.user/3075) but report a error of invalid index? Regards, Peng On 14 November 2010 22:45, Mathieu Dubois wrote: > Hello Lucas, > > Peng Du reported the same problem as you. > > I think is a matter of stacksize because, as Peng mentionned, reading less > data (so using less memory) solves it. > > Did you (both) try to use > stacksize(1000000); // Or event bigger > on top of your script? > > Mathieu > > Le 14/11/2010 23:11, Lucas Benitez Demmler a ?crit : > > Hello, My name is Lucas , I'm from Argentina , and I'm a frecuently user >> of Scilab. I found a problem when I try to run "spdsolver.sci" >> I have a problem when i want to run "SPDsolver.sci" >> In command window appears an error after executing this: >> !--error 21 >> Invalid index >> >> SPDSolve file use internally a function called SPDverif but i don't >> understand why it is not working. >> Both files were translated form MATLAB to SCILAB and i use loadmatfile >> command to load all the variables. >> I would like to know where the mistake is. >> I'm sending you the .sci files for testing >> thanks in advance for your help >> >> Lucas Benitez Demmler >> Universidad Tecnologica Nacional - FRHaedo - Bs As - Argentina >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.dubois at limsi.fr Mon Nov 15 00:19:16 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Mon, 15 Nov 2010 00:19:16 +0100 Subject: [scilab-Users] FW: Help !--error 21 In-Reply-To: References: <4CE06676.5070008@limsi.fr> Message-ID: <4CE06E74.3020302@limsi.fr> Sorry but I have no clue about this... I know that the Linux kernel (as probably most kernels) is sometimes optimistic about allocating memory. Basically the kernel says "ok" when an application allocates memory (anticipating that other applications may soon release memory). So sometimes when the application really ask for it, the kernel is trapped. I'm not sure that this is related (because usually some processes are killed in this case) but I have experienced this with an application that was allocating a lot of memory and not releasing it properly. So maybe in your case scilab dynamically allocates data as your data grows, causing the error. This is pure speculation. Did stacksize solve the problem? Generally I adopt behavioral debugging: when something works for a few data and not with many, stacksize is the key (if someone knows how to make a nice rime... ;) Mathieu Le 14/11/2010 23:54, Peng Du a ?crit : > Hi Mathieu, > > Thanks for bringing this up. > > The thing I don't understand is, if the problem roots from the size of > data file / amount of memory being used, why it doesn't report a > exceeded stack size error (what I asked you in > http://comments.gmane.org/gmane.comp.mathematics.scilab.user/3075) but > report a error of invalid index? > > Regards, > > Peng > > > On 14 November 2010 22:45, Mathieu Dubois > wrote: > > Hello Lucas, > > Peng Du reported the same problem as you. > > I think is a matter of stacksize because, as Peng mentionned, > reading less data (so using less memory) solves it. > > Did you (both) try to use > stacksize(1000000); // Or event bigger > on top of your script? > > Mathieu > > Le 14/11/2010 23:11, Lucas Benitez Demmler a ?crit : > > Hello, My name is Lucas , I'm from Argentina , and I'm a > frecuently user > of Scilab. I found a problem when I try to run "spdsolver.sci" > I have a problem when i want to run "SPDsolver.sci" > In command window appears an error after executing this: > !--error 21 > Invalid index > > SPDSolve file use internally a function called SPDverif but i don't > understand why it is not working. > Both files were translated form MATLAB to SCILAB and i use > loadmatfile > command to load all the variables. > I would like to know where the mistake is. > I'm sending you the .sci files for testing > thanks in advance for your help > > Lucas Benitez Demmler > Universidad Tecnologica Nacional - FRHaedo - Bs As - Argentina > > From eddy.pdu at gmail.com Mon Nov 15 00:35:16 2010 From: eddy.pdu at gmail.com (Peng Du) Date: Sun, 14 Nov 2010 23:35:16 +0000 Subject: [scilab-Users] FW: Help !--error 21 In-Reply-To: <4CE06E74.3020302@limsi.fr> References: <4CE06676.5070008@limsi.fr> <4CE06E74.3020302@limsi.fr> Message-ID: Thanks Mathieu, The stacksize() solve the my previous issue with the error of "exceeded stacksize". And this new problem occurred when I tried to read another file. So if what you described is the actual cause, I guess the stacksize I am using satisfies Scilab, but it cannot meet the actual requirement hence comes the invalid index error. Unfortunately I am not able to increase the size anymore because it already reaches the limit of my desktop. So maybe Lucas could give it a go and see if it works. Anyway, I can always separate one large file into several smaller ones. Regards, Peng On 14 November 2010 23:19, Mathieu Dubois wrote: > Sorry but I have no clue about this... > > I know that the Linux kernel (as probably most kernels) is sometimes > optimistic about allocating memory. Basically the kernel says "ok" when an > application allocates memory (anticipating that other applications may soon > release memory). So sometimes when the application really ask for it, the > kernel is trapped. > > I'm not sure that this is related (because usually some processes are > killed in this case) but I have experienced this with an application that > was allocating a lot of memory and not releasing it properly. > > So maybe in your case scilab dynamically allocates data as your data grows, > causing the error. This is pure speculation. > > Did stacksize solve the problem? Generally I adopt behavioral debugging: > when something works for a few data and not with many, stacksize is the key > (if someone knows how to make a nice rime... ;) > > Mathieu > Le 14/11/2010 23:54, Peng Du a ?crit : > >> Hi Mathieu, >> >> Thanks for bringing this up. >> >> The thing I don't understand is, if the problem roots from the size of >> data file / amount of memory being used, why it doesn't report a >> exceeded stack size error (what I asked you in >> http://comments.gmane.org/gmane.comp.mathematics.scilab.user/3075) but >> report a error of invalid index? >> >> Regards, >> >> Peng >> >> >> On 14 November 2010 22:45, Mathieu Dubois > > wrote: >> >> Hello Lucas, >> >> Peng Du reported the same problem as you. >> >> I think is a matter of stacksize because, as Peng mentionned, >> reading less data (so using less memory) solves it. >> >> Did you (both) try to use >> stacksize(1000000); // Or event bigger >> on top of your script? >> >> Mathieu >> >> Le 14/11/2010 23:11, Lucas Benitez Demmler a ?crit : >> >> Hello, My name is Lucas , I'm from Argentina , and I'm a >> frecuently user >> of Scilab. I found a problem when I try to run "spdsolver.sci" >> I have a problem when i want to run "SPDsolver.sci" >> In command window appears an error after executing this: >> !--error 21 >> Invalid index >> >> SPDSolve file use internally a function called SPDverif but i don't >> understand why it is not working. >> Both files were translated form MATLAB to SCILAB and i use >> loadmatfile >> command to load all the variables. >> I would like to know where the mistake is. >> I'm sending you the .sci files for testing >> thanks in advance for your help >> >> Lucas Benitez Demmler >> Universidad Tecnologica Nacional - FRHaedo - Bs As - Argentina >> >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From castaneasativa at free.fr Sat Nov 13 09:55:55 2010 From: castaneasativa at free.fr (=?iso-8859-1?Q?JULIEN_Fr=E9d=E9ric?=) Date: Sat, 13 Nov 2010 09:55:55 +0100 Subject: export data to Excel from Scilab Message-ID: Hi, thank you Paul, your method is not exactly what I want (Excel's files) but it's help me to increase in my work. Big thank you again for you help, Fred -------------- next part -------------- An HTML attachment was scrubbed... URL: From mjmccann at iee.org Mon Nov 15 10:02:58 2010 From: mjmccann at iee.org (Michael J. McCann) Date: Mon, 15 Nov 2010 09:02:58 +0000 Subject: Export data to Excel from Scilab In-Reply-To: References: Message-ID: <7.0.1.0.2.20101115084519.05efe5a0@iee.org> Fred, I have seen this correspondence run without resolution, so here is something that might be relevant. I haven't tried in Scilab but in some code I wrote in Pascal for simulation work I was using Excel and its internal VBA (Visual Basic for Applications) to run a dialog (each integration step if necessary). The rules allowed me to read from- or write to a set of Excel cells and the VBA was then able to take those numbers and operate on them, including store (save) them to the end of a big array (range). The VBA was set to operate when the last cell of the input array was changed, so operation became automatic whenever a new set of values was delivered by the "Pascal" programme. My VBA could also deliver values back through the same array (e.g. in modelling a control system). I can probably dig out the code if it's any help. There were also some "Help" files talking about using 'variant' arrays (having variable sizes etc) but I never reached the stage of understanding that. Cheers, Mike. Dr M. J. McCann, McCann Science. ======== At 08:55 13/11/2010, you wrote: >Hi, > >thank you Paul, your method is not exactly what I want (Excel's >files) but it's help me to increase in my work. > >Big thank you again for you help, > > >Fred From paul.carrico at esterline.com Mon Nov 15 10:44:06 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Mon, 15 Nov 2010 10:44:06 +0100 Subject: Scilab <-> ImageMagick linking Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AF73@exchsrv.AUXITROL1> Dear All, After some research this WE, ImageMagick seems to be a good tool to modify/resize/crop pictures (i.e. basic use in a first step) .... I've found some Scilab boxes such as SIP / SIVP but I'm but I'm not sure they correspond to my need .... I've tested ImageMagick under windows throughout a command prompt (that works fine) and I would like to know - if the commands can be introduced in a scilab ? - that means is it easy to call/link ImageMagick from Scilab ? Is there a doc on this kind of item ? Regards Paul -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Mon Nov 15 11:03:02 2010 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Mon, 15 Nov 2010 11:03:02 +0100 Subject: [scilab-Users] Scilab <-> ImageMagick linking In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AF73@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AF73@exchsrv.AUXITROL1> Message-ID: <4CE10556.9050003@laas.fr> Le 15/11/2010 10:44, Carrico, Paul a ?crit : > > Dear All, > > After some research this WE, ImageMagick seems to be a good tool to > modify/resize/crop pictures (i.e. basic use in a first step) .... > > I've found some Scilab boxes such as SIP / SIVP but I'm but I'm not > sure they correspond to my need .... > Well, they have done what you want to do as they are based on ImageMagick. Basically, they provide a wrapper around ImageMagick plus some more. I am not sure you want to re-create such a wrapper. > > I've tested ImageMagick under windows throughout a command prompt > (that works fine) and I would like to know > > - if the commands can be introduced in a scilab ? > > - that means is it easy to call/link ImageMagick from Scilab ? > well, you can always invoke "unix" to transform an image using ImageMagick prior to load it in scilab > > Is there a doc on this kind of item ? > > Regards > > Paul > > -------------------------------------------------------------------------------- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche 31077 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoine.monmayrant at laas.fr permanent email : antoine.monmayrant at polytechnique.org +++++++++++++++++++++++++++++++++++++++++++++++++++++++ -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Mon Nov 15 11:20:31 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Mon, 15 Nov 2010 11:20:31 +0100 Subject: [scilab-Users] Scilab <-> ImageMagick linking In-Reply-To: <4CE10556.9050003@laas.fr> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AF73@exchsrv.AUXITROL1> <4CE10556.9050003@laas.fr> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AF74@exchsrv.AUXITROL1> ok thanks for the feedback ... SIVP seems to be more relevant for Windows ... So I'll have a deeper attention on this toolbox. Paul ________________________________ De : Antoine Monmayrant [mailto:antoine.monmayrant at laas.fr] Envoy? : lundi 15 novembre 2010 11:03 ? : users at lists.scilab.org Objet : Re: [scilab-Users] Scilab <-> ImageMagick linking Le 15/11/2010 10:44, Carrico, Paul a ?crit : Dear All, After some research this WE, ImageMagick seems to be a good tool to modify/resize/crop pictures (i.e. basic use in a first step) .... I've found some Scilab boxes such as SIP / SIVP but I'm but I'm not sure they correspond to my need .... Well, they have done what you want to do as they are based on ImageMagick. Basically, they provide a wrapper around ImageMagick plus some more. I am not sure you want to re-create such a wrapper. I've tested ImageMagick under windows throughout a command prompt (that works fine) and I would like to know - if the commands can be introduced in a scilab ? - that means is it easy to call/link ImageMagick from Scilab ? well, you can always invoke "unix" to transform an image using ImageMagick prior to load it in scilab Is there a doc on this kind of item ? Regards Paul -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche 31077 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoine.monmayrant at laas.fr permanent email : antoine.monmayrant at polytechnique.org +++++++++++++++++++++++++++++++++++++++++++++++++++++++ -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Gernot.Schullerus at Reutlingen-University.DE Mon Nov 15 11:49:57 2010 From: Gernot.Schullerus at Reutlingen-University.DE (Gernot Schullerus) Date: Mon, 15 Nov 2010 11:49:57 +0100 Subject: Simulation of Electrical Systems with Xcos Message-ID: <000401cb84b2$d85f4b00$891de100$@reutlingen-university.de> I'm using Scilab 5.3.0-beta-4. When trying to simulate electrical systems with Xcos the simulation does not start but I find a message in the Scilab console that a C-Compiler is required. I have a mingw installation on my computer. How can I configure Scilab such that it uses mingw. Thank you for your support Gernot Schullerus From celso.co at gmail.com Mon Nov 15 16:10:58 2010 From: celso.co at gmail.com (Celso Co) Date: Mon, 15 Nov 2010 23:10:58 +0800 Subject: [scilab-Users] export data to Excel from Scilab In-Reply-To: <9C74E792B89041BD96DC7AFE256E927A@pikaia> References: <9C74E792B89041BD96DC7AFE256E927A@pikaia> Message-ID: Dear Fred, Send me sample for me to duplicate the process. cco 2010/11/12 JULIEN Fr?d?ric : > Hello, > > I'm a begginer on Scilab. > I try to make a program with Scilab. This program must to do: > 1) to import data from Excel files. > 2) to process data with Scilab program. > 3) to export data to Excel files. > > No problem for the first and the second stage, but?I don't know how to solve > the third stage (all of my data are in the first Excel cell?). > > Somebody could help me please ? > > thanks, > > Fred > -- Eng'r Celso B. Co, PhD ECE Assistant Professor Dept. of Electronics, Computer, and Communication Engineering, Loyola Schools of Science and Engineering, Ateneo De Manila From edgar.ataide at lneg.pt Mon Nov 15 17:52:03 2010 From: edgar.ataide at lneg.pt (=?Windows-1252?Q?Edgar_Ata=EDde?=) Date: Mon, 15 Nov 2010 16:52:03 -0000 Subject: [scilab-Users] hdf5 format References: <5F7B2136E87E428F95B6A96A7F710453@delamd64> <1289580937.20382.3728.camel@zlarin> Message-ID: Sylvestre Thank your for your answer. I wait for the next release, which I hope includes functions to save data to HDF5 format. Best Regards Edgar ----- Original Message ----- From: "Sylvestre Ledru" To: Sent: Friday, November 12, 2010 4:55 PM Subject: Re: [scilab-Users] hdf5 format > You can save your Scilab data to an HDF5 format (export_to_hdf5) but, > for now, you can only read these data. > We will extend this to other HDF5 formats into a future release of > Scilab. > > Sylvestre > PS: Please note that the HDF5 format of export_to_hdf5 is not documented > on purpose and should be normalized and documented for Scilab 5.3.1 or > 5.4.0. > This will also become the default Scilab format for the save/load > functions. > > > Le vendredi 12 novembre 2010 ? 10:22 +0000, Edgar Ata??de a ??crit : >> Please, can anybody tell me if there is a Scilab module which can >> write and read files in hdf5 format or in another scientific data >> format? >> >> Best regards >> >> Edgar Ataide > > -- > ------------------------- > Sylvestre Ledru > ------------------------- > The Scilab Consortium > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay Cedex > France > From edgar.ataide at lneg.pt Mon Nov 15 18:16:49 2010 From: edgar.ataide at lneg.pt (=?Windows-1252?Q?Edgar_Ata=EDde?=) Date: Mon, 15 Nov 2010 17:16:49 -0000 Subject: [scilab-Users] hdf5 format References: <5F7B2136E87E428F95B6A96A7F710453@delamd64> <4CDD634A.8020204@univ-lemans.fr> Message-ID: <5193B61DA7DC4D118973D2A514CC4B2C@delamd64> Samuel Thank you for your answer. In this moment I'm using the 5.3.0-beta 4 version that doesn't include save data functions in HDF5 format; I did a search in http://atoms.scilab.org, and http://forge.scilab.org and there aren't functions available to save data in that format. I was told in several discussions groups those functions wil be available in next release. Regards Edgar ----- Original Message ----- From: Samuel GOUGEON To: users at lists.scilab.org Sent: Friday, November 12, 2010 3:54 PM Subject: Re: [scilab-Users] hdf5 format Hey Edgar, ----- Message d'origine ----- De : Edgar Ata?de Date : 12/11/2010 11:22: Please, can anybody tell me if there is a Scilab module which can write and read files in hdf5 format or in another scientific data format? The usual way for searching some Scilab resources could be: 1) To have a look at ATOMS : http://atoms.scilab.or 2) To have a look at the Forge : http://forge.scilab.org 3) To have a look at the mailing lists : http://lists.scilab.org where some answers are available : http://lists.scilab.org/cgi-bin/ezmlm-browse?list=users&cmd=showmsg&msgnum=1516 http://lists.scilab.org/cgi-bin/ezmlm-browse?cmd=search&list=dev&terms=hdf&submit=Search+dev Please note that for that time i am not answering in the proper thread about XLS files ;) Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Mon Nov 15 18:48:59 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Mon, 15 Nov 2010 18:48:59 +0100 Subject: [scilab-Users] hdf5 format In-Reply-To: <5193B61DA7DC4D118973D2A514CC4B2C@delamd64> References: <5F7B2136E87E428F95B6A96A7F710453@delamd64> <4CDD634A.8020204@univ-lemans.fr> <5193B61DA7DC4D118973D2A514CC4B2C@delamd64> Message-ID: <1289843339.11424.65.camel@zlarin> Actually, Scilab does include HDF5 saving capabilities [1]. If you do need them, you can use it. However, as I said, we might change the format in the future. Cheers, Sylvestre [1] Example -->a=rand(2,2) a = 0.2113249 0.0002211 0.7560439 0.3303271 -->export_to_hdf5("data.hdf5","a"); -->clear a; -->import_from_hdf5("data.hdf5"); -->a a = 0.2113249 0.0002211 0.7560439 0.3303271 of course, data.hdf5 can be used by thirdparty tools. hdfview will display the values. Le lundi 15 novembre 2010 ? 17:16 +0000, Edgar Ata?de a ?crit : > Samuel > > Thank you for your answer. In this moment I'm using the 5.3.0-beta 4 > version that doesn't include save data functions in HDF5 format; I did > a search in http://atoms.scilab.org, and http://forge.scilab.org and > there aren't functions available to save data in that format. I was > told in several discussions groups those functions wil be available in > next release. > > Regards > > Edgar > ----- Original Message ----- > From: Samuel GOUGEON > To: users at lists.scilab.org > Sent: Friday, November 12, 2010 3:54 PM > Subject: Re: [scilab-Users] hdf5 format > > > Hey Edgar, > > ----- Message d'origine ----- > De : Edgar Ata?de > Date : 12/11/2010 11:22: > > Please, can anybody tell me if there is a Scilab > > module which can write and read files in hdf5 format or in > > another scientific data format? > > > The usual way for searching some Scilab resources could be: > 1) To have a look at ATOMS : http://atoms.scilab.or > 2) To have a look at the Forge : http://forge.scilab.org > 3) To have a look at the mailing lists : > http://lists.scilab.org > where some answers are available : > http://lists.scilab.org/cgi-bin/ezmlm-browse?list=users&cmd=showmsg&msgnum=1516 > http://lists.scilab.org/cgi-bin/ezmlm-browse?cmd=search&list=dev&terms=hdf&submit=Search+dev > > Please note that for that time i am not answering in the > proper thread about XLS files ;) > > Regards > Samuel -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From paoloc64 at gmail.com Tue Nov 16 02:06:37 2010 From: paoloc64 at gmail.com (paolo compagnon) Date: Tue, 16 Nov 2010 01:06:37 +0000 Subject: histplot log log scale Message-ID: Hi all, In one of my Monte Carlo exercice I simulate a power law using 1D l?vy flights. I don't manage to find how to plot my histogram in a log log scale. I know that I can obtain a loglog scale with plot2d function like this plot2d(x, y, logflag = 'll'). But what about histplot function? Best regards, Paolo -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.dubois at limsi.fr Tue Nov 16 09:36:07 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Tue, 16 Nov 2010 09:36:07 +0100 Subject: [scilab-Users] histplot log log scale In-Reply-To: References: Message-ID: <4CE24277.3090209@limsi.fr> Hello, On 11/16/2010 02:06 AM, paolo compagnon wrote: > Hi all, > > In one of my Monte Carlo exercice I simulate a power law using 1D l?vy > flights. > I don't manage to find how to plot my histogram in a log log scale. > I know that I can obtain a loglog scale with plot2d function like this > plot2d(x, y, logflag = 'll'). > But what about histplot function? According to the documentation (help('histplot')), you can use the same syntax with histplot. By the way you can change the scale of any graphics by using the log_flags field of the Axes structure (see help('graphic_entities') and help('axes_properties')): histplot(); // A histogram a=gca(); a.data_bounds=[[0.1, 0.1];[4.5, 0.40]]; // To get positive values on X and Y a.log_flags="ll"; // Switch to log-log By the way the keyword is logflag while the filed is spelled log_flags... Maybe they could be the same... HTH, Mathieu > > Best regards, > Paolo > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: test_loghisplot.sce URL: From marcin.wozniczka at gazeta.pl Tue Nov 16 11:26:17 2010 From: marcin.wozniczka at gazeta.pl (marcin.wozniczka Gazeta.pl) Date: Tue, 16 Nov 2010 11:26:17 +0100 Subject: Create exec file Message-ID: Hi, I've created program in scilab with GUI (using Tk), and I want to create exec file that doesn't need installed Scilab on computer. Could you give me some instruction (step by step), how to do it? -- Marcin Wo?niczka -------------- next part -------------- An HTML attachment was scrubbed... URL: From enzo.02 at gmail.com Tue Nov 16 15:57:50 2010 From: enzo.02 at gmail.com (Enzo Ferrante) Date: Tue, 16 Nov 2010 15:57:50 +0100 Subject: Looking for some documents about Scilab Message-ID: Hello! I started to use Scilab some weeks ago. I'm looking for some document about good practices for Scilab programming, i.e., some ideas about the architecture that a Scilab program should has. I'm also looking for some text about Testing Scilab scripts (or maybe some framework designed to do it). So, if somebody knows any document related with this, it would be great! Regards, Enzo -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Tue Nov 16 16:05:12 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 16 Nov 2010 16:05:12 +0100 Subject: [scilab-Users] Looking for some documents about Scilab In-Reply-To: References: Message-ID: <1289919912.4100.14.camel@korcula.inria.fr> Le mardi 16 novembre 2010 ? 15:57 +0100, Enzo Ferrante a ?crit : > Hello! > I'm also looking for some text about Testing Scilab scripts (or maybe > some framework designed to do it). See function "test_run" and the Scilab unitary tests & non reg (more than 2600) See: find . -iname '*.tst' in SCI for examples. Sylvestre From sylvestre.ledru at scilab.org Wed Nov 17 08:10:52 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 17 Nov 2010 08:10:52 +0100 Subject: Around Scilab: Webminar & Internship Message-ID: <1289977852.664.191.camel@zlarin> Hello, Two information around Scilab. First, Equalis is performing a webminar on Scilab the December 8th at 10:00 am Pacific time. Registration link: https://www1.gotomeeting.com/register/403474176 Second, the CNES is looking for an intern for 6 months to work on analysis of space mechanics task which will be implemented in Celestlab [1]. In English: http://www.cnes.fr/web/CNES-en/1527-cnes-internships-2011.php?view=item&item=6275 In French: http://www.cnes.fr/web/CNES-fr/175-stages-cnes.php?view=item&item=6139 Sylvestre [1] http://atoms.scilab.org/toolboxes/celestlab -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From edgar.ataide at lneg.pt Wed Nov 17 09:58:51 2010 From: edgar.ataide at lneg.pt (=?Windows-1252?Q?Edgar_Ata=EDde?=) Date: Wed, 17 Nov 2010 08:58:51 -0000 Subject: [scilab-Users] hdf5 format References: <5F7B2136E87E428F95B6A96A7F710453@delamd64> <4CDD634A.8020204@univ-lemans.fr> <5193B61DA7DC4D118973D2A514CC4B2C@delamd64> <1289843339.11424.65.camel@zlarin> Message-ID: <53C48EA4BC534ABE89B2D236EBCF314F@delamd64> Sylvestre Thank you for your suggestion. Best Regards Edgar ----- Original Message ----- From: "Sylvestre Ledru" To: Sent: Monday, November 15, 2010 5:48 PM Subject: Re: [scilab-Users] hdf5 format > Actually, Scilab does include HDF5 saving capabilities [1]. > If you do need them, you can use it. However, as I said, we might change > the format in the future. > > Cheers, > Sylvestre > > [1] Example > -->a=rand(2,2) > a = > > 0.2113249 0.0002211 > 0.7560439 0.3303271 > > -->export_to_hdf5("data.hdf5","a"); > > -->clear a; > > -->import_from_hdf5("data.hdf5"); > > -->a > a = > > 0.2113249 0.0002211 > 0.7560439 0.3303271 > > of course, data.hdf5 can be used by thirdparty tools. > hdfview will display the values. > > Le lundi 15 novembre 2010 ? 17:16 +0000, Edgar Ata??de a ??crit : >> Samuel >> >> Thank you for your answer. In this moment I'm using the 5.3.0-beta 4 >> version that doesn't include save data functions in HDF5 format; I did >> a search in http://atoms.scilab.org, and http://forge.scilab.org and >> there aren't functions available to save data in that format. I was >> told in several discussions groups those functions wil be available in >> next release. >> >> Regards >> >> Edgar >> ----- Original Message ----- >> From: Samuel GOUGEON >> To: users at lists.scilab.org >> Sent: Friday, November 12, 2010 3:54 PM >> Subject: Re: [scilab-Users] hdf5 format >> >> >> Hey Edgar, >> >> ----- Message d'origine ----- >> De : Edgar Ata??de >> Date : 12/11/2010 11:22: >> > Please, can anybody tell me if there is a Scilab >> > module which can write and read files in hdf5 format or in >> > another scientific data format? >> > >> The usual way for searching some Scilab resources could be: >> 1) To have a look at ATOMS : http://atoms.scilab.or >> 2) To have a look at the Forge : http://forge.scilab.org >> 3) To have a look at the mailing lists : >> http://lists.scilab.org >> where some answers are available : >> >> http://lists.scilab.org/cgi-bin/ezmlm-browse?list=users&cmd=showmsg&msgnum=1516 >> >> http://lists.scilab.org/cgi-bin/ezmlm-browse?cmd=search&list=dev&terms=hdf&submit=Search+dev >> >> Please note that for that time i am not answering in the >> proper thread about XLS files ;) >> >> Regards >> Samuel > > -- > ------------------------- > Sylvestre Ledru > ------------------------- > The Scilab Consortium > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay Cedex > France > From paul.carrico at esterline.com Wed Nov 17 14:40:33 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Wed, 17 Nov 2010 14:40:33 +0100 Subject: gsort function Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AF8E@exchsrv.AUXITROL1> Dear all, Sort algorithms are rather new for me ... In the example herebellow and after some tests, I've noticed that the matrix is sorted from the 1rst column : - is it possible to choose the column to sort ? - otherwise does it mean it's necessary to permute the desired column with the first one to sort ? Thanks in advance Cheers Paul ######## mode(0); clearglobal(); D = [ 1 0 3 11 10 13; 4 9 6 -1 -1 0; 17 8 39 9 -451 3; 10 110 -12 1 -9 45 ; -13 514 15 78 -99 3] D_lr = gsort(D,'lr','i') -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tvitklg at rambler.ru Wed Nov 17 14:36:38 2010 From: tvitklg at rambler.ru (...TViT.......ICQ:285247380.......) Date: Wed, 17 Nov 2010 16:36:38 +0300 Subject: __Question of Scilab results Message-ID: <823501416.1290001000.108349400.72180@mcgi-wr-8.rambler.ru> Hello! Say please your program Scilab is completely free? It is possible to use results of calculations and Coefficients of filters the paid projects and products? -- ...TViT.......ICQ:285247380....... tvitklg at rambler.ru From sylvestre.ledru at scilab.org Wed Nov 17 14:44:53 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 17 Nov 2010 14:44:53 +0100 Subject: [scilab-Users] __Question of Scilab results In-Reply-To: <823501416.1290001000.108349400.72180@mcgi-wr-8.rambler.ru> References: <823501416.1290001000.108349400.72180@mcgi-wr-8.rambler.ru> Message-ID: <1290001493.7582.14.camel@zlarin> Le mercredi 17 novembre 2010 ? 16:36 +0300, ...TViT.......ICQ:285247380....... a ?crit : > Hello! Say please your program Scilab is completely free? Yes, it is. Both free as speech (you can access to the source) and as beer (you don't have to pay to use it neither use the results) Sylvestre -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From michael.baudin at scilab.org Wed Nov 17 16:17:09 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Wed, 17 Nov 2010 16:17:09 +0100 Subject: [scilab-Users] Stixbox dnorm function - formula error? In-Reply-To: References: <4CCB2A11.1000104@sgl.com> <4CCB3A21.7030309@univ-lemans.fr> <4CD15BBC.6030400@scilab.org> <4CD16C69.2030707@sgl.com> <4CD27AE9.4090600@scilab.org> <4CD2F314.2010805@sgl.com> <4CD3B9F3.3000802@scilab.org> <4CD7C583.8010008@scilab.org> Message-ID: <4CE3F1F5.8090802@scilab.org> Thank you for your feedback. You are right: there was a lack of feedback in the demo. I have improved the script, see the new version at : http://forge.scilab.org/index.php/p/stixbox/source/tree/master/demos/stixdemo.dem.sce There were many comments, which are now displayed in the console. More results are also displayed. I will release the improved version ASAP on ATOMS. Best regards, Micha?l Le 08/11/2010 23:50, Peter.Cusack at csiro.au a ?crit : > Thanks for your response Micha?l. > > It is a lack of feedback in the demo. After I click and hit enter a number of times, things progress until I get a popup menu of datasets. Double-clicking any one causes a crash: > > !--error 4 > Undefined variable: x_message > > at line 32 of function getdata called by : > x = getdata(); > at line 152 of exec file called by : > object(20);script_path = demo_gui_update();exec(script_path,-1);;if exists("%oldgcbo") then gcbo = %oldgcbo; else clear gcbo; end > while executing a callback > at line 27 of function halt called by : > halt() > at line 19 of exec file called by : > object(20);script_path = demo_gui_update();exec(script_path,-1);;if exists("%oldgcbo") then gcbo = %oldgcbo; else clear gcbo; end > while executing a callback > > I see from the TODOs that the demo script will be updated, and that should clarify what to do to make the demo progress. A short term fix would be to add a meaningful prompt. Even "Press Enter." is more helpful than "-->" > > Cheers; > > Peter. > >> Hi Peter, >> >> I guess that you missed the message in the console : >> >> " When paused with -->halt() enter return key to continue" >> >> If I guessed well, we are done. But I admit that the demo itself is a >> fast hack. It should instead display a listbox and let the user choose >> from one of the several distribution functions which are available. >> >> If I guessed wrong, let me know the exact version of Scilab that you use >> and the OS where it runs. >> >> Best regards, >> >> Micha?l Baudin >> >> PS >> See the TODOs in : >> http://forge.scilab.org/index.php/p/stixbox/source/tree/master/readme.tx >> t -- 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 mathieu.dubois at limsi.fr Wed Nov 17 18:06:30 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Wed, 17 Nov 2010 18:06:30 +0100 Subject: [scilab-Users] gsort function In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AF8E@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AF8E@exchsrv.AUXITROL1> Message-ID: <4CE40B96.5040609@limsi.fr> Hello, Do you want to sort every column (in its own order)? If so I think you should use gsort(D, 'c'). If you just want to sort 1 column you could use gsort(D(:, j), 'c'). Last but not least you can sort one column (as above) and use the vector k (return by gsort) to permute the other columns (so each row is preserved). HTH, Mathieu On 11/17/2010 02:40 PM, Carrico, Paul wrote: > > Dear all, > > Sort algorithms are rather new for me ... > > In the example herebellow and after some tests, I've noticed that the > matrix is sorted from the 1rst column : > > - is it possible to choose the column to sort ? > > - otherwise does it mean it's necessary to permute the desired column > with the first one to sort ? > > Thanks in advance > > Cheers > > Paul > > ######## > mode(0); > clearglobal(); > > D = [ > 1 0 3 11 10 13; > 4 9 6 -1 -1 0; > 17 8 39 9 -451 3; > 10 110 -12 1 -9 45 ; > -13 514 15 78 -99 3] > > D_lr = gsort(D,'lr','i') > -------------------------------------------------------------------------------- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pierre.juillard at gmail.com Wed Nov 17 18:10:14 2010 From: pierre.juillard at gmail.com (Pierre JUILLARD) Date: Wed, 17 Nov 2010 18:10:14 +0100 Subject: [scilab-Users] Around Scilab: Webminar & Internship In-Reply-To: <1289977852.664.191.camel@zlarin> References: <1289977852.664.191.camel@zlarin> Message-ID: Dear Sylvestre, Is the webinar free? (if so, for future webinar, you may say "free webinar" :-)) What will be the addressed topics? (I went to the webpage, but not much details) Thanks in advance for your feedback. Bests, Pierre 2010/11/17 Sylvestre Ledru > Hello, > > Two information around Scilab. > > First, Equalis is performing a webminar on Scilab the December 8th at > 10:00 am Pacific time. > Registration link: https://www1.gotomeeting.com/register/403474176 > > Second, the CNES is looking for an intern for 6 months to work on > analysis of space mechanics task which will be implemented in Celestlab > [1]. > In English: > > http://www.cnes.fr/web/CNES-en/1527-cnes-internships-2011.php?view=item&item=6275 > In French: > http://www.cnes.fr/web/CNES-fr/175-stages-cnes.php?view=item&item=6139 > > Sylvestre > [1] http://atoms.scilab.org/toolboxes/celestlab > > > -- > ------------------------- > Sylvestre Ledru > ------------------------- > The Scilab Consortium > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay Cedex > France > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Wed Nov 17 18:43:27 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 17 Nov 2010 18:43:27 +0100 Subject: [scilab-Users] [Scilab-Users] Sciscipy interface and link to Salome \ YACS for optimization studies In-Reply-To: References: Message-ID: <1290015807.7582.1265.camel@zlarin> Le vendredi 15 octobre 2010 ? 07:49 +0200, Pierre JUILLARD a ?crit : > > Hi to all, > > > Please, may I know the status of the Sciscipy interface > (http://forge.scilab.org/index.php/p/sciscipy/) in Scilab 5.2.2 (the > latest stable release)? > Is it ok for use? Defines "OK" ;) On my free time, I am packaging it for Debian/Ubuntu. It is working pretty well. After that, it is a kind of developments where you always have something to do since Scilab & Python are both big software... > Are there some "improvements" or bug fixes in Scilab 5.3 on this > interface? > I would actually like to know if it is recommended to wait for the > Scilab 5.3 to use this interface? There are a few improvements (especially bug fixes and consolidation) in call_scilab, component on which sciscipy has been developed but I think the 5.2.2 is usable currently. Anyway, don't hesitate to fill bugs on sciscipy: http://forge.scilab.org/index.php/p/sciscipy/issues/ > > Also, I would like to know if someone already tried to call Scilab > using Sciscipy from a Salome \ YACS schema? You should be able to do so. Maybe Yann (c/c of this email) tried since the last time I asked him about that. Sylvestre -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From heinznabielek at me.com Wed Nov 17 21:37:17 2010 From: heinznabielek at me.com (Heinz Nabielek) Date: Wed, 17 Nov 2010 20:37:17 +0000 (UTC) Subject: cannot get any Scilab 5.x version starting on my Intel iMac Message-ID: SciLab and Mac friends: I cannot get any Scilab 5.x version starting on my Intel iMac 10.6.5. A Scilab 5.2 beta version had worked at one time, but not any more. Starting error messages are shown below. Help greatly appreciated. Heinz Process: scilab-bin [1396] Path: /Applications/scilab-5.2.2.app/Contents/MacOS/bin/scilab Identifier: org.scilab.modules.jvm.Scilab Version: ??? (???) Code Type: X86 (Native) Parent Process: sh [1371] Date/Time: 2010-11-14 16:06:49.876 +0100 OS Version: Mac OS X 10.6.5 (10H574) Report Version: 6 From computerprocesscontrol at gmail.com Wed Nov 17 21:46:14 2010 From: computerprocesscontrol at gmail.com (Process Control) Date: Wed, 17 Nov 2010 15:46:14 -0500 Subject: [scilab-Users] scilab documentation In-Reply-To: <1289416137.20382.822.camel@zlarin> References: <1287977486.28424.5354.camel@zlarin> <1289416137.20382.822.camel@zlarin> Message-ID: Hi, sorry, i am new to group lists. and i am using google which puts the reply on top. i agree with you. what about starting a wiki that is similar/identical to the structure of mathwork's online documentation. and let all users contribute. regards On Wed, Nov 10, 2010 at 2:08 PM, Sylvestre Ledru wrote: > Yes, you are right. We had some excellent discussions with Equalis > people and various contributors about this subject. It is why we worked > harder during the last few weeks on this and we will hopefully release a > new web interface for the documentation. > > However, I'd like to point out that we have limited ressources and we > would really appreciate some help in the documentation pages. > Just a quick bug report (or email to me directly if people are shy) > saying "here is a better description for this function", "here is the > LaTeX equation for this function, could you include it into the > documentation" or "here is an example for this function" is very helpful > and usually fast for the contributor to produce. > > Sylvestre > PS: please keep the same kind of reply when you answer (ie, top to down > or down to top but please avoid mixing them). > > Le lundi 08 novembre 2010 ? 05:35 -0500, Process Control a ?crit : > > thanks for replying. scilab is an alternative to matlab. we need to > > show that. i think it is a great idea to go through most of matlab's > > online documentation, page by page, and rework everything using scilab > > code. one of the major reasons why scilab is not popular is lack of > > quality documentation. many people complain about this when they give > > scilab a try. > > > > regards > > > > On Sun, Oct 24, 2010 at 11:31 PM, Sylvestre Ledru > > wrote: > > Hello, > > Le samedi 23 octobre 2010 ? 16:44 -0400, Process Control a > > ?crit : > > > Has anyone proposed to create matlab-like documentation for > > scilab? > > > this can be done by transforming matlab's documentation into > > scilab by > > > following same examples, contents, and writing style. > > > > Scilab and Matlab are different software. Scilab is not a > > Matlab clone > > and you cannot just take Matlab documentation and adapt it for > > Scilab... > > (or I didn't understand your proposal) > > > > Sylvestre > > > > -- > > ------------------------- > > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pierre.juillard at gmail.com Thu Nov 18 07:38:17 2010 From: pierre.juillard at gmail.com (Pierre JUILLARD) Date: Thu, 18 Nov 2010 07:38:17 +0100 Subject: [scilab-Users] [Scilab-Users] Sciscipy interface and link to Salome \ YACS for optimization studies In-Reply-To: <1290015807.7582.1265.camel@zlarin> References: <1290015807.7582.1265.camel@zlarin> Message-ID: Dear Sylvestre, Thank you for your feedbacks. Any additionnal inputs are welcomed! Have a good day Bests, Pierre 2010/11/17 Sylvestre Ledru > Le vendredi 15 octobre 2010 ? 07:49 +0200, Pierre JUILLARD a ?crit : > > > > Hi to all, > > > > > > Please, may I know the status of the Sciscipy interface > > (http://forge.scilab.org/index.php/p/sciscipy/) in Scilab 5.2.2 (the > > latest stable release)? > > Is it ok for use? > Defines "OK" ;) > On my free time, I am packaging it for Debian/Ubuntu. It is working > pretty well. After that, it is a kind of developments where you always > have something to do since Scilab & Python are both big software... > > > Are there some "improvements" or bug fixes in Scilab 5.3 on this > > interface? > > I would actually like to know if it is recommended to wait for the > > Scilab 5.3 to use this interface? > There are a few improvements (especially bug fixes and consolidation) in > call_scilab, component on which sciscipy has been developed but I think > the 5.2.2 is usable currently. > Anyway, don't hesitate to fill bugs on sciscipy: > http://forge.scilab.org/index.php/p/sciscipy/issues/ > > > > > Also, I would like to know if someone already tried to call Scilab > > using Sciscipy from a Salome \ YACS schema? > You should be able to do so. Maybe Yann (c/c of this email) tried since > the last time I asked him about that. > > Sylvestre > > -- > ------------------------- > Sylvestre Ledru > ------------------------- > The Scilab Consortium > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay Cedex > France > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pierre.juillard at gmail.com Thu Nov 18 07:42:12 2010 From: pierre.juillard at gmail.com (Pierre JUILLARD) Date: Thu, 18 Nov 2010 07:42:12 +0100 Subject: [scilab-Users] [Scilab-Users] Sciscipy interface and link to Salome \ YACS for optimization studies In-Reply-To: <1290015807.7582.1265.camel@zlarin> References: <1290015807.7582.1265.camel@zlarin> Message-ID: Well, A 1st basic input regarding installation procedures: Are there any requirements for source compilation? (target OS for Sciscipy installation: CentOS 5.5 (based on Red Hat)) Thanks in advance for your advices. Bests, Pierre 2010/11/17 Sylvestre Ledru > Le vendredi 15 octobre 2010 ? 07:49 +0200, Pierre JUILLARD a ?crit : > > > > Hi to all, > > > > > > Please, may I know the status of the Sciscipy interface > > (http://forge.scilab.org/index.php/p/sciscipy/) in Scilab 5.2.2 (the > > latest stable release)? > > Is it ok for use? > Defines "OK" ;) > On my free time, I am packaging it for Debian/Ubuntu. It is working > pretty well. After that, it is a kind of developments where you always > have something to do since Scilab & Python are both big software... > > > Are there some "improvements" or bug fixes in Scilab 5.3 on this > > interface? > > I would actually like to know if it is recommended to wait for the > > Scilab 5.3 to use this interface? > There are a few improvements (especially bug fixes and consolidation) in > call_scilab, component on which sciscipy has been developed but I think > the 5.2.2 is usable currently. > Anyway, don't hesitate to fill bugs on sciscipy: > http://forge.scilab.org/index.php/p/sciscipy/issues/ > > > > > Also, I would like to know if someone already tried to call Scilab > > using Sciscipy from a Salome \ YACS schema? > You should be able to do so. Maybe Yann (c/c of this email) tried since > the last time I asked him about that. > > Sylvestre > > -- > ------------------------- > Sylvestre Ledru > ------------------------- > The Scilab Consortium > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay Cedex > France > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Thu Nov 18 08:44:57 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 18 Nov 2010 08:44:57 +0100 Subject: [scilab-Users] Around Scilab: Webminar & Internship In-Reply-To: References: <1289977852.664.191.camel@zlarin> Message-ID: <1290066298.7582.1326.camel@zlarin> Salut Pierre, It is indeed free. Topics are the following: 1) Intro of Equalis and the community 2) Overview of Scilab capabilities 3) Overview of Equalis free support capabilities 4) Overview of Equalis premium support capabilities 5) Questions and answers Sylvestre Le mercredi 17 novembre 2010 ? 18:10 +0100, Pierre JUILLARD a ?crit : > Dear Sylvestre, > > Is the webinar free? > (if so, for future webinar, you may say "free webinar" :-)) > > What will be the addressed topics? > > (I went to the webpage, but not much details) > > Thanks in advance for your feedback. > > Bests, > > Pierre > > > > > > 2010/11/17 Sylvestre Ledru > Hello, > > Two information around Scilab. > > First, Equalis is performing a webminar on Scilab the December > 8th at > 10:00 am Pacific time. > Registration link: > https://www1.gotomeeting.com/register/403474176 > > Second, the CNES is looking for an intern for 6 months to work > on > analysis of space mechanics task which will be implemented in > Celestlab > [1]. > In English: > http://www.cnes.fr/web/CNES-en/1527-cnes-internships-2011.php?view=item&item=6275 > In French: > http://www.cnes.fr/web/CNES-fr/175-stages-cnes.php?view=item&item=6139 > > Sylvestre > [1] http://atoms.scilab.org/toolboxes/celestlab > > > -- > ------------------------- > 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 sylvestre.ledru at scilab.org Thu Nov 18 09:15:34 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 18 Nov 2010 09:15:34 +0100 Subject: [scilab-Users] cannot get any Scilab 5.x version starting on my Intel iMac In-Reply-To: References: Message-ID: <1290068134.7582.1490.camel@zlarin> Hello, Le mercredi 17 novembre 2010 ? 20:37 +0000, Heinz Nabielek a ?crit : > SciLab and Mac friends: > I cannot get any Scilab 5.x version starting on my Intel iMac 10.6.5. > A Scilab 5.2 beta version had worked at one time, but not any more. > Starting error messages are shown below. > Help greatly appreciated. Heinz > > Process: scilab-bin [1396] > Path: /Applications/scilab-5.2.2.app/Contents/MacOS/bin/scilab > Identifier: org.scilab.modules.jvm.Scilab > Version: ??? (???) > Code Type: X86 (Native) > Parent Process: sh [1371] > > Date/Time: 2010-11-14 16:06:49.876 +0100 > OS Version: Mac OS X 10.6.5 (10H574) > Report Version: 6 We are aware of the recurring issues under Mac OS X. This is due to an important change from Apple in the way their JVM is shipped. http://developer.apple.com/library/mac/#releasenotes/Java/JavaSnowLeopardUpdate3LeopardUpdate8RN/NewandNoteworthy/NewandNoteworthy.html#//apple_ref/doc/uid/TP40010380-CH4-SW1 I heard that if you go in the Java Preferences menu on your system and you change the order of the JVM, it might fix your problem. Sylvestre -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From sylvestre.ledru at scilab.org Thu Nov 18 09:17:14 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 18 Nov 2010 09:17:14 +0100 Subject: [scilab-Users] scilab documentation In-Reply-To: References: <1287977486.28424.5354.camel@zlarin> <1289416137.20382.822.camel@zlarin> Message-ID: <1290068234.7582.1496.camel@zlarin> Hello, We have a wiki: http://wiki.scilab.org/ However, writing a full documentation in the wiki is an hard task. Especially since we have to manage the synchronisation (modifications can be done in the docbook files in our source tree and on the wiki). Anyway, if you are interested in helping, I invite you to subscribe to dev at lists.scilab.org for further discussions. Sylvestre Le mercredi 17 novembre 2010 ? 15:46 -0500, Process Control a ?crit : > Hi, > > sorry, i am new to group lists. and i am using google which puts the > reply on top. > > i agree with you. what about starting a wiki that is similar/identical > to the structure of mathwork's online documentation. and let all users > contribute. > > regards > > > On Wed, Nov 10, 2010 at 2:08 PM, Sylvestre Ledru > wrote: > Yes, you are right. We had some excellent discussions with > Equalis > people and various contributors about this subject. It is why > we worked > harder during the last few weeks on this and we will hopefully > release a > new web interface for the documentation. > > However, I'd like to point out that we have limited ressources > and we > would really appreciate some help in the documentation pages. > Just a quick bug report (or email to me directly if people are > shy) > saying "here is a better description for this function", "here > is the > LaTeX equation for this function, could you include it into > the > documentation" or "here is an example for this function" is > very helpful > and usually fast for the contributor to produce. > > Sylvestre > PS: please keep the same kind of reply when you answer (ie, > top to down > or down to top but please avoid mixing them). > > Le lundi 08 novembre 2010 ? 05:35 -0500, Process Control a > ?crit : > > > thanks for replying. scilab is an alternative to matlab. we > need to > > show that. i think it is a great idea to go through most of > matlab's > > online documentation, page by page, and rework everything > using scilab > > code. one of the major reasons why scilab is not popular is > lack of > > quality documentation. many people complain about this when > they give > > scilab a try. > > > > regards > > > > On Sun, Oct 24, 2010 at 11:31 PM, Sylvestre Ledru > > wrote: > > Hello, > > Le samedi 23 octobre 2010 ? 16:44 -0400, Process > Control a > > ?crit : > > > Has anyone proposed to create matlab-like > documentation for > > scilab? > > > this can be done by transforming matlab's > documentation into > > scilab by > > > following same examples, contents, and writing > style. > > > > Scilab and Matlab are different software. Scilab is > not a > > Matlab clone > > and you cannot just take Matlab documentation and > adapt it for > > Scilab... > > (or I didn't understand your proposal) > > > > Sylvestre > > > > -- > > ------------------------- > > 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 > > > -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From heinznabielek at me.com Thu Nov 18 10:51:21 2010 From: heinznabielek at me.com (Heinz Nabielek) Date: Thu, 18 Nov 2010 09:51:21 +0000 (UTC) Subject: cannot get any Scilab 5.x version starting on my Intel iMac References: <1290068134.7582.1490.camel@zlarin> Message-ID: Sylvestre Ledru writes: Hello, Le mercredi 17 novembre 2010 ? 20:37 +0000, Heinz Nabielek a ?crit : SciLab and Mac friends: I cannot get any Scilab 5.x version starting on my Intel iMac 10.6.5. A Scilab 5.2 beta version had worked at one time, but not any more. Starting error messages are shown below. Help greatly appreciated. Heinz.................. We are aware of the recurring issues under Mac OS X. ............ I heard that if you go in the Java Preferences menu on your system andyou change the order of the JVM, it might fix your problem. Sylvestre I can see "Java Preferences now shows all discovered JVMs in a single list in the General tab". But, sorry, where do I find and change Java Preferences? Heinz From sylvestre.ledru at scilab.org Thu Nov 18 10:56:25 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 18 Nov 2010 10:56:25 +0100 Subject: [scilab-Users] Re: cannot get any Scilab 5.x version starting on my Intel iMac In-Reply-To: References: <1290068134.7582.1490.camel@zlarin> Message-ID: <1290074185.4100.42.camel@korcula.inria.fr> Le jeudi 18 novembre 2010 ? 09:51 +0000, Heinz Nabielek a ?crit : > Sylvestre Ledru writes: > > > Hello, > > Le mercredi 17 novembre 2010 ? 20:37 +0000, Heinz Nabielek a ?crit : > SciLab and Mac friends: > I cannot get any Scilab 5.x version starting on my Intel iMac 10.6.5. > A Scilab 5.2 beta version had worked at one time, but not any more. > Starting error messages are shown below. > Help greatly appreciated. Heinz.................. > > We are aware of the recurring issues under Mac OS X. ............ > I heard that if you go in the Java Preferences menu on > your system andyou change the order of the JVM, it might fix your problem. > > Sylvestre > > > I can see "Java Preferences now shows all discovered JVMs > in a single list in the General tab". > > But, sorry, where do I find and change Java Preferences? In the finder, search for an application called "Java Preferences" (in French, it is "Pr?f?rences Java"). You will see some implementations of Java. Drag and drop the 1.6 64 bits on the top. It is my personal opinion but I found the way Apple is managing various JVMs pretty bad. We are working on tackling these issues from Scilab but since they are changing things regularly, it is hard to keep track... Sylvestre PS: When you reply, please configure your mailer to add the ">". Thanks From heinznabielek at me.com Thu Nov 18 11:02:29 2010 From: heinznabielek at me.com (Heinz Nabielek) Date: Thu, 18 Nov 2010 10:02:29 +0000 (UTC) Subject: cannot get any Scilab 5.x version starting on my Intel iMac References: <1290068134.7582.1490.camel@zlarin> Message-ID: Sylvestre Ledru writes: .... > We are aware of the recurring issues under Mac OS X. > This is due to an important change from Apple in the way their JVM is > shipped. ..... > I heard that if you go in the Java Preferences menu on your system and > you change the order of the JVM, it might fix your problem. > > Sylvestre > Ah: found it. /Applications/Utilities/Java Preferences From heinznabielek at me.com Thu Nov 18 11:34:04 2010 From: heinznabielek at me.com (Heinz Nabielek) Date: Thu, 18 Nov 2010 10:34:04 +0000 (UTC) Subject: cannot get any Scilab 5.x version starting on my Intel iMac References: <1290068134.7582.1490.camel@zlarin> Message-ID: Sylvestre Ledru writes: > > I cannot get any Scilab 5.x version starting on my Intel iMac 10.6.5. > > ..... Heinz > I heard that if you go in the Java Preferences menu on your system and > you change the order of the JVM, it might fix your problem. GREAT! WORKED!! THANKS!!! I am really happy now. Heinz From stephane.mottelet at utc.fr Thu Nov 18 11:44:46 2010 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Thu, 18 Nov 2010 11:44:46 +0100 Subject: [scilab-Users] Re: cannot get any Scilab 5.x version starting on my Intel iMac In-Reply-To: References: <1290068134.7582.1490.camel@zlarin> Message-ID: <4CE5039E.4080300@utc.fr> Le 18/11/2010 11:34, Heinz Nabielek a ?crit : > Sylvestre Ledru writes: > >>> I cannot get any Scilab 5.x version starting on my Intel iMac 10.6.5. >>> ..... Heinz >>> >> I heard that if you go in the Java Preferences menu on your system and >> you change the order of the JVM, it might fix your problem. >> > > > GREAT! > WORKED!! > THANKS!!! > > I am really happy now. > > Heinz > > > > > Great, now the next step is : "Tcl/Tk working on MacOS" ! S. From sylvestre.ledru at scilab.org Thu Nov 18 11:48:23 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 18 Nov 2010 11:48:23 +0100 Subject: [scilab-Users] Re: cannot get any Scilab 5.x version starting on my Intel iMac In-Reply-To: <4CE5039E.4080300@utc.fr> References: <1290068134.7582.1490.camel@zlarin> <4CE5039E.4080300@utc.fr> Message-ID: <1290077303.4100.51.camel@korcula.inria.fr> Le jeudi 18 novembre 2010 ? 11:44 +0100, St?phane Mottelet a ?crit : > Le 18/11/2010 11:34, Heinz Nabielek a ?crit : > > Sylvestre Ledru writes: > > > >>> I cannot get any Scilab 5.x version starting on my Intel iMac 10.6.5. > >>> ..... Heinz > >>> > >> I heard that if you go in the Java Preferences menu on your system and > >> you change the order of the JVM, it might fix your problem. > >> > > > > > > GREAT! > > WORKED!! > > THANKS!!! > > > > I am really happy now. > > > > Heinz > > > > > > > > > > > Great, now the next step is : "Tcl/Tk working on MacOS" ! Provide a patch :p I wish we could but unfortunately, I don't see that coming (We could plug just Tcl but it is going to be hard for Tk). Sorry, Sylvestre From jean.duhamet at cea.fr Thu Nov 18 14:49:59 2010 From: jean.duhamet at cea.fr (DUHAMET Jean) Date: Thu, 18 Nov 2010 14:49:59 +0100 Subject: Problem using fft and fft2 Message-ID: <70933B58740D5049A7AB96254A66683301F96373@YACA.intra.cea.fr> Hi, I tried to perform two dimensions Fourier transform, using fft or fft2. For example: A=rand(5,5); fft(A) Scilab returns the following message: Warning!!! Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION) with "fftw" function. Save your data and restart Scilab. I get the same error using fft2. Scilab version 5.3.0-beta-4. What's wrong? Thank you for your help. Jean Duhamet -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Thu Nov 18 14:52:50 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 18 Nov 2010 14:52:50 +0100 Subject: [scilab-Users] Problem using fft and fft2 In-Reply-To: <70933B58740D5049A7AB96254A66683301F96373@YACA.intra.cea.fr> References: <70933B58740D5049A7AB96254A66683301F96373@YACA.intra.cea.fr> Message-ID: <1290088370.4100.67.camel@korcula.inria.fr> Le jeudi 18 novembre 2010 ? 14:49 +0100, DUHAMET Jean a ?crit : > Hi, > > I tried to perform two dimensions Fourier transform, using fft or > fft2. > > For example: > > A=rand(5,5); > > fft(A) > > > Scilab returns the following message: > > Warning!!! > > Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION) > > with "fftw" function. > > Save your data and restart Scilab. > > I get the same error using fft2. > > Scilab version 5.3.0-beta-4. > > What?s wrong? Looks like: http://bugzilla.scilab.org/show_bug.cgi?id=7475 I haven't been able to reproduce the issue reported in the bug #7475 or yours (Linux 32 bits). Could you add in the bug tracker the result of [a,b]= getdebuginfo()? Thanks, Sylvestre From tybeede at gmail.com Thu Nov 18 22:16:10 2010 From: tybeede at gmail.com (Tyrel Beede) Date: Thu, 18 Nov 2010 13:16:10 -0800 Subject: JOGL & SciLab Problems Message-ID: Hey Guys, I just spent the last hour googling around and reading anything I could find to help diagnose my problem with SciLab. I don't think it is a bug. The problem seems to be related to JOGL. I've installed a fresh copy of SciLab 5.2.2 x64 to match my x64 Windows 7 install. Everything works great with SciLab until I try to issue a "plot(x,y)" command at which point SciLab crashes. Even something simple like this causes problems x = 0 : 0.1 : 10 y = sin(x) plot(x,y); I've tried all the different usecanvas(%T) tricks I can find. Then I noticed in some of the bug reports the developers were asking people to check the JOGL demo programs and verify that JOGL is working. I went to the JOGL site and tried the gears demo and sure enough the gears demo crashes out. It seems like JOGL isn't installed or it can't be found. In short, 1. Are the JOGL binaries installed with SciLab? 2. Is there a path issue that might be causing them to be hidden? Thanks, Ty -------------- next part -------------- An HTML attachment was scrubbed... URL: From laurent.berger at univ-lemans.fr Fri Nov 19 09:39:27 2010 From: laurent.berger at univ-lemans.fr (Laurent Berger) Date: Fri, 19 Nov 2010 09:39:27 +0100 Subject: Squarewave Message-ID: <4CE637BF.6060102@univ-lemans.fr> Hi, I do not understand squarewave function : in function help we find: squarewave(t) g?n?re le vecteur des valeurs d'un signal carr? de p?riode 2*%pi ? chaque instant donn? dans le vecteur t. squarewave(t,percent) g?n?re un signal carr? o? percent est le pourcentage de la p?riode pendant lequel le signal est positif. Exemples t=(0:0.1:5*%pi)'; plot2d1('onn',t,[2*sin(t),1.5*squarewave(t),squarewave(t,10)]) Now If I we write t=-(0:0.1:5*%pi)'; plot2d1('onn',t,[2*sin(t),1.5*squarewave(t),squarewave(t,10)]) squarewave is not periodic. What's wrong? Scilab 5.3 beta 4 windows xp 32bits From Samuel.Gougeon at univ-lemans.fr Fri Nov 19 14:02:09 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Fri, 19 Nov 2010 14:02:09 +0100 Subject: [scilab-Users] Squarewave In-Reply-To: <4CE637BF.6060102@univ-lemans.fr> References: <4CE637BF.6060102@univ-lemans.fr> Message-ID: <4CE67551.6080100@univ-lemans.fr> Hi Laurent, ----- Message d'origine ----- De : Laurent Berger Date : 19/11/2010 09:39: > squarewave is not periodic. > What's wrong? It's a bug. In the squarewave definition (-->edit squarewave ) s = 2*bool2s(modulo(t,2*%pi) < 2*%pi*%/100)-1 must be replaced with s = 2*bool2s(pmodulo(t,2*%pi) < 2*%pi*%/100)-1 May you report the bug in http://bugzilla.scilab.org/enter_bug.cgi?product=Scilab%20%20software Regards Samuel From mathieu.dubois at limsi.fr Fri Nov 19 17:29:41 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Fri, 19 Nov 2010 17:29:41 +0100 Subject: [scilab-Users] JOGL & SciLab Problems In-Reply-To: References: Message-ID: <4CE6A5F5.3000107@limsi.fr> Hello Tyrel, I don't use windows but precompiled linux version comes with JOGL so I think that Windows' version too. Usually Scilab crashes are caused by out-of-date drivers. See http://wiki.scilab.org/Graphical_issues_with_Scilab_5.0 for more details. HTH, Mathieu On 11/18/2010 10:16 PM, Tyrel Beede wrote: > Hey Guys, > > I just spent the last hour googling around and reading anything I > could find to help diagnose my problem with SciLab. I don't think it > is a bug. The problem seems to be related to JOGL. I've installed a > fresh copy of SciLab 5.2.2 x64 to match my x64 Windows 7 install. > Everything works great with SciLab until I try to issue a "plot(x,y)" > command at which point SciLab crashes. Even something simple like > this causes problems > > x = 0 : 0.1 : 10 > y = sin(x) > plot(x,y); > > I've tried all the different usecanvas(%T) tricks I can find. Then I > noticed in some of the bug reports the developers were asking people > to check the JOGL demo programs and verify that JOGL is working. I > went to the JOGL site and tried the gears demo and sure enough the > gears demo crashes out. It seems like JOGL isn't installed or it > can't be found. > > In short, > > 1. Are the JOGL binaries installed with SciLab? > > 2. Is there a path issue that might be causing them to be hidden? > > Thanks, > Ty From tybeede at gmail.com Fri Nov 19 20:06:03 2010 From: tybeede at gmail.com (Tyrel Beede) Date: Fri, 19 Nov 2010 11:06:03 -0800 Subject: [scilab-Users] JOGL & SciLab Problems In-Reply-To: <4CE6A5F5.3000107@limsi.fr> References: <4CE6A5F5.3000107@limsi.fr> Message-ID: Thanks for the reply, I'm pretty confused at this point. I've got the same version of SciLab 5.2.2 64 bit working just fine on my home workstation. My home workstation has the same exact graphics card as my work PC. Same windows 7 64 bit. Its even almost the same hardware otherwise. Both have the full windows updates at the latest version. Works great at home, crashes with any type of plot command at work. Ty On Fri, Nov 19, 2010 at 8:29 AM, Mathieu Dubois wrote: > Hello Tyrel, > > I don't use windows but precompiled linux version comes with JOGL so I > think that Windows' version too. > > Usually Scilab crashes are caused by out-of-date drivers. See > http://wiki.scilab.org/Graphical_issues_with_Scilab_5.0 for more details. > > HTH, > Mathieu > > > On 11/18/2010 10:16 PM, Tyrel Beede wrote: > >> Hey Guys, >> >> I just spent the last hour googling around and reading anything I could >> find to help diagnose my problem with SciLab. I don't think it is a bug. >> The problem seems to be related to JOGL. I've installed a fresh copy of >> SciLab 5.2.2 x64 to match my x64 Windows 7 install. Everything works great >> with SciLab until I try to issue a "plot(x,y)" command at which point SciLab >> crashes. Even something simple like this causes problems >> >> x = 0 : 0.1 : 10 >> y = sin(x) >> plot(x,y); >> >> I've tried all the different usecanvas(%T) tricks I can find. Then I >> noticed in some of the bug reports the developers were asking people to >> check the JOGL demo programs and verify that JOGL is working. I went to the >> JOGL site and tried the gears demo and sure enough the gears demo crashes >> out. It seems like JOGL isn't installed or it can't be found. >> >> In short, >> >> 1. Are the JOGL binaries installed with SciLab? >> >> 2. Is there a path issue that might be causing them to be hidden? >> >> Thanks, >> Ty >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.dubois at limsi.fr Fri Nov 19 20:31:31 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Fri, 19 Nov 2010 20:31:31 +0100 Subject: [scilab-Users] JOGL & SciLab Problems In-Reply-To: References: <4CE6A5F5.3000107@limsi.fr> Message-ID: <4CE6D093.7020803@limsi.fr> I'm not sure I can help you more... Maybe you can have a look at the log file (when scilab crashesit generates (in the working directory) a file called hs_xxxx.log. Did you try the scilab 5.3 b?ta? I use it at work and it is pretty stable. Mathieu On 11/19/2010 08:06 PM, Tyrel Beede wrote: > Thanks for the reply, > > I'm pretty confused at this point. I've got the same version of > SciLab 5.2.2 64 bit working just fine on my home workstation. My home > workstation has the same exact graphics card as my work PC. Same > windows 7 64 bit. Its even almost the same hardware otherwise. Both > have the full windows updates at the latest version. Works great at > home, crashes with any type of plot command at work. > > Ty > > On Fri, Nov 19, 2010 at 8:29 AM, Mathieu Dubois > > wrote: > > Hello Tyrel, > > I don't use windows but precompiled linux version comes with JOGL > so I think that Windows' version too. > > Usually Scilab crashes are caused by out-of-date drivers. See > http://wiki.scilab.org/Graphical_issues_with_Scilab_5.0 for more > details. > > HTH, > Mathieu > > > On 11/18/2010 10:16 PM, Tyrel Beede wrote: > > Hey Guys, > > I just spent the last hour googling around and reading > anything I could find to help diagnose my problem with SciLab. > I don't think it is a bug. The problem seems to be related > to JOGL. I've installed a fresh copy of SciLab 5.2.2 x64 to > match my x64 Windows 7 install. Everything works great with > SciLab until I try to issue a "plot(x,y)" command at which > point SciLab crashes. Even something simple like this causes > problems > > x = 0 : 0.1 : 10 > y = sin(x) > plot(x,y); > > I've tried all the different usecanvas(%T) tricks I can find. > Then I noticed in some of the bug reports the developers were > asking people to check the JOGL demo programs and verify that > JOGL is working. I went to the JOGL site and tried the gears > demo and sure enough the gears demo crashes out. It seems > like JOGL isn't installed or it can't be found. > > In short, > > 1. Are the JOGL binaries installed with SciLab? > > 2. Is there a path issue that might be causing them to be hidden? > > Thanks, > Ty > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tybeede at gmail.com Fri Nov 19 22:19:45 2010 From: tybeede at gmail.com (Tyrel Beede) Date: Fri, 19 Nov 2010 13:19:45 -0800 Subject: [scilab-Users] JOGL & SciLab Problems In-Reply-To: <4CE6D093.7020803@limsi.fr> References: <4CE6A5F5.3000107@limsi.fr> <4CE6D093.7020803@limsi.fr> Message-ID: No problem... I'm pretty sure it is something unique to my computer. I installed it on my co-workers computer just a second ago and he has the same hardware and software except for a different x58 Mobo and nVidia Graphics card. Works perfect for him. I uninstalled and reinstalled the graphics card drivers on my PC and it still isn't working. I tried 5.3 beta, 5.1.1, 5.0.3. Nothing works. Scilab 4.1.2 works great but it uses the older graphics engine to my knowledge. My computer and the co-workers computer both have the latest version of Java installed v6 update 22. I'm kinda running out of ideas. I guess I'll be using 4.1.2 for the time being. On Fri, Nov 19, 2010 at 11:31 AM, Mathieu Dubois wrote: > I'm not sure I can help you more... Maybe you can have a look at the log > file (when scilab crashesit generates (in the working directory) a file > called hs_xxxx.log. > > Did you try the scilab 5.3 b?ta? I use it at work and it is pretty stable. > > Mathieu > > On 11/19/2010 08:06 PM, Tyrel Beede wrote: > > Thanks for the reply, > > I'm pretty confused at this point. I've got the same version of SciLab > 5.2.2 64 bit working just fine on my home workstation. My home workstation > has the same exact graphics card as my work PC. Same windows 7 64 bit. Its > even almost the same hardware otherwise. Both have the full windows updates > at the latest version. Works great at home, crashes with any type of plot > command at work. > > Ty > > On Fri, Nov 19, 2010 at 8:29 AM, Mathieu Dubois wrote: > >> Hello Tyrel, >> >> I don't use windows but precompiled linux version comes with JOGL so I >> think that Windows' version too. >> >> Usually Scilab crashes are caused by out-of-date drivers. See >> http://wiki.scilab.org/Graphical_issues_with_Scilab_5.0 for more details. >> >> HTH, >> Mathieu >> >> >> On 11/18/2010 10:16 PM, Tyrel Beede wrote: >> >>> Hey Guys, >>> >>> I just spent the last hour googling around and reading anything I could >>> find to help diagnose my problem with SciLab. I don't think it is a bug. >>> The problem seems to be related to JOGL. I've installed a fresh copy of >>> SciLab 5.2.2 x64 to match my x64 Windows 7 install. Everything works great >>> with SciLab until I try to issue a "plot(x,y)" command at which point SciLab >>> crashes. Even something simple like this causes problems >>> >>> x = 0 : 0.1 : 10 >>> y = sin(x) >>> plot(x,y); >>> >>> I've tried all the different usecanvas(%T) tricks I can find. Then I >>> noticed in some of the bug reports the developers were asking people to >>> check the JOGL demo programs and verify that JOGL is working. I went to the >>> JOGL site and tried the gears demo and sure enough the gears demo crashes >>> out. It seems like JOGL isn't installed or it can't be found. >>> >>> In short, >>> >>> 1. Are the JOGL binaries installed with SciLab? >>> >>> 2. Is there a path issue that might be causing them to be hidden? >>> >>> Thanks, >>> Ty >>> >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Fri Nov 19 23:24:33 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 19 Nov 2010 23:24:33 +0100 Subject: [scilab-Users] JOGL & SciLab Problems In-Reply-To: References: <4CE6A5F5.3000107@limsi.fr> <4CE6D093.7020803@limsi.fr> Message-ID: <1290205473.18609.246.camel@zlarin> I don't know if it is the case for you here but there is a critical bug in the latest version of the NVidia driver under Windows. Allan reported a bug to Nvidia. Sylvestre Le vendredi 19 novembre 2010 ? 13:19 -0800, Tyrel Beede a ?crit : > No problem... I'm pretty sure it is something unique to my computer. > I installed it on my co-workers computer just a second ago and he has > the same hardware and software except for a different x58 Mobo and > nVidia Graphics card. Works perfect for him. I uninstalled and > reinstalled the graphics card drivers on my PC and it still isn't > working. I tried 5.3 beta, 5.1.1, 5.0.3. Nothing works. Scilab > 4.1.2 works great but it uses the older graphics engine to my > knowledge. My computer and the co-workers computer both have the > latest version of Java installed v6 update 22. I'm kinda running out > of ideas. I guess I'll be using 4.1.2 for the time being. > > On Fri, Nov 19, 2010 at 11:31 AM, Mathieu Dubois > wrote: > I'm not sure I can help you more... Maybe you can have a look > at the log file (when scilab crashesit generates (in the > working directory) a file called hs_xxxx.log. > > Did you try the scilab 5.3 b?ta? I use it at work and it is > pretty stable. > > Mathieu > > > On 11/19/2010 08:06 PM, Tyrel Beede wrote: > > Thanks for the reply, > > > > I'm pretty confused at this point. I've got the same > > version of SciLab 5.2.2 64 bit working just fine on my home > > workstation. My home workstation has the same exact > > graphics card as my work PC. Same windows 7 64 bit. Its > > even almost the same hardware otherwise. Both have the full > > windows updates at the latest version. Works great at home, > > crashes with any type of plot command at work. > > > > Ty > > > > On Fri, Nov 19, 2010 at 8:29 AM, Mathieu Dubois > > wrote: > > Hello Tyrel, > > > > I don't use windows but precompiled linux version > > comes with JOGL so I think that Windows' version > > too. > > > > Usually Scilab crashes are caused by out-of-date > > drivers. See > > http://wiki.scilab.org/Graphical_issues_with_Scilab_5.0 for more details. > > > > HTH, > > Mathieu > > > > > > On 11/18/2010 10:16 PM, Tyrel Beede wrote: > > Hey Guys, > > > > I just spent the last hour googling around > > and reading anything I could find to help > > diagnose my problem with SciLab. I don't > > think it is a bug. The problem seems to be > > related to JOGL. I've installed a fresh > > copy of SciLab 5.2.2 x64 to match my x64 > > Windows 7 install. Everything works great > > with SciLab until I try to issue a > > "plot(x,y)" command at which point SciLab > > crashes. Even something simple like this > > causes problems > > > > x = 0 : 0.1 : 10 > > y = sin(x) > > plot(x,y); > > > > I've tried all the different usecanvas(%T) > > tricks I can find. Then I noticed in some > > of the bug reports the developers were > > asking people to check the JOGL demo > > programs and verify that JOGL is working. I > > went to the JOGL site and tried the gears > > demo and sure enough the gears demo crashes > > out. It seems like JOGL isn't installed or > > it can't be found. > > > > In short, > > > > 1. Are the JOGL binaries installed with > > SciLab? > > > > 2. Is there a path issue that might be > > causing them to be hidden? > > > > Thanks, > > Ty > > > > > > > > > -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From tybeede at gmail.com Fri Nov 19 23:26:46 2010 From: tybeede at gmail.com (Tyrel Beede) Date: Fri, 19 Nov 2010 14:26:46 -0800 Subject: [scilab-Users] JOGL & SciLab Problems In-Reply-To: <1290205473.18609.246.camel@zlarin> References: <4CE6A5F5.3000107@limsi.fr> <4CE6D093.7020803@limsi.fr> <1290205473.18609.246.camel@zlarin> Message-ID: WOO HOO!!!? SUCCESS AT LAST!!! I can confirm the bug in the latest nVidia graphics drivers for the consumer series graphics cards.? My GeForce GT 9500 would crash with a plot command using these two drivers 260.99 October 25, 2010 260.89 October 18, 2010 The fix was to download and install this driver. You have to find the "advanced driver search" feature on the website to get access to the archived drivers. 258.96 July 19, 2010 On another note I can say that the latest version of the workstation graphics card drivers is working fine with a Quadro FX570 card on my co-workers computer. The workstation cards use a different branch of drivers. Thanks, Ty On Fri, Nov 19, 2010 at 2:24 PM, Sylvestre Ledru wrote: > > I don't know if it is the case for you here but there is a critical bug > in the latest version of the NVidia driver under Windows. > Allan reported a bug to Nvidia. > > Sylvestre > > Le vendredi 19 novembre 2010 ? 13:19 -0800, Tyrel Beede a ?crit : > > No problem... I'm pretty sure it is something unique to my computer. > > I installed it on my co-workers computer just a second ago and he has > > the same hardware and software except for a different x58 Mobo and > > nVidia Graphics card. ?Works perfect for him. ?I uninstalled and > > reinstalled the graphics card drivers on my PC and it still isn't > > working. ?I tried 5.3 beta, 5.1.1, 5.0.3. ?Nothing works. ?Scilab > > 4.1.2 works great but it uses the older graphics engine to my > > knowledge. ?My computer and the co-workers computer both have the > > latest version of Java installed v6 update 22. ?I'm kinda running out > > of ideas. ?I guess I'll be using 4.1.2 for the time being. > > > > On Fri, Nov 19, 2010 at 11:31 AM, Mathieu Dubois > > wrote: > > ? ? ? ? I'm not sure I can help you more... Maybe you can have a look > > ? ? ? ? at the log file (when scilab crashesit generates (in the > > ? ? ? ? working directory) a file called hs_xxxx.log. > > > > ? ? ? ? Did you try the scilab 5.3 b?ta? I use it at work and it is > > ? ? ? ? pretty stable. > > > > ? ? ? ? Mathieu > > > > > > ? ? ? ? On 11/19/2010 08:06 PM, Tyrel Beede wrote: > > ? ? ? ? > Thanks for the reply, > > ? ? ? ? > > > ? ? ? ? > ? I'm pretty confused at this point. ?I've got the same > > ? ? ? ? > version of SciLab 5.2.2 64 bit working just fine on my home > > ? ? ? ? > workstation. ?My home workstation has the same exact > > ? ? ? ? > graphics card as my work PC. ?Same windows 7 64 bit. ?Its > > ? ? ? ? > even almost the same hardware otherwise. ?Both have the full > > ? ? ? ? > windows updates at the latest version. ?Works great at home, > > ? ? ? ? > crashes with any type of plot command at work. > > ? ? ? ? > > > ? ? ? ? > Ty > > ? ? ? ? > > > ? ? ? ? > On Fri, Nov 19, 2010 at 8:29 AM, Mathieu Dubois > > ? ? ? ? > wrote: > > ? ? ? ? > ? ? ? ? Hello Tyrel, > > ? ? ? ? > > > ? ? ? ? > ? ? ? ? I don't use windows but precompiled linux version > > ? ? ? ? > ? ? ? ? comes with JOGL so I think that Windows' version > > ? ? ? ? > ? ? ? ? too. > > ? ? ? ? > > > ? ? ? ? > ? ? ? ? Usually Scilab crashes are caused by out-of-date > > ? ? ? ? > ? ? ? ? drivers. See > > ? ? ? ? > ? ? ? ? http://wiki.scilab.org/Graphical_issues_with_Scilab_5.0 for more details. > > ? ? ? ? > > > ? ? ? ? > ? ? ? ? HTH, > > ? ? ? ? > ? ? ? ? Mathieu > > ? ? ? ? > > > ? ? ? ? > > > ? ? ? ? > ? ? ? ? On 11/18/2010 10:16 PM, Tyrel Beede wrote: > > ? ? ? ? > ? ? ? ? ? ? ? ? Hey Guys, > > ? ? ? ? > > > ? ? ? ? > ? ? ? ? ? ? ? ? ?I just spent the last hour googling around > > ? ? ? ? > ? ? ? ? ? ? ? ? and reading anything I could find to help > > ? ? ? ? > ? ? ? ? ? ? ? ? diagnose my problem with SciLab. ?I don't > > ? ? ? ? > ? ? ? ? ? ? ? ? think it is a bug. ?The problem seems to be > > ? ? ? ? > ? ? ? ? ? ? ? ? related to JOGL. ?I've installed a fresh > > ? ? ? ? > ? ? ? ? ? ? ? ? copy of SciLab 5.2.2 x64 to match my x64 > > ? ? ? ? > ? ? ? ? ? ? ? ? Windows 7 install. ?Everything works great > > ? ? ? ? > ? ? ? ? ? ? ? ? with SciLab until I try to issue a > > ? ? ? ? > ? ? ? ? ? ? ? ? "plot(x,y)" command at which point SciLab > > ? ? ? ? > ? ? ? ? ? ? ? ? crashes. ?Even something simple like this > > ? ? ? ? > ? ? ? ? ? ? ? ? causes problems > > ? ? ? ? > > > ? ? ? ? > ? ? ? ? ? ? ? ? x = 0 : 0.1 : 10 > > ? ? ? ? > ? ? ? ? ? ? ? ? y = sin(x) > > ? ? ? ? > ? ? ? ? ? ? ? ? plot(x,y); > > ? ? ? ? > > > ? ? ? ? > ? ? ? ? ? ? ? ? I've tried all the different usecanvas(%T) > > ? ? ? ? > ? ? ? ? ? ? ? ? tricks I can find. ?Then I noticed in some > > ? ? ? ? > ? ? ? ? ? ? ? ? of the bug reports the developers were > > ? ? ? ? > ? ? ? ? ? ? ? ? asking people to check the JOGL demo > > ? ? ? ? > ? ? ? ? ? ? ? ? programs and verify that JOGL is working. ?I > > ? ? ? ? > ? ? ? ? ? ? ? ? went to the JOGL site and tried the gears > > ? ? ? ? > ? ? ? ? ? ? ? ? demo and sure enough the gears demo crashes > > ? ? ? ? > ? ? ? ? ? ? ? ? out. ?It seems like JOGL isn't installed or > > ? ? ? ? > ? ? ? ? ? ? ? ? it can't be found. > > ? ? ? ? > > > ? ? ? ? > ? ? ? ? ? ? ? ? In short, > > ? ? ? ? > > > ? ? ? ? > ? ? ? ? ? ? ? ? 1. ?Are the JOGL binaries installed with > > ? ? ? ? > ? ? ? ? ? ? ? ? SciLab? > > ? ? ? ? > > > ? ? ? ? > ? ? ? ? ? ? ? ? 2. ?Is there a path issue that might be > > ? ? ? ? > ? ? ? ? ? ? ? ? causing them to be hidden? > > ? ? ? ? > > > ? ? ? ? > ? ? ? ? ? ? ? ? Thanks, > > ? ? ? ? > ? ? ? ? ? ? ? ? Ty > > ? ? ? ? > > > ? ? ? ? > > > ? ? ? ? > > > > > > > > > -- > ------------------------- > Sylvestre Ledru > ------------------------- > The Scilab Consortium > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay Cedex > France > From paul.carrico at free.fr Sat Nov 20 09:57:54 2010 From: paul.carrico at free.fr (Paul CARRICO) Date: Sat, 20 Nov 2010 09:57:54 +0100 Subject: Excel files => some information's here Message-ID: <000001cb8891$05ae8530$110b8f90$@carrico@free.fr> All A few times ago some people were looking in reading / writing data from/to Excel files .. Some information's seem to be found in the following address especially for the xls format : http://www.codeproject.com/KB/office/ExcelFormat.aspx Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From ymwong2 at gmail.com Sun Nov 21 04:07:19 2010 From: ymwong2 at gmail.com (yiu-man wong) Date: Sat, 20 Nov 2010 22:07:19 -0500 Subject: any user manual to use financial toolbox by Francesco Menoncin Message-ID: <88288472-E9F6-4E3A-9642-08A540E0F551@gmail.com> Need direction (user manual) in learning how to use the financial module by F. Menoncin. Thanks. ymw From shalinishri at iitb.ac.in Sun Nov 21 03:48:26 2010 From: shalinishri at iitb.ac.in (Shalini Shrivastava) Date: Sun, 21 Nov 2010 02:48:26 +0000 (UTC) Subject: Xcos C compiler References: <3255.25309094719$1271917445@news.gmane.org> Message-ID: Allan CORNET writes: > Hi you should install win lcc Compiler the link for same is given below http://www.q-software-solutions.de/downloaders/downloaders/show_download_locations > best wishes Shalini Shrivastava From shalinishri at iitb.ac.in Sun Nov 21 04:43:17 2010 From: shalinishri at iitb.ac.in (Shalini Shrivastava) Date: Sun, 21 Nov 2010 03:43:17 +0000 (UTC) Subject: Simulation of Electrical Systems with Xcos References: <000401cb84b2$d85f4b00$891de100$@reutlingen-university.de> Message-ID: > > hii install lcc win 32 From paul.carrico at free.fr Sun Nov 21 11:08:03 2010 From: paul.carrico at free.fr (Paul CARRICO) Date: Sun, 21 Nov 2010 11:08:03 +0100 Subject: General question regarding debugging item Message-ID: <000001cb8963$fce7fa20$f6b7ee60$@carrico@free.fr> Dear All, whatever is the programming language I've no experience in debugging scripts/codes ; naturally I ever heard about debugging tools but I've had no reason to use them until now ... . better late than never I would like to fill this lack and I had a (quick) look in debug function in Scilab => nevertheless the later function is intended for Scilab expert/code development only. Where can I find some information's in such item (typically some tutorials) ? Nota : - for professional reasons I'm working under Windows OS . - I'm developing now more and more routines under Scilab for my needs / many thanks for both Scilab teams and the community ! J J J J J Cheers Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From fvogelnew1 at free.fr Sun Nov 21 17:01:49 2010 From: fvogelnew1 at free.fr (=?windows-1252?Q?Fran=E7ois_Vogel?=) Date: Sun, 21 Nov 2010 17:01:49 +0100 Subject: [scilab-Users] General question regarding debugging item In-Reply-To: <000001cb8963$fce7fa20$f6b7ee60$@carrico@free.fr> References: <000001cb8963$fce7fa20$f6b7ee60$@carrico@free.fr> Message-ID: <4CE9426D.1070801@free.fr> Hi Paul, You must have seen the debug() function in the help pages, which is intended for debugging the Scilab parser itself, not for debugging user's scripts. With Scilab 5 you should start by reading help pause or help setbpt About a fully integrated visual debugger, see http://bugzilla.scilab.org/show_bug.cgi?id=2789 and the links therein. Currently the only environment fully featuring the debugger is Scicoslab: http://www.scicoslab.org/ It is integrated in Scipad: http://sourceforge.net/p/scipad/home/ HTH Francois Paul CARRICO said on 21/11/2010 11:08: > Dear All, > > whatever is the programming language I've no experience in debugging > scripts/codes ; naturally I ever heard about debugging tools but I?ve > had no reason to use them until now ... > > ? better late than never I would like to fill this lack and I had a > (quick) look in debug function in Scilab => nevertheless the later > function is intended for Scilab expert/code development only. > > Where can I find some information?s in such item (typically some > tutorials) ? > > Nota : > > -for professional reasons I?m working under Windows OS ? > > -I?m developing now more and more routines under Scilab for my needs / > many thanks for both Scilab teams and the community ! JJJJJ > > Cheers > > Paul > From xmagyarz at gmail.com Sun Nov 21 21:31:06 2010 From: xmagyarz at gmail.com (=?windows-1250?Q?Zolt=E1n_Magyar?=) Date: Sun, 21 Nov 2010 21:31:06 +0100 Subject: Problem with the compilation and linking of c-code Message-ID: <4CE9818A.107@gmail.com> Greetings! I would like to create an xcos block from a c-code, but I have problems with the compilation and the linking of the code. (content of "myfunction.c") #include "scicos_block4.h" #define myIN ((GetRealInPortPtrs(blk, (0) + 1))[(0)]) #define myOUT ((GetRealOutPortPtrs(blk, (0) + 1))[(0)]) typedef struct { double variable; } my_struct; void myfunction(scicos_block *blk, int flag) { my_struct *ptr; switch (flag) { case 4: //Initialization: if ((*(blk->work) = (my_struct*)scicos_malloc(sizeof(my_struct))) == NULL) { set_block_error(-16); return; } ptr = *(blk->work); ptr->variable = 0; break; case 1: //OutputUpdate: ptr = *(blk->work); myOUT = myIN + ptr->variable; ptr->variable++; break; case 5: //Ending: scicos_free(*(blk->work)); break; } } In Scilab I type ilib_for_link(): -->ilib_for_link('myfunction','myfunction.o',[],'c','Makelib','loader.sce','','',''); Generate a loader file Generate a Makefile ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR ilib_gen_Make: Copy myfunction.c~ to TMPDIR ilib_gen_Make: Copy myfunction.c to TMPDIR ilib_gen_Make: configure : Generate Makefile. ilib_gen_Make: Modification of the Makefile in TMPDIR. Running the Makefile Generate a cleaner file --> then when I try to execute the loader I get the next error: -->exec loader.sce -->// This file is released into the public domain -->// Generated by builder.sce : Please, do not edit this file -->// -->myfunction_path = get_absolute_file_path('loader.sce'); -->// ulink previous function with same name -->[bOK,ilib] = c_link('myfunction');if (bOK) then ulink(ilib),end -->link(myfunction_path+'libmyfunction'+getdynlibext(),['myfunction'],'c'); Link failed for dynamic library '/home/mzolee/Plocha/xcos_projects/try2/libmyfunction.so'. An error occurred: /home/mzolee/Plocha/xcos_projects/try2/libmyfunction.so: undefined symbol: set_block_error link(myfunction_path+'libmyfunction'+getdynlibext(),['myfunction'],'c'); !--error 236 link: The shared archive was not loaded: (null) at line 9 of exec file called by : exec loader.sce I did the same thing in Scilab-5.1.1 and it worked, but in Scilab-5.2.1 or in 5.2.2 i get the error as shown above. Thanks for your help. Zolt?n -------------- next part -------------- An HTML attachment was scrubbed... URL: From mruggeri at frh.utn.edu.ar Mon Nov 22 04:20:33 2010 From: mruggeri at frh.utn.edu.ar (Marcos C. Ruggeri) Date: Mon, 22 Nov 2010 00:20:33 -0300 Subject: Error command loadmatfile Message-ID: <001601cb89f4$3d6f7010$b84e5030$@utn.edu.ar> Hi all, I am receiving an error message in the Scilab Console when using the command loadmatfile to import a .mat file (e.g. test_fuselage_complete.mat). However, the command seems to work correctly if I load other .mat files, such as data_high_volt_tower.mat. I have tried updating Scilab, and the same error occurs in both versions: scilab-5.2.2 and scilab-5.3.0-beta-4. Enclosed is a screenshot of the console and the .mat files. Thanks in advance. Regards, Marcos Cesar Ruggeri Grupo de Simulaci?n y Mec?nica Computacional Universidad Tecnol?gica Nacional Facultad Regional Haedo mruggeri at frh.utn.edu.ar www.frh.utn.edu.ar -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: error_loadmatfile.txt URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: data_high_volt_tower.mat Type: application/octet-stream Size: 1185 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test_fuselage_complete.mat Type: application/octet-stream Size: 73412 bytes Desc: not available URL: From Gernot.Schullerus at Reutlingen-University.DE Mon Nov 22 07:43:55 2010 From: Gernot.Schullerus at Reutlingen-University.DE (Gernot Schullerus) Date: Mon, 22 Nov 2010 07:43:55 +0100 Subject: AW: [scilab-Users] Re: Xcos C compiler In-Reply-To: References: <3255.25309094719$1271917445@news.gmane.org> Message-ID: <000001cb8a10$a1fd1a20$e5f74e60$@reutlingen-university.de> Dear Shalini, thank you for your answer. I installed lcc and added the path ( on a Windows 7 system) however, the error message is still the same. Gernot -----Urspr?ngliche Nachricht----- Von: Shalini Shrivastava [mailto:shalinishri at iitb.ac.in] Gesendet: Sonntag, 21. November 2010 03:48 An: users at lists.scilab.org Betreff: [scilab-Users] Re: Xcos C compiler Allan CORNET writes: > Hi you should install win lcc Compiler the link for same is given below http://www.q-software-solutions.de/downloaders/downloaders/show_download_loc ations > best wishes Shalini Shrivastava From allan.cornet at scilab.org Mon Nov 22 08:03:12 2010 From: allan.cornet at scilab.org (Allan CORNET) Date: Mon, 22 Nov 2010 08:03:12 +0100 Subject: [scilab-Users] Re: Xcos C compiler In-Reply-To: <000001cb8a10$a1fd1a20$e5f74e60$@reutlingen-university.de> References: <3255.25309094719$1271917445@news.gmane.org> <000001cb8a10$a1fd1a20$e5f74e60$@reutlingen-university.de> Message-ID: <002a01cb8a13$53fb7030$fbf25090$@scilab.org> Hi, What is your error message ? Thanks Allan -----Message d'origine----- De?: Gernot Schullerus [mailto:Gernot.Schullerus at Reutlingen-University.DE] Envoy??: lundi 22 novembre 2010 07:44 ??: users at lists.scilab.org Objet?: AW: [scilab-Users] Re: Xcos C compiler Dear Shalini, thank you for your answer. I installed lcc and added the path ( on a Windows 7 system) however, the error message is still the same. Gernot -----Urspr?ngliche Nachricht----- Von: Shalini Shrivastava [mailto:shalinishri at iitb.ac.in] Gesendet: Sonntag, 21. November 2010 03:48 An: users at lists.scilab.org Betreff: [scilab-Users] Re: Xcos C compiler Allan CORNET writes: > Hi you should install win lcc Compiler the link for same is given below http://www.q-software-solutions.de/downloaders/downloaders/show_download_loc ations > best wishes Shalini Shrivastava From Gernot.Schullerus at Reutlingen-University.DE Mon Nov 22 08:12:06 2010 From: Gernot.Schullerus at Reutlingen-University.DE (Gernot Schullerus) Date: Mon, 22 Nov 2010 08:12:06 +0100 Subject: AW: [scilab-Users] Re: Xcos C compiler In-Reply-To: <002a01cb8a13$53fb7030$fbf25090$@scilab.org> References: <3255.25309094719$1271917445@news.gmane.org> <000001cb8a10$a1fd1a20$e5f74e60$@reutlingen-university.de> <002a01cb8a13$53fb7030$fbf25090$@scilab.org> Message-ID: <000a01cb8a14$923ecf80$b6bc6e80$@reutlingen-university.de> Hi Allan, this is what I copied from the Scilab command line output --- Flat Modelica : C:\Users\schullge\AppData\Local\Temp\SCI_TMP_6028_\Bridge_Rectifier_imf.mo Simulation C code :C:\Users\schullge\AppData\Local\Temp\SCI_TMP_6028_\Bridge_Rectifier_im.c erzeuge eine Laderdatei erzeuge ein Makefile F?hre Makefile aus !sorry compiling problem ! ! ! !ein Fortran oder C Kompiler wird ben?tigt. ! ---- So the makefile is created. However, it can not find the required compiler. Thank you for your support. Gernot -----Urspr?ngliche Nachricht----- Von: Allan CORNET [mailto:allan.cornet at scilab.org] Gesendet: Montag, 22. November 2010 08:03 An: users at lists.scilab.org Betreff: RE: [scilab-Users] Re: Xcos C compiler Hi, What is your error message ? Thanks Allan -----Message d'origine----- De?: Gernot Schullerus [mailto:Gernot.Schullerus at Reutlingen-University.DE] Envoy??: lundi 22 novembre 2010 07:44 ??: users at lists.scilab.org Objet?: AW: [scilab-Users] Re: Xcos C compiler Dear Shalini, thank you for your answer. I installed lcc and added the path ( on a Windows 7 system) however, the error message is still the same. Gernot -----Urspr?ngliche Nachricht----- Von: Shalini Shrivastava [mailto:shalinishri at iitb.ac.in] Gesendet: Sonntag, 21. November 2010 03:48 An: users at lists.scilab.org Betreff: [scilab-Users] Re: Xcos C compiler Allan CORNET writes: > Hi you should install win lcc Compiler the link for same is given below http://www.q-software-solutions.de/downloaders/downloaders/show_download_loc ations > best wishes Shalini Shrivastava From allan.cornet at scilab.org Mon Nov 22 08:17:44 2010 From: allan.cornet at scilab.org (Allan CORNET) Date: Mon, 22 Nov 2010 08:17:44 +0100 Subject: [scilab-Users] Re: Xcos C compiler In-Reply-To: <000a01cb8a14$923ecf80$b6bc6e80$@reutlingen-university.de> References: <3255.25309094719$1271917445@news.gmane.org> <000001cb8a10$a1fd1a20$e5f74e60$@reutlingen-university.de> <002a01cb8a13$53fb7030$fbf25090$@scilab.org> <000a01cb8a14$923ecf80$b6bc6e80$@reutlingen-university.de> Message-ID: <002b01cb8a15$5b61bf30$12253d90$@scilab.org> What is the result of [a,b] = getdebuginfo() in scilab ? What is the result of haveacompiler() Allan -----Message d'origine----- De?: Gernot Schullerus [mailto:Gernot.Schullerus at Reutlingen-University.DE] Envoy??: lundi 22 novembre 2010 08:12 ??: users at lists.scilab.org Objet?: AW: [scilab-Users] Re: Xcos C compiler Hi Allan, this is what I copied from the Scilab command line output --- Flat Modelica : C:\Users\schullge\AppData\Local\Temp\SCI_TMP_6028_\Bridge_Rectifier_imf.mo Simulation C code :C:\Users\schullge\AppData\Local\Temp\SCI_TMP_6028_\Bridge_Rectifier_im.c erzeuge eine Laderdatei erzeuge ein Makefile F?hre Makefile aus !sorry compiling problem ! ! ! !ein Fortran oder C Kompiler wird ben?tigt. ! ---- So the makefile is created. However, it can not find the required compiler. Thank you for your support. Gernot -----Urspr?ngliche Nachricht----- Von: Allan CORNET [mailto:allan.cornet at scilab.org] Gesendet: Montag, 22. November 2010 08:03 An: users at lists.scilab.org Betreff: RE: [scilab-Users] Re: Xcos C compiler Hi, What is your error message ? Thanks Allan -----Message d'origine----- De?: Gernot Schullerus [mailto:Gernot.Schullerus at Reutlingen-University.DE] Envoy??: lundi 22 novembre 2010 07:44 ??: users at lists.scilab.org Objet?: AW: [scilab-Users] Re: Xcos C compiler Dear Shalini, thank you for your answer. I installed lcc and added the path ( on a Windows 7 system) however, the error message is still the same. Gernot -----Urspr?ngliche Nachricht----- Von: Shalini Shrivastava [mailto:shalinishri at iitb.ac.in] Gesendet: Sonntag, 21. November 2010 03:48 An: users at lists.scilab.org Betreff: [scilab-Users] Re: Xcos C compiler Allan CORNET writes: > Hi you should install win lcc Compiler the link for same is given below http://www.q-software-solutions.de/downloaders/downloaders/show_download_loc ations > best wishes Shalini Shrivastava From xmagyarz at gmail.com Sun Nov 21 21:07:13 2010 From: xmagyarz at gmail.com (=?windows-1250?Q?Zolt=E1n_Magyar?=) Date: Sun, 21 Nov 2010 21:07:13 +0100 Subject: Problem with the compilation and linking of c-code Message-ID: <4CE97BF1.6030006@gmail.com> Greetings! I would like to create an xcos block from a c-code, but I have problems with the compilation and the linking of the code. (content of "myfunction.c") #include "scicos_block4.h" #define myIN ((GetRealInPortPtrs(blk, (0) + 1))[(0)]) #define myOUT ((GetRealOutPortPtrs(blk, (0) + 1))[(0)]) typedef struct { double variable; } my_struct; void myfunction(scicos_block *blk, int flag) { my_struct *ptr; switch (flag) { case 4: //Initialization: if ((*(blk->work) = (my_struct*)scicos_malloc(sizeof(my_struct))) == NULL) { set_block_error(-16); return; } ptr = *(blk->work); ptr->variable = 0; break; case 1: //OutputUpdate: ptr = *(blk->work); myOUT = myIN + ptr->variable; ptr->variable++; break; case 5: //Ending: scicos_free(*(blk->work)); break; } } In Scilab I type ilib_for_link(): -->ilib_for_link('myfunction','myfunction.o',[],'c','Makelib','loader.sce','','',''); Generate a loader file Generate a Makefile ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR ilib_gen_Make: Copy myfunction.c~ to TMPDIR ilib_gen_Make: Copy myfunction.c to TMPDIR ilib_gen_Make: configure : Generate Makefile. ilib_gen_Make: Modification of the Makefile in TMPDIR. Running the Makefile Generate a cleaner file --> then when I try to execute the loader I get the next error: -->exec loader.sce -->// This file is released into the public domain -->// Generated by builder.sce : Please, do not edit this file -->// -->myfunction_path = get_absolute_file_path('loader.sce'); -->// ulink previous function with same name -->[bOK,ilib] = c_link('myfunction');if (bOK) then ulink(ilib),end -->link(myfunction_path+'libmyfunction'+getdynlibext(),['myfunction'],'c'); Link failed for dynamic library '/home/mzolee/Plocha/xcos_projects/try2/libmyfunction.so'. An error occurred: /home/mzolee/Plocha/xcos_projects/try2/libmyfunction.so: undefined symbol: set_block_error link(myfunction_path+'libmyfunction'+getdynlibext(),['myfunction'],'c'); !--error 236 link: The shared archive was not loaded: (null) at line 9 of exec file called by : exec loader.sce I did the same thing in Scilab-5.1.1 and it worked, but in Scilab-5.2.1 or in 5.2.2 i get the error as shown above. Thanks for your help. Zolt?n From sylvestre.ledru at scilab.org Mon Nov 22 08:18:47 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Mon, 22 Nov 2010 08:18:47 +0100 Subject: [scilab-Users] [Scilab-Users] Sciscipy interface and link to Salome \ YACS for optimization studies In-Reply-To: References: <1290015807.7582.1265.camel@zlarin> Message-ID: <1290410327.25244.3379.camel@zlarin> Having a equivalent to the python-dev package installed on your system would be the first step. (It is the package containing all Python's headers). Besides that, with obviously the Scilab header available, it is the only two requirements. Sylvestre Le jeudi 18 novembre 2010 ? 07:42 +0100, Pierre JUILLARD a ?crit : > Well, > > A 1st basic input regarding installation procedures: > > Are there any requirements for source compilation? > (target OS for Sciscipy installation: CentOS 5.5 (based on Red Hat)) > Thanks in advance for your advices. > > Bests, > > Pierre > > > > > 2010/11/17 Sylvestre Ledru > Le vendredi 15 octobre 2010 ? 07:49 +0200, Pierre JUILLARD a > ?crit : > > > > Hi to all, > > > > > > Please, may I know the status of the Sciscipy interface > > (http://forge.scilab.org/index.php/p/sciscipy/) in Scilab > 5.2.2 (the > > latest stable release)? > > Is it ok for use? > > Defines "OK" ;) > On my free time, I am packaging it for Debian/Ubuntu. It is > working > pretty well. After that, it is a kind of developments where > you always > have something to do since Scilab & Python are both big > software... > > > Are there some "improvements" or bug fixes in Scilab 5.3 on > this > > interface? > > I would actually like to know if it is recommended to wait > for the > > Scilab 5.3 to use this interface? > > There are a few improvements (especially bug fixes and > consolidation) in > call_scilab, component on which sciscipy has been developed > but I think > the 5.2.2 is usable currently. > Anyway, don't hesitate to fill bugs on sciscipy: > http://forge.scilab.org/index.php/p/sciscipy/issues/ > > > > > Also, I would like to know if someone already tried to call > Scilab > > using Sciscipy from a Salome \ YACS schema? > > You should be able to do so. Maybe Yann (c/c of this email) > tried since > the last time I asked him about that. > > Sylvestre > > -- > ------------------------- > 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 david.cheze at cea.fr Mon Nov 22 09:43:57 2010 From: david.cheze at cea.fr (CHEZE David 227480) Date: Mon, 22 Nov 2010 09:43:57 +0100 Subject: space in windows pathnames Message-ID: Hello, I would like to know if there is a way to handle in scilab space in windows pathname : either in scilab environment variables (like HOME for example) or in standard input reading of a pathname containing space (like M:\Station meteo\ for example), scilab failed to get the right string. Is there a way to run directly a windows open dialog box to get the correct string ? Thanks for your help, David -------------- next part -------------- An HTML attachment was scrubbed... URL: From allan.cornet at scilab.org Mon Nov 22 09:56:41 2010 From: allan.cornet at scilab.org (Allan CORNET) Date: Mon, 22 Nov 2010 09:56:41 +0100 Subject: [scilab-Users] space in windows pathnames In-Reply-To: References: Message-ID: <003801cb8a23$2e897580$8b9c6080$@scilab.org> Hi, mkdir(TMPDIR + "/Station Meteo") mputl('Test',TMPDIR + "/Station Meteo/Test with space.sce") uigetdir(TMPDIR + "/Station Meteo") uigetfile('*.*',TMPDIR + "/Station Meteo") -->uigetfile('*.*',TMPDIR + "/Station Meteo") ans = E:\TEMP\SCI_TMP_5100_\Station Meteo\Test with space.sce it works with Scilab 5.3beta4 and 5.2.2. Allan De : CHEZE David 227480 [mailto:david.cheze at cea.fr] Envoy? : lundi 22 novembre 2010 09:44 ? : users at lists.scilab.org Objet : [scilab-Users] space in windows pathnames Hello, I would like to know if there is a way to handle in scilab space in windows pathname : either in scilab environment variables (like HOME for example) or in standard input reading of a pathname containing space (like M:\Station meteo\ for example), scilab failed to get the right string. Is there a way to run directly a windows open dialog box to get the correct string ? Thanks for your help, David -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.dubois at limsi.fr Mon Nov 22 17:46:04 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Mon, 22 Nov 2010 17:46:04 +0100 Subject: [scilab-Users] Error command loadmatfile In-Reply-To: <001601cb89f4$3d6f7010$b84e5030$@utn.edu.ar> References: <001601cb89f4$3d6f7010$b84e5030$@utn.edu.ar> Message-ID: <4CEA9E4C.3080301@limsi.fr> Hi, Did you try to increase the stack's size (see help('stacksize'))? Otherwise you can try to save your data in text format (option -ascii in matlab) which more portable. Mathieu On 11/22/2010 04:20 AM, Marcos C. Ruggeri wrote: > > Hi all, > > I am receiving an error message in the Scilab Console when using the > command loadmatfile to import a .mat file (e.g. > test_fuselage_complete.mat). > > However, the command seems to work correctly if I load other .mat > files, such as data_high_volt_tower.mat. > > I have tried updating Scilab, and the same error occurs in both > versions: scilab-5.2.2 and scilab-5.3.0-beta-4. > > Enclosed is a screenshot of the console and the .mat files. > > Thanks in advance. > > Regards, > > Marcos Cesar Ruggeri > > /Grupo de Simulaci?n y Mec?nica Computacional/ > > *Universidad Tecnol?gica Nacional* > > Facultad Regional Haedo > > mruggeri at frh.utn.edu.ar > > www.frh.utn.edu.ar > -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.baudin at scilab.org Tue Nov 23 09:14:21 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Tue, 23 Nov 2010 09:14:21 +0100 Subject: [scilab-Users] General question regarding debugging item In-Reply-To: <000001cb8963$fce7fa20$f6b7ee60$@carrico@free.fr> References: <000001cb8963$fce7fa20$f6b7ee60$@carrico@free.fr> Message-ID: <4CEB77DD.5070709@scilab.org> Hi Paul, Please take a look at the "Introduction to Scilab": http://www.scilab.org/content/download/1754/19024/file/introscilab.pdf The section 6.7 "Debugging with pause" provides informations on the debugging techniques most developpers use. It is based on the combinations of "pause", "resume" and "abort". In practice, it is very fast and efficient. Best regards, Micha?l Baudin Le 21/11/2010 11:08, Paul CARRICO a ?crit : > > Dear All, > > whatever is the programming language I've no experience in debugging > scripts/codes ; naturally I ever heard about debugging tools but I've > had no reason to use them until now ... > > ... better late than never I would like to fill this lack and I had a > (quick) look in debug function in Scilab => nevertheless the later > function is intended for Scilab expert/code development only. > > Where can I find some information's in such item (typically some > tutorials) ? > > Nota : > > - for professional reasons I'm working under Windows OS ... > > - I'm developing now more and more routines under Scilab for my needs > / many thanks for both Scilab teams and the community ! J J J J J > > Cheers > > Paul > -- 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 HTML attachment was scrubbed... URL: From michael.baudin at scilab.org Tue Nov 23 10:24:46 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Tue, 23 Nov 2010 10:24:46 +0100 Subject: [scilab-Users] any user manual to use financial toolbox by Francesco Menoncin In-Reply-To: <88288472-E9F6-4E3A-9642-08A540E0F551@gmail.com> References: <88288472-E9F6-4E3A-9642-08A540E0F551@gmail.com> Message-ID: <4CEB885E.1040301@scilab.org> Hi, You may contact the author of the module directly : Francesco Menoncin Best regards, Micha?l Baudin Le 21/11/2010 04:07, yiu-man wong a ?crit : > Need direction (user manual) in learning how to use the financial module by F. Menoncin. > Thanks. > > ymw -- 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 marcin.wozniczka at gazeta.pl Tue Nov 23 23:26:30 2010 From: marcin.wozniczka at gazeta.pl (marcin.wozniczka Gazeta.pl) Date: Tue, 23 Nov 2010 23:26:30 +0100 Subject: [scilab-Users] Dev-C++ Compiler In-Reply-To: <002501cb558e$252b41e0$6f81c5a0$@scilab.org> References: <002101cb5584$dbd403a0$937c0ae0$@scilab.org> <002501cb558e$252b41e0$6f81c5a0$@scilab.org> Message-ID: Hi, can you describe me it easier (I mean step by step with examples) because I have small problems with understanding all information on this sites, and I don't know well C++ Marcin 2010/9/16 Allan CORNET > Hi, > > > > In fact, you want to call scilab from your program. > > > > See help call_scilab in scilab or > http://www.scilab.org/product/man/section_0b209c9ffb9f256780f4b18be7e0ebc7.html > > > > you will need to regenerate symbols table (.lib to .a) for > call_scilab.dll and some others scilab dlls with Dev-C++ > > > > (http://sourceware.org/binutils/docs-2.16/binutils/dlltool.html) and link > with these libraries. > > > > Allan > > > > > > *De :* marcin.wozniczka Gazeta.pl [mailto:marcin.wozniczka at gazeta.pl] > *Envoy? :* jeudi 16 septembre 2010 12:45 > > *? :* users at lists.scilab.org > *Objet :* Re: [scilab-Users] Dev-C++ Compiler > > > > Hi, > so, is it possible to write script in Dev-C++, which will run program > written in Scilab? I mean: I wrote program with math algoritms in Scilab, > but I want create some GUI for it and I want create a exec file which will > start GUI and from GUI I want start Scilab program (but the point is, that > program should work without having scilab on computer). > > > -- > Marcin Wo?niczka > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ginters.buss at gmail.com Wed Nov 24 09:11:26 2010 From: ginters.buss at gmail.com (=?UTF-8?Q?Ginters_Bu=C5=A1s?=) Date: Wed, 24 Nov 2010 10:11:26 +0200 Subject: legend for surf (3D) Message-ID: Dear all, I see legend issue comes up from time to time in this list. However, I still can not make my legend work. Here is my simple graph. I'm drawing 4 surfaces in one graph window: surf(sigmavector,phivector,fsbkcor,'facecol','red') surf(sigmavector,phivector,abkcor,'facecol','green') surf(sigmavector,phivector,acfcor,'facecol','yellow') surf(sigmavector,phivector,fscfcor,'facecol','black') What is the way to add a legend to this graph? All the time I try to call the legend function, there is an !--error 10000 legend: No 'Polyline' handle found. I understand I have to deal with some 'children', and I will appreciate an advice here. To developers: help on 'legend' might be a little bit more elaborated/explained. Sincerely, Ginters -------------- next part -------------- An HTML attachment was scrubbed... URL: From frederic.jourdin at shom.fr Wed Nov 24 10:11:44 2010 From: frederic.jourdin at shom.fr (Frederic Jourdin) Date: Wed, 24 Nov 2010 10:11:44 +0100 Subject: min/max with NaN values Message-ID: <4CECD6D0.2020609@shom.fr> Hi all ! if I run this: a= [ 1, %nan; 4, 4]; b= [ %nan, 3; 3, 6]; c= [ 2, 2; %nan, %nan]; min( a, b, c) Scilab returns the following matrix: NaN NaN NaN NaN while the expected matrix should be: 1 2 3 4 Why? thanks Fred Scilab 5.3.0.beta3 on Linux From ginters.buss at gmail.com Wed Nov 24 10:20:13 2010 From: ginters.buss at gmail.com (=?UTF-8?Q?Ginters_Bu=C5=A1s?=) Date: Wed, 24 Nov 2010 11:20:13 +0200 Subject: legend for surf (3D) In-Reply-To: References: Message-ID: I get it for 2D plots, but for a 3D plot children is empty. On Wed, Nov 24, 2010 at 10:11 AM, Ginters Bu?s wrote: > Dear all, > > I see legend issue comes up from time to time in this list. However, I > still can not make my legend work. > > Here is my simple graph. I'm drawing 4 surfaces in one graph window: > > surf(sigmavector,phivector,fsbkcor,'facecol','red') > surf(sigmavector,phivector,abkcor,'facecol','green') > surf(sigmavector,phivector,acfcor,'facecol','yellow') > surf(sigmavector,phivector,fscfcor,'facecol','black') > > What is the way to add a legend to this graph? All the time I try to call > the legend function, there is an > > !--error 10000 > legend: No 'Polyline' handle found. > > I understand I have to deal with some 'children', and I will appreciate an > advice here. > > To developers: help on 'legend' might be a little bit more > elaborated/explained. > > Sincerely, > Ginters > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.dubois at limsi.fr Wed Nov 24 11:13:16 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Wed, 24 Nov 2010 11:13:16 +0100 Subject: [scilab-Users] min/max with NaN values In-Reply-To: <4CECD6D0.2020609@shom.fr> References: <4CECD6D0.2020609@shom.fr> Message-ID: <4CECE53C.2030902@limsi.fr> Hello Fred, I agree with you this sounds strange. If one tries: min([1 2 3 %nan]) the result is 1 as expected. As a workaround, you can try to stack your matrices in a hypermatrix: d=hypermat([2, 2, 3]); // We have 3 2x2 matrices d(:, :, 1)=a; d(:, :, 2)=b; d(:, :, 3)=c; min(d, 3) Alternatively there is a function called nanmean but you cannot use the nanmin( a, b, c) syntax. HTH, Mathieu On 11/24/2010 10:11 AM, Frederic Jourdin wrote: > Hi all ! > if I run this: > > a= [ 1, %nan; 4, 4]; > b= [ %nan, 3; 3, 6]; > c= [ 2, 2; %nan, %nan]; > min( a, b, c) > > Scilab returns the following matrix: > NaN NaN > NaN NaN > > while the expected matrix should be: > 1 2 > 3 4 > > Why? > > thanks > Fred > > Scilab 5.3.0.beta3 on Linux > From frederic.jourdin at shom.fr Wed Nov 24 11:40:44 2010 From: frederic.jourdin at shom.fr (Frederic Jourdin) Date: Wed, 24 Nov 2010 11:40:44 +0100 Subject: [scilab-Users] min/max with NaN values In-Reply-To: <4CECE53C.2030902@limsi.fr> References: <4CECD6D0.2020609@shom.fr> <4CECE53C.2030902@limsi.fr> Message-ID: <4CECEBAC.6080104@shom.fr> Hi Mathieu, OK the use of the hypermatrix works fine. Thank you very much. By the way I am gonna report this workaround in bug 7608. regards Fred Mathieu Dubois wrote: > Hello Fred, > > I agree with you this sounds strange. > > If one tries: > min([1 2 3 %nan]) > the result is 1 as expected. > > As a workaround, you can try to stack your matrices in a hypermatrix: > d=hypermat([2, 2, 3]); // We have 3 2x2 matrices > d(:, :, 1)=a; > d(:, :, 2)=b; > d(:, :, 3)=c; > min(d, 3) > > Alternatively there is a function called nanmean but you cannot use > the nanmin( a, b, c) syntax. > > HTH, > Mathieu > > On 11/24/2010 10:11 AM, Frederic Jourdin wrote: >> Hi all ! >> if I run this: >> >> a= [ 1, %nan; 4, 4]; >> b= [ %nan, 3; 3, 6]; >> c= [ 2, 2; %nan, %nan]; >> min( a, b, c) >> >> Scilab returns the following matrix: >> NaN NaN >> NaN NaN >> >> while the expected matrix should be: >> 1 2 >> 3 4 >> >> Why? >> >> thanks >> Fred >> >> Scilab 5.3.0.beta3 on Linux >> From michael.baudin at scilab.org Wed Nov 24 11:40:53 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Wed, 24 Nov 2010 11:40:53 +0100 Subject: [scilab-Users] min/max with NaN values In-Reply-To: <4CECD6D0.2020609@shom.fr> References: <4CECD6D0.2020609@shom.fr> Message-ID: <4CECEBB5.6040204@scilab.org> Hi, The expected result is actually the matrix of Nans. If you had found another result, that would have been a bug. Even more, we have similar automatic checks that this is so - see the following unit test : http://gitweb.scilab.org/?p=scilab.git;a=blob;f=scilab/modules/elementary_functions/tests/unit_tests/IEEEcompatibility.tst;h=778fc00d4833f54fce6324ac917bac725d6f9e19;hb=HEAD Notice that this test is mainly for +,-,*,/,sqrt, the operations which are specified by the IEEE754 standard. With respect to Nan, these tests says that "Nan on input, then Nan on output". In the IEEE754 standard, the authors use the term "Nan propagation". More informations on this topic are given by "Handbook of Floating Point Arithmetic", by Muller et al.. See the sections "2.3 - Exceptions" and "3.1.5 Exceptions specified by IEEE754-1985". If you want to perform the computation without the nans, you may combine the "find" and "isnan" functions. For example, the statement: k = find(isnan(a)) you get the indices where a is a nan. Now, the statement: a(isnan(a))=0 sets to zero the entries where Nan is present. But be warned: Nans are *designed* to be propagated. That is, if your input data contains Nans, that means that some previous computations has already failed. The Nans should not be, in general, just ignored and thrown away. Best regards, Micha?l Baudin Le 24/11/2010 10:11, Frederic Jourdin a ?crit : > Hi all ! > if I run this: > > a= [ 1, %nan; 4, 4]; > b= [ %nan, 3; 3, 6]; > c= [ 2, 2; %nan, %nan]; > min( a, b, c) > > Scilab returns the following matrix: > NaN NaN > NaN NaN > > while the expected matrix should be: > 1 2 > 3 4 > > Why? > > thanks > Fred > > Scilab 5.3.0.beta3 on Linux > -- 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 mathieu.dubois at limsi.fr Wed Nov 24 11:44:31 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Wed, 24 Nov 2010 11:44:31 +0100 Subject: [scilab-Users] Re: legend for surf (3D) In-Reply-To: References: Message-ID: <4CECEC8F.5060009@limsi.fr> Hello, On 11/24/2010 10:20 AM, Ginters Bu?s wrote: > I get it for 2D plots, but for a 3D plot children is empty. > > On Wed, Nov 24, 2010 at 10:11 AM, Ginters Bu?s > wrote: > > Dear all, > > I see legend issue comes up from time to time in this list. > However, I still can not make my legend work. > > Here is my simple graph. I'm drawing 4 surfaces in one graph window: > > surf(sigmavector,phivector,fsbkcor,'facecol','red') > surf(sigmavector,phivector,abkcor,'facecol','green') > surf(sigmavector,phivector,acfcor,'facecol','yellow') > surf(sigmavector,phivector,fscfcor,'facecol','black') > > What is the way to add a legend to this graph? All the time I try > to call the legend function, there is an > > !--error 10000 > legend: No 'Polyline' handle found. > > > I understand I have to deal with some 'children', and I will > appreciate an advice here. > By default legend tries to find polyline(s) i.e. a scatter X-Y line specified by coordinates of points (probably the most common plot) in the current figure. This is because legend is made for graph where there are several of those lines. surf creates Fac3D objects which specify how to draw a surface. Your graph is very special and it's a bit hard to figure out of you would like to use legend. Could you send a complete toy example (e.g. a small dataset to plot)? You can try to use the legends function (note the 's'): it works on plots created by surf but I'm not sure this is what you want. > > To developers: help on 'legend' might be a little bit more > elaborated/explained. > HTH, Mathieu > > Sincerely, > Ginters > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.dubois at limsi.fr Wed Nov 24 11:47:17 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Wed, 24 Nov 2010 11:47:17 +0100 Subject: [scilab-Users] min/max with NaN values In-Reply-To: <4CECEBB5.6040204@scilab.org> References: <4CECD6D0.2020609@shom.fr> <4CECEBB5.6040204@scilab.org> Message-ID: <4CECED35.8030101@limsi.fr> On 11/24/2010 11:40 AM, Micha?l Baudin wrote: > Hi, > > The expected result is actually the matrix of Nans. If you had found > another result, that would have been a bug. Even more, we have similar > automatic checks that this is so - see the following unit test : > > http://gitweb.scilab.org/?p=scilab.git;a=blob;f=scilab/modules/elementary_functions/tests/unit_tests/IEEEcompatibility.tst;h=778fc00d4833f54fce6324ac917bac725d6f9e19;hb=HEAD > > > Notice that this test is mainly for +,-,*,/,sqrt, the operations which > are specified by the IEEE754 standard. With respect to Nan, these > tests says that "Nan on input, then Nan on output". In the IEEE754 > standard, the authors use the term "Nan propagation". More > informations on this topic are given by "Handbook of Floating Point > Arithmetic", by Muller et al.. See the sections "2.3 - Exceptions" and > "3.1.5 Exceptions specified by IEEE754-1985". That sounds like a sane convention but then, just out of curiosity, how do you explain that min([1 2 3 %nan]) returns 1? > > If you want to perform the computation without the nans, you may > combine the "find" and "isnan" functions. For example, the statement: > > k = find(isnan(a)) > > you get the indices where a is a nan. Now, the statement: > > a(isnan(a))=0 > > sets to zero the entries where Nan is present. > > But be warned: Nans are *designed* to be propagated. That is, if your > input data contains Nans, that means that some previous computations > has already failed. The Nans should not be, in general, just ignored > and thrown away. > > Best regards, > > Micha?l Baudin > > Le 24/11/2010 10:11, Frederic Jourdin a ?crit : >> Hi all ! >> if I run this: >> >> a= [ 1, %nan; 4, 4]; >> b= [ %nan, 3; 3, 6]; >> c= [ 2, 2; %nan, %nan]; >> min( a, b, c) >> >> Scilab returns the following matrix: >> NaN NaN >> NaN NaN >> >> while the expected matrix should be: >> 1 2 >> 3 4 >> >> Why? >> >> thanks >> Fred >> >> Scilab 5.3.0.beta3 on Linux >> > > From michael.baudin at scilab.org Wed Nov 24 11:49:48 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Wed, 24 Nov 2010 11:49:48 +0100 Subject: [scilab-Users] min/max with NaN values In-Reply-To: <4CECEBB5.6040204@scilab.org> References: <4CECD6D0.2020609@shom.fr> <4CECEBB5.6040204@scilab.org> Message-ID: <4CECEDCC.8090405@scilab.org> See also my message at : http://bugzilla.scilab.org/show_bug.cgi?id=7608#c6 on the more specific topic of Scilab/nanmin. Best regards, Micha?l Le 24/11/2010 11:40, Micha?l Baudin a ?crit : > Hi, > > The expected result is actually the matrix of Nans. If you had found > another result, that would have been a bug. Even more, we have similar > automatic checks that this is so - see the following unit test : > > http://gitweb.scilab.org/?p=scilab.git;a=blob;f=scilab/modules/elementary_functions/tests/unit_tests/IEEEcompatibility.tst;h=778fc00d4833f54fce6324ac917bac725d6f9e19;hb=HEAD > > > Notice that this test is mainly for +,-,*,/,sqrt, the operations which > are specified by the IEEE754 standard. With respect to Nan, these > tests says that "Nan on input, then Nan on output". In the IEEE754 > standard, the authors use the term "Nan propagation". More > informations on this topic are given by "Handbook of Floating Point > Arithmetic", by Muller et al.. See the sections "2.3 - Exceptions" and > "3.1.5 Exceptions specified by IEEE754-1985". > > If you want to perform the computation without the nans, you may > combine the "find" and "isnan" functions. For example, the statement: > > k = find(isnan(a)) > > you get the indices where a is a nan. Now, the statement: > > a(isnan(a))=0 > > sets to zero the entries where Nan is present. > > But be warned: Nans are *designed* to be propagated. That is, if your > input data contains Nans, that means that some previous computations > has already failed. The Nans should not be, in general, just ignored > and thrown away. > > Best regards, > > Micha?l Baudin > > Le 24/11/2010 10:11, Frederic Jourdin a ?crit : >> Hi all ! >> if I run this: >> >> a= [ 1, %nan; 4, 4]; >> b= [ %nan, 3; 3, 6]; >> c= [ 2, 2; %nan, %nan]; >> min( a, b, c) >> >> Scilab returns the following matrix: >> NaN NaN >> NaN NaN >> >> while the expected matrix should be: >> 1 2 >> 3 4 >> >> Why? >> >> thanks >> Fred >> >> Scilab 5.3.0.beta3 on Linux >> > > -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 From michael.baudin at scilab.org Wed Nov 24 11:54:25 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Wed, 24 Nov 2010 11:54:25 +0100 Subject: [scilab-Users] min/max with NaN values In-Reply-To: <4CECED35.8030101@limsi.fr> References: <4CECD6D0.2020609@shom.fr> <4CECEBB5.6040204@scilab.org> <4CECED35.8030101@limsi.fr> Message-ID: <4CECEEE1.9070503@scilab.org> Ahah... In Scilab: -->min([1 2 3 %nan]) ans = 1. -->min(1,2,3,%nan) ans = Nan This is fun... In Matlab: >> min([1 2 3 nan]) ans = 1 >> min(1,2,3,nan) ??? Error using ==> min Too many input arguments. So Matlab does not support the y=min(x1,x2,x3) calling sequence, but Scilab do. On the other hand, Scilab results are weird with nans, at least. Regards, Micha?l Le 24/11/2010 11:47, Mathieu Dubois a ?crit : > On 11/24/2010 11:40 AM, Micha?l Baudin wrote: >> Hi, >> >> The expected result is actually the matrix of Nans. If you had found >> another result, that would have been a bug. Even more, we have >> similar automatic checks that this is so - see the following unit test : >> >> http://gitweb.scilab.org/?p=scilab.git;a=blob;f=scilab/modules/elementary_functions/tests/unit_tests/IEEEcompatibility.tst;h=778fc00d4833f54fce6324ac917bac725d6f9e19;hb=HEAD >> >> >> Notice that this test is mainly for +,-,*,/,sqrt, the operations >> which are specified by the IEEE754 standard. With respect to Nan, >> these tests says that "Nan on input, then Nan on output". In the >> IEEE754 standard, the authors use the term "Nan propagation". More >> informations on this topic are given by "Handbook of Floating Point >> Arithmetic", by Muller et al.. See the sections "2.3 - Exceptions" >> and "3.1.5 Exceptions specified by IEEE754-1985". > That sounds like a sane convention but then, just out of curiosity, > how do you explain that min([1 2 3 %nan]) returns 1? >> >> If you want to perform the computation without the nans, you may >> combine the "find" and "isnan" functions. For example, the statement: >> >> k = find(isnan(a)) >> >> you get the indices where a is a nan. Now, the statement: >> >> a(isnan(a))=0 >> >> sets to zero the entries where Nan is present. >> >> But be warned: Nans are *designed* to be propagated. That is, if your >> input data contains Nans, that means that some previous computations >> has already failed. The Nans should not be, in general, just ignored >> and thrown away. >> >> Best regards, >> >> Micha?l Baudin >> >> Le 24/11/2010 10:11, Frederic Jourdin a ?crit : >>> Hi all ! >>> if I run this: >>> >>> a= [ 1, %nan; 4, 4]; >>> b= [ %nan, 3; 3, 6]; >>> c= [ 2, 2; %nan, %nan]; >>> min( a, b, c) >>> >>> Scilab returns the following matrix: >>> NaN NaN >>> NaN NaN >>> >>> while the expected matrix should be: >>> 1 2 >>> 3 4 >>> >>> Why? >>> >>> thanks >>> Fred >>> >>> Scilab 5.3.0.beta3 on Linux >>> >> >> > -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 From michael.baudin at scilab.org Wed Nov 24 12:03:23 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Wed, 24 Nov 2010 12:03:23 +0100 Subject: [scilab-Users] min/max with NaN values In-Reply-To: <4CECEEE1.9070503@scilab.org> References: <4CECD6D0.2020609@shom.fr> <4CECEBB5.6040204@scilab.org> <4CECED35.8030101@limsi.fr> <4CECEEE1.9070503@scilab.org> Message-ID: <4CECF0FB.7060607@scilab.org> Noticed the small line at the end of the Matlab/min: "The min function ignores NaNs.". This is not written in the help page Scilab/min, but I guess that this is also true. Now, Matlab is more consistent : >> min([1 nan]) ans = 1 >> min(1,nan) ans = 1 while Scilab is weird : Scilab: -->min([1 %nan]) ans = 1. -->min(1,%nan) ans = Nan I think that you have found a 2 more bugs (that is, added with the bug #7608), i.e. : 1. nans are ignored by Scilab inside a matrix, but not across the input arguments, 2. this is not explicitely written in the help page. I guess that the particular processing of Nans in the loop over the arguments has just been forgotten. Would you mind to submit these bug report please ? Best regards, Micha?l Baudin Le 24/11/2010 11:54, Micha?l Baudin a ?crit : > Ahah... > > In Scilab: > > -->min([1 2 3 %nan]) > ans = > 1. > -->min(1,2,3,%nan) > ans = > Nan > > This is fun... > > In Matlab: > > >> min([1 2 3 nan]) > ans = > 1 > >> min(1,2,3,nan) > ??? Error using ==> min > Too many input arguments. > > So Matlab does not support the y=min(x1,x2,x3) calling sequence, but > Scilab do. On the other hand, Scilab results are weird with nans, at > least. > > Regards, > > Micha?l > > Le 24/11/2010 11:47, Mathieu Dubois a ?crit : >> On 11/24/2010 11:40 AM, Micha?l Baudin wrote: >>> Hi, >>> >>> The expected result is actually the matrix of Nans. If you had found >>> another result, that would have been a bug. Even more, we have >>> similar automatic checks that this is so - see the following unit >>> test : >>> >>> http://gitweb.scilab.org/?p=scilab.git;a=blob;f=scilab/modules/elementary_functions/tests/unit_tests/IEEEcompatibility.tst;h=778fc00d4833f54fce6324ac917bac725d6f9e19;hb=HEAD >>> >>> >>> Notice that this test is mainly for +,-,*,/,sqrt, the operations >>> which are specified by the IEEE754 standard. With respect to Nan, >>> these tests says that "Nan on input, then Nan on output". In the >>> IEEE754 standard, the authors use the term "Nan propagation". More >>> informations on this topic are given by "Handbook of Floating Point >>> Arithmetic", by Muller et al.. See the sections "2.3 - Exceptions" >>> and "3.1.5 Exceptions specified by IEEE754-1985". >> That sounds like a sane convention but then, just out of curiosity, >> how do you explain that min([1 2 3 %nan]) returns 1? >>> >>> If you want to perform the computation without the nans, you may >>> combine the "find" and "isnan" functions. For example, the statement: >>> >>> k = find(isnan(a)) >>> >>> you get the indices where a is a nan. Now, the statement: >>> >>> a(isnan(a))=0 >>> >>> sets to zero the entries where Nan is present. >>> >>> But be warned: Nans are *designed* to be propagated. That is, if >>> your input data contains Nans, that means that some previous >>> computations has already failed. The Nans should not be, in general, >>> just ignored and thrown away. >>> >>> Best regards, >>> >>> Micha?l Baudin >>> >>> Le 24/11/2010 10:11, Frederic Jourdin a ?crit : >>>> Hi all ! >>>> if I run this: >>>> >>>> a= [ 1, %nan; 4, 4]; >>>> b= [ %nan, 3; 3, 6]; >>>> c= [ 2, 2; %nan, %nan]; >>>> min( a, b, c) >>>> >>>> Scilab returns the following matrix: >>>> NaN NaN >>>> NaN NaN >>>> >>>> while the expected matrix should be: >>>> 1 2 >>>> 3 4 >>>> >>>> Why? >>>> >>>> thanks >>>> Fred >>>> >>>> Scilab 5.3.0.beta3 on Linux >>>> >>> >>> >> > > -- 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 HTML attachment was scrubbed... URL: From simon.gareste at scilab.org Wed Nov 24 15:04:25 2010 From: simon.gareste at scilab.org (Simon GARESTE) Date: Wed, 24 Nov 2010 15:04:25 +0100 Subject: Release of Scilab 5.3.0 - beta 5 Message-ID: <4CED1B69.1050501@scilab.org> Dear all, The Scilab Consortium R&D Team is pleased to announce the release of Scilab 5.3.0 Beta 5 today. You can download it directly from Scilab website at: http://www.scilab.org/products/scilab/download/5.3.0-beta-5 Best Regards, ----------------------------------------------- The Scilab Consortium R&D Team ----------------------------------------------- Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex - France" From ginters.buss at gmail.com Wed Nov 24 15:10:45 2010 From: ginters.buss at gmail.com (=?UTF-8?Q?Ginters_Bu=C5=A1s?=) Date: Wed, 24 Nov 2010 16:10:45 +0200 Subject: [scilab-Users] Re: legend for surf (3D) In-Reply-To: <4CECEC8F.5060009@limsi.fr> References: <4CECEC8F.5060009@limsi.fr> Message-ID: Thanks, Mathieu, legends will suffice for the time being. On Wed, Nov 24, 2010 at 12:44 PM, Mathieu Dubois wrote: > Hello, > > > On 11/24/2010 10:20 AM, Ginters Bu?s wrote: > > I get it for 2D plots, but for a 3D plot children is empty. > > On Wed, Nov 24, 2010 at 10:11 AM, Ginters Bu?s wrote: > >> Dear all, >> >> I see legend issue comes up from time to time in this list. However, I >> still can not make my legend work. >> >> Here is my simple graph. I'm drawing 4 surfaces in one graph window: >> >> surf(sigmavector,phivector,fsbkcor,'facecol','red') >> surf(sigmavector,phivector,abkcor,'facecol','green') >> surf(sigmavector,phivector,acfcor,'facecol','yellow') >> surf(sigmavector,phivector,fscfcor,'facecol','black') >> >> What is the way to add a legend to this graph? All the time I try to call >> the legend function, there is an >> >> !--error 10000 >> legend: No 'Polyline' handle found. >> > >> I understand I have to deal with some 'children', and I will appreciate an >> advice here. >> > By default legend tries to find polyline(s) i.e. a scatter X-Y line > specified by coordinates of points (probably the most common plot) in the > current figure. This is because legend is made for graph where there are > several of those lines. > surf creates Fac3D objects which specify how to draw a surface. Your graph > is very special and it's a bit hard to figure out of you would like to use > legend. Could you send a complete toy example (e.g. a small dataset to > plot)? > > You can try to use the legends function (note the 's'): it works on plots > created by surf but I'm not sure this is what you want. > > To developers: help on 'legend' might be a little bit more >> elaborated/explained. >> > > HTH, > Mathieu > > Sincerely, >> Ginters >> > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Wed Nov 24 17:44:37 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Wed, 24 Nov 2010 17:44:37 +0100 Subject: list of files in directory and directories Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFBB@exchsrv.AUXITROL1> All, Quick question : is there a way to list and record all the file+path in a directory + sub-directories ? I had a look in listfiles that list files and directory names in the current directory (but not in the sub directories) The idea is to write a general routine that looks(and record names and paths) for the files and the (sub)directory(s) applicables in all the cases. Thanks Paul -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.dubois at limsi.fr Wed Nov 24 18:33:05 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Wed, 24 Nov 2010 18:33:05 +0100 Subject: [scilab-Users] list of files in directory and directories In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFBB@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFBB@exchsrv.AUXITROL1> Message-ID: <4CED4C51.7040908@limsi.fr> Hello, You can try to use dir() and use the isdir field to (recursively) list files in subdirectories. Mathieu On 11/24/2010 05:44 PM, Carrico, Paul wrote: > All, > Quick question : is there a way to list and record all the file+path > in a directory + sub-directories ? > I had a look in listfiles that list files and directory names in the > current directory (but not in the sub directories) > The idea is to write a general routine that looks(and record names and > paths) for the files and the (sub)directory(s) applicables in all the > cases. > Thanks > Paul > -------------------------------------------------------------------------------- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jjdmon at pobox.com Wed Nov 24 23:15:46 2010 From: jjdmon at pobox.com (Jeff DuMonthier) Date: Wed, 24 Nov 2010 17:15:46 -0500 Subject: [scilab-Users] Re: cannot get any Scilab 5.x version starting on my Intel iMac In-Reply-To: <1290074185.4100.42.camel@korcula.inria.fr> References: <1290068134.7582.1490.camel@zlarin> <1290074185.4100.42.camel@korcula.inria.fr> Message-ID: <10BE9932-3ED1-486E-8D3E-963CF4AB60AB@pobox.com> I've tried this and the 64 bit 1.6 is already at the top. Previous versions have hung. The Scilab icon changes to a generic Java icon after a few bounces and that's it until I kill it. I just tried the 5.3.0-beta-5 and that version crashes instead of hangs. I'm not sure if that's in improvement or not. Maybe, because at least I got an error message in the crash report which was this: Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000002, 0x0000000000000000 Crashed Thread: 1 Dyld Error Message: Symbol not found: _libiconv_open Referenced from: /Users/jeff/Applications/scilab-5.3.0-beta-5.app/Contents/MacOS/lib/thirdparty//libintl.3.dylib Expected in: /Users/jeff/Applications/scilab-5.3.0-beta-5.app/Contents/MacOS/lib/thirdparty//libiconv.2.dylib On Nov 18, 2010, at 4:56 AM, Sylvestre Ledru wrote: > > Le jeudi 18 novembre 2010 ? 09:51 +0000, Heinz Nabielek a ?crit : >> Sylvestre Ledru writes: >> >> >> Hello, >> >> Le mercredi 17 novembre 2010 ? 20:37 +0000, Heinz Nabielek a ?crit : >> SciLab and Mac friends: >> I cannot get any Scilab 5.x version starting on my Intel iMac 10.6.5. >> A Scilab 5.2 beta version had worked at one time, but not any more. >> Starting error messages are shown below. >> Help greatly appreciated. Heinz.................. >> >> We are aware of the recurring issues under Mac OS X. ............ >> I heard that if you go in the Java Preferences menu on >> your system andyou change the order of the JVM, it might fix your problem. >> >> Sylvestre >> >> >> I can see "Java Preferences now shows all discovered JVMs >> in a single list in the General tab". >> >> But, sorry, where do I find and change Java Preferences? > In the finder, search for an application called "Java Preferences" (in > French, it is "Pr?f?rences Java"). > You will see some implementations of Java. > Drag and drop the 1.6 64 bits on the top. > > It is my personal opinion but I found the way Apple is managing various > JVMs pretty bad. We are working on tackling these issues from Scilab but > since they are changing things regularly, it is hard to keep track... > > Sylvestre > PS: When you reply, please configure your mailer to add the ">". Thanks > > From antoine.monmayrant at laas.fr Wed Nov 24 23:16:17 2010 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 24 Nov 2010 23:16:17 +0100 Subject: [scilab-Users] Release of Scilab 5.3.0 - beta 5 In-Reply-To: <4CED1B69.1050501@scilab.org> References: <4CED1B69.1050501@scilab.org> Message-ID: <4CED8EB1.4070901@laas.fr> Le 24/11/10 15:04, Simon GARESTE a ?crit : > Dear all, > > The Scilab Consortium R&D Team is pleased to announce the release of > Scilab 5.3.0 Beta 5 today. > You can download it directly from Scilab website at: > http://www.scilab.org/products/scilab/download/5.3.0-beta-5 > > Best Regards, > > ----------------------------------------------- > The Scilab Consortium R&D Team > ----------------------------------------------- > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay Cedex - France" > Any chance to find a 5.3 beta version for OX Leopard (not Snow Leopard)? Antoine From remik_m at poczta.fm Wed Nov 24 23:07:43 2010 From: remik_m at poczta.fm (remek) Date: Wed, 24 Nov 2010 23:07:43 +0100 Subject: New scilab on older chip Message-ID: <4CED8CAF.1040703@poczta.fm> Hello I have a main computer with chip AMD Athlon XP 1600+. I can't install new version of Scilab (5.3.0 beta 4) - application needs CPU SSE 2 instructions. Is it able to make scilab with new function in older systems too? -- www.aplikacjemedyczne.pl ---------------------------------------------------------------------- Duzi chlopcy lubia wampiry i krew. http://linkint.pl/f2718 From sylvestre.ledru at scilab.org Wed Nov 24 23:30:42 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 24 Nov 2010 23:30:42 +0100 Subject: [scilab-Users] Re: cannot get any Scilab 5.x version starting on my Intel iMac In-Reply-To: <10BE9932-3ED1-486E-8D3E-963CF4AB60AB@pobox.com> References: <1290068134.7582.1490.camel@zlarin> <1290074185.4100.42.camel@korcula.inria.fr> <10BE9932-3ED1-486E-8D3E-963CF4AB60AB@pobox.com> Message-ID: <1290637842.5084.338.camel@losinj.inria.fr> Oh, a new Mac OS X bug! Youpi! :) I don't know if you are the one who reported this bug: http://bugzilla.scilab.org/show_bug.cgi?id=8460 The conversation about this issue will continue on this bug report. Antoine, Scilab is supposed to run under Leopard (10.5) and Snow Leopard (10.6). If you are experiencing an other issue that bug #8460, please report a new bug. Anyway, thanks for the feedback, it is appreciated. Sylvestre On Wed, 2010-11-24 at 17:15 -0500, Jeff DuMonthier wrote: > I've tried this and the 64 bit 1.6 is already at the top. > > Previous versions have hung. The Scilab icon changes to a generic Java icon after a few bounces and that's it until I kill it. I just tried the 5.3.0-beta-5 and that version crashes instead of hangs. I'm not sure if that's in improvement or not. Maybe, because at least I got an error message in the crash report which was this: > > Exception Type: EXC_BREAKPOINT (SIGTRAP) > Exception Codes: 0x0000000000000002, 0x0000000000000000 > Crashed Thread: 1 > > Dyld Error Message: > Symbol not found: _libiconv_open > Referenced from: /Users/jeff/Applications/scilab-5.3.0-beta-5.app/Contents/MacOS/lib/thirdparty//libintl.3.dylib > Expected in: /Users/jeff/Applications/scilab-5.3.0-beta-5.app/Contents/MacOS/lib/thirdparty//libiconv.2.dylib > > On Nov 18, 2010, at 4:56 AM, Sylvestre Ledru wrote: > > > > > Le jeudi 18 novembre 2010 ? 09:51 +0000, Heinz Nabielek a ?crit : > >> Sylvestre Ledru writes: > >> > >> > >> Hello, > >> > >> Le mercredi 17 novembre 2010 ? 20:37 +0000, Heinz Nabielek a ?crit : > >> SciLab and Mac friends: > >> I cannot get any Scilab 5.x version starting on my Intel iMac 10.6.5. > >> A Scilab 5.2 beta version had worked at one time, but not any more. > >> Starting error messages are shown below. > >> Help greatly appreciated. Heinz.................. > >> > >> We are aware of the recurring issues under Mac OS X. ............ > >> I heard that if you go in the Java Preferences menu on > >> your system andyou change the order of the JVM, it might fix your problem. > >> > >> Sylvestre > >> > >> > >> I can see "Java Preferences now shows all discovered JVMs > >> in a single list in the General tab". > >> > >> But, sorry, where do I find and change Java Preferences? > > In the finder, search for an application called "Java Preferences" (in > > French, it is "Pr?f?rences Java"). > > You will see some implementations of Java. > > Drag and drop the 1.6 64 bits on the top. > > > > It is my personal opinion but I found the way Apple is managing various > > JVMs pretty bad. We are working on tackling these issues from Scilab but > > since they are changing things regularly, it is hard to keep track... > > > > Sylvestre > > PS: When you reply, please configure your mailer to add the ">". Thanks > > > > > From mathieu.dubois at limsi.fr Thu Nov 25 10:30:37 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Thu, 25 Nov 2010 10:30:37 +0100 Subject: [scilab-Users] Release of Scilab 5.3.0 - beta 5 In-Reply-To: <4CED1B69.1050501@scilab.org> References: <4CED1B69.1050501@scilab.org> Message-ID: <4CEE2CBD.2000704@limsi.fr> Hello, Under scinotes, the usual "middle click paste" didn't work anymore (it was working with Beta 4). The usual keyboard shortcuts work. Is it a known bug or should I open a bug report? Mathieu On 11/24/2010 03:04 PM, Simon GARESTE wrote: > Dear all, > > The Scilab Consortium R&D Team is pleased to announce the release of > Scilab 5.3.0 Beta 5 today. > You can download it directly from Scilab website at: > http://www.scilab.org/products/scilab/download/5.3.0-beta-5 > > Best Regards, > > ----------------------------------------------- > The Scilab Consortium R&D Team > ----------------------------------------------- > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay Cedex - France" > From sylvestre.ledru at scilab.org Thu Nov 25 10:34:20 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 25 Nov 2010 10:34:20 +0100 Subject: [scilab-Users] Release of Scilab 5.3.0 - beta 5 In-Reply-To: <4CEE2CBD.2000704@limsi.fr> References: <4CED1B69.1050501@scilab.org> <4CEE2CBD.2000704@limsi.fr> Message-ID: <1290677660.24790.0.camel@korcula.inria.fr> I am not aware of a bug on this subject. Please report it. Thanks, Sylvestre Le jeudi 25 novembre 2010 ? 10:30 +0100, Mathieu Dubois a ?crit : > Hello, > > Under scinotes, the usual "middle click paste" didn't work anymore (it > was working with Beta 4). The usual keyboard shortcuts work. > > Is it a known bug or should I open a bug report? > > Mathieu > > On 11/24/2010 03:04 PM, Simon GARESTE wrote: > > Dear all, > > > > The Scilab Consortium R&D Team is pleased to announce the release of > > Scilab 5.3.0 Beta 5 today. > > You can download it directly from Scilab website at: > > http://www.scilab.org/products/scilab/download/5.3.0-beta-5 > > > > Best Regards, > > > > ----------------------------------------------- > > The Scilab Consortium R&D Team > > ----------------------------------------------- > > Digiteo > > Domaine de Voluceau > > Rocquencourt - B.P. 105 > > 78153 Le Chesnay Cedex - France" > > > From calixte at contrib.scilab.org Thu Nov 25 10:35:06 2010 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Thu, 25 Nov 2010 10:35:06 +0100 Subject: [scilab-Users] Release of Scilab 5.3.0 - beta 5 In-Reply-To: <4CEE2CBD.2000704@limsi.fr> References: <4CED1B69.1050501@scilab.org> <4CEE2CBD.2000704@limsi.fr> Message-ID: <1290677706.15676.321.camel@Calixte-Dell> Le jeudi 25 novembre 2010 ? 10:30 +0100, Mathieu Dubois a ?crit : > Hello, > Hello Mathieu, > Under scinotes, the usual "middle click paste" didn't work anymore (it > was working with Beta 4). The usual keyboard shortcuts work. > > Is it a known bug or should I open a bug report? > You can report it... The way to copy/cut/paste has been modified to handle "paste in HTML". > Mathieu Calixte > > On 11/24/2010 03:04 PM, Simon GARESTE wrote: > > Dear all, > > > > The Scilab Consortium R&D Team is pleased to announce the release of > > Scilab 5.3.0 Beta 5 today. > > You can download it directly from Scilab website at: > > http://www.scilab.org/products/scilab/download/5.3.0-beta-5 > > > > Best Regards, > > > > ----------------------------------------------- > > The Scilab Consortium R&D Team > > ----------------------------------------------- > > Digiteo > > Domaine de Voluceau > > Rocquencourt - B.P. 105 > > 78153 Le Chesnay Cedex - France" > > > From frederic.jourdin at shom.fr Thu Nov 25 10:47:09 2010 From: frederic.jourdin at shom.fr (Frederic Jourdin) Date: Thu, 25 Nov 2010 10:47:09 +0100 Subject: [scilab-Users] min/max with NaN values In-Reply-To: <4CECF0FB.7060607@scilab.org> References: <4CECD6D0.2020609@shom.fr> <4CECEBB5.6040204@scilab.org> <4CECED35.8030101@limsi.fr> <4CECEEE1.9070503@scilab.org> <4CECF0FB.7060607@scilab.org> Message-ID: <4CEE309D.2040805@shom.fr> Micha?l Baudin a ?crit : > Noticed the small line at the end of the Matlab/min: "The min function > ignores NaNs.". This is not written in the help page Scilab/min, but I > guess that this is also true. > > Now, Matlab is more consistent : > > >> min([1 nan]) > ans = > 1 > >> min(1,nan) > ans = > 1 > > while Scilab is weird : > > Scilab: > > -->min([1 %nan]) > ans = > 1. > -->min(1,%nan) > ans = > Nan > > I think that you have found a 2 more bugs (that is, added with the bug > #7608), i.e. : > 1. nans are ignored by Scilab inside a matrix, but not across the > input arguments, > 2. this is not explicitely written in the help page. > I guess that the particular processing of Nans in the loop over the > arguments has just been forgotten. > > Would you mind to submit these bug report please ? OK I am gonna report 1 bug regarding "NaN argument propagates in min/max". I haven't read the convention you cited whether NaN should propagate or not when it is an argument, instead inside of a matrix. At least if it is to be the case it should be explicitely written in the help page with some examples. Fred > > Best regards, > > Micha?l Baudin > > Le 24/11/2010 11:54, Micha?l Baudin a ?crit : >> Ahah... >> >> In Scilab: >> >> -->min([1 2 3 %nan]) >> ans = >> 1. >> -->min(1,2,3,%nan) >> ans = >> Nan >> >> This is fun... >> >> In Matlab: >> >> >> min([1 2 3 nan]) >> ans = >> 1 >> >> min(1,2,3,nan) >> ??? Error using ==> min >> Too many input arguments. >> >> So Matlab does not support the y=min(x1,x2,x3) calling sequence, but >> Scilab do. On the other hand, Scilab results are weird with nans, at >> least. >> >> Regards, >> >> Micha?l >> >> Le 24/11/2010 11:47, Mathieu Dubois a ?crit : >>> On 11/24/2010 11:40 AM, Micha?l Baudin wrote: >>>> Hi, >>>> >>>> The expected result is actually the matrix of Nans. If you had >>>> found another result, that would have been a bug. Even more, we >>>> have similar automatic checks that this is so - see the following >>>> unit test : >>>> >>>> http://gitweb.scilab.org/?p=scilab.git;a=blob;f=scilab/modules/elementary_functions/tests/unit_tests/IEEEcompatibility.tst;h=778fc00d4833f54fce6324ac917bac725d6f9e19;hb=HEAD >>>> >>>> >>>> Notice that this test is mainly for +,-,*,/,sqrt, the operations >>>> which are specified by the IEEE754 standard. With respect to Nan, >>>> these tests says that "Nan on input, then Nan on output". In the >>>> IEEE754 standard, the authors use the term "Nan propagation". More >>>> informations on this topic are given by "Handbook of Floating Point >>>> Arithmetic", by Muller et al.. See the sections "2.3 - Exceptions" >>>> and "3.1.5 Exceptions specified by IEEE754-1985". >>> That sounds like a sane convention but then, just out of curiosity, >>> how do you explain that min([1 2 3 %nan]) returns 1? >>>> >>>> If you want to perform the computation without the nans, you may >>>> combine the "find" and "isnan" functions. For example, the statement: >>>> >>>> k = find(isnan(a)) >>>> >>>> you get the indices where a is a nan. Now, the statement: >>>> >>>> a(isnan(a))=0 >>>> >>>> sets to zero the entries where Nan is present. >>>> >>>> But be warned: Nans are *designed* to be propagated. That is, if >>>> your input data contains Nans, that means that some previous >>>> computations has already failed. The Nans should not be, in >>>> general, just ignored and thrown away. >>>> >>>> Best regards, >>>> >>>> Micha?l Baudin >>>> >>>> Le 24/11/2010 10:11, Frederic Jourdin a ?crit : >>>>> Hi all ! >>>>> if I run this: >>>>> >>>>> a= [ 1, %nan; 4, 4]; >>>>> b= [ %nan, 3; 3, 6]; >>>>> c= [ 2, 2; %nan, %nan]; >>>>> min( a, b, c) >>>>> >>>>> Scilab returns the following matrix: >>>>> NaN NaN >>>>> NaN NaN >>>>> >>>>> while the expected matrix should be: >>>>> 1 2 >>>>> 3 4 >>>>> >>>>> Why? >>>>> >>>>> thanks >>>>> Fred >>>>> >>>>> Scilab 5.3.0.beta3 on Linux >>>>> >>>> >>>> >>> >> >> > > > -- > 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 calixte at contrib.scilab.org Thu Nov 25 11:02:34 2010 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Thu, 25 Nov 2010 11:02:34 +0100 Subject: [scilab-Users] Release of Scilab 5.3.0 - beta 5 In-Reply-To: <1290677706.15676.321.camel@Calixte-Dell> References: <4CED1B69.1050501@scilab.org> <4CEE2CBD.2000704@limsi.fr> <1290677706.15676.321.camel@Calixte-Dell> Message-ID: <1290679354.15676.323.camel@Calixte-Dell> The fix for the bug has been put in the codereview: http://codereview.scilab.org/#change,2597 Calixte Le jeudi 25 novembre 2010 ? 10:35 +0100, Calixte Denizet a ?crit : > Le jeudi 25 novembre 2010 ? 10:30 +0100, Mathieu Dubois a ?crit : > > Hello, > > > > Hello Mathieu, > > > Under scinotes, the usual "middle click paste" didn't work anymore (it > > was working with Beta 4). The usual keyboard shortcuts work. > > > > Is it a known bug or should I open a bug report? > > > > You can report it... The way to copy/cut/paste has been modified to > handle "paste in HTML". > > > Mathieu > > Calixte > > > > > On 11/24/2010 03:04 PM, Simon GARESTE wrote: > > > Dear all, > > > > > > The Scilab Consortium R&D Team is pleased to announce the release of > > > Scilab 5.3.0 Beta 5 today. > > > You can download it directly from Scilab website at: > > > http://www.scilab.org/products/scilab/download/5.3.0-beta-5 > > > > > > Best Regards, > > > > > > ----------------------------------------------- > > > The Scilab Consortium R&D Team > > > ----------------------------------------------- > > > Digiteo > > > Domaine de Voluceau > > > Rocquencourt - B.P. 105 > > > 78153 Le Chesnay Cedex - France" > > > > > > > From mathieu.dubois at limsi.fr Thu Nov 25 11:15:48 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Thu, 25 Nov 2010 11:15:48 +0100 Subject: [scilab-Users] Release of Scilab 5.3.0 - beta 5 In-Reply-To: <1290679354.15676.323.camel@Calixte-Dell> References: <4CED1B69.1050501@scilab.org> <4CEE2CBD.2000704@limsi.fr> <1290677706.15676.321.camel@Calixte-Dell> <1290679354.15676.323.camel@Calixte-Dell> Message-ID: <4CEE3754.8000605@limsi.fr> Hmm you are faster than me: I just reported the bug (*Bug#*: 8465 ). Can bugzilla handle bus with a negative lifetime (closed before being opened :)? Mathieu On 11/25/2010 11:02 AM, Calixte Denizet wrote: > The fix for the bug has been put in the codereview: > > http://codereview.scilab.org/#change,2597 > > Calixte > > Le jeudi 25 novembre 2010 ? 10:35 +0100, Calixte Denizet a ?crit : > >> Le jeudi 25 novembre 2010 ? 10:30 +0100, Mathieu Dubois a ?crit : >> >>> Hello, >>> >>> >> Hello Mathieu, >> >> >>> Under scinotes, the usual "middle click paste" didn't work anymore (it >>> was working with Beta 4). The usual keyboard shortcuts work. >>> >>> Is it a known bug or should I open a bug report? >>> >>> >> You can report it... The way to copy/cut/paste has been modified to >> handle "paste in HTML". >> >> >>> Mathieu >>> >> Calixte >> >> >>> On 11/24/2010 03:04 PM, Simon GARESTE wrote: >>> >>>> Dear all, >>>> >>>> The Scilab Consortium R&D Team is pleased to announce the release of >>>> Scilab 5.3.0 Beta 5 today. >>>> You can download it directly from Scilab website at: >>>> http://www.scilab.org/products/scilab/download/5.3.0-beta-5 >>>> >>>> Best Regards, >>>> >>>> ----------------------------------------------- >>>> The Scilab Consortium R&D Team >>>> ----------------------------------------------- >>>> Digiteo >>>> Domaine de Voluceau >>>> Rocquencourt - B.P. 105 >>>> 78153 Le Chesnay Cedex - France" >>>> >>>> >>> >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From frederic.jourdin at shom.fr Thu Nov 25 14:47:48 2010 From: frederic.jourdin at shom.fr (Frederic Jourdin) Date: Thu, 25 Nov 2010 14:47:48 +0100 Subject: [scilab-Users] min/max with NaN values In-Reply-To: <4CEE309D.2040805@shom.fr> References: <4CECD6D0.2020609@shom.fr> <4CECEBB5.6040204@scilab.org> <4CECED35.8030101@limsi.fr> <4CECEEE1.9070503@scilab.org> <4CECF0FB.7060607@scilab.org> <4CEE309D.2040805@shom.fr> Message-ID: <4CEE6904.7070504@shom.fr> There are also inconsistencies even without NaNs involved. Scilab/min is Scilab specific in the sense that one can run min(x1,x2,x3) in Scilab. (it does not work in Matlab). But Scilab/nanmin seems to be Matlab specific ( like min(x1,x2) in Matlab). And the result is that Scilab/min and Scilab/nanmin are not consistent each other. For instance let's run in Scilab : -->min(1,2) ans = 1. -->min(1,2,3) ans = 1. -->nanmin(1,2) ans = 1. -->nanmin(1,2,3) !--error 58 Wrong number of input arguments: Arguments are : x orient From antoine.monmayrant at laas.fr Thu Nov 25 20:52:27 2010 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Thu, 25 Nov 2010 20:52:27 +0100 Subject: [scilab-Users] Re: cannot get any Scilab 5.x version starting on my Intel iMac In-Reply-To: <1290637842.5084.338.camel@losinj.inria.fr> References: <1290068134.7582.1490.camel@zlarin> <1290074185.4100.42.camel@korcula.inria.fr> <10BE9932-3ED1-486E-8D3E-963CF4AB60AB@pobox.com> <1290637842.5084.338.camel@losinj.inria.fr> Message-ID: <4CEEBE7B.2090009@laas.fr> Le 24/11/10 23:30, Sylvestre Ledru a ?crit : > Oh, a new Mac OS X bug! Youpi! :) > I don't know if you are the one who reported this bug: > http://bugzilla.scilab.org/show_bug.cgi?id=8460 > The conversation about this issue will continue on this bug report. > > Antoine, Scilab is supposed to run under Leopard (10.5) and Snow Leopard > (10.6). If you are experiencing an other issue that bug #8460, please > report a new bug. OK, I just check on scilab-branches-5.3-1290177191 and it seems to be the same bug: Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000002, 0x0000000000000000 Crashed Thread: 0 Dyld Error Message: unknown required load command 0x80000022 > Anyway, thanks for the feedback, it is appreciated. > Sylvestre > > On Wed, 2010-11-24 at 17:15 -0500, Jeff DuMonthier wrote: >> I've tried this and the 64 bit 1.6 is already at the top. >> >> Previous versions have hung. The Scilab icon changes to a generic Java icon after a few bounces and that's it until I kill it. I just tried the 5.3.0-beta-5 and that version crashes instead of hangs. I'm not sure if that's in improvement or not. Maybe, because at least I got an error message in the crash report which was this: >> >> Exception Type: EXC_BREAKPOINT (SIGTRAP) >> Exception Codes: 0x0000000000000002, 0x0000000000000000 >> Crashed Thread: 1 >> >> Dyld Error Message: >> Symbol not found: _libiconv_open >> Referenced from: /Users/jeff/Applications/scilab-5.3.0-beta-5.app/Contents/MacOS/lib/thirdparty//libintl.3.dylib >> Expected in: /Users/jeff/Applications/scilab-5.3.0-beta-5.app/Contents/MacOS/lib/thirdparty//libiconv.2.dylib >> >> On Nov 18, 2010, at 4:56 AM, Sylvestre Ledru wrote: >> >>> Le jeudi 18 novembre 2010 ? 09:51 +0000, Heinz Nabielek a ?crit : >>>> Sylvestre Ledru writes: >>>> >>>> >>>> Hello, >>>> >>>> Le mercredi 17 novembre 2010 ? 20:37 +0000, Heinz Nabielek a ?crit : >>>> SciLab and Mac friends: >>>> I cannot get any Scilab 5.x version starting on my Intel iMac 10.6.5. >>>> A Scilab 5.2 beta version had worked at one time, but not any more. >>>> Starting error messages are shown below. >>>> Help greatly appreciated. Heinz.................. >>>> >>>> We are aware of the recurring issues under Mac OS X. ............ >>>> I heard that if you go in the Java Preferences menu on >>>> your system andyou change the order of the JVM, it might fix your problem. >>>> >>>> Sylvestre >>>> >>>> >>>> I can see "Java Preferences now shows all discovered JVMs >>>> in a single list in the General tab". >>>> >>>> But, sorry, where do I find and change Java Preferences? >>> In the finder, search for an application called "Java Preferences" (in >>> French, it is "Pr?f?rences Java"). >>> You will see some implementations of Java. >>> Drag and drop the 1.6 64 bits on the top. >>> >>> It is my personal opinion but I found the way Apple is managing various >>> JVMs pretty bad. We are working on tackling these issues from Scilab but >>> since they are changing things regularly, it is hard to keep track... >>> >>> Sylvestre >>> PS: When you reply, please configure your mailer to add the ">". Thanks >>> >>> > From sam at cctech.co.in Fri Nov 26 06:54:49 2010 From: sam at cctech.co.in (Sam Mathew) Date: Fri, 26 Nov 2010 05:54:49 +0000 Subject: 3D display view: Spherical coordinates [alpha,theta] + lighting Message-ID: Hi everyone, Is it possible to save the spherical coordinates of the view {a.rotation_angles = [alpha,theta]} for a given view that we pivot the 3D plot to (using the in-built rotate icon available on the display window)? The basic problem is that I do not yet understand the convention used in SCILAB for azimuthal and inclination angles, and therefore am struggling to get images with the same view applied on several 3D plots. Also, I wanted to be able to see the crests and troughs of the surfaces generated by my function. The grid lines on the surface are surely helpful in this regard but since I have too many data points, the lines actually make my surfaces look quite dark. I found out the way with applying appropriate flags for getting rid of the lines on the surfaces so that you get a surface with a constant colour. But I am not able to see the crests and troughs of the graph then. I know from some CAD experience that lighting would solve the problem. Any suggestion how one can position the lights on the surfaces? Any other way for reducing the number of grid lines on the surface? Thanks for your time. Regards, Sam -- Asst. Manager, CFD Centre for Computational Technologies www.cctech.co.in Phone: +91 20 2552 1873 -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Fri Nov 26 08:41:40 2010 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Fri, 26 Nov 2010 08:41:40 +0100 Subject: [scilab-Users] 3D display view: Spherical coordinates [alpha,theta] + lighting In-Reply-To: References: Message-ID: <4CEF64B4.9070909@utc.fr> Le 26/11/2010 06:54, Sam Mathew a ?crit : > Hi everyone, > > Is it possible to save the spherical coordinates of the view > {a.rotation_angles = [alpha,theta]} for a given view that we pivot the > 3D plot to (using the in-built rotate icon available on the display > window)? The basic problem is that I do not yet understand the > convention used in SCILAB for azimuthal and inclination angles, and > therefore am struggling to get images with the same view applied on > several 3D plots. > > Also, I wanted to be able to see the crests and troughs of the > surfaces generated by my function. The grid lines on the surface are > surely helpful in this regard but since I have too many data points, > the lines actually make my surfaces look quite dark. I found out the > way with applying appropriate flags for getting rid of the lines on > the surfaces so that you get a surface with a constant colour. But I > am not able to see the crests and troughs of the graph then. I know > from some CAD experience that lighting would solve the problem. Any > suggestion how one can position the lights on the surfaces? Any other > way for reducing the number of grid lines on the surface? > > Thanks for your time. > > Regards, > > Sam > > -- > > Asst. Manager, CFD > Centre for Computational Technologies > www.cctech.co.in > Phone: +91 20 2552 1873 Hi, the plotlib module (available thru the Atoms module manager) allows to plot a surface with lighting (surfl and trisurfl functions). You can choose the direction of the light source, so this should solve your problem. Concerning your problem with view angles, the problem is that even if you force the view angles to be the same, you should also force the axis limits to have an equivalent view. S. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gadepall at yahoo.com Fri Nov 26 10:36:05 2010 From: gadepall at yahoo.com (Vishwanath Rao) Date: Fri, 26 Nov 2010 01:36:05 -0800 (PST) Subject: Labels vanish on export to eps Message-ID: <941397.65415.qm@web33807.mail.mud.yahoo.com> When I export an plot to .eps format, the x and y labels vanish. Is there are workaround? From calixte at contrib.scilab.org Fri Nov 26 10:37:51 2010 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Fri, 26 Nov 2010 10:37:51 +0100 Subject: [scilab-Users] Labels vanish on export to eps In-Reply-To: <941397.65415.qm@web33807.mail.mud.yahoo.com> References: <941397.65415.qm@web33807.mail.mud.yahoo.com> Message-ID: <1290764271.4839.43.camel@Calixte-Dell> Le vendredi 26 novembre 2010 ? 01:36 -0800, Vishwanath Rao a ?crit : > When I export an plot to .eps format, the x and y labels vanish. Is there are > workaround? > > Hello, Could you give an example of the plot you want to export ? What is the version of scilab you use, what is your OS ? Best regards Calixte > From gadepall at yahoo.com Fri Nov 26 11:22:00 2010 From: gadepall at yahoo.com (Vishwanath Rao) Date: Fri, 26 Nov 2010 02:22:00 -0800 (PST) Subject: [scilab-Users] Labels vanish on export to eps In-Reply-To: <1290764271.4839.43.camel@Calixte-Dell> References: <941397.65415.qm@web33807.mail.mud.yahoo.com> <1290764271.4839.43.camel@Calixte-Dell> Message-ID: <993216.46367.qm@web33801.mail.mud.yahoo.com> Following is the script that I am running. This is on Ubuntu Lucid 10.04 and Scilab version 5.2.1. I have installed plotlib begin script: clear; close; a = [1 -3]';//First point b = [-2 1]';//Second Point d = sqrt((a(1) - b(1))^2 + (a(2)-b(2))^2) //Distance between the points x_min= min(a(1),b(1)); x_max = max(a(1),b(1)); y_min= min(a(2),b(2)); y_max = max(a(2),b(2)); x = x_min:(x_max-x_min)/100:x_max; y = y_min:(y_max-y_min)/100:y_max; figure("BackgroundColor",[1 1 1]); plot(x,y) _axis([-5 5 -5 5]) _grid xlabel('X') ylabel('Y') end script regards,Vishwanath. ----- Original Message ---- From: Calixte Denizet To: users at lists.scilab.org Sent: Fri, 26 November, 2010 15:07:51 Subject: Re: [scilab-Users] Labels vanish on export to eps Le vendredi 26 novembre 2010 ? 01:36 -0800, Vishwanath Rao a ?crit : > When I export an plot to .eps format, the x and y labels vanish. Is there are > workaround? > > Hello, Could you give an example of the plot you want to export ? What is the version of scilab you use, what is your OS ? Best regards Calixte > -------------- next part -------------- An HTML attachment was scrubbed... URL: From calixte at contrib.scilab.org Fri Nov 26 11:29:23 2010 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Fri, 26 Nov 2010 11:29:23 +0100 Subject: [scilab-Users] Labels vanish on export to eps In-Reply-To: <993216.46367.qm@web33801.mail.mud.yahoo.com> References: <941397.65415.qm@web33807.mail.mud.yahoo.com> <1290764271.4839.43.camel@Calixte-Dell> <993216.46367.qm@web33801.mail.mud.yahoo.com> Message-ID: <1290767363.4839.58.camel@Calixte-Dell> Le vendredi 26 novembre 2010 ? 02:22 -0800, Vishwanath Rao a ?crit : > > Following is the script that I am running. This is on Ubuntu Lucid > 10.04 and Scilab version 5.2.1. I have installed plotlib > You use probably OpenJDK rather than Sun/Oracle java. If I'm right, could you switch to Sun java ? > > begin script: > > > clear; > close; > > > > > a = [1 -3]';//First point > b = [-2 1]';//Second Point > > > d = sqrt((a(1) - b(1))^2 + (a(2)-b(2))^2) //Distance between the > points > > > x_min= min(a(1),b(1)); > x_max = max(a(1),b(1)); > y_min= min(a(2),b(2)); > y_max = max(a(2),b(2)); > > > x = x_min:(x_max-x_min)/100:x_max; > y = y_min:(y_max-y_min)/100:y_max; > > > figure("BackgroundColor",[1 1 1]); > plot(x,y) > _axis([-5 5 -5 5]) > _grid > xlabel('X') > ylabel('Y') > > > end script > > > regards, > Vishwanath. > > > > ----- Original Message ---- > From: Calixte Denizet > To: users at lists.scilab.org > Sent: Fri, 26 November, 2010 15:07:51 > Subject: Re: [scilab-Users] Labels vanish on export to eps > > Le vendredi 26 novembre 2010 ? 01:36 -0800, Vishwanath Rao a ?crit : > > When I export an plot to .eps format, the x and y labels vanish. Is > there are > > workaround? > > > > > > Hello, > > Could you give an example of the plot you want to export ? What is the > version of scilab you use, what is your OS ? > > Best regards > > Calixte > > > > > > > > From gadepall at yahoo.com Fri Nov 26 11:41:21 2010 From: gadepall at yahoo.com (Vishwanath Rao) Date: Fri, 26 Nov 2010 02:41:21 -0800 (PST) Subject: [scilab-Users] Labels vanish on export to eps In-Reply-To: <1290767363.4839.58.camel@Calixte-Dell> References: <941397.65415.qm@web33807.mail.mud.yahoo.com> <1290764271.4839.43.camel@Calixte-Dell> <993216.46367.qm@web33801.mail.mud.yahoo.com> <1290767363.4839.58.camel@Calixte-Dell> Message-ID: <568912.42500.qm@web33803.mail.mud.yahoo.com> How to switch to Sun java? From: Calixte Denizet To: users at lists.scilab.org Sent: Fri, 26 November, 2010 15:59:23 Subject: Re: [scilab-Users] Labels vanish on export to eps Le vendredi 26 novembre 2010 ? 02:22 -0800, Vishwanath Rao a ?crit : > > Following is the script that I am running. This is on Ubuntu Lucid > 10.04 and Scilab version 5.2.1. I have installed plotlib > You use probably OpenJDK rather than Sun/Oracle java. If I'm right, could you switch to Sun java ? > > begin script: > > > clear; > close; > > > > > a = [1 -3]';//First point > b = [-2 1]';//Second Point > > > d = sqrt((a(1) - b(1))^2 + (a(2)-b(2))^2) //Distance between the > points > > > x_min= min(a(1),b(1)); > x_max = max(a(1),b(1)); > y_min= min(a(2),b(2)); > y_max = max(a(2),b(2)); > > > x = x_min:(x_max-x_min)/100:x_max; > y = y_min:(y_max-y_min)/100:y_max; > > > figure("BackgroundColor",[1 1 1]); > plot(x,y) > _axis([-5 5 -5 5]) > _grid > xlabel('X') > ylabel('Y') > > > end script > > > regards, > Vishwanath. > > > > ----- Original Message ---- > From: Calixte Denizet > To: users at lists.scilab.org > Sent: Fri, 26 November, 2010 15:07:51 > Subject: Re: [scilab-Users] Labels vanish on export to eps > > Le vendredi 26 novembre 2010 ? 01:36 -0800, Vishwanath Rao a ?crit : > > When I export an plot to .eps format, the x and y labels vanish. Is > there are > > workaround? > > > > > > Hello, > > Could you give an example of the plot you want to export ? What is the > version of scilab you use, what is your OS ? > > Best regards > > Calixte > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Fri Nov 26 11:46:56 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 26 Nov 2010 11:46:56 +0100 Subject: [scilab-Users] Labels vanish on export to eps In-Reply-To: <568912.42500.qm@web33803.mail.mud.yahoo.com> References: <941397.65415.qm@web33807.mail.mud.yahoo.com> <1290764271.4839.43.camel@Calixte-Dell> <993216.46367.qm@web33801.mail.mud.yahoo.com> <1290767363.4839.58.camel@Calixte-Dell> <568912.42500.qm@web33803.mail.mud.yahoo.com> Message-ID: <1290768416.9264.826.camel@zlarin> Try aptitude install sun-java6-jre JAVA_HOME=/usr//lib/jvm/java-6-sun/ scilab Sylvestre Le vendredi 26 novembre 2010 ? 02:41 -0800, Vishwanath Rao a ?crit : > > How to switch to Sun java? > > > From: Calixte Denizet > To: users at lists.scilab.org > Sent: Fri, 26 November, 2010 15:59:23 > Subject: Re: [scilab-Users] Labels vanish on export to eps > > Le vendredi 26 novembre 2010 ? 02:22 -0800, Vishwanath Rao a ?crit : > > > > Following is the script that I am running. This is on Ubuntu Lucid > > 10.04 and Scilab version 5.2.1. I have installed plotlib > > > > You use probably OpenJDK rather than Sun/Oracle java. If I'm right, > could you switch to Sun java ? > > > > > begin script: > > > > > > clear; > > close; > > > > > > > > > > a = [1 -3]';//First point > > b = [-2 1]';//Second Point > > > > > > d = sqrt((a(1) - b(1))^2 + (a(2)-b(2))^2) //Distance between the > > points > > > > > > x_min= min(a(1),b(1)); > > x_max = max(a(1),b(1)); > > y_min= min(a(2),b(2)); > > y_max = max(a(2),b(2)); > > > > > > x = x_min:(x_max-x_min)/100:x_max; > > y = y_min:(y_max-y_min)/100:y_max; > > > > > > figure("BackgroundColor",[1 1 1]); > > plot(x,y) > > _axis([-5 5 -5 5]) > > _grid > > xlabel('X') > > ylabel('Y') > > > > > > end script > > > > > > regards, > > Vishwanath. > > > > > > > > ----- Original Message ---- > > From: Calixte Denizet > > To: users at lists.scilab.org > > Sent: Fri, 26 November, 2010 15:07:51 > > Subject: Re: [scilab-Users] Labels vanish on export to eps > > > > Le vendredi 26 novembre 2010 ? 01:36 -0800, Vishwanath Rao a ?crit : > > > When I export an plot to .eps format, the x and y labels vanish. > Is > > there are > > > workaround? > > > > > > > > > > Hello, > > > > Could you give an example of the plot you want to export ? What is > the > > version of scilab you use, what is your OS ? > > > > Best regards > > > > Calixte > > > > > > > > > > > > > > > > > > > > -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From sam at cctech.co.in Fri Nov 26 12:33:16 2010 From: sam at cctech.co.in (Sam Mathew) Date: Fri, 26 Nov 2010 17:03:16 +0530 Subject: [scilab-Users] 3D display view: Spherical coordinates [alpha,theta] + lighting In-Reply-To: <4CEF64B4.9070909@utc.fr> References: <4CEF64B4.9070909@utc.fr> Message-ID: Thanks St?phane, I tried to install the library online on 5.3 beta 4, but it doesn't work. But on the 5.2.2 version it did work. Is there any problem with 5.3 beta 4 for installing atoms modules? Besides, as I am not yet very conversant with SCILAB, I don't know how to access help for the new toolboxes after installation! I would like to colour my surfaces with variable colours depending on the value they represent. I guess the help/demo/examples for plotlib would help much. How can one access it? Regards, Sam 2010/11/26 St?phane Mottelet > Hi, > > the plotlib module (available thru the Atoms module manager) allows > to plot a surface with lighting (surfl and trisurfl functions). You can > choose > the direction of the light source, so this should solve your problem. > > Concerning your problem with view angles, the problem is that even if you > force the view angles to be the same, you should also force the axis limits > to have an equivalent view. > > > S. > -- Asst. Manager, CFD Centre for Computational Technologies www.cctech.co.in Phone: +91 20 2552 1873 -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Fri Nov 26 13:35:00 2010 From: stephane.mottelet at utc.fr (Stephane Mottelet) Date: Fri, 26 Nov 2010 13:35:00 +0100 Subject: [scilab-Users] 3D display view: Spherical coordinates [alpha,theta] + lighting In-Reply-To: References: <4CEF64B4.9070909@utc.fr> Message-ID: <20101126133500.16486rdiv5cox3sw@webmail.utc.fr> Sam Mathew a ?crit?: > Thanks St?phane, > > I tried to install the library online on 5.3 beta 4, > but it doesn't work. the installation process or the plotlib itself ? Be sure to install the lastest version (0.42). > But on the 5.2.2 version it did work. Is there any problem with 5.3 beta 4 > for installing atoms modules? > > Besides, as I am not yet very conversant with SCILAB, I don't know how to > access help for the new toolboxes after installation! > > I would like to colour my surfaces with variable colours depending on the > value they represent. I guess the help/demo/examples for plotlib would help > much. How can one access it? in the demo menu. If you want to copy/paste demos code, type (once for all at the beginning of scilab session) --> plotlibmode or put it in your .scilab S. > > Regards, > > Sam > > > 2010/11/26 St?phane Mottelet > >> Hi, >> >> the plotlib module (available thru the Atoms module manager) allows >> to plot a surface with lighting (surfl and trisurfl functions). You can >> choose >> the direction of the light source, so this should solve your problem. >> >> Concerning your problem with view angles, the problem is that even if you >> force the view angles to be the same, you should also force the axis limits >> to have an equivalent view. >> >> >> S. >> > > > > -- > > Asst. Manager, CFD > Centre for Computational Technologies > www.cctech.co.in > Phone: +91 20 2552 1873 > From antoine.monmayrant at laas.fr Fri Nov 26 13:49:44 2010 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Fri, 26 Nov 2010 13:49:44 +0100 Subject: [scilab-Users] 3D display view: Spherical coordinates [alpha,theta] + lighting In-Reply-To: <20101126133500.16486rdiv5cox3sw@webmail.utc.fr> References: <4CEF64B4.9070909@utc.fr> <20101126133500.16486rdiv5cox3sw@webmail.utc.fr> Message-ID: <4CEFACE8.1070507@laas.fr> Le 26/11/2010 13:35, Stephane Mottelet a ?crit : > Sam Mathew a ?crit : > >> Thanks St?phane, >> >> I tried to install the library online on 5.3 beta 4, >> but it doesn't work. > > the installation process or the plotlib itself ? Be sure to install > the lastest version (0.42). > >> But on the 5.2.2 version it did work. Is there any problem with 5.3 >> beta 4 >> for installing atoms modules? >> >> Besides, as I am not yet very conversant with SCILAB, I don't know >> how to >> access help for the new toolboxes after installation! >> >> I would like to colour my surfaces with variable colours depending on >> the >> value they represent. Last time I tried plotlib, I didn't success in getting both color as a function of data and shadow/lighting. >> I guess the help/demo/examples for plotlib would help >> much. How can one access it? > > in the demo menu. If you want to copy/paste demos code, type (once for > all > at the beginning of scilab session) > > --> plotlibmode > > or put it in your .scilab > > S. > >> >> Regards, >> >> Sam >> >> >> 2010/11/26 St?phane Mottelet >> >>> Hi, >>> >>> the plotlib module (available thru the Atoms module manager) allows >>> to plot a surface with lighting (surfl and trisurfl functions). You can >>> choose >>> the direction of the light source, so this should solve your problem. >>> >>> Concerning your problem with view angles, the problem is that even >>> if you >>> force the view angles to be the same, you should also force the axis >>> limits >>> to have an equivalent view. >>> >>> >>> S. >>> >> >> >> >> -- >> >> Asst. Manager, CFD >> Centre for Computational Technologies >> www.cctech.co.in >> Phone: +91 20 2552 1873 >> > > > -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche 31077 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoine.monmayrant at laas.fr permanent email : antoine.monmayrant at polytechnique.org +++++++++++++++++++++++++++++++++++++++++++++++++++++++ From gadepall at yahoo.com Fri Nov 26 14:03:46 2010 From: gadepall at yahoo.com (Vishwanath Rao) Date: Fri, 26 Nov 2010 05:03:46 -0800 (PST) Subject: [scilab-Users] Labels vanish on export to eps In-Reply-To: <1290768416.9264.826.camel@zlarin> References: <941397.65415.qm@web33807.mail.mud.yahoo.com> <1290764271.4839.43.camel@Calixte-Dell> <993216.46367.qm@web33801.mail.mud.yahoo.com> <1290767363.4839.58.camel@Calixte-Dell> <568912.42500.qm@web33803.mail.mud.yahoo.com> <1290768416.9264.826.camel@zlarin> Message-ID: <364640.68850.qm@web33807.mail.mud.yahoo.com> Thanks, this works. I tried putting this command in /usr/share/applications/scilab.desktop in the line Exec=JAVA_HOME=/usr/lib/jvm/java-6-sun/ scilab so as to launch directly without the console. But it did not help. Any pointers? thanks, Vishwanath. ________________________________ From: Sylvestre Ledru To: users at lists.scilab.org Sent: Fri, 26 November, 2010 16:16:56 Subject: Re: [scilab-Users] Labels vanish on export to eps Try aptitude install sun-java6-jre JAVA_HOME=/usr//lib/jvm/java-6-sun/ scilab Sylvestre Le vendredi 26 novembre 2010 ? 02:41 -0800, Vishwanath Rao a ?crit : > > How to switch to Sun java? > > > From: Calixte Denizet > To: users at lists.scilab.org > Sent: Fri, 26 November, 2010 15:59:23 > Subject: Re: [scilab-Users] Labels vanish on export to eps > > Le vendredi 26 novembre 2010 ? 02:22 -0800, Vishwanath Rao a ?crit : > > > > Following is the script that I am running. This is on Ubuntu Lucid > > 10.04 and Scilab version 5.2.1. I have installed plotlib > > > > You use probably OpenJDK rather than Sun/Oracle java. If I'm right, > could you switch to Sun java ? > > > > > begin script: > > > > > > clear; > > close; > > > > > > > > > > a = [1 -3]';//First point > > b = [-2 1]';//Second Point > > > > > > d = sqrt((a(1) - b(1))^2 + (a(2)-b(2))^2) //Distance between the > > points > > > > > > x_min= min(a(1),b(1)); > > x_max = max(a(1),b(1)); > > y_min= min(a(2),b(2)); > > y_max = max(a(2),b(2)); > > > > > > x = x_min:(x_max-x_min)/100:x_max; > > y = y_min:(y_max-y_min)/100:y_max; > > > > > > figure("BackgroundColor",[1 1 1]); > > plot(x,y) > > _axis([-5 5 -5 5]) > > _grid > > xlabel('X') > > ylabel('Y') > > > > > > end script > > > > > > regards, > > Vishwanath. > > > > > > > > ----- Original Message ---- > > From: Calixte Denizet > > To: users at lists.scilab.org > > Sent: Fri, 26 November, 2010 15:07:51 > > Subject: Re: [scilab-Users] Labels vanish on export to eps > > > > Le vendredi 26 novembre 2010 ? 01:36 -0800, Vishwanath Rao a ?crit : > > > When I export an plot to .eps format, the x and y labels vanish. > Is > > there are > > > workaround? > > > > > > > > > > Hello, > > > > Could you give an example of the plot you want to export ? What is > the > > version of scilab you use, what is your OS ? > > > > Best regards > > > > Calixte > > > > > > > > > > > > > > > > > > > > -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Fri Nov 26 14:10:43 2010 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Fri, 26 Nov 2010 14:10:43 +0100 Subject: [scilab-Users] 3D display view: Spherical coordinates [alpha,theta] + lighting In-Reply-To: <4CEFACE8.1070507@laas.fr> References: <4CEF64B4.9070909@utc.fr> <20101126133500.16486rdiv5cox3sw@webmail.utc.fr> <4CEFACE8.1070507@laas.fr> Message-ID: <4CEFB1D3.3070907@utc.fr> Le 26/11/10 13:49, Antoine Monmayrant a ?crit : > Le 26/11/2010 13:35, Stephane Mottelet a ?crit : >> Sam Mathew a ?crit : >> >>> Thanks St?phane, >>> >>> I tried to install the library online on 5.3 beta 4, >>> but it doesn't work. >> >> the installation process or the plotlib itself ? Be sure to install >> the lastest version (0.42). >> >>> But on the 5.2.2 version it did work. Is there any problem with 5.3 >>> beta 4 >>> for installing atoms modules? >>> >>> Besides, as I am not yet very conversant with SCILAB, I don't know >>> how to >>> access help for the new toolboxes after installation! >>> >>> I would like to colour my surfaces with variable colours depending >>> on the >>> value they represent. > Last time I tried plotlib, I didn't success in getting both color as a > function of data and shadow/lighting. Not my fault : ask the Scilab team to implement a TrueColor visual ! S. >>> I guess the help/demo/examples for plotlib would help >>> much. How can one access it? >> >> in the demo menu. If you want to copy/paste demos code, type (once >> for all >> at the beginning of scilab session) >> >> --> plotlibmode >> >> or put it in your .scilab >> >> S. >> >>> >>> Regards, >>> >>> Sam >>> >>> >>> 2010/11/26 St?phane Mottelet >>> >>>> Hi, >>>> >>>> the plotlib module (available thru the Atoms module manager) allows >>>> to plot a surface with lighting (surfl and trisurfl functions). You >>>> can >>>> choose >>>> the direction of the light source, so this should solve your problem. >>>> >>>> Concerning your problem with view angles, the problem is that even >>>> if you >>>> force the view angles to be the same, you should also force the >>>> axis limits >>>> to have an equivalent view. >>>> >>>> >>>> S. >>>> >>> >>> >>> >>> -- >>> >>> Asst. Manager, CFD >>> Centre for Computational Technologies >>> www.cctech.co.in >>> Phone: +91 20 2552 1873 >>> >> >> >> > > From antoine.monmayrant at laas.fr Fri Nov 26 14:58:28 2010 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Fri, 26 Nov 2010 14:58:28 +0100 Subject: [scilab-Users] 3D display view: Spherical coordinates [alpha,theta] + lighting In-Reply-To: <4CEFB1D3.3070907@utc.fr> References: <4CEF64B4.9070909@utc.fr> <20101126133500.16486rdiv5cox3sw@webmail.utc.fr> <4CEFACE8.1070507@laas.fr> <4CEFB1D3.3070907@utc.fr> Message-ID: <4CEFBD04.5080206@laas.fr> Le 26/11/2010 14:10, St?phane Mottelet a ?crit : > Le 26/11/10 13:49, Antoine Monmayrant a ?crit : >> Le 26/11/2010 13:35, Stephane Mottelet a ?crit : >>> Sam Mathew a ?crit : >>> >>>> Thanks St?phane, >>>> >>>> I tried to install the library online on 5.3 beta 4, >>>> but it doesn't work. >>> >>> the installation process or the plotlib itself ? Be sure to install >>> the lastest version (0.42). >>> >>>> But on the 5.2.2 version it did work. Is there any problem with 5.3 >>>> beta 4 >>>> for installing atoms modules? >>>> >>>> Besides, as I am not yet very conversant with SCILAB, I don't know >>>> how to >>>> access help for the new toolboxes after installation! >>>> >>>> I would like to colour my surfaces with variable colours depending >>>> on the >>>> value they represent. >> Last time I tried plotlib, I didn't success in getting both color as >> a function of data and shadow/lighting. > Not my fault : ask the Scilab team to implement a TrueColor visual ! > > S. > No intention to offence you. Your module is nice, it was just a remark... > >>>> I guess the help/demo/examples for plotlib would help >>>> much. How can one access it? >>> >>> in the demo menu. If you want to copy/paste demos code, type (once >>> for all >>> at the beginning of scilab session) >>> >>> --> plotlibmode >>> >>> or put it in your .scilab >>> >>> S. >>> >>>> >>>> Regards, >>>> >>>> Sam >>>> >>>> >>>> 2010/11/26 St?phane Mottelet >>>> >>>>> Hi, >>>>> >>>>> the plotlib module (available thru the Atoms module manager) allows >>>>> to plot a surface with lighting (surfl and trisurfl functions). >>>>> You can >>>>> choose >>>>> the direction of the light source, so this should solve your problem. >>>>> >>>>> Concerning your problem with view angles, the problem is that even >>>>> if you >>>>> force the view angles to be the same, you should also force the >>>>> axis limits >>>>> to have an equivalent view. >>>>> >>>>> >>>>> S. >>>>> >>>> >>>> >>>> >>>> -- >>>> >>>> Asst. Manager, CFD >>>> Centre for Computational Technologies >>>> www.cctech.co.in >>>> Phone: +91 20 2552 1873 >>>> >>> >>> >>> >> >> > -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche 31077 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoine.monmayrant at laas.fr permanent email : antoine.monmayrant at polytechnique.org +++++++++++++++++++++++++++++++++++++++++++++++++++++++ From paul.carrico at esterline.com Fri Nov 26 15:39:42 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Fri, 26 Nov 2010 15:39:42 +0100 Subject: record a path Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFCF@exchsrv.AUXITROL1> All is there a better way (clever one) to record a path than the following method (I'm under windows os) dos('pwd > info.dat'); [LECT,err] = mopen('info.dat') ; record = mgetl(LECT) ; path_ = string(record) dos('del info.dat'); I've a look in dir(), listfiles() .... Regards Paul -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Fri Nov 26 15:47:32 2010 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Fri, 26 Nov 2010 15:47:32 +0100 Subject: [scilab-Users] 3D display view: Spherical coordinates [alpha,theta] + lighting In-Reply-To: <4CEFBD04.5080206@laas.fr> References: <4CEF64B4.9070909@utc.fr> <20101126133500.16486rdiv5cox3sw@webmail.utc.fr> <4CEFACE8.1070507@laas.fr> <4CEFB1D3.3070907@utc.fr> <4CEFBD04.5080206@laas.fr> Message-ID: <4CEFC884.6050308@utc.fr> Le 26/11/2010 14:58, Antoine Monmayrant a ?crit : > Le 26/11/2010 14:10, St?phane Mottelet a ?crit : >> Le 26/11/10 13:49, Antoine Monmayrant a ?crit : >>> Le 26/11/2010 13:35, Stephane Mottelet a ?crit : >>>> Sam Mathew a ?crit : >>>> >>>>> Thanks St?phane, >>>>> >>>>> I tried to install the library online on 5.3 beta 4, >>>>> but it doesn't work. >>>> >>>> the installation process or the plotlib itself ? Be sure to install >>>> the lastest version (0.42). >>>> >>>>> But on the 5.2.2 version it did work. Is there any problem with >>>>> 5.3 beta 4 >>>>> for installing atoms modules? >>>>> >>>>> Besides, as I am not yet very conversant with SCILAB, I don't know >>>>> how to >>>>> access help for the new toolboxes after installation! >>>>> >>>>> I would like to colour my surfaces with variable colours depending >>>>> on the >>>>> value they represent. >>> Last time I tried plotlib, I didn't success in getting both color as >>> a function of data and shadow/lighting. >> Not my fault : ask the Scilab team to implement a TrueColor visual ! >> >> S. >> > No intention to offence you. > Your module is nice, it was just a remark... no dammage. It's just a pity that the underlying layer *is* TrueColor and that the user does not have access to it. S. > >> >>>>> I guess the help/demo/examples for plotlib would help >>>>> much. How can one access it? >>>> >>>> in the demo menu. If you want to copy/paste demos code, type (once >>>> for all >>>> at the beginning of scilab session) >>>> >>>> --> plotlibmode >>>> >>>> or put it in your .scilab >>>> >>>> S. >>>> >>>>> >>>>> Regards, >>>>> >>>>> Sam >>>>> >>>>> >>>>> 2010/11/26 St?phane Mottelet >>>>> >>>>>> Hi, >>>>>> >>>>>> the plotlib module (available thru the Atoms module manager) allows >>>>>> to plot a surface with lighting (surfl and trisurfl functions). >>>>>> You can >>>>>> choose >>>>>> the direction of the light source, so this should solve your >>>>>> problem. >>>>>> >>>>>> Concerning your problem with view angles, the problem is that >>>>>> even if you >>>>>> force the view angles to be the same, you should also force the >>>>>> axis limits >>>>>> to have an equivalent view. >>>>>> >>>>>> >>>>>> S. >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> >>>>> Asst. Manager, CFD >>>>> Centre for Computational Technologies >>>>> www.cctech.co.in >>>>> Phone: +91 20 2552 1873 >>>>> >>>> >>>> >>>> >>> >>> >> > > From calixte at contrib.scilab.org Fri Nov 26 15:48:03 2010 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Fri, 26 Nov 2010 15:48:03 +0100 Subject: [scilab-Users] record a path In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFCF@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFCF@exchsrv.AUXITROL1> Message-ID: <1290782883.32000.2.camel@Calixte-Dell> Hello Paul, Maybe with pwd()... Calixte Le vendredi 26 novembre 2010 ? 15:39 +0100, Carrico, Paul a ?crit : > All > > is there a better way (clever one) to record a path than the following > method (I'm under windows os) > > dos('pwd > info.dat'); [LECT,err] = mopen('info.dat') ; record = > mgetl(LECT) ; path_ = string(record) > dos('del info.dat'); > > I've a look in dir(), listfiles() .... > > Regards > > Paul > -------------------------------------------------------------------------------- > > > Le prsent mail et ses pices jointes sont confidentiels et destins la personne ou aux personnes vise(s) ci-dessus. Si vous avez reu cet e-mail par erreur, veuillez contacter immdiatement l'expditeur et effacer le message de votre systme. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. From mathieu.dubois at limsi.fr Fri Nov 26 15:53:52 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Fri, 26 Nov 2010 15:53:52 +0100 Subject: [scilab-Users] record a path In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFCF@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFCF@exchsrv.AUXITROL1> Message-ID: <4CEFCA00.8020705@limsi.fr> Hello, AFAI you can use the scilab pwd() function which gives you scilab current working directory. And you can change scilab working directory with cd(). HTH, Mathieu On 11/26/2010 03:39 PM, Carrico, Paul wrote: > All > is there a better way (clever one) to record a path than the following > method (I'm under windows os) > dos('pwd > info.dat'); [LECT,err] = mopen('info.dat') ; record = > mgetl(LECT) ; path_ = string(record) > dos('del info.dat'); > I've a look in dir(), listfiles() .... > Regards > Paul > -------------------------------------------------------------------------------- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Fri Nov 26 15:53:58 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Fri, 26 Nov 2010 15:53:58 +0100 Subject: [scilab-Users] record a path In-Reply-To: <1290782883.32000.2.camel@Calixte-Dell> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFCF@exchsrv.AUXITROL1> <1290782883.32000.2.camel@Calixte-Dell> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFD0@exchsrv.AUXITROL1> Of course ......... :-((((((((((((((((((((( thanks -----Message d'origine----- De : Calixte Denizet [mailto:calixte at contrib.scilab.org] Envoy? : vendredi 26 novembre 2010 15:48 ? : users at lists.scilab.org Objet : Re: [scilab-Users] record a path Hello Paul, Maybe with pwd()... Calixte Le vendredi 26 novembre 2010 ? 15:39 +0100, Carrico, Paul a ?crit : > All > > is there a better way (clever one) to record a path than the following > method (I'm under windows os) > > dos('pwd > info.dat'); [LECT,err] = mopen('info.dat') ; record = > mgetl(LECT) ; path_ = string(record) > dos('del info.dat'); > > I've a look in dir(), listfiles() .... > > Regards > > Paul > -------------------------------------------------------------------------------- > > > Le prsent mail et ses pices jointes sont confidentiels et destins la personne ou aux personnes vise(s) ci-dessus. Si vous avez reu cet e-mail par erreur, veuillez contacter immdiatement l'expditeur et effacer le message de votre systme. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. From paul.carrico at esterline.com Fri Nov 26 15:56:30 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Fri, 26 Nov 2010 15:56:30 +0100 Subject: [scilab-Users] record a path In-Reply-To: <4CEFCA00.8020705@limsi.fr> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFCF@exchsrv.AUXITROL1> <4CEFCA00.8020705@limsi.fr> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFD1@exchsrv.AUXITROL1> thanks everybody as well as futur one ! ________________________________ De : Mathieu Dubois [mailto:mathieu.dubois at limsi.fr] Envoy? : vendredi 26 novembre 2010 15:54 ? : users at lists.scilab.org Objet : Re: [scilab-Users] record a path Hello, AFAI you can use the scilab pwd() function which gives you scilab current working directory. And you can change scilab working directory with cd(). HTH, Mathieu On 11/26/2010 03:39 PM, Carrico, Paul wrote: All is there a better way (clever one) to record a path than the following method (I'm under windows os) dos('pwd > info.dat'); [LECT,err] = mopen('info.dat') ; record = mgetl(LECT) ; path_ = string(record) dos('del info.dat'); I've a look in dir(), listfiles() .... Regards Paul -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.dubois at limsi.fr Fri Nov 26 16:05:46 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Fri, 26 Nov 2010 16:05:46 +0100 Subject: [scilab-Users] Labels vanish on export to eps In-Reply-To: <364640.68850.qm@web33807.mail.mud.yahoo.com> References: <941397.65415.qm@web33807.mail.mud.yahoo.com> <1290764271.4839.43.camel@Calixte-Dell> <993216.46367.qm@web33801.mail.mud.yahoo.com> <1290767363.4839.58.camel@Calixte-Dell> <568912.42500.qm@web33803.mail.mud.yahoo.com> <1290768416.9264.826.camel@zlarin> <364640.68850.qm@web33807.mail.mud.yahoo.com> Message-ID: <4CEFCCCA.9060302@limsi.fr> Hello, You can try to use Ubuntu (Debian) "alternatives" system. It is a way to choose between packages that provides the same functionnality (like sun-jre and OpenJDK). This way all your apps will use the sun-jre. >From https://help.ubuntu.com/6.06/ubuntu/desktopguide/C/programming.html you can see that the command is: sudo update-alternatives --config java Disclaimer: I didn't try this for Java. HTH, Mathieu On 11/26/2010 02:03 PM, Vishwanath Rao wrote: > > Thanks, this works. I tried putting this command in > /usr/share/applications/scilab.desktop in the line > Exec=JAVA_HOME=/usr/lib/jvm/java-6-sun/ scilab so as to launch > directly without the console. But it did not help. Any pointers? > > thanks, > Vishwanath. > > ------------------------------------------------------------------------ > *From:* Sylvestre Ledru > *To:* users at lists.scilab.org > *Sent:* Fri, 26 November, 2010 16:16:56 > *Subject:* Re: [scilab-Users] Labels vanish on export to eps > > Try > aptitude install sun-java6-jre > JAVA_HOME=/usr//lib/jvm/java-6-sun/ scilab > > Sylvestre > > Le vendredi 26 novembre 2010 ? 02:41 -0800, Vishwanath Rao a ?crit : > > > > How to switch to Sun java? > > > > > > From: Calixte Denizet > > > To: users at lists.scilab.org > > Sent: Fri, 26 November, 2010 15:59:23 > > Subject: Re: [scilab-Users] Labels vanish on export to eps > > > > Le vendredi 26 novembre 2010 ? 02:22 -0800, Vishwanath Rao a ?crit : > > > > > > Following is the script that I am running. This is on Ubuntu Lucid > > > 10.04 and Scilab version 5.2.1. I have installed plotlib > > > > > > > You use probably OpenJDK rather than Sun/Oracle java. If I'm right, > > could you switch to Sun java ? > > > > > > > > begin script: > > > > > > > > > clear; > > > close; > > > > > > > > > > > > > > > a = [1 -3]';//First point > > > b = [-2 1]';//Second Point > > > > > > > > > d = sqrt((a(1) - b(1))^2 + (a(2)-b(2))^2) //Distance between the > > > points > > > > > > > > > x_min= min(a(1),b(1)); > > > x_max = max(a(1),b(1)); > > > y_min= min(a(2),b(2)); > > > y_max = max(a(2),b(2)); > > > > > > > > > x = x_min:(x_max-x_min)/100:x_max; > > > y = y_min:(y_max-y_min)/100:y_max; > > > > > > > > > figure("BackgroundColor",[1 1 1]); > > > plot(x,y) > > > _axis([-5 5 -5 5]) > > > _grid > > > xlabel('X') > > > ylabel('Y') > > > > > > > > > end script > > > > > > > > > regards, > > > Vishwanath. > > > > > > > > > > > > ----- Original Message ---- > > > From: Calixte Denizet > > > > To: users at lists.scilab.org > > > Sent: Fri, 26 November, 2010 15:07:51 > > > Subject: Re: [scilab-Users] Labels vanish on export to eps > > > > > > Le vendredi 26 novembre 2010 ? 01:36 -0800, Vishwanath Rao a ?crit : > > > > When I export an plot to .eps format, the x and y labels vanish. > > Is > > > there are > > > > workaround? > > > > > > > > > > > > > > Hello, > > > > > > Could you give an example of the plot you want to export ? What is > > the > > > version of scilab you use, what is your OS ? > > > > > > Best regards > > > > > > Calixte > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > ------------------------- > Sylvestre Ledru > ------------------------- > The Scilab Consortium > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay Cedex > France > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.dubois at limsi.fr Fri Nov 26 16:13:08 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Fri, 26 Nov 2010 16:13:08 +0100 Subject: [scilab-Users] Labels vanish on export to eps In-Reply-To: <4CEFCCCA.9060302@limsi.fr> References: <941397.65415.qm@web33807.mail.mud.yahoo.com> <1290764271.4839.43.camel@Calixte-Dell> <993216.46367.qm@web33801.mail.mud.yahoo.com> <1290767363.4839.58.camel@Calixte-Dell> <568912.42500.qm@web33803.mail.mud.yahoo.com> <1290768416.9264.826.camel@zlarin> <364640.68850.qm@web33807.mail.mud.yahoo.com> <4CEFCCCA.9060302@limsi.fr> Message-ID: <4CEFCE84.2090809@limsi.fr> A simpler alternative is to put export JAVA_HOME=/usr/lib/jvm/java-6-sun/ in your profile (.bashrc, .xsessionrc, ...). On 11/26/2010 04:05 PM, Mathieu Dubois wrote: > Hello, > > You can try to use Ubuntu (Debian) "alternatives" system. It is a way > to choose between packages that provides the same functionnality (like > sun-jre and OpenJDK). This way all your apps will use the sun-jre. > > From > https://help.ubuntu.com/6.06/ubuntu/desktopguide/C/programming.html > you can see that the command is: > sudo update-alternatives --config java > > Disclaimer: I didn't try this for Java. > > HTH, > Mathieu > > On 11/26/2010 02:03 PM, Vishwanath Rao wrote: >> >> Thanks, this works. I tried putting this command in >> /usr/share/applications/scilab.desktop in the line >> Exec=JAVA_HOME=/usr/lib/jvm/java-6-sun/ scilab so as to launch >> directly without the console. But it did not help. Any pointers? >> >> thanks, >> Vishwanath. >> >> ------------------------------------------------------------------------ >> *From:* Sylvestre Ledru >> *To:* users at lists.scilab.org >> *Sent:* Fri, 26 November, 2010 16:16:56 >> *Subject:* Re: [scilab-Users] Labels vanish on export to eps >> >> Try >> aptitude install sun-java6-jre >> JAVA_HOME=/usr//lib/jvm/java-6-sun/ scilab >> >> Sylvestre >> >> Le vendredi 26 novembre 2010 ? 02:41 -0800, Vishwanath Rao a ?crit : >> > >> > How to switch to Sun java? >> > >> > >> > From: Calixte Denizet > > >> > To: users at lists.scilab.org >> > Sent: Fri, 26 November, 2010 15:59:23 >> > Subject: Re: [scilab-Users] Labels vanish on export to eps >> > >> > Le vendredi 26 novembre 2010 ? 02:22 -0800, Vishwanath Rao a ?crit : >> > > >> > > Following is the script that I am running. This is on Ubuntu Lucid >> > > 10.04 and Scilab version 5.2.1. I have installed plotlib >> > > >> > >> > You use probably OpenJDK rather than Sun/Oracle java. If I'm right, >> > could you switch to Sun java ? >> > >> > > >> > > begin script: >> > > >> > > >> > > clear; >> > > close; >> > > >> > > >> > > >> > > >> > > a = [1 -3]';//First point >> > > b = [-2 1]';//Second Point >> > > >> > > >> > > d = sqrt((a(1) - b(1))^2 + (a(2)-b(2))^2) //Distance between the >> > > points >> > > >> > > >> > > x_min= min(a(1),b(1)); >> > > x_max = max(a(1),b(1)); >> > > y_min= min(a(2),b(2)); >> > > y_max = max(a(2),b(2)); >> > > >> > > >> > > x = x_min:(x_max-x_min)/100:x_max; >> > > y = y_min:(y_max-y_min)/100:y_max; >> > > >> > > >> > > figure("BackgroundColor",[1 1 1]); >> > > plot(x,y) >> > > _axis([-5 5 -5 5]) >> > > _grid >> > > xlabel('X') >> > > ylabel('Y') >> > > >> > > >> > > end script >> > > >> > > >> > > regards, >> > > Vishwanath. >> > > >> > > >> > > >> > > ----- Original Message ---- >> > > From: Calixte Denizet > > >> > > To: users at lists.scilab.org >> > > Sent: Fri, 26 November, 2010 15:07:51 >> > > Subject: Re: [scilab-Users] Labels vanish on export to eps >> > > >> > > Le vendredi 26 novembre 2010 ? 01:36 -0800, Vishwanath Rao a ?crit : >> > > > When I export an plot to .eps format, the x and y labels vanish. >> > Is >> > > there are >> > > > workaround? >> > > > >> > > > >> > > >> > > Hello, >> > > >> > > Could you give an example of the plot you want to export ? What is >> > the >> > > version of scilab you use, what is your OS ? >> > > >> > > Best regards >> > > >> > > Calixte >> > > >> > > > >> > > >> > > >> > > >> > > >> > > >> > >> > >> > >> > >> > >> >> -- >> ------------------------- >> Sylvestre Ledru >> ------------------------- >> The Scilab Consortium >> Digiteo >> Domaine de Voluceau >> Rocquencourt - B.P. 105 >> 78153 Le Chesnay Cedex >> France >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From calixte at contrib.scilab.org Fri Nov 26 16:16:44 2010 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Fri, 26 Nov 2010 16:16:44 +0100 Subject: [scilab-Users] Labels vanish on export to eps In-Reply-To: <364640.68850.qm@web33807.mail.mud.yahoo.com> References: <941397.65415.qm@web33807.mail.mud.yahoo.com> <1290764271.4839.43.camel@Calixte-Dell> <993216.46367.qm@web33801.mail.mud.yahoo.com> <1290767363.4839.58.camel@Calixte-Dell> <568912.42500.qm@web33803.mail.mud.yahoo.com> <1290768416.9264.826.camel@zlarin> <364640.68850.qm@web33807.mail.mud.yahoo.com> Message-ID: <1290784604.32000.5.camel@Calixte-Dell> Le vendredi 26 novembre 2010 ? 05:03 -0800, Vishwanath Rao a ?crit : > > > Thanks, this works. I tried putting this command > in /usr/share/applications/scilab.desktop in the line > Exec=JAVA_HOME=/usr/lib/jvm/java-6-sun/ scilab so as to launch > directly without the console. But it did not help. Any pointers? > > Just try: Exec=/bin/bash -c 'export JAVA_HOME=/usr/lib/jvm/java-6-sun; scilab' > thanks, > Vishwanath. > > > ______________________________________________________________________ > From: Sylvestre Ledru > To: users at lists.scilab.org > Sent: Fri, 26 November, 2010 16:16:56 > Subject: Re: [scilab-Users] Labels vanish on export to eps > > Try > aptitude install sun-java6-jre > JAVA_HOME=/usr//lib/jvm/java-6-sun/ scilab > > Sylvestre > > Le vendredi 26 novembre 2010 ? 02:41 -0800, Vishwanath Rao a ?crit : > > > > How to switch to Sun java? > > > > > > From: Calixte Denizet > > To: users at lists.scilab.org > > Sent: Fri, 26 November, 2010 15:59:23 > > Subject: Re: [scilab-Users] Labels vanish on export to eps > > > > Le vendredi 26 novembre 2010 ? 02:22 -0800, Vishwanath Rao a ?crit : > > > > > > Following is the script that I am running. This is on Ubuntu > Lucid > > > 10.04 and Scilab version 5.2.1. I have installed plotlib > > > > > > > You use probably OpenJDK rather than Sun/Oracle java. If I'm right, > > could you switch to Sun java ? > > > > > > > > begin script: > > > > > > > > > clear; > > > close; > > > > > > > > > > > > > > > a = [1 -3]';//First point > > > b = [-2 1]';//Second Point > > > > > > > > > d = sqrt((a(1) - b(1))^2 + (a(2)-b(2))^2) //Distance between the > > > points > > > > > > > > > x_min= min(a(1),b(1)); > > > x_max = max(a(1),b(1)); > > > y_min= min(a(2),b(2)); > > > y_max = max(a(2),b(2)); > > > > > > > > > x = x_min:(x_max-x_min)/100:x_max; > > > y = y_min:(y_max-y_min)/100:y_max; > > > > > > > > > figure("BackgroundColor",[1 1 1]); > > > plot(x,y) > > > _axis([-5 5 -5 5]) > > > _grid > > > xlabel('X') > > > ylabel('Y') > > > > > > > > > end script > > > > > > > > > regards, > > > Vishwanath. > > > > > > > > > > > > ----- Original Message ---- > > > From: Calixte Denizet > > > To: users at lists.scilab.org > > > Sent: Fri, 26 November, 2010 15:07:51 > > > Subject: Re: [scilab-Users] Labels vanish on export to eps > > > > > > Le vendredi 26 novembre 2010 ? 01:36 -0800, Vishwanath Rao a > ?crit : > > > > When I export an plot to .eps format, the x and y labels vanish. > > Is > > > there are > > > > workaround? > > > > > > > > > > > > > > Hello, > > > > > > Could you give an example of the plot you want to export ? What is > > the > > > version of scilab you use, what is your OS ? > > > > > > Best regards > > > > > > Calixte > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > ------------------------- > Sylvestre Ledru > ------------------------- > The Scilab Consortium > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay Cedex > France > > > > From calixte at contrib.scilab.org Fri Nov 26 16:18:38 2010 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Fri, 26 Nov 2010 16:18:38 +0100 Subject: [scilab-Users] Labels vanish on export to eps In-Reply-To: <4CEFCCCA.9060302@limsi.fr> References: <941397.65415.qm@web33807.mail.mud.yahoo.com> <1290764271.4839.43.camel@Calixte-Dell> <993216.46367.qm@web33801.mail.mud.yahoo.com> <1290767363.4839.58.camel@Calixte-Dell> <568912.42500.qm@web33803.mail.mud.yahoo.com> <1290768416.9264.826.camel@zlarin> <364640.68850.qm@web33807.mail.mud.yahoo.com> <4CEFCCCA.9060302@limsi.fr> Message-ID: <1290784718.32000.7.camel@Calixte-Dell> Hello Mathieu, For the moment, Scilab doesn't use the jre configurated with update-alternatives. Calixte Le vendredi 26 novembre 2010 ? 16:05 +0100, Mathieu Dubois a ?crit : > Hello, > > You can try to use Ubuntu (Debian) "alternatives" system. It is a way > to choose between packages that provides the same functionnality (like > sun-jre and OpenJDK). This way all your apps will use the sun-jre. > > From > https://help.ubuntu.com/6.06/ubuntu/desktopguide/C/programming.html > you can see that the command is: > sudo update-alternatives --config java > > Disclaimer: I didn't try this for Java. > > HTH, > Mathieu > > On 11/26/2010 02:03 PM, Vishwanath Rao wrote: > > > > Thanks, this works. I tried putting this command > > in /usr/share/applications/scilab.desktop in the line > > Exec=JAVA_HOME=/usr/lib/jvm/java-6-sun/ scilab so as to launch > > directly without the console. But it did not help. Any pointers? > > > > > > thanks, > > Vishwanath. > > > > > > ____________________________________________________________________ > > From: Sylvestre Ledru > > To: users at lists.scilab.org > > Sent: Fri, 26 November, 2010 16:16:56 > > Subject: Re: [scilab-Users] Labels vanish on export to eps > > > > Try > > aptitude install sun-java6-jre > > JAVA_HOME=/usr//lib/jvm/java-6-sun/ scilab > > > > Sylvestre > > > > Le vendredi 26 novembre 2010 ? 02:41 -0800, Vishwanath Rao a ?crit : > > > > > > How to switch to Sun java? > > > > > > > > > From: Calixte Denizet > > > To: users at lists.scilab.org > > > Sent: Fri, 26 November, 2010 15:59:23 > > > Subject: Re: [scilab-Users] Labels vanish on export to eps > > > > > > Le vendredi 26 novembre 2010 ? 02:22 -0800, Vishwanath Rao a > > ?crit : > > > > > > > > Following is the script that I am running. This is on Ubuntu > > Lucid > > > > 10.04 and Scilab version 5.2.1. I have installed plotlib > > > > > > > > > > You use probably OpenJDK rather than Sun/Oracle java. If I'm > > right, > > > could you switch to Sun java ? > > > > > > > > > > > begin script: > > > > > > > > > > > > clear; > > > > close; > > > > > > > > > > > > > > > > > > > > a = [1 -3]';//First point > > > > b = [-2 1]';//Second Point > > > > > > > > > > > > d = sqrt((a(1) - b(1))^2 + (a(2)-b(2))^2) //Distance between the > > > > points > > > > > > > > > > > > x_min= min(a(1),b(1)); > > > > x_max = max(a(1),b(1)); > > > > y_min= min(a(2),b(2)); > > > > y_max = max(a(2),b(2)); > > > > > > > > > > > > x = x_min:(x_max-x_min)/100:x_max; > > > > y = y_min:(y_max-y_min)/100:y_max; > > > > > > > > > > > > figure("BackgroundColor",[1 1 1]); > > > > plot(x,y) > > > > _axis([-5 5 -5 5]) > > > > _grid > > > > xlabel('X') > > > > ylabel('Y') > > > > > > > > > > > > end script > > > > > > > > > > > > regards, > > > > Vishwanath. > > > > > > > > > > > > > > > > ----- Original Message ---- > > > > From: Calixte Denizet > > > > To: users at lists.scilab.org > > > > Sent: Fri, 26 November, 2010 15:07:51 > > > > Subject: Re: [scilab-Users] Labels vanish on export to eps > > > > > > > > Le vendredi 26 novembre 2010 ? 01:36 -0800, Vishwanath Rao a > > ?crit : > > > > > When I export an plot to .eps format, the x and y labels > > vanish. > > > Is > > > > there are > > > > > workaround? > > > > > > > > > > > > > > > > > > Hello, > > > > > > > > Could you give an example of the plot you want to export ? What > > is > > > the > > > > version of scilab you use, what is your OS ? > > > > > > > > Best regards > > > > > > > > Calixte > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > ------------------------- > > Sylvestre Ledru > > ------------------------- > > The Scilab Consortium > > Digiteo > > Domaine de Voluceau > > Rocquencourt - B.P. 105 > > 78153 Le Chesnay Cedex > > France > > > > > > > From gadepall at yahoo.com Sat Nov 27 11:52:27 2010 From: gadepall at yahoo.com (Vishwanath Rao) Date: Sat, 27 Nov 2010 02:52:27 -0800 (PST) Subject: Upgrade to Scilab 5.2.2 in Ubuntu Lucid Message-ID: <207782.1610.qm@web33803.mail.mud.yahoo.com> Hi, Currently I have Scilab 5.2.1 in Ubuntu Lucid and no upgrades are available in Synaptic. 1. Is there a way to a clean upgrade to Scilab 5.2.2 without a fresh install using a third party repository? 2. If I do a manual install by downloading the tarballs from the scilab website, will my older version be wiped out ? regards, Vishwanath. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Sat Nov 27 12:05:30 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Sat, 27 Nov 2010 12:05:30 +0100 Subject: [scilab-Users] Upgrade to Scilab 5.2.2 in Ubuntu Lucid In-Reply-To: <207782.1610.qm@web33803.mail.mud.yahoo.com> References: <207782.1610.qm@web33803.mail.mud.yahoo.com> Message-ID: <1290855930.17964.2159.camel@zlarin> Le samedi 27 novembre 2010 ? 02:52 -0800, Vishwanath Rao a ?crit : > > Hi, > Currently I have Scilab 5.2.1 in Ubuntu Lucid and no upgrades are > available in Synaptic. > > > 1. Is there a way to a clean upgrade to Scilab 5.2.2 without a fresh > install using a third party repository? Ubuntu Maverick has version 5.2.2. [1] You could upgrade your Ubuntu to this version. > 2. If I do a manual install by downloading the tarballs from the > scilab website, will my older version be wiped out ? No, it won't. With Scilab tarballs, you could have 10 versions installed on your system. Sylvestre [1] http://packages.ubuntu.com/hu/maverick/scilab -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From pg123 at laposte.net Sun Nov 28 16:19:54 2010 From: pg123 at laposte.net (Pascal Grandeau) Date: Sun, 28 Nov 2010 16:19:54 +0100 Subject: Graphic problem with Ubuntu and nVidia FX5200 Message-ID: <4CF2731A.1000007@laposte.net> I use Scilab 5.2.2 with ubuntu 10.10 and I have a problem with graphs : when I draw a simple graph plot(0:10,sin(0:10)), the graph is well drawn but if I want to change something in it whith menu "Edition - Propri?t?s de la figure", if I click on Axes(1) then Scilab crashes and all is closed. I have installed Scilab in Ubuntu 10.10 with "Applications - Logith?que Ubuntu". Do you know why I have this problem ? I tried with Ubuntu 10.04 but it is the same thing. I use a nVidia FX5200 and I have installed the proprietary driver (compiz works well). I have no problem with Windows. Thank you. P. Grandeau From antoine.monmayrant at laas.fr Sun Nov 28 19:59:35 2010 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Sun, 28 Nov 2010 19:59:35 +0100 Subject: [scilab-Users] Graphic problem with Ubuntu and nVidia FX5200 In-Reply-To: <4CF2731A.1000007@laposte.net> References: <4CF2731A.1000007@laposte.net> Message-ID: <4CF2A697.608@laas.fr> Le 28/11/10 16:19, Pascal Grandeau a ?crit : > I use Scilab 5.2.2 with ubuntu 10.10 and I have a problem with graphs > : when I draw a simple graph > plot(0:10,sin(0:10)), the graph is well drawn but if I want to change > something in it whith menu "Edition - Propri?t?s de > la figure", if I click on Axes(1) then Scilab crashes and all is closed. > > I have installed Scilab in Ubuntu 10.10 with "Applications - > Logith?que Ubuntu". > > Do you know why I have this problem ? > > I tried with Ubuntu 10.04 but it is the same thing. > I use a nVidia FX5200 and I have installed the proprietary driver > (compiz works well). > > I have no problem with Windows. > > Thank you. > > P. Grandeau > Sounds like a bug. Could you provide us with a precise script to trigger the bug so we can see if we can reproduce it? Antoine From ms.translate at gmail.com Mon Nov 29 07:45:52 2010 From: ms.translate at gmail.com (MS) Date: Mon, 29 Nov 2010 06:45:52 +0000 (UTC) Subject: debugging and pause Message-ID: Can someone please give me step by step instructions for how to find out what the value of a particular variable inside a user-defined function is? I have tried using disp, pause, mprintf, print. Perhaps I am not using these things properly. I am running scilab 5.2.2, but I am willing to run an earlier version if that would help. Thank you. From calixte at contrib.scilab.org Mon Nov 29 08:09:55 2010 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Mon, 29 Nov 2010 08:09:55 +0100 Subject: [scilab-Users] debugging and pause In-Reply-To: References: Message-ID: <1291014595.25958.6.camel@Calixte-Dell> Le lundi 29 novembre 2010 ? 06:45 +0000, MS a ?crit : > Can someone please give me step by step instructions for how to find out what > the value of a particular variable inside a user-defined function is? I have > tried using disp, pause, mprintf, print. Perhaps I am not using these things > properly. I am running scilab 5.2.2, but I am willing to run an earlier > version if that would help. Thank you. > Hello, With Scilab 5.3-beta 5, you could dock the editor, browsevar and editvar to see the value of an internal variable (have a look at the attached picture). It isn't a fully satisfying solution but it is one... Best regards Calixte -------------- next part -------------- A non-text attachment was scrubbed... Name: Capture-Variable Editor - internal (Double).png Type: image/png Size: 76447 bytes Desc: not available URL: From antoine.monmayrant at laas.fr Mon Nov 29 09:11:06 2010 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Mon, 29 Nov 2010 09:11:06 +0100 Subject: [scilab-Users] debugging and pause In-Reply-To: References: Message-ID: <4CF3601A.60706@laas.fr> Le 29/11/2010 07:45, MS a ?crit : > Can someone please give me step by step instructions for how to find out what > the value of a particular variable inside a user-defined function is? I have > tried using disp, pause, mprintf, print. Perhaps I am not using these things > properly. I am running scilab 5.2.2, but I am willing to run an earlier > version if that would help. Thank you. > The idea is quite simple: - go to the source of your function; - add a pause somewhere (after the variable you want to test has been modified). I usually add a pause just before the line where I have an error or just before the end of the function if I don't get any error while running the function. - re-evaluate your function (so that scilab is aware of the code change). You can just "exec" the file that contain the function or copy paste its code into the console. - call your function. The pause should give you a special prompt: "-1->". While you have this prompt, you can access all the variables that are defined within the scope of your function and above the "pause" you have inserted. Once you are done press "resume" to go on with the execution of your function. Here is an example of a function foo() with no argument that returns 3*3: function x2=foo() temp=3; x2=temp*temp; endfunction Out of the function, I cannot access "temp" to test its value. To do so, I change "foo()": function x2=foo() temp=3; x2=temp*temp; pause // now I-1-> gives me access to the inner variables of foo() endfunction Now, If I re-evaluate this new code and run the function, I can test temp: foo() temp temp==3 resume Hope it helps Antoine From pierre.lando at scilab.org Mon Nov 29 10:13:36 2010 From: pierre.lando at scilab.org (Pierre LANDO) Date: Mon, 29 Nov 2010 10:13:36 +0100 Subject: [scilab-Users] Graphic problem with Ubuntu and nVidia FX5200 In-Reply-To: <4CF2731A.1000007@laposte.net> References: <4CF2731A.1000007@laposte.net> Message-ID: <4CF36EC0.8080801@scilab.org> Hi Pascal, Can you try to launch Scilab from a shell with '-nw' option. $ scilab -nw In the shell try your command: -->plot(0:10,sin(0:10)) Then go in then menu "Edition - Propri?t?s de la figure" *Nothing happen ant it's a know issue.* In the shell just press enter (you need to do that to refresh the GED): --> --> And the 'Figure Editor' should appear. Click on Axes(1). Press enter in the shell again. Here you should have your bug again. Please copy/paste to us what the shell says. -- ------------------------- Pierre LANDO 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.58.21 -------------- next part -------------- An HTML attachment was scrubbed... URL: From gadepall at yahoo.com Mon Nov 29 11:02:08 2010 From: gadepall at yahoo.com (Vishwanath Rao) Date: Mon, 29 Nov 2010 02:02:08 -0800 (PST) Subject: Figure Properties error Message-ID: <297115.18981.qm@web33807.mail.mud.yahoo.com> Hi, I'm using Scilab 5.2.2 on Ubuntu Lucid. When I clicked on the Figure Properties menu item in the plot window, a black window opened and the following text appeared on scilab console !--error 999 TCL_EvalFile, at line 1 of file /home/gadepall/Downloads/scilab-5.2.2/share/scilab/modules/graphics/tcl/ged/Figure.tcl can't use non-numeric floating-point value as operand of "*" while executing "expr int($REDC*255)" ("for" body line 40) invoked from within "for {set i 1} {$i<=$ncolors} {incr i} { set bb [expr 10+(25*$i)] $w.frame.c create text 10 $bb -anchor c -text $i -font $gedFont #RED set ..." (file "/home/gadepall/Downloads/scilab-5.2.2/share/scilab/modules/graphics/tcl/ged/Figure.tcl" line 436). at line 20 of function ged_figure called by : at line 87 of function ged called by : ged(8,0); while executing a callback regards, Vishwanath. -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.baudin at scilab.org Mon Nov 29 13:11:33 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Mon, 29 Nov 2010 13:11:33 +0100 Subject: [scilab-Users] Stixbox dnorm function - formula error? In-Reply-To: <4CE3F1F5.8090802@scilab.org> References: <4CCB2A11.1000104@sgl.com> <4CCB3A21.7030309@univ-lemans.fr> <4CD15BBC.6030400@scilab.org> <4CD16C69.2030707@sgl.com> <4CD27AE9.4090600@scilab.org> <4CD2F314.2010805@sgl.com> <4CD3B9F3.3000802@scilab.org> <4CD7C583.8010008@scilab.org> <4CE3F1F5.8090802@scilab.org> Message-ID: <4CF39875.8000601@scilab.org> Hi, I just pushed an improved release of Stixbox, with improvements in the demos, and the getdata function: http://atoms.scilab.org/toolboxes/stixbox/1.4 Best regards, Micha?l Baudin Le 17/11/2010 16:17, Micha?l Baudin a ?crit : > Thank you for your feedback. You are right: there was a lack of > feedback in the demo. I have improved the script, see the new version > at : > > http://forge.scilab.org/index.php/p/stixbox/source/tree/master/demos/stixdemo.dem.sce > > > There were many comments, which are now displayed in the console. More > results are also displayed. > > I will release the improved version ASAP on ATOMS. > > Best regards, > > Micha?l > > Le 08/11/2010 23:50, Peter.Cusack at csiro.au a ?crit : >> Thanks for your response Micha?l. >> >> It is a lack of feedback in the demo. After I click and hit enter a >> number of times, things progress until I get a popup menu of >> datasets. Double-clicking any one causes a crash: >> >> !--error 4 >> Undefined variable: x_message >> >> at line 32 of function getdata called by : >> x = getdata(); >> at line 152 of exec file called by : >> object(20);script_path = demo_gui_update();exec(script_path,-1);;if >> exists("%oldgcbo") then gcbo = %oldgcbo; else clear gcbo; end >> while executing a callback >> at line 27 of function halt called by : >> halt() >> at line 19 of exec file called by : >> object(20);script_path = demo_gui_update();exec(script_path,-1);;if >> exists("%oldgcbo") then gcbo = %oldgcbo; else clear gcbo; end >> while executing a callback >> >> I see from the TODOs that the demo script will be updated, and that >> should clarify what to do to make the demo progress. A short term fix >> would be to add a meaningful prompt. Even "Press Enter." is more >> helpful than "-->" >> >> Cheers; >> >> Peter. >> >>> Hi Peter, >>> >>> I guess that you missed the message in the console : >>> >>> " When paused with -->halt() enter return key to continue" >>> >>> If I guessed well, we are done. But I admit that the demo itself is a >>> fast hack. It should instead display a listbox and let the user choose >>> from one of the several distribution functions which are available. >>> >>> If I guessed wrong, let me know the exact version of Scilab that you >>> use >>> and the OS where it runs. >>> >>> Best regards, >>> >>> Micha?l Baudin >>> >>> PS >>> See the TODOs in : >>> http://forge.scilab.org/index.php/p/stixbox/source/tree/master/readme.tx >>> >>> t > > -- 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 pgrandeau at bbox.fr Mon Nov 29 13:41:26 2010 From: pgrandeau at bbox.fr (Pascal Grandeau) Date: Mon, 29 Nov 2010 13:41:26 +0100 Subject: Graphic problem with Ubuntu and nVidia FX5200 Message-ID: <4CF39F76.3000700@bbox.fr> Good afternoon, Excuse me but I did not understand how to answer to a message in the users list. (Please can you explain me ?) I made what Pierre LANDO said and here is the result : # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00ece637, pid=2938, tid=3075910512 # # JRE version: 6.0_20-b20 # Java VM: OpenJDK Server VM (17.0-b16 mixed mode linux-x86 ) # Derivative: IcedTea6 1.9.1 # Distribution: Ubuntu 10.10, package 6b20-1.9.1-1ubuntu3 # Problematic frame: # C [libjava.so+0x12637] JNU_CallStaticMethodByName+0x47 # # An error report file with more information is saved as: # /home/pascal/hs_err_pid2938.log # # If you would like to submit a bug report, please include # instructions how to reproduce the bug and visit: # https://bugs.launchpad.net/ubuntu/+source/openjdk-6/ # Aborted The file "hs_err_pid2938.log" is in attachment. Thank you very much. Pascal Grandeau -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: hs_err_pid2938.log URL: From ms.translate at gmail.com Mon Nov 29 14:22:43 2010 From: ms.translate at gmail.com (MS) Date: Mon, 29 Nov 2010 13:22:43 +0000 (UTC) Subject: debugging and pause References: <1291014595.25958.6.camel@Calixte-Dell> Message-ID: Calixte Denizet writes: > > Le lundi 29 novembre 2010 ? 06:45 +0000, MS a ?crit : > > Can someone please give me step by step instructions for how to find out what > > the value of a particular variable inside a user-defined function is? I have > > tried using disp, pause, mprintf, print. Perhaps I am not using these things > > properly. I am running scilab 5.2.2, but I am willing to run an earlier > > version if that would help. Thank you. > > > > Hello, > > With Scilab 5.3-beta 5, you could dock the editor, browsevar and editvar > to see the value of an internal variable (have a look at the attached > picture). It isn't a fully satisfying solution but it is one... > > Best regards > > Calixte > > Thank you, Calixte, from your screenshot I learned that I should TYPE resume. I was trying to do resume from the menu. From rita.macri at tiscali.it Mon Nov 29 14:29:32 2010 From: rita.macri at tiscali.it (Giuseppe Ventura) Date: Mon, 29 Nov 2010 14:29:32 +0100 Subject: bifurcation diagram Message-ID: <000501cb8fc9$75d653d0$6182fb70$@tiscali.it> Hi Can I create with Scilab a bifurcation diagram? I have this system of differential equations (in dt): Glucose'=k0*Glucose-k1*Glucose*ATP/(1+(ATP/ki)^n) ATP'=-2*k1*Glucose*ATP/(1+(ATP/ki)^n)+((k31*k32*TGP*NAD*(atot-ATP)-k33*k34*P G*ATP*(NADH))/(k33*(NADH)+k32*(atot-ATP)))+(k4*PG*(atot-ATP))-(k7*ATP) F16P'=k1*Glucose*ATP/(1+(ATP/ki)^n)-k2*F16P TGP'=2*k2*F16P-((k31*k32*TGP*NAD*(atot-ATP)-k33*k34*PG*ATP*(NADH))/(k33*(NAD H)+k32*(atot-ATP)))-(k8*TGP*(NADH)) NAD'=(k8*TGP*(NADH))+((k31*k32*TGP*NAD*(atot-ATP)-k33*k34*PG*ATP*(NADH))/(k3 3*(NADH)+k32*(atot-ATP)))+(k6*Acetaldehyde*(NADH)) PG'=((k31*k32*TGP*NAD*(atot-ATP)-k33*k34*PG*ATP*(ntot-NAD))/(k33*(ntot-NAD)+ k32*(atot-ATP)))-(k4*PG*(atot-ATP)) Pyruvate'=k4*PG*(atot-ATP)-(k5*Pyruvate) Acetaldehyde'=(k5*Pyruvate)-(k6*Acetaldehyde*(NADH))-(k10*(Acetaldehyde-extr acellularacetaldehyde)) extracellularacetaldehyde'=0.1*(k10*(Acetaldehyde-extracellularacetaldehyde) )-k9*extracellularacetaldehyde NADH'=((k31*k32*TGP*NAD*(atot-ATP)-k33*k34*PG*ATP*(NADH))/(k33*(NADH)+k32*(a tot-ATP)))-(k6*Acetaldehyde*(NADH))-(k8*TGP*(NADH)) And I want a diagram Nadh vs k9, Is possible? I also would like to know what the Hopf point. There is an example? thanks Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From ms.translate at gmail.com Mon Nov 29 15:41:18 2010 From: ms.translate at gmail.com (MS) Date: Mon, 29 Nov 2010 14:41:18 +0000 (UTC) Subject: debugging and pause References: <4CF3601A.60706@laas.fr> Message-ID: Antoine Monmayrant writes: > > Now, If I re-evaluate this new code and run the function, I can test temp: > > foo() > > temp > temp==3 > > resume > > Hope it helps > > Antoine > > Thank you, Antoine. I got this to work. My main program and my function were all in one file. Evidently that's why my pause statement was ignored. Now I tried your idea, of calling the function from the console. The funny thing is that the first time I tried this, scilab spontaneously informed me of the values of the two local variables of my function. As I continued practicing the technique, the behavior changed. On all my subsequent attempts, I had to type in the name a local variable at the -1-> prompt. I don't mind -- I'm happy -- but it is mysterious. From pierre.lando at scilab.org Tue Nov 30 09:53:50 2010 From: pierre.lando at scilab.org (Pierre LANDO) Date: Tue, 30 Nov 2010 09:53:50 +0100 Subject: [scilab-Users] Graphic problem with Ubuntu and nVidia FX5200 In-Reply-To: <4CF39F76.3000700@bbox.fr> References: <4CF39F76.3000700@bbox.fr> Message-ID: <4CF4BB9E.8020506@scilab.org> Hi Pascal, On 29/11/2010 13:41, Pascal Grandeau wrote: > Good afternoon, > > Excuse me but I did not understand how to answer to a message in the > users list. (Please can you explain me ?) Just use the 'reply' button. > I made what Pierre LANDO said and here is the result : > [...] You problem is a known issue: http://bugzilla.scilab.org/show_bug.cgi?id=7354 You can follow it status. -- ------------------------- Pierre LANDO Software Development Engineer ------------------------- Consortium Scilab Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France T?l. : +33.1.39.63.58.21 -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Tue Nov 30 10:29:21 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Tue, 30 Nov 2010 10:29:21 +0100 Subject: Optimization procedure Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFDC@exchsrv.AUXITROL1> Dear All In my first attempt to optimize parameters by linking Scilab to a FEA code (this is a basic test with in a first step one parameter), I use fminsearch function: it works rather well until now !!!! In addition, it may be interesting to plot the curve test vs fea at each iteration ...it has been done in a sub-function but only the final figure remains since the previous ones are overwrited My question is : - from my understanding an "index" variable" corresponding to the iteration number can not be introduced in the fminsearch function (C10_optimized = fminsearch(optimization,C10) - is ther a trick on index the curves based on the ieteration (internal) value ? Thanks in advance Regards Paul -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: FEA_versus_measurements_final_only.jpg Type: image/jpeg Size: 50469 bytes Desc: FEA_versus_measurements_final_only.jpg URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: FEA_versus_measurements_all_superimposed.jpg Type: image/jpeg Size: 90124 bytes Desc: FEA_versus_measurements_all_superimposed.jpg URL: From paul.carrico at esterline.com Tue Nov 30 11:58:37 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Tue, 30 Nov 2010 11:58:37 +0100 Subject: optimization : general question Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFDD@exchsrv.AUXITROL1> Dear all, The purpose of this mail is to benefit from user feedback of Scilab community ... even if my experience on optimization item is currently rather limited, this study will significantly increase my own expertise. I'm currently working in linking a FEA code with Scilab to fit parameters from tests (see attached fig - in red the steps realized in Scilab ) : - On a single parameter I used with success the fminsearch function (based on the simplex theory), - with 2 parameters, the calculated ran ... nevertheless the final result is physically non applicable (need to bracket one of the values for examples) Does somebody be experienced on such item ? what is the best Scilab function ? Some advices in reading ? Thanks in advance Regards Paul -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: att175bd.JPG Type: image/jpeg Size: 68092 bytes Desc: att175bd.JPG URL: From michael.baudin at scilab.org Tue Nov 30 13:40:25 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Tue, 30 Nov 2010 13:40:25 +0100 Subject: [scilab-Users] Optimization procedure In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFDC@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFDC@exchsrv.AUXITROL1> Message-ID: <4CF4F0B9.2000407@scilab.org> Hi, Thank you for providing a feedback on this function. Moreover, as it seems to be working well, this is an even more good feeling. I am not sure that I understand well enough your message about the "index" variable. I guess that you want the objective function to receive the iteration number as an input argument. In the page : help optimset you will find the "Output and plot functions" section, which describes the optimValues input argument of the output function. The optimValues.iteration should correspond to your need. In order to use an output function, see the example in the help of fminsearch - "Example with a customized output function": function y = banana (x) y = 100*(x(2)-x(1)^2)^2 + (1-x(1))^2; endfunction function outfun ( x , optimValues , state ) plot( x(1),x(2),'.'); endfunction opt = optimset ( "OutputFcn" , outfun); [x fval] = fminsearch ( banana , [-1.2 1] , opt ); Best regards, Micha?l Baudin Le 30/11/2010 10:29, Carrico, Paul a ?crit : > Dear All > In my first attempt to optimize parameters by linking Scilab to a FEA > code (this is a basic test with in a first step one parameter), I use > fminsearch function: it *_works rather well until now !!!!_* > In addition, it may be interesting to plot the curve test vs fea at > each iteration ...it has been done in a sub-function but only the > final figure remains since the previous ones are overwrited > My question is : > - from my understanding an "index" variable" corresponding to the > iteration number can not be introduced in the fminsearch function > (C10_optimized = fminsearch(optimization,C10) > - is ther a trick on index the curves based on the ieteration > (internal) value ? > Thanks in advance > Regards > Paul > -------------------------------------------------------------------------------- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > > -- 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 HTML attachment was scrubbed... URL: From bob.hyrsut at wanadoo.fr Tue Nov 30 13:55:10 2010 From: bob.hyrsut at wanadoo.fr (sebastien salmon) Date: Tue, 30 Nov 2010 12:55:10 -0000 Subject: [scilab-Users] optimization : general question In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFDD@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFDD@exchsrv.AUXITROL1> Message-ID: <25682719.34839.1291121709154.JavaMail.www@wwinf1j11> Hello Paul, I realize such optimization really often (i've created and use the PSO toolbox) . If you need to bracket one value, you can penalize the result with this method : before rewriting you input file, you check if your inputs are physicaly good : if good then run the computation else do not execute the computation and set the function objective function to a really high value (penalization). Hopping this will help you, S.Salmon > Message du 30/11/10 12:04 > De : "Carrico, Paul" > A : users at lists.scilab.org > Copie ? : > Objet : [scilab-Users] optimization : general question > > Dear all, ? The purpose of this mail is to benefit from user feedback of Scilab community ... even if my experience on optimization item is currently rather limited, this study will significantly increase my own expertise. ? I'm currently working in linking a FEA code with Scilab to fit parameters from tests (see attached fig - in red the steps realized in Scilab ) : - On a single parameter I used with success the fminsearch function (based on the simplex theory), - with 2 parameters, the calculated ran ... nevertheless the final result is physically non applicable (need to bracket one of the values for examples) ? Does somebody be experienced on such item ? what is the best Scilab function ? Some advices in reading ? ? Thanks in advance ? Regards ? Paul ? ? ?-------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: att175bd.JPG Type: image/jpeg Size: 68092 bytes Desc: att175bd.JPG URL: From michael.baudin at scilab.org Tue Nov 30 14:00:27 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Tue, 30 Nov 2010 14:00:27 +0100 Subject: [scilab-Users] optimization : general question In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFDD@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFDD@exchsrv.AUXITROL1> Message-ID: <4CF4F56B.2040000@scilab.org> Hi, There is no way to apply bounds to the parameters from the fminsearch function. This is because the algorithm was mainly designed for unconstrained optimization. Nevertheless, it is possible to apply them with the lower level component that the fminsearch function uses, the neldermead component. This is possible by projecting the parameters on the bounds. This makes the simple degenerate on the bounds and, if not far away from the optimum, let the simplex converge on the optimum. In order to find an example, please look, in Scilab v5.2.2, in the demonstrations: ? > Scilab Demonstrations > Optimization and simulation > neldermead Box B This example is based on the problem B from the Box' paper. It is a problem with 2 bounded parameters (see in attachment). In Scilab v5.3, I added some other examples. This includes a simple problem with bounds and Rosenbrock's post office problem, an optimization with 3 parameters and linear constraints (see in attachement). The simplest problem is the following: function [ f , index ] = myquad ( x , index ) f = x(1)^2 + x(2)^2 endfunction rand("seed" , 0) x0 = [1.2 1.9].'; nm = nmplot_new (); nm = nmplot_configure(nm,"-numberofvariables",2); nm = nmplot_configure(nm,"-function",myquad); nm = nmplot_configure(nm,"-x0",x0); nm = nmplot_configure(nm,"-method","box"); nm = nmplot_configure(nm,"-boundsmin",[1 1]); nm = nmplot_configure(nm,"-boundsmax",[2 2]); nm = nmplot_search(nm); xcomp = nmplot_get(nm,"-xopt") // Should be [1 1] fcomp = nmplot_get(nm,"-fopt") // Should be 2 nm = nmplot_destroy(nm); This example is not provided in the help of neldermead (see bug #7164): I will fix this in the next release. Best regards, Micha?l PS http://bugzilla.scilab.org/show_bug.cgi?id=7164 Le 30/11/2010 11:58, Carrico, Paul a ?crit : > > Dear all, > > The purpose of this mail is to benefit from user feedback of Scilab > community ... even if my experience on optimization item is currently > rather limited, this study will significantly increase my own expertise. > > I'm currently working in linking a FEA code with Scilab to fit > parameters from tests (see attached fig- in red the steps realized in > Scilab ) : > > - On a single parameter I used with success the *_fminsearch_* > function (based on the simplex theory), > > - with 2 parameters, the calculated ran ... nevertheless the final > result is physically non applicable (need to bracket one of the values > for examples) > > Does somebody be experienced on such item ? what is the best Scilab > function ? Some advices in reading ? > > Thanks in advance > > Regards > > Paul > > -------------------------------------------------------------------------------- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > > -- 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 HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 68092 bytes Desc: not available URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: neldermead_boxproblemB.sce URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: neldermead_rosenbrock.sce URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: neldermead_boxbounds.sce URL: From michael.baudin at scilab.org Tue Nov 30 14:11:26 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Tue, 30 Nov 2010 14:11:26 +0100 Subject: [scilab-Users] debugging and pause In-Reply-To: References: Message-ID: <4CF4F7FE.5020204@scilab.org> Hi, The "Introduction to Scilab" was recently updated : http://www.scilab.org/support/documentation/tutorials In the section 6 - "Debugging with pause", p 64, we present simple debugging methods which allow to fix most simple bugs in a convenient and efficient way. More specifically, we present the pause, resume and abort statements. Best regards, Micha?l Baudin Le 29/11/2010 07:45, MS a ?crit : > Can someone please give me step by step instructions for how to find out what > the value of a particular variable inside a user-defined function is? I have > tried using disp, pause, mprintf, print. Perhaps I am not using these things > properly. I am running scilab 5.2.2, but I am willing to run an earlier > version if that would help. Thank you. > -- 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 paul.carrico at esterline.com Tue Nov 30 14:15:43 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Tue, 30 Nov 2010 14:15:43 +0100 Subject: [scilab-Users] optimization : general question In-Reply-To: <4CF4F56B.2040000@scilab.org> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFDD@exchsrv.AUXITROL1> <4CF4F56B.2040000@scilab.org> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFDF@exchsrv.AUXITROL1> Both Micha?l and S?bastien, First of all thanks for your (interesting) feedback, I'll have a look on the example (as you've seen I'm a newbie in optimization item and your advices are precious). Additional question : do you think I should have a look on another Scilab function afterward ? Can you recommand a good support to well understand optimization problems ? Cheers Paul ----------------------------------------------------------------- PAUL CARRICO Design Engineer / Material expert Temperature Department Esterline | Advanced Sensors 5, all?e Charles Path? 18941 BOURGES cedex 9 FRANCE Phone : +33 (0) 2 48 66 78 50 Fax : +33 (0) 2 48 66 78 55 www.esterline.com Featuring AUXITROL, NORWICH, and WESTON Products ----------------------------------------------------------------- P Please consider the environment before printing this e-mail ________________________________ De : Micha?l Baudin [mailto:michael.baudin at scilab.org] Envoy? : mardi 30 novembre 2010 14:00 ? : users at lists.scilab.org Cc : Carrico, Paul Objet : Re: [scilab-Users] optimization : general question Hi, There is no way to apply bounds to the parameters from the fminsearch function. This is because the algorithm was mainly designed for unconstrained optimization. Nevertheless, it is possible to apply them with the lower level component that the fminsearch function uses, the neldermead component. This is possible by projecting the parameters on the bounds. This makes the simple degenerate on the bounds and, if not far away from the optimum, let the simplex converge on the optimum. In order to find an example, please look, in Scilab v5.2.2, in the demonstrations: ? > Scilab Demonstrations > Optimization and simulation > neldermead Box B This example is based on the problem B from the Box' paper. It is a problem with 2 bounded parameters (see in attachment). In Scilab v5.3, I added some other examples. This includes a simple problem with bounds and Rosenbrock's post office problem, an optimization with 3 parameters and linear constraints (see in attachement). The simplest problem is the following: function [ f , index ] = myquad ( x , index ) f = x(1)^2 + x(2)^2 endfunction rand("seed" , 0) x0 = [1.2 1.9].'; nm = nmplot_new (); nm = nmplot_configure(nm,"-numberofvariables",2); nm = nmplot_configure(nm,"-function",myquad); nm = nmplot_configure(nm,"-x0",x0); nm = nmplot_configure(nm,"-method","box"); nm = nmplot_configure(nm,"-boundsmin",[1 1]); nm = nmplot_configure(nm,"-boundsmax",[2 2]); nm = nmplot_search(nm); xcomp = nmplot_get(nm,"-xopt") // Should be [1 1] fcomp = nmplot_get(nm,"-fopt") // Should be 2 nm = nmplot_destroy(nm); This example is not provided in the help of neldermead (see bug #7164): I will fix this in the next release. Best regards, Micha?l PS http://bugzilla.scilab.org/show_bug.cgi?id=7164 Le 30/11/2010 11:58, Carrico, Paul a ?crit : Dear all, The purpose of this mail is to benefit from user feedback of Scilab community ... even if my experience on optimization item is currently rather limited, this study will significantly increase my own expertise. I'm currently working in linking a FEA code with Scilab to fit parameters from tests (see attached fig - in red the steps realized in Scilab ) : - On a single parameter I used with success the fminsearch function (based on the simplex theory), - with 2 parameters, the calculated ran ... nevertheless the final result is physically non applicable (need to bracket one of the values for examples) Does somebody be experienced on such item ? what is the best Scilab function ? Some advices in reading ? Thanks in advance Regards Paul -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -- 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 -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ATT654879.jpg Type: image/jpeg Size: 68092 bytes Desc: ATT654879.jpg URL: From stephane.mottelet at utc.fr Tue Nov 30 14:24:22 2010 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Tue, 30 Nov 2010 14:24:22 +0100 Subject: [scilab-Users] optimization : general question In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFDF@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFDD@exchsrv.AUXITROL1> <4CF4F56B.2040000@scilab.org> <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFDF@exchsrv.AUXITROL1> Message-ID: <4CF4FB06.3090704@utc.fr> Le 30/11/2010 14:15, Carrico, Paul a ?crit : > Both Micha?l and S?bastien, > First of all thanks for your (interesting) feedback, I'll have a look > on the example (as you've seen I'm a newbie in optimization item and > your advices are precious). > Additional question : do you think I should have a look on another > Scilab function afterward ? Can you recommand a good support to well > understand optimization problems ? Practical Optimization : Philip E. /Gill/, Walter /Murray/, Margaret H. /Wright/ S. > Cheers > Paul > > ----------------------------------------------------------------- > *PAUL CARRICO* > Design Engineer / Material expert > Temperature Department > > Esterline | Advanced Sensors > 5, all?e Charles Path? > 18941 BOURGES cedex 9 > FRANCE > > _Phone_ : +33 (0) 2 48 66 78 50 > _Fax_ : +33 (0) 2 48 66 78 55 > > www.esterline.com > > *Featuring AUXITROL, NORWICH, and WESTON Products* > > ----------------------------------------------------------------- > > P > Please consider the environment before printing this e-mail > > > ------------------------------------------------------------------------ > *De :* Micha?l Baudin [mailto:michael.baudin at scilab.org] > *Envoy? :* mardi 30 novembre 2010 14:00 > *? :* users at lists.scilab.org > *Cc :* Carrico, Paul > *Objet :* Re: [scilab-Users] optimization : general question > > Hi, > > There is no way to apply bounds to the parameters from the fminsearch > function. This is because the algorithm was mainly designed for > unconstrained optimization. Nevertheless, it is possible to apply them > with the lower level component that the fminsearch function uses, the > neldermead component. This is possible by projecting the parameters on > the bounds. This makes the simple degenerate on the bounds and, if not > far away from the optimum, let the simplex converge on the optimum. > > In order to find an example, please look, in Scilab v5.2.2, in the > demonstrations: > > ? > Scilab Demonstrations > Optimization and simulation > neldermead Box B > > This example is based on the problem B from the Box' paper. It is a > problem with 2 bounded parameters (see in attachment). > > In Scilab v5.3, I added some other examples. This includes a simple > problem with bounds and Rosenbrock's post office problem, an > optimization with 3 parameters and linear constraints (see in > attachement). The simplest problem is the following: > > function [ f , index ] = myquad ( x , index ) > f = x(1)^2 + x(2)^2 > endfunction > rand("seed" , 0) > x0 = [1.2 1.9].'; > nm = nmplot_new (); > nm = nmplot_configure(nm,"-numberofvariables",2); > nm = nmplot_configure(nm,"-function",myquad); > nm = nmplot_configure(nm,"-x0",x0); > nm = nmplot_configure(nm,"-method","box"); > nm = nmplot_configure(nm,"-boundsmin",[1 1]); > nm = nmplot_configure(nm,"-boundsmax",[2 2]); > nm = nmplot_search(nm); > xcomp = nmplot_get(nm,"-xopt") // Should be [1 1] > fcomp = nmplot_get(nm,"-fopt") // Should be 2 > nm = nmplot_destroy(nm); > > This example is not provided in the help of neldermead (see bug > #7164): I will fix this in the next release. > > Best regards, > > Micha?l > > PS > http://bugzilla.scilab.org/show_bug.cgi?id=7164 > > Le 30/11/2010 11:58, Carrico, Paul a ?crit : >> >> Dear all, >> >> The purpose of this mail is to benefit from user feedback of Scilab >> community ... even if my experience on optimization item is currently >> rather limited, this study will significantly increase my own expertise. >> >> I'm currently working in linking a FEA code with Scilab to fit >> parameters from tests (see attached fig - in red the steps realized >> in Scilab ) : >> >> - On a single parameter I used with success the *_fminsearch_* >> function (based on the simplex theory), >> >> - with 2 parameters, the calculated ran ... nevertheless the final >> result is physically non applicable (need to bracket one of the >> values for examples) >> >> Does somebody be experienced on such item ? what is the best Scilab >> function ? Some advices in reading ? >> >> Thanks in advance >> >> Regards >> >> Paul >> >> -------------------------------------------------------------------------------- >> >> >> Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. >> >> This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. >> >> >> > > > -- > 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 > > > -------------------------------------------------------------------------------- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 68092 bytes Desc: not available URL: From michael.baudin at scilab.org Tue Nov 30 14:41:42 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Tue, 30 Nov 2010 14:41:42 +0100 Subject: New scientific features & Performances of linear algebra Message-ID: <4CF4FF16.7070202@scilab.org> Hello, We are often asked about the new computational features of Scilab. The CHANGES file associated with each release provides some information, but it mainly focuses on the updates and does not provide the context of the new features. Moreover, this does not give any informations about the external modules, provided by ATOMS, for example. This is why we have written the wiki page : http://wiki.scilab.org/New_Scientific_Features The goal of this page is to focus on the new scientific, computational features in Scilab. This document aims at presenting a short abstract of the each new module along with the changes that were made to it. This allows to gather the various developments which are made both inside Scilab and outside Scilab, for example as external modules. By this mean, we can have a knowledge of the computational algorithms and functions which are available in the Scilab environment, in a broad sense. The presentation is based on a year-by-year analysis, from 2008 to 2010. We had recently the opportunity to check the performances of linear algebra in Scilab. In order to gather the best performances which can be obtained with linear algebra algorithms provided in Scilab, we have created the page : http://wiki.scilab.org/Linalg_performances In this page, we present performance of various Scilab scripts involving linear algebra. We emphasize the use of Mflops as a measure of performance of linear algebra routines used in Scilab. We consider here two benchmarks: * the dense, real, matrix-matrix multiply, * the solution of dense, real linear systems of equations. These wiki pages are designed to be improved by anyone willing to. Please insert directly any information that you would like to publish. Best regards, Micha?l Baudin -- 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 bob.hyrsut at wanadoo.fr Tue Nov 30 14:47:26 2010 From: bob.hyrsut at wanadoo.fr (sebastien salmon) Date: Tue, 30 Nov 2010 13:47:26 -0000 Subject: [scilab-Users] optimization : general question In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFDF@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFDD@exchsrv.AUXITROL1> <4CF4F56B.2040000@scilab.org> <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFDF@exchsrv.AUXITROL1> Message-ID: <20960077.194504.1291124842542.JavaMail.www@wwinf1e31> Maybe this thesis could help you (in french) > Message du 30/11/10 14:16 > De : "Carrico, Paul" > A : users at lists.scilab.org > Copie ? : > Objet : RE: [scilab-Users] optimization : general question > > Both Micha?l and S?bastien, ? First of all thanks for your (interesting) feedback, I'll have a look on the example (as you've seen I'm a newbie in optimization item and your advices are precious). ? Additional question : do you think I should have a look on another Scilab function afterward ? Can you recommand a good support to well understand optimization problems ? ? Cheers ? Paul ? ? ----------------------------------------------------------------- > PAUL CARRICO > Design Engineer / Material expert > Temperature Department Esterline | Advanced Sensors > 5, all?e Charles Path? > 18941 BOURGES cedex 9 > FRANCE > Phone : +33 (0) 2 48 66 78 50 > Fax ??? : +33 (0) 2 48 66 78 55 > www.esterline.com > Featuring AUXITROL, NORWICH, and WESTON Products > ----------------------------------------------------------------- > P > Please consider the environment before printing this e-mail ? > De?: Micha?l Baudin [mailto:michael.baudin at scilab.org] > Envoy??: mardi 30 novembre 2010 14:00 > ??: users at lists.scilab.org > Cc?: Carrico, Paul > Objet?: Re: [scilab-Users] optimization : general question > > Hi, > > There is no way to apply bounds to the parameters from the fminsearch function. This is because the algorithm was mainly designed for unconstrained optimization. Nevertheless, it is possible to apply them with the lower level component that the fminsearch function uses, the neldermead component. This is possible by projecting the parameters on the bounds. This makes the simple degenerate on the bounds and, if not far away from the optimum, let the simplex converge on the optimum. > > In order to find an example, please look, in Scilab v5.2.2, in the demonstrations: > > ? > Scilab Demonstrations > Optimization and simulation > neldermead Box B > > This example is based on the problem B from the Box' paper. It is a problem with 2 bounded parameters (see in attachment). > > In Scilab v5.3, I added some other examples. This includes a simple problem with bounds and? Rosenbrock's post office problem, an optimization with 3 parameters and linear constraints (see in attachement). The simplest problem is the following: > > ? function [ f , index ] = myquad ( x , index ) > ??? f = x(1)^2 + x(2)^2 > ? endfunction > ? rand("seed" , 0) > ? x0 = [1.2 1.9].'; > ? nm = nmplot_new (); > ? nm = nmplot_configure(nm,"-numberofvariables",2); > ? nm = nmplot_configure(nm,"-function",myquad); > ? nm = nmplot_configure(nm,"-x0",x0); > ? nm = nmplot_configure(nm,"-method","box"); > ? nm = nmplot_configure(nm,"-boundsmin",[1 1]); > ? nm = nmplot_configure(nm,"-boundsmax",[2 2]); > ? nm = nmplot_search(nm); > ? xcomp = nmplot_get(nm,"-xopt") // Should be [1 1] > ? fcomp = nmplot_get(nm,"-fopt") // Should be 2 > ? nm = nmplot_destroy(nm); > > This example is not provided in the help of neldermead (see bug #7164): I will fix this in the next release. > > Best regards, > > Micha?l > > PS > http://bugzilla.scilab.org/show_bug.cgi?id=7164 > > Le 30/11/2010 11:58, Carrico, Paul a ?crit?: Dear all, The purpose of this mail is to benefit from user feedback of Scilab community ... even if my experience on optimization item is currently rather limited, this study will significantly increase my own expertise. I'm currently working in linking a FEA code with Scilab to fit parameters from tests (see attached fig - in red the steps realized in Scilab ) : - On a single parameter I used with success the fminsearch function (based on the simplex theory), - with 2 parameters, the calculated ran ... nevertheless the final result is physically non applicable (need to bracket one of the values for examples) Does somebody be experienced on such item ? what is the best Scilab function ? Some advices in reading ? Thanks in advance Regards Paul ? ? ?-------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > > -- 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 -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ATT654879.jpg Type: image/jpeg Size: 68092 bytes Desc: ATT654879.jpg URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: these_Sareni_ECL.pdf Type: application/pdf Size: 3438989 bytes Desc: not available URL: From michael.baudin at scilab.org Tue Nov 30 14:50:40 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Tue, 30 Nov 2010 14:50:40 +0100 Subject: [scilab-Users] optimization : general question In-Reply-To: <4CF4FB06.3090704@utc.fr> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFDD@exchsrv.AUXITROL1> <4CF4F56B.2040000@scilab.org> <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFDF@exchsrv.AUXITROL1> <4CF4FB06.3090704@utc.fr> Message-ID: <4CF50130.9030708@scilab.org> Le 30/11/2010 14:24, St?phane Mottelet a ?crit : > Le 30/11/2010 14:15, Carrico, Paul a ?crit : >> Both Micha?l and S?bastien, >> First of all thanks for your (interesting) feedback, I'll have a look >> on the example (as you've seen I'm a newbie in optimization item and >> your advices are precious). >> Additional question : do you think I should have a look on another >> Scilab function afterward ? Can you recommand a good support to well >> understand optimization problems ? > > Practical Optimization : Philip E. /Gill/, Walter /Murray/, Margaret > H. /Wright/ This is my favorite. Here are some other suggestions: [1] Gregoire Allaire. Analyse numerique et optimisation. Editions de l'ecole polytechnique, 2005. [2] Dimitry Bertsekas. Convex Analysis and Optimization. Athena Scientific, Belmont, Massachusetts, 2003. [3] Frederic Bonnans, Claude Lemarechal, Charles Gilbert, and Claudia Sagaztizabal. Numerical Optimization. Springer, 2002. [4] Stephen Boyd and Lieven Vandenberghe. Convex Optimization. Cambridge University Press, 2004. [5] P. E. Gill, W. Murray, and M. H. Wright. Practical optimization. Academic Press, London, 1981. [6] Stephen J. Wright Jorge Nocedal. Numerical Optimization. Springer, 1999. [7] C.T. Kelley. Iterative Methods For Optimization. Springer, 1999. By the way, the Kelley book might be interesting, since the "optkelley" ATOMS module is available: http://atoms.scilab.org/toolboxes/optkelley But none of these books introduce to optimization in Scilab. We did a review on this topic and reported our analysis in "Optimization in Scilab", Baudin, Couvert, Steer, 2010. You will find it on : http://wiki.scilab.org/Open_Source_Documentation Best regards, Micha?l Baudin -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Tue Nov 30 14:54:57 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Tue, 30 Nov 2010 14:54:57 +0100 Subject: [scilab-Users] optimization : general question In-Reply-To: <20960077.194504.1291124842542.JavaMail.www@wwinf1e31> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFDD@exchsrv.AUXITROL1> <4CF4F56B.2040000@scilab.org> <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFDF@exchsrv.AUXITROL1> <20960077.194504.1291124842542.JavaMail.www@wwinf1e31> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFE0@exchsrv.AUXITROL1> tanks (merci) ________________________________ De : sebastien salmon [mailto:bob.hyrsut at wanadoo.fr] Envoy? : mardi 30 novembre 2010 14:52 ? : users at lists.scilab.org Objet : RE: [scilab-Users] optimization : general question Maybe this thesis could help you (in french) > Message du 30/11/10 14:16 > De : "Carrico, Paul" > A : users at lists.scilab.org > Copie ? : > Objet : RE: [scilab-Users] optimization : general question > > Both Micha?l and S?bastien, First of all thanks for your (interesting) feedback, I'll have a look on the example (as you've seen I'm a newbie in optimization item and your advices are precious). Additional question : do you think I should have a look on another Scilab function afterward ? Can you recommand a good support to well understand optimization problems ? Cheers Paul ----------------------------------------------------------------- > PAUL CARRICO > Design Engineer / Material expert > Temperature Department Esterline | Advanced Sensors > 5, all?e Charles Path? > 18941 BOURGES cedex 9 > FRANCE > Phone : +33 (0) 2 48 66 78 50 > Fax : +33 (0) 2 48 66 78 55 > www.esterline.com > Featuring AUXITROL, NORWICH, and WESTON Products > ----------------------------------------------------------------- > P > Please consider the environment before printing this e-mail > ________________________________ De : Micha?l Baudin [mailto:michael.baudin at scilab.org] > Envoy? : mardi 30 novembre 2010 14:00 > ? : users at lists.scilab.org > Cc : Carrico, Paul > Objet : Re: [scilab-Users] optimization : general question > > Hi, > > There is no way to apply bounds to the parameters from the fminsearch function. This is because the algorithm was mainly designed for unconstrained optimization. Nevertheless, it is possible to apply them with the lower level component that the fminsearch function uses, the neldermead component. This is possible by projecting the parameters on the bounds. This makes the simple degenerate on the bounds and, if not far away from the optimum, let the simplex converge on the optimum. > > In order to find an example, please look, in Scilab v5.2.2, in the demonstrations: > > ? > Scilab Demonstrations > Optimization and simulation > neldermead Box B > > This example is based on the problem B from the Box' paper. It is a problem with 2 bounded parameters (see in attachment). > > In Scilab v5.3, I added some other examples. This includes a simple problem with bounds and Rosenbrock's post office problem, an optimization with 3 parameters and linear constraints (see in attachement). The simplest problem is the following: > > function [ f , index ] = myquad ( x , index ) > f = x(1)^2 + x(2)^2 > endfunction > rand("seed" , 0) > x0 = [1.2 1.9].'; > nm = nmplot_new (); > nm = nmplot_configure(nm,"-numberofvariables",2); > nm = nmplot_configure(nm,"-function",myquad); > nm = nmplot_configure(nm,"-x0",x0); > nm = nmplot_configure(nm,"-method","box"); > nm = nmplot_configure(nm,"-boundsmin",[1 1]); > nm = nmplot_configure(nm,"-boundsmax",[2 2]); > nm = nmplot_search(nm); > xcomp = nmplot_get(nm,"-xopt") // Should be [1 1] > fcomp = nmplot_get(nm,"-fopt") // Should be 2 > nm = nmplot_destroy(nm); > > This example is not provided in the help of neldermead (see bug #7164): I will fix this in the next release. > > Best regards, > > Micha?l > > PS > http://bugzilla.scilab.org/show_bug.cgi?id=7164 > > Le 30/11/2010 11:58, Carrico, Paul a ?crit : Dear all, The purpose of this mail is to benefit from user feedback of Scilab community ... even if my experience on optimization item is currently rather limited, this study will significantly increase my own expertise. I'm currently working in linking a FEA code with Scilab to fit parameters from tests (see attached fig - in red the steps realized in Scilab ) : - On a single parameter I used with success the fminsearch function (based on the simplex theory), - with 2 parameters, the calculated ran ... nevertheless the final result is physically non applicable (need to bracket one of the values for examples) Does somebody be experienced on such item ? what is the best Scilab function ? Some advices in reading ? Thanks in advance Regards Paul -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > > -- 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 -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ATT654879.jpg Type: image/jpeg Size: 68092 bytes Desc: ATT654879.jpg URL: From paul.carrico at free.fr Tue Nov 30 21:39:06 2010 From: paul.carrico at free.fr (Paul CARRICO) Date: Tue, 30 Nov 2010 21:39:06 +0100 Subject: [scilab-Users] optimization : general question In-Reply-To: <4CF4F56B.2040000@scilab.org> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFDD@exchsrv.AUXITROL1> <4CF4F56B.2040000@scilab.org> Message-ID: <000001cb90ce$a2704300$e750c900$@carrico@free.fr> Micha?l, The calculations run with the code herebelllow nevertheless the parameters do not remain in the range defined by the brackets nay it leads to FEA failure ! I suppose consequently they are too far from the optimized value isn?t it (or there?s a problem in my code) ? could you confirm ? Regards Paul ################################################################## initial_parameters = [C10 C01]'; // BE CAREFUL : [C10 C01]' = transposed matrix nm = nmplot_new (); nm = nmplot_configure(nm,"-numberofvariables",2); // Number of variables => C10 & C01 nm = nmplot_configure(nm,"-function",optimization2); nm = nmplot_configure(nm,"-x0",initial_parameters); // BE CAREFUL : [C10 C01]' = transposed matrix nm = nmplot_configure(nm,"-method","box"); // box => brackets are taken into account nm = nmplot_configure(nm,"-boundsmin",[0 0]); nm = nmplot_configure(nm,"-boundsmax",[1 1]); [nm,SSE] = nmplot_function(nm,initial_parameters); nm = nmplot_configure(nm,"-simplexfn","history.simplex.dat"); ################################################################# The inital value of the C10 parameters are : - C10 = 0.0623844 - C01 = 0.01 ######################################################### * C10 = 0.0623844 * C01 = 0.01 * SSE = 0.640828 Optimization in progress (please wait) ... ######################################################### * C10 = 0.0623844 * C01 = 0.01 -->mode(0); -->mode(0); * SSE = 0.640828 ######################################################### * C10 = 0.0623844 * C01 = 0.01 -->mode(0); -->mode(0); * SSE = 0.640828 ######################################################### * C10 = 0.0623844 * C01 = 0.01 * SSE = 0.640828 ######################################################### * C10 = 1.06238 * C01 = 0.01 * SSE = 3097.29 ######################################################### * C10 = 0.0623844 * C01 = 1.01 * SSE = 1390.08 ######################################################### * C10 = -1.23762 * C01 = 1.16 * SSE = 0.218768 ######################################################### * C10 = 1e-006 * C01 = 1.16 * SSE = 1525.15 ######################################################### * C10 = 0.143483 * C01 = -0.335 * SSE = 42.4482 ######################################################### * C10 = 0.143483 * C01 = 1e-006 * SSE = 23.5783 ######################################################### * C10 = 0.155648 * C01 = -1.3015 * SSE = 1807.92 ######################################################### * C10 = 0.129291 * C01 = -0.648249 * SSE = 356.971 ######################################################### * C10 = 0.129291 * C01 = 1e-006 * SSE = 16.6268 ######################################################### * C10 = 0.0338986 * C01 = 0.0114998 * SSE = 0.56774 ######################################################### * C10 = -0.0573523 * C01 = 0.0247235 * SSE = 18.4969 ######################################################### * C10 = -0.00460543 * C01 = 0.0177367 * SSE = 4.48301 ######################################################### * C10 = 1e-006 * C01 = 0.0177367 * SSE = 5.72026 ######################################################### * C10 = 0.110724 * C01 = 0.00166708 * SSE = 9.75208 ######################################################### * C10 = 0.0794328 * C01 = 0.0062085 * SSE = 2.50334 ######################################################### * C10 = 0.00746278 * C01 = 0.0166538 * SSE = 4.02474 ######################################################### * C10 = 0.0278021 * C01 = 0.0137018 * SSE = 1.00242 ######################################################### * C10 = 0.0745827 * C01 = 0.00691242 * SSE = 1.80759 ######################################################### * C10 = 0.0613621 * C01 = 0.00883117 * SSE = 0.494514 ######################################################### * C10 = 0.02845 * C01 = 0.0103807 * SSE = 1.18104 ######################################################### * C10 = 0.0380402 * C01 = 0.0102731 The .dat file is empty - The calculation stops !--error 4 Variable non d??finie: displacement_ at line 90 of function ccx_dat_file called by : at line 51 of function called by : at line 57 of function optimbase_function called by : at line 23 of function _boxlinesearch called by : at line 106 of function neldermead_box called by : at line 8 of function neldermead_algo called by : at line 15 of function neldermead_search called by : at line 5 of function nmplot_search called by : nm = nmplot_search(nm); // start at line 33 of exec file called by : exec('C:\ETUDE_CALCULIX\ccx_scilab\fitting_procedure2.sce', -1) -->exec('SCI/etc/scilab.quit','errcatch',-1);quit; De : Micha?l Baudin [mailto:michael.baudin at scilab.org] Envoy? : mardi 30 novembre 2010 14:00 ? : users at lists.scilab.org Cc : Carrico, Paul Objet : Re: [scilab-Users] optimization : general question Hi, There is no way to apply bounds to the parameters from the fminsearch function. This is because the algorithm was mainly designed for unconstrained optimization. Nevertheless, it is possible to apply them with the lower level component that the fminsearch function uses, the neldermead component. This is possible by projecting the parameters on the bounds. This makes the simple degenerate on the bounds and, if not far away from the optimum, let the simplex converge on the optimum. In order to find an example, please look, in Scilab v5.2.2, in the demonstrations: ? > Scilab Demonstrations > Optimization and simulation > neldermead Box B This example is based on the problem B from the Box' paper. It is a problem with 2 bounded parameters (see in attachment). In Scilab v5.3, I added some other examples. This includes a simple problem with bounds and Rosenbrock's post office problem, an optimization with 3 parameters and linear constraints (see in attachement). The simplest problem is the following: function [ f , index ] = myquad ( x , index ) f = x(1)^2 + x(2)^2 endfunction rand("seed" , 0) x0 = [1.2 1.9].'; nm = nmplot_new (); nm = nmplot_configure(nm,"-numberofvariables",2); nm = nmplot_configure(nm,"-function",myquad); nm = nmplot_configure(nm,"-x0",x0); nm = nmplot_configure(nm,"-method","box"); nm = nmplot_configure(nm,"-boundsmin",[1 1]); nm = nmplot_configure(nm,"-boundsmax",[2 2]); nm = nmplot_search(nm); xcomp = nmplot_get(nm,"-xopt") // Should be [1 1] fcomp = nmplot_get(nm,"-fopt") // Should be 2 nm = nmplot_destroy(nm); This example is not provided in the help of neldermead (see bug #7164): I will fix this in the next release. Best regards, Micha?l PS http://bugzilla.scilab.org/show_bug.cgi?id=7164 Le 30/11/2010 11:58, Carrico, Paul a ?crit : Dear all, The purpose of this mail is to benefit from user feedback of Scilab community ... even if my experience on optimization item is currently rather limited, this study will significantly increase my own expertise. I'm currently working in linking a FEA code with Scilab to fit parameters from tests (see attached fig - in red the steps realized in Scilab ) : - On a single parameter I used with success the fminsearch function (based on the simplex theory), - with 2 parameters, the calculated ran ... nevertheless the final result is physically non applicable (need to bracket one of the values for examples) Does somebody be experienced on such item ? what is the best Scilab function ? Some advices in reading ? Thanks in advance Regards Paul cid:image001.jpg at 01CB90CA.2ADE33F0 ---------------------------------------------------------------------------- ---- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -- 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 HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 68092 bytes Desc: not available URL: