From tramos1 at lsu.edu Wed May 3 05:21:21 2017 From: tramos1 at lsu.edu (tiagorleite) Date: Tue, 2 May 2017 20:21:21 -0700 (MST) Subject: [Scilab-users] Evaluate external function for Couple ODE's Message-ID: <1493781681154-4036287.post@n3.nabble.com> First of all, sorry if this is a silly question. I am getting practice in Scilab I have a set of 8 coupled ODEs and a set of 28 "external equations". One example of external equation is my volumetric flow rate: function v=F18(FE,FY,FH,FM,FP,FA,FL,FB,P,T) v=(v0*ro0)/F17() endfunction; F17 is my density, which is depends on T, Pressure and total molar flow rate, and so on... When I solve the coupled ODEs as: X=ode(Y0,L0,L,Y), where Y are my coupled ODEs vector, I get the values for the variables of each differential equation. My question is, how can I evaluate also the external functions? I tried 'feval', but without success Thank you! -- View this message in context: http://mailinglists.scilab.org/Evaluate-external-function-for-Couple-ODE-s-tp4036287.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Clement.David at esi-group.com Wed May 3 12:02:47 2017 From: Clement.David at esi-group.com (=?utf-8?B?Q2zDqW1lbnQgRGF2aWQ=?=) Date: Wed, 3 May 2017 10:02:47 +0000 Subject: [Scilab-users] Fail to run scilab-6.0.0 binary In-Reply-To: References: Message-ID: <1493805766.26785.1.camel@esi-group.com> Hello Florian, Thanks for this information ; could you please open a bug with the following information ? - What is the GTK version on your system ? - Do you have a local Java installation ? - paste a trace generated using : SCIVERBOSE=1 bin/scilab AFAIK ArchLinux ships always up-to-date versions and we should work using it. A more recent OpenJDK version might be needed and you could enforce your distribution specific one using : JAVA_HOME=/path/to/jdk bin/scilab -- Cl?ment Le dimanche 30 avril 2017 ? 16:58 +0200, Florian Blach?re a ?crit?: > Hello, > > With an up to date ArchLinux box, the scilab-6.0.0 binary is failing to run with the following > error message: > > Cannot find this look and feel: > > [GTK look and feel - com.sun.java.swing.plaf.gtk.GTKLookAndFeel] not supported on this platform > > /opt/scilab/bin/scilab: line 957: 21013 Segmentation fault??????(core dumped) "$SCILABBIN" "$@" > ?I tested with the nightly builds and I've got the same error message. Do I need some more > dependency? > > If it can help, the scilab compile from source on the same machine is working fine. > > Thanks by advance, > Florian > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From adelson.oliveira at gmail.com Wed May 3 12:24:24 2017 From: adelson.oliveira at gmail.com (Adelson Oliveira) Date: Wed, 3 May 2017 07:24:24 -0300 Subject: [Scilab-users] Fail to run scilab-6.0.0 binary In-Reply-To: <1493805766.26785.1.camel@esi-group.com> References: <1493805766.26785.1.camel@esi-group.com> Message-ID: The same in openmandriva up to date. The error is related to some very recent update since Scilab 6 was working fine a couple of days ago. I filed a bug on this and found another bug where is reported that everything goes fine with Oracle Java. Em 03/05/2017 7:03 AM, "Cl?ment David" escreveu: > Hello Florian, > > Thanks for this information ; could you please open a bug with the > following information ? > > - What is the GTK version on your system ? > - Do you have a local Java installation ? > - paste a trace generated using : SCIVERBOSE=1 bin/scilab > > AFAIK ArchLinux ships always up-to-date versions and we should work using > it. A more recent OpenJDK > version might be needed and you could enforce your distribution specific > one using : > > JAVA_HOME=/path/to/jdk bin/scilab > > -- > Cl?ment > > Le dimanche 30 avril 2017 ? 16:58 +0200, Florian Blach?re a ?crit : > > Hello, > > > > With an up to date ArchLinux box, the scilab-6.0.0 binary is failing to > run with the following > > error message: > > > Cannot find this look and feel: > > > [GTK look and feel - com.sun.java.swing.plaf.gtk.GTKLookAndFeel] not > supported on this platform > > > /opt/scilab/bin/scilab: line 957: 21013 Segmentation fault (core > dumped) "$SCILABBIN" "$@" > > I tested with the nightly builds and I've got the same error message. > Do I need some more > > dependency? > > > > If it can help, the scilab compile from source on the same machine is > working fine. > > > > Thanks by advance, > > Florian > > > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From florian.blachere at uvsq.fr Wed May 3 13:23:54 2017 From: florian.blachere at uvsq.fr (=?UTF-8?Q?Florian_Blach=c3=a8re?=) Date: Wed, 3 May 2017 13:23:54 +0200 Subject: [Scilab-users] Fail to run scilab-6.0.0 binary In-Reply-To: <1493805766.26785.1.camel@esi-group.com> References: <1493805766.26785.1.camel@esi-group.com> Message-ID: <6e1dab23-1206-8e75-da49-38143dc62399@uvsq.fr> Hello, Ok, I will report the bug with all the required information. Could you just give me the right section where to report the bug (java or scilab or anything else) ? Thanks, Florian. On 03/05/17 12:02, Cl?ment David wrote: > Hello Florian, > > Thanks for this information ; could you please open a bug with the following information ? > > - What is the GTK version on your system ? > - Do you have a local Java installation ? > - paste a trace generated using : SCIVERBOSE=1 bin/scilab > > AFAIK ArchLinux ships always up-to-date versions and we should work using it. A more recent OpenJDK > version might be needed and you could enforce your distribution specific one using : > > JAVA_HOME=/path/to/jdk bin/scilab > > -- > Cl?ment > > Le dimanche 30 avril 2017 ? 16:58 +0200, Florian Blach?re a ?crit : >> Hello, >> >> With an up to date ArchLinux box, the scilab-6.0.0 binary is failing to run with the following >> error message: >>> Cannot find this look and feel: >>> [GTK look and feel - com.sun.java.swing.plaf.gtk.GTKLookAndFeel] not supported on this platform >>> /opt/scilab/bin/scilab: line 957: 21013 Segmentation fault (core dumped) "$SCILABBIN" "$@" >> I tested with the nightly builds and I've got the same error message. Do I need some more >> dependency? >> >> If it can help, the scilab compile from source on the same machine is working fine. >> >> Thanks by advance, >> Florian >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From Clement.David at esi-group.com Wed May 3 13:40:47 2017 From: Clement.David at esi-group.com (=?utf-8?B?Q2zDqW1lbnQgRGF2aWQ=?=) Date: Wed, 3 May 2017 11:40:47 +0000 Subject: [Scilab-users] Fail to run scilab-6.0.0 binary In-Reply-To: <6e1dab23-1206-8e75-da49-38143dc62399@uvsq.fr> References: <1493805766.26785.1.camel@esi-group.com> <6e1dab23-1206-8e75-da49-38143dc62399@uvsq.fr> Message-ID: <1493811644.26785.3.camel@esi-group.com> Hello Florian, Just post as "Scilab" ; this is related to startup, system config or Java basic usage. Thanks, -- Cl?ment Le mercredi 03 mai 2017 ? 13:23 +0200, Florian Blach?re a ?crit?: > Hello, > > Ok, I will report the bug with all the required information. Could you > just give me the right section where to report the bug (java or scilab > or anything else) ? > > Thanks, > > Florian. > > > On 03/05/17 12:02, Cl?ment David wrote: > > Hello Florian, > > > > Thanks for this information ; could you please open a bug with the following information ? > > > > ?- What is the GTK version on your system ? > > ?- Do you have a local Java installation ? > > ?- paste a trace generated using : SCIVERBOSE=1 bin/scilab > > > > AFAIK ArchLinux ships always up-to-date versions and we should work using it. A more recent > > OpenJDK > > version might be needed and you could enforce your distribution specific one using : > > > > ?JAVA_HOME=/path/to/jdk bin/scilab > > > > -- > > Cl?ment > > > > Le dimanche 30 avril 2017 ? 16:58 +0200, Florian Blach?re a ?crit : > > > Hello, > > > > > > With an up to date ArchLinux box, the scilab-6.0.0 binary is failing to run with the following > > > error message: > > > > Cannot find this look and feel: > > > > [GTK look and feel - com.sun.java.swing.plaf.gtk.GTKLookAndFeel] not supported on this > > > > platform > > > > /opt/scilab/bin/scilab: line 957: 21013 Segmentation fault??????(core dumped) "$SCILABBIN" > > > > "$@" > > > > > > ?I tested with the nightly builds and I've got the same error message. Do I need some more > > > dependency? > > > > > > If it can help, the scilab compile from source on the same machine is working fine. > > > > > > Thanks by advance, > > > Florian > > > > > > _______________________________________________ > > > users mailing list > > > users at lists.scilab.org > > > http://lists.scilab.org/mailman/listinfo/users > > > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From florian.blachere at uvsq.fr Wed May 3 14:12:01 2017 From: florian.blachere at uvsq.fr (=?UTF-8?Q?Florian_Blach=c3=a8re?=) Date: Wed, 3 May 2017 14:12:01 +0200 Subject: [Scilab-users] Fail to run scilab-6.0.0 binary In-Reply-To: <1493811644.26785.3.camel@esi-group.com> References: <1493805766.26785.1.camel@esi-group.com> <6e1dab23-1206-8e75-da49-38143dc62399@uvsq.fr> <1493811644.26785.3.camel@esi-group.com> Message-ID: <38bf8f5a-b4b8-23d5-3c80-102207cfa6d8@uvsq.fr> Done, I added details to this bug report: http://bugzilla.scilab.org/show_bug.cgi?id=15145. Thanks by advance, Florian On 03/05/17 13:40, Cl?ment David wrote: > Hello Florian, > > Just post as "Scilab" ; this is related to startup, system config or Java basic usage. > > Thanks, > > -- > Cl?ment > > Le mercredi 03 mai 2017 ? 13:23 +0200, Florian Blach?re a ?crit : >> Hello, >> >> Ok, I will report the bug with all the required information. Could you >> just give me the right section where to report the bug (java or scilab >> or anything else) ? >> >> Thanks, >> >> Florian. >> >> >> On 03/05/17 12:02, Cl?ment David wrote: >>> Hello Florian, >>> >>> Thanks for this information ; could you please open a bug with the following information ? >>> >>> - What is the GTK version on your system ? >>> - Do you have a local Java installation ? >>> - paste a trace generated using : SCIVERBOSE=1 bin/scilab >>> >>> AFAIK ArchLinux ships always up-to-date versions and we should work using it. A more recent >>> OpenJDK >>> version might be needed and you could enforce your distribution specific one using : >>> >>> JAVA_HOME=/path/to/jdk bin/scilab >>> >>> -- >>> Cl?ment >>> >>> Le dimanche 30 avril 2017 ? 16:58 +0200, Florian Blach?re a ?crit : >>>> Hello, >>>> >>>> With an up to date ArchLinux box, the scilab-6.0.0 binary is failing to run with the following >>>> error message: >>>>> Cannot find this look and feel: >>>>> [GTK look and feel - com.sun.java.swing.plaf.gtk.GTKLookAndFeel] not supported on this >>>>> platform >>>>> /opt/scilab/bin/scilab: line 957: 21013 Segmentation fault (core dumped) "$SCILABBIN" >>>>> "$@" >>>> I tested with the nightly builds and I've got the same error message. Do I need some more >>>> dependency? >>>> >>>> If it can help, the scilab compile from source on the same machine is working fine. >>>> >>>> Thanks by advance, >>>> Florian >>>> >>>> _______________________________________________ >>>> users mailing list >>>> users at lists.scilab.org >>>> http://lists.scilab.org/mailman/listinfo/users >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users >>> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -- Florian BLACH?RE Ing?nieur-docteur en contrat post-doctoral https://blacheref.perso.math.cnrs.fr IMOSE - https://www.imose.fr LMV - Laboratoire de math?matiques de Versailles UMR 8100 CNRS/UVSQ UVSQ - Universit? de Versailles Saint-Quentin-en-Yvelines From alexis.cros at promes.cnrs.fr Wed May 3 18:36:20 2017 From: alexis.cros at promes.cnrs.fr (Alexx) Date: Wed, 3 May 2017 09:36:20 -0700 (MST) Subject: [Scilab-users] Clear, export only an axis Message-ID: <1493829380993-4036294.post@n3.nabble.com> Hello, Is it possible, when many axes (plot2d or polarplot) are docked into a unique figure, to export the PNG of an axis like with the xs2png() function and a figure, without exporting the whole figure? Also, is it possible to clear only one axis which is contained into a figure without clearing the whole figure? It seems that clear(handle) and xs2png(handle, file_path) accepts only figure handles. Does anyone has the same problem? Thanks -- View this message in context: http://mailinglists.scilab.org/Clear-export-only-an-axis-tp4036294.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From tim at wescottdesign.com Wed May 3 19:17:43 2017 From: tim at wescottdesign.com (Tim Wescott) Date: Wed, 03 May 2017 10:17:43 -0700 Subject: [Scilab-users] Evaluate external function for Couple ODE's In-Reply-To: <1493781681154-4036287.post@n3.nabble.com> References: <1493781681154-4036287.post@n3.nabble.com> Message-ID: <1493831863.3547.5.camel@wescottdesign.com> If your L and X vectors are what I think they are, and if your external equations are what I think they are, then wouldn't each one's output depend only on the value of one column of X and the corresponding value of L? So, vectorize them and call (e.g.) F18(X, L), or F18(X(:, 42), L(42)). On Tue, 2017-05-02 at 20:21 -0700, tiagorleite wrote: > First of all, sorry if this is a silly question. I am getting > practice in > Scilab > > I have a set of 8 coupled ODEs and a set of 28 "external equations". > > One example of external equation is my volumetric flow rate: > > function v=F18(FE,FY,FH,FM,FP,FA,FL,FB,P,T) > ????v=(v0*ro0)/F17() > endfunction; > > F17 is my density, which is depends on T, Pressure and total molar > flow > rate, and so on... > > When I solve the coupled ODEs as: X=ode(Y0,L0,L,Y), where Y are my > coupled > ODEs vector, I get the values??for the variables of each differential > equation. > > My question is, how can I evaluate also the external functions? > > I tried 'feval', but without success > > Thank you! > > > > -- > View this message in context: http://mailinglists.scilab.org/Evaluate > -external-function-for-Couple-ODE-s-tp4036287.html > Sent from the Scilab users - Mailing Lists Archives mailing list > archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From tramos1 at lsu.edu Wed May 3 19:43:59 2017 From: tramos1 at lsu.edu (tiagorleite) Date: Wed, 3 May 2017 10:43:59 -0700 (MST) Subject: [Scilab-users] Evaluate external function for Couple ODE's In-Reply-To: <1493831863.3547.5.camel@wescottdesign.com> References: <1493781681154-4036287.post@n3.nabble.com> <1493831863.3547.5.camel@wescottdesign.com> Message-ID: <1493833439531-4036296.post@n3.nabble.com> Tim, Thanks for your response. X is my ODE solution vector for molar flow rates (Fi's), pressure (P) and temperature (T). L is my integration range. I don't know if you had a chance to check, but I have the code uploaded. I will try your suggestion. to evaluate the external function, would you use feval(X,L,F17)? Thanks again! -- View this message in context: http://mailinglists.scilab.org/Evaluate-external-function-for-Couple-ODE-s-tp4036287p4036296.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From tim at wescottdesign.com Wed May 3 20:04:44 2017 From: tim at wescottdesign.com (Tim Wescott) Date: Wed, 03 May 2017 11:04:44 -0700 Subject: [Scilab-users] Evaluate external function for Couple ODE's In-Reply-To: <1493833439531-4036296.post@n3.nabble.com> References: <1493781681154-4036287.post@n3.nabble.com> <1493831863.3547.5.camel@wescottdesign.com> <1493833439531-4036296.post@n3.nabble.com> Message-ID: <1493834684.3547.8.camel@wescottdesign.com> Read the help for feval. ?It appears that feval(X, L, F17) would give you a honkin' big square matrix of answers that are only valid along the diagonal. ?I think you just need to write a version of F17 that understands getting X as a matrix and L as a vector. ?If you've been handed F17, you may need to write your own version of feval that loops through the columns of X and values of L to give you a vector of answers. On Wed, 2017-05-03 at 10:43 -0700, tiagorleite wrote: > Tim, > > Thanks for your response. > > X is my ODE solution vector for molar flow rates (Fi's), pressure (P) > and > temperature (T). L is my integration range. I don't know if you had a > chance > to check, but I have the code uploaded. > > I will try your suggestion. > > to evaluate the external function, would you use feval(X,L,F17)? > > Thanks again! > > > > -- > View this message in context: http://mailinglists.scilab.org/Evaluate > -external-function-for-Couple-ODE-s-tp4036287p4036296.html > Sent from the Scilab users - Mailing Lists Archives mailing list > archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From sgougeon at free.fr Thu May 4 01:52:52 2017 From: sgougeon at free.fr (sgougeon at free.fr) Date: Thu, 4 May 2017 01:52:52 +0200 (CEST) Subject: [Scilab-users] Clear, export only an axis In-Reply-To: <1493829380993-4036294.post@n3.nabble.com> Message-ID: <89300062.1611183.1493855572583.JavaMail.root@zimbra75-e12.priv.proxad.net> Hello, >Is it possible, when many axes (plot2d or polarplot) are docked into a unique figure, You mean: when using subplot()? Then, we do not properly speak about "docking". Figures that are really docked together or to the desktop remain separated. >to export the PNG of an axis like with the xs2png() function >and a figure, without exporting the whole figure? AFAIK, it is not possible. Exports apply only to whole figures. But you may copy() an axes alone into a new figure, and then export this one. >Also, is it possible to clear only one axis which is contained into a figure >without clearing the whole figure? Yes, with delete(handle_of_the_axes) HTH Samuel From Frieder.Nikolaisen at student.hs-rm.de Thu May 4 09:13:37 2017 From: Frieder.Nikolaisen at student.hs-rm.de (Frieder Nikolaisen) Date: Thu, 04 May 2017 09:13:37 +0200 Subject: [Scilab-users] GUI Builder 4.0.1 for Scilab 6.0 Message-ID: Dear Community, I am using the GUI Builder again (last time Oktobre 2016), now with Scilab 6.0.0. I started to Design the interface, generated the GUI. Had the GUI run and wanted to reload it. But: --> guibuilder operation -: Warning adding a matrix with the empty matrix will give an empty matrix result. operation +: Warning adding a matrix with the empty matrix will give an empty matrix result. at line 60 of function guigetfile at line 4 of function openfile at line 9 of function open_existing_gui ':': Wrong type for argument 1: Real scalar expected. And with the old version I am used to (but its still desigend with Scilab 6): START GUI Builder 3.0 for Scilab 5.5 Load macros Load help Type "guibuilder" to start the GUI -->guibuilder !--error 21 ung?ltiger Index. at line 8 of function openfile called by : at line 9 of function open_existing_gui called by : = gcbo; end;gcbo = getcallbackobject(118);open_existing_gui(handles);if exists("%oldgcbo") then gcbo = %oldgcbo; else clear gcbo; end while executing a callback The file is attached. Scilab 5.5 and 6 open the programm with save and run. But not with the Builder. WHATS WRONG? Best regards Frieder -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Simulation_v1.1.sce Type: text/x-c++ Size: 4117 bytes Desc: not available URL: From Frieder.Nikolaisen at student.hs-rm.de Thu May 4 10:03:25 2017 From: Frieder.Nikolaisen at student.hs-rm.de (Frieder Nikolaisen) Date: Thu, 04 May 2017 10:03:25 +0200 Subject: [Scilab-users] GUI Builder 4.0.1 for Scilab 6.0 In-Reply-To: <11165_1493882682_590AD73A_11165_106_1_e228d8f3dd76ee2c70b4ad67cd302f5f@mail.student.hs-rm.de> References: <11165_1493882682_590AD73A_11165_106_1_e228d8f3dd76ee2c70b4ad67cd302f5f@mail.student.hs-rm.de> Message-ID: I restarted the project with the GUI Builder 3.0 for Scilab 5.5. To now, it runs normal. I attach the working file. I do not understand the trouble. I had other problems yesterday, with both versions. Hopefully it runs now stable. Am 2017-05-04 09:13, schrieb Frieder Nikolaisen: > Dear Community, > > I am using the GUI Builder again (last time Oktobre 2016), now with Scilab 6.0.0. > > I started to Design the interface, generated the GUI. Had the GUI run and wanted to reload it. But: > > --> guibuilder > operation -: Warning adding a matrix with the empty matrix will give an empty matrix result. > operation +: Warning adding a matrix with the empty matrix will give an empty matrix result. > at line 60 of function guigetfile > at line 4 of function openfile > at line 9 of function open_existing_gui > > ':': Wrong type for argument 1: Real scalar expected. > > And with the old version I am used to (but its still desigend with Scilab 6): > > START GUI Builder 3.0 for Scilab 5.5 > Load macros > Load help > Type "guibuilder" to start the GUI > > -->guibuilder > !--error 21 > ung?ltiger Index. > at line 8 of function openfile called by : > at line 9 of function open_existing_gui called by : > = gcbo; end;gcbo = getcallbackobject(118);open_existing_gui(handles);if exists("%oldgcbo") then gcbo = %oldgcbo; else clear gcbo; end > while executing a callback > > The file is attached. > > Scilab 5.5 and 6 open the programm with save and run. But not with the Builder. > > WHATS WRONG? > > Best regards > > Frieder -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Simulation_v2.6.sce Type: text/x-c++ Size: 9244 bytes Desc: not available URL: From amonmayr at laas.fr Thu May 4 11:55:41 2017 From: amonmayr at laas.fr (amonmayr at laas.fr) Date: Thu, 4 May 2017 11:55:41 +0200 Subject: [Scilab-users] GUI Builder 4.0.1 for Scilab 6.0 In-Reply-To: References: Message-ID: <544a0e61-f54d-f234-d57e-84c894afd81d@laas.fr> Dear Frieder, In Scilab 6.0 a breaking change was introduced: adding an empty matrix to a constant now gives an empty matrix, not a constant. This causes a lot of issues with existing codes that relied on the old behaviour. Apparently, this is the case for GUI Builder that was not properly refactored for Scilab 6.0. I think you should report this to the maintainer of the module. Hope it helps, Antoine Le 04/05/2017 ? 09:13, Frieder Nikolaisen a ?crit : > > Dear Community, > > I am using the GUI Builder again (last time Oktobre 2016), now with > Scilab 6.0.0. > > I started to Design the interface, generated the GUI. Had the GUI run > and wanted to reload it. But: > > > --> guibuilder > operation -: Warning adding a matrix with the empty matrix will give > an empty matrix result. > operation +: Warning adding a matrix with the empty matrix will give > an empty matrix result. > at line 60 of function guigetfile > at line 4 of function openfile > at line 9 of function open_existing_gui > > ':': Wrong type for argument 1: Real scalar expected. > > And with the old version I am used to (but its still desigend with > Scilab 6): > > START GUI Builder 3.0 for Scilab 5.5 > Load macros > Load help > Type "guibuilder" to start the GUI > > > -->guibuilder > !--error 21 > ung?ltiger Index. > at line 8 of function openfile called by : > at line 9 of function open_existing_gui called by : > = gcbo; end;gcbo = > getcallbackobject(118);open_existing_gui(handles);if > exists("%oldgcbo") then gcbo = %oldgcbo; else clear gcbo; end > while executing a callback > > The file is attached. > > Scilab 5.5 and 6 open the programm with save and run. But not with the > Builder. > > *Whats wrong?* > > Best regards > > Frieder > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche BP 54200 31031 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoine.monmayrant at laas.fr permanent email : antoine.monmayrant at polytechnique.org +++++++++++++++++++++++++++++++++++++++++++++++++++++++ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Frieder.Nikolaisen at student.hs-rm.de Thu May 4 12:32:51 2017 From: Frieder.Nikolaisen at student.hs-rm.de (Frieder Nikolaisen) Date: Thu, 04 May 2017 12:32:51 +0200 Subject: [Scilab-users] GUI Builder 4.0.1 for Scilab 6.0 In-Reply-To: <544a0e61-f54d-f234-d57e-84c894afd81d@laas.fr> References: <544a0e61-f54d-f234-d57e-84c894afd81d@laas.fr> Message-ID: <124bd805fc8a787ed06ca2af686a00e7@mail.student.hs-rm.de> Dear Antoine, yes. I stick to Scilab 5.5. I will copy this message to the report. Cheers Frieder Am 2017-05-04 11:55, schrieb amonmayr at laas.fr: > Dear Frieder, > > In Scilab 6.0 a breaking change was introduced: adding an empty matrix to a constant now gives an empty matrix, not a constant. > This causes a lot of issues with existing codes that relied on the old behaviour. > Apparently, this is the case for GUI Builder that was not properly refactored for Scilab 6.0. > I think you should report this to the maintainer of the module. > > Hope it helps, > > Antoine > > Le 04/05/2017 ? 09:13, Frieder Nikolaisen a ?crit : > >> Dear Community, >> >> I am using the GUI Builder again (last time Oktobre 2016), now with Scilab 6.0.0. >> >> I started to Design the interface, generated the GUI. Had the GUI run and wanted to reload it. But: >> >> --> guibuilder >> operation -: Warning adding a matrix with the empty matrix will give an empty matrix result. >> operation +: Warning adding a matrix with the empty matrix will give an empty matrix result. >> at line 60 of function guigetfile >> at line 4 of function openfile >> at line 9 of function open_existing_gui >> >> ':': Wrong type for argument 1: Real scalar expected. >> >> And with the old version I am used to (but its still desigend with Scilab 6): >> >> START GUI Builder 3.0 for Scilab 5.5 >> Load macros >> Load help >> Type "guibuilder" to start the GUI >> >> -->guibuilder >> !--error 21 >> ung?ltiger Index. >> at line 8 of function openfile called by : >> at line 9 of function open_existing_gui called by : >> = gcbo; end;gcbo = getcallbackobject(118);open_existing_gui(handles);if exists("%oldgcbo") then gcbo = %oldgcbo; else clear gcbo; end >> while executing a callback >> >> The file is attached. >> >> Scilab 5.5 and 6 open the programm with save and run. But not with the Builder. >> >> WHATS WRONG? >> >> Best regards >> >> Frieder >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > -- > +++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > Antoine Monmayrant LAAS - CNRS > 7 avenue du Colonel Roche > BP 54200 > 31031 TOULOUSE Cedex 4 > FRANCE > > Tel:+33 5 61 33 64 59 > > email : antoine.monmayrant at laas.fr > permanent email : antoine.monmayrant at polytechnique.org > > +++++++++++++++++++++++++++++++++++++++++++++++++++++++ -------------- next part -------------- An HTML attachment was scrubbed... URL: From W.Schulz at ove.at Thu May 4 14:09:37 2017 From: W.Schulz at ove.at (SCHULZ Wolfgang) Date: Thu, 4 May 2017 12:09:37 +0000 Subject: [Scilab-users] [Scilab-Dev] Scilab release frequency ? In-Reply-To: <1491893917179-4036178.post@n3.nabble.com> References: <1491893917179-4036178.post@n3.nabble.com> Message-ID: <07A8AF089844A549B0F0CCC727AF31AA7545B9B3@OVEKBG.ove.at> Hello, was there any decision made on the release frequency? It would be very interesting for me, and I think to all users, to know when we can expect an updated version. I also didn't find something on the Scilab web site regarding the current policy? Thanks a lot Wolfgang > -----Urspr?ngliche Nachricht----- > Von: users [mailto:users-bounces at lists.scilab.org] Im Auftrag von Rafael > Guerra > Gesendet: Dienstag, 11. April 2017 08:59 > An: users at lists.scilab.org > Betreff: Re: [Scilab-users] [Scilab-Dev] Scilab release frequency ? > > Wouldn't this question make more sense to be asked to the industrial > partners of Scilab? > For simple hobby users like us that freely enjoy Scilab's scientific computing > power for testing code and ideas, shouldn't the answer to the question be > correlated with the frequency of their donations? > I am sorry if I do not understand much about free software, may be it > updates itself freely too. > > > > > -- > View this message in context: http://mailinglists.scilab.org/Re-Scilab-Dev- > Scilab-release-frequency-tp4036172p4036178.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at > Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From samuel.enibe at unn.edu.ng Thu May 4 16:00:58 2017 From: samuel.enibe at unn.edu.ng (Samuel Enibe) Date: Thu, 4 May 2017 15:00:58 +0100 Subject: [Scilab-users] Analysis of Variance (ANOVA) with SCILAB Message-ID: Could you please let me know if there is any function or toolbox in SCILAB which can be used for the ANALYSIS OF VARIANCE (ANOVA). Thank you very much. God bless you. -- Samuel Ogbonna Enibe University of Nigeria, Nsukka, Nigeria From cfuttrup at gmail.com Thu May 4 17:04:54 2017 From: cfuttrup at gmail.com (Claus Futtrup) Date: Thu, 4 May 2017 17:04:54 +0200 Subject: [Scilab-users] Analysis of Variance (ANOVA) with SCILAB In-Reply-To: References: Message-ID: <03619990-1331-d050-af32-7139368d54fb@gmail.com> Hi Samuel +1 on that one. Maybe even a more generic high quality statistics module. A simple Google search "Scilab ATOMS ANOVA" gave a number of hits, but none that are productive: https://wiki.scilab.org/The-Ideal-Statistics-Module https://forge.scilab.org/index.php/p/anova/ This one is maybe helpful: https://wiki.scilab.org/Documents%20and%20tutorials%20for%20Probabilities%20and%20Statistics%20in%20Scilab It seems Stixbox is the closest you can get: https://atoms.scilab.org/toolboxes/stixbox /Claus On 04-05-2017 16:00, Samuel Enibe wrote: > Could you please let me know if there is any function or toolbox in > SCILAB which can be used for the ANALYSIS OF VARIANCE (ANOVA). > > Thank you very much. > God bless you. > From chinluh at tritytech.com Fri May 5 10:52:51 2017 From: chinluh at tritytech.com (Tan Chin Luh) Date: Fri, 5 May 2017 16:52:51 +0800 Subject: [Scilab-users] GUI Builder 4.0.1 for Scilab 6.0 In-Reply-To: <124bd805fc8a787ed06ca2af686a00e7@mail.student.hs-rm.de> References: <544a0e61-f54d-f234-d57e-84c894afd81d@laas.fr> <124bd805fc8a787ed06ca2af686a00e7@mail.student.hs-rm.de> Message-ID: <4728f0ee-7f03-cfac-c16a-f6c5baf0506c@tritytech.com> Hi, The issue was caused by the changes in code generation for a better visualization during the GUI start up. If you notice carefully, your Simulation_v1.1.sce will be shown up with all components ready while Simulation_v2.6.sce will show the figure first, and the components would be loaded one by one. I had overlooked the reloading the generated GUI file in new format. Fixed in ver 4.1. Currently GUI generated in Scilab 6 is not backward compatible yet, I will find some time to update the version 3 for Scilab 5.5.2. Thanks. Regards, Tan Chin Luh On 4/5/2017 6:32 PM, Frieder Nikolaisen wrote: > > Dear Antoine, > > yes. I stick to Scilab 5.5. I will copy this message to the report. > > Cheers > > Frieder > > Am 2017-05-04 11:55, schrieb amonmayr at laas.fr: > >> Dear Frieder, >> >> In Scilab 6.0 a breaking change was introduced: adding an empty >> matrix to a constant now gives an empty matrix, not a constant. >> This causes a lot of issues with existing codes that relied on the >> old behaviour. >> Apparently, this is the case for GUI Builder that was not properly >> refactored for Scilab 6.0. >> I think you should report this to the maintainer of the module. >> >> Hope it helps, >> >> Antoine >> >> >> Le 04/05/2017 ? 09:13, Frieder Nikolaisen a ?crit : >>> >>> Dear Community, >>> >>> I am using the GUI Builder again (last time Oktobre 2016), now with >>> Scilab 6.0.0. >>> >>> I started to Design the interface, generated the GUI. Had the GUI >>> run and wanted to reload it. But: >>> >>> >>> --> guibuilder >>> operation -: Warning adding a matrix with the empty matrix will give >>> an empty matrix result. >>> operation +: Warning adding a matrix with the empty matrix will give >>> an empty matrix result. >>> at line 60 of function guigetfile >>> at line 4 of function openfile >>> at line 9 of function open_existing_gui >>> >>> ':': Wrong type for argument 1: Real scalar expected. >>> >>> And with the old version I am used to (but its still desigend with >>> Scilab 6): >>> >>> START GUI Builder 3.0 for Scilab 5.5 >>> Load macros >>> Load help >>> Type "guibuilder" to start the GUI >>> >>> >>> -->guibuilder >>> !--error 21 >>> ung?ltiger Index. >>> at line 8 of function openfile called by : >>> at line 9 of function open_existing_gui called by : >>> = gcbo; end;gcbo = >>> getcallbackobject(118);open_existing_gui(handles);if >>> exists("%oldgcbo") then gcbo = %oldgcbo; else clear gcbo; end >>> while executing a callback >>> >>> The file is attached. >>> >>> Scilab 5.5 and 6 open the programm with save and run. But not with >>> the Builder. >>> >>> *Whats wrong?* >>> >>> Best regards >>> >>> Frieder >>> >>> >>> >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users >> >> -- >> +++++++++++++++++++++++++++++++++++++++++++++++++++++++ >> >> Antoine Monmayrant LAAS - CNRS >> 7 avenue du Colonel Roche >> BP 54200 >> 31031 TOULOUSE Cedex 4 >> FRANCE >> >> Tel:+33 5 61 33 64 59 >> >> email :antoine.monmayrant at laas.fr >> permanent email :antoine.monmayrant at polytechnique.org >> >> +++++++++++++++++++++++++++++++++++++++++++++++++++++++ >> > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at kybdr.de Sun May 7 18:39:01 2017 From: lists at kybdr.de (Dirk Reusch) Date: Sun, 7 May 2017 18:39:01 +0200 Subject: [Scilab-users] Scilab 6 // Redefinement of permanent variable does not raise an error!? Message-ID: <20170507183901.61d30c79@lemon> Hi, ----------------------------------- Startup execution: loading initial environment ->a = 123 a = 123. -->predef("all") -->a=456 Redefining permanent variable. -->a a = 123. ----------------------------------- IMHO, an error should be raised as in Scilab 5.5.x! Regards, Dirk From sgougeon at free.fr Sun May 7 19:18:59 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 7 May 2017 19:18:59 +0200 Subject: [Scilab-users] Scilab 6 // Redefinement of permanent variable does not raise an error!? In-Reply-To: <20170507183901.61d30c79@lemon> References: <20170507183901.61d30c79@lemon> Message-ID: <1d698734-3f4e-d7ca-ee55-97523553ffbe@free.fr> Le 07/05/2017 ? 18:39, Dirk Reusch a ?crit : > Hi, > > ----------------------------------- > > Startup execution: > loading initial environment > > ->a = 123 > a = > > 123. > > -->predef("all") > > -->a=456 > > Redefining permanent variable. > > -->a > a = > > 123. > > ----------------------------------- > > IMHO, an error should be raised as in Scilab 5.5.x! It is the case: --> a = 456 Redefining permanent variable. --> lasterror ans = Redefining permanent variable. From lists at kybdr.de Mon May 8 10:16:01 2017 From: lists at kybdr.de (Dirk Reusch) Date: Mon, 8 May 2017 10:16:01 +0200 Subject: [Scilab-users] Scilab 6 // Redefinement of permanent variable does not raise an error!? In-Reply-To: <20170507183901.61d30c79@lemon> References: <20170507183901.61d30c79@lemon> Message-ID: <20170508101601.4da6b414@lemon> Hi Samuel, Yes, you are right ... I was looking for a message like "error: ....", so may be the formatting of the message could be improved? Anyway, there is another glitch: ------------------------------------ Startup execution: loading initial environment --> a=123;predef("all");a=456 Redefining permanent variable. --> [msg,err]=lasterror() err = 999. msg = Redefining permanent variable. ------------------------------------ It seems, that the error number is now 999 and it has been or should be 13 (cf. help error_table)?. Regards, Dirk From sgougeon at free.fr Mon May 8 13:12:16 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 8 May 2017 13:12:16 +0200 Subject: [Scilab-users] Scilab 6 // Redefinement of permanent variable does not raise an error!? In-Reply-To: <20170508101601.4da6b414@lemon> References: <20170507183901.61d30c79@lemon> <20170508101601.4da6b414@lemon> Message-ID: <5ac78945-fce4-6017-6de4-dc39238eab02@free.fr> Hello Dirk, Le 08/05/2017 ? 10:16, Dirk Reusch a ?crit : > Hi Samuel, > > Yes, you are right ... I was looking for a message like "error: ....", > so may be the formatting of the message could be improved? > > Anyway, there is another glitch: > > ------------------------------------ > > Startup execution: > loading initial environment > > --> a=123;predef("all");a=456 > > Redefining permanent variable. > > --> [msg,err]=lasterror() > err = > > 999. > > msg = > > Redefining permanent variable. > > ------------------------------------ > > It seems, that the error number is now 999 and it has > been or should be 13 (cf. help error_table)?. As indicated in the Scilab 6.0.0 CHANGES file (section /Feature changes and additions/), error numbers are deprecated. I guess that the table of error numbers is still distributed just for the record, because Scilab and external codes have not been changed to yield proper error messages instead of obscure numbers. The deprecation has not been performed in a clean way. In the same way, lasterror() should no longer propose returning an err output. etc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From postmaster at lists.scilab.org Tue May 9 04:51:57 2017 From: postmaster at lists.scilab.org (The Post Office) Date: Tue, 9 May 2017 09:51:57 +0700 Subject: [Scilab-users] *****SPAM***** Returned mail: see transcript for details Message-ID: <20170509025200.1D7CAA5EC9@corvo.scilab.org> Spam detection software, running on the system "corvo", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: [...] Content analysis details: (12.0 points, 6.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.5 BAYES_99 BODY: Bayes spam probability is 99 to 100% [score: 0.9999] 0.3 FSL_XM_419 Old OE version in X-Mailer only seen in 419 spam 0.8 RCVD_IN_SORBS_WEB RBL: SORBS: sender is an abusable web server [123.25.30.240 listed in dnsbl.sorbs.net] 1.4 RCVD_IN_BRBL_LASTEXT RBL: RCVD_IN_BRBL_LASTEXT [123.25.30.240 listed in bb.barracudacentral.org] 0.0 FSL_UA FSL_UA 0.5 MISSING_MID Missing Message-Id: header 0.8 RDNS_NONE Delivered to internal network by a host with no rDNS 0.2 TO_NO_BRKTS_MSFT To: misformatted and supposed Microsoft tool 1.9 FORGED_MUA_OUTLOOK Forged mail pretending to be from MS Outlook 2.5 DOS_OE_TO_MX Delivered direct to MX with OE headers 0.0 TO_NO_BRKTS_NORDNS To: misformatted and no rDNS The original message was not completely plain text, and may be unsafe to open with some email clients; in particular, it may contain a virus, or confirm that your address can receive spam. If you wish to view it, it may be safer to save it to a file and open it with an editor. -------------- next part -------------- An embedded message was scrubbed... From: "The Post Office" Subject: Returned mail: see transcript for details Date: Tue, 9 May 2017 09:51:57 +0700 Size: 41024 URL: From erhard.glueck.austria at gmail.com Tue May 9 11:53:07 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Tue, 9 May 2017 02:53:07 -0700 (MST) Subject: [Scilab-users] automatic traverse question Message-ID: <1494323587049-4036327.post@n3.nabble.com> Hello! im = imread("xxx.jpg"); imdbl = im2double(im); resu=zeros(imdbl (:,:,1)); This without problems*:* resu(:,:)=imdbl(:,:,1)+imdbl(:,:,2)+imdbl(:,:,3); But here I got the error message *Inconsistent row/column dimensions* resu(:,:)=abs(imdbl(:,:,1)-imdbl(:,:,2))*max(imdbl(:,:,1),imdbl(:,:,2)); Thank you for advice Erhy -- View this message in context: http://mailinglists.scilab.org/automatic-traverse-question-tp4036327.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Tue May 9 12:50:27 2017 From: sgougeon at free.fr (sgougeon at free.fr) Date: Tue, 9 May 2017 12:50:27 +0200 (CEST) Subject: [Scilab-users] automatic traverse question In-Reply-To: <1494323587049-4036327.post@n3.nabble.com> Message-ID: <232224270.13460046.1494327027311.JavaMail.root@zimbra75-e12.priv.proxad.net> Hello Erhy, >resu(:,:)=abs(imdbl(:,:,1)-imdbl(:,:,2))*max(imdbl(:,:,1),imdbl(:,:,2)); This syntax of max() works element-wise and returns a matrix. Then, if the matrix is not square, the * multiplication can't work here. So, depending of what you want to do, you shall either use .* instead of *, or fix the way you use max(). HTH Samuel From erhard.glueck.austria at gmail.com Tue May 9 13:10:32 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Tue, 9 May 2017 04:10:32 -0700 (MST) Subject: [Scilab-users] automatic traverse question In-Reply-To: <232224270.13460046.1494327027311.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <1494323587049-4036327.post@n3.nabble.com> <232224270.13460046.1494327027311.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: <1494328232930-4036330.post@n3.nabble.com> Thank you Samuel! This works: resu(:,:)=abs(imdbl(:,:,1)-imdbl(:,:,2)) *.** max(imdbl(:,:,1),imdbl(:,:,2)); -- View this message in context: http://mailinglists.scilab.org/automatic-traverse-question-tp4036327p4036330.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From zogheib.ali at gmail.com Tue May 9 17:53:19 2017 From: zogheib.ali at gmail.com (AliZ) Date: Tue, 9 May 2017 08:53:19 -0700 (MST) Subject: [Scilab-users] Problem installing Image Processing Toolbox Message-ID: <1494345199240-4036334.post@n3.nabble.com> Hi, I've recently downloaded scilab and I'm trying to install the Image Processing Design Toolbox or IPD which I found here: https://atoms.scilab.org/toolboxes/IPD/8.3.3. I've tried to simply run --> atomsInstall('IPD') but that didn't work it says the 'IPD package is not available', I've downloaded the toolbox zip and tried -->atomsInstall('users\...\...\IPD.zip') and that didn't work either it says that there is a description file missing in a folder called .atoms which I couldn't find and finally I tried extracting the toolbox folder and pasted it in the contrib folder, this made the toolbox visible but when I click on it I get a 236 error. There's probably something I'm doing completely wrong, but I'm very new to this so I really don't know what to do. Could someone point me in the right direction? Oh and for information I am on a Mac OSX 10.11.2, using Scilab 6.00. Hope all of this makes sense, thanks! -- View this message in context: http://mailinglists.scilab.org/Problem-installing-Image-Processing-Toolbox-tp4036334.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Tue May 9 21:36:01 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 9 May 2017 21:36:01 +0200 Subject: [Scilab-users] Problem installing Image Processing Toolbox In-Reply-To: <1494345199240-4036334.post@n3.nabble.com> References: <1494345199240-4036334.post@n3.nabble.com> Message-ID: Hello, Le 09/05/2017 ? 17:53, AliZ a ?crit : > Hi, > > I've recently downloaded scilab and I'm trying to install the Image > Processing Design Toolbox or IPD which I found here: > https://atoms.scilab.org/toolboxes/IPD/8.3.3. > I've tried to simply run --> atomsInstall('IPD') but that didn't work it > says the 'IPD package is not available', I've downloaded the toolbox zip and > tried -->atomsInstall('users\...\...\IPD.zip') and that didn't work either > it says that there is a description file missing in a folder called .atoms > which I couldn't find and finally I tried extracting the toolbox folder and > pasted it in the contrib folder, this made the toolbox visible but when I > click on it I get a 236 error. > There's probably something I'm doing completely wrong, but I'm very new to > this so I really don't know what to do. Could someone point me in the right > direction? > Oh and for information I am on a Mac OSX 10.11.2, using Scilab 6.00. > > Hope all of this makes sense, thanks! The last Scilab version for which IPDT is available is 5.4. So if you are trying to install it on Scilab 5.5.# or Scilab 6, it fails. You may have a look in the same Image processing category to get a package working on Scilab 6. HTH Samuel From alexis.cros at promes.cnrs.fr Wed May 10 08:56:03 2017 From: alexis.cros at promes.cnrs.fr (Alexx) Date: Tue, 9 May 2017 23:56:03 -0700 (MST) Subject: [Scilab-users] Clear, export only an axis In-Reply-To: <89300062.1611183.1493855572583.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <1493829380993-4036294.post@n3.nabble.com> <89300062.1611183.1493855572583.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: <2fea760e-6292-b2f3-9441-5183463acbc9@promes.cnrs.fr> Thank you Samuel, good idea to copy the axis into a new figure, i could do what I wanted. I just turn the new figure invisible to make the process transparent for the user. We can see the new figure opening and closing right away (seeable no more than 0.3s). Nevertheless, I didn't succes in doing the contrary, that's to say to copy a whole figure containing only one axis into a frame which occupies a part of a figure. Anyway, it's good to have new tracks! Have a good day Le 04/05/2017 ? 01:53, Samuel GOUGEON [via Scilab / Xcos - Mailing Lists Archives] a ?crit : > Hello, > > >Is it possible, when many axes (plot2d or polarplot) are docked into > a unique figure, > > You mean: when using subplot()? Then, we do not properly speak about > "docking". > Figures that are really docked together or to the desktop remain > separated. > > >to export the PNG of an axis like with the xs2png() function > >and a figure, without exporting the whole figure? > > AFAIK, it is not possible. Exports apply only to whole figures. > But you may copy() an axes alone into a new figure, and then export > this one. > > > >Also, is it possible to clear only one axis which is contained into a > figure > >without clearing the whole figure? > Yes, with > delete(handle_of_the_axes) > > HTH > Samuel > _______________________________________________ > users mailing list > [hidden email] > http://lists.scilab.org/mailman/listinfo/users > > > ------------------------------------------------------------------------ > If you reply to this email, your message will be added to the > discussion below: > http://mailinglists.scilab.org/Clear-export-only-an-axis-tp4036294p4036298.html > > To unsubscribe from Clear, export only an axis, click here > . > NAML > > -- View this message in context: http://mailinglists.scilab.org/Clear-export-only-an-axis-tp4036294p4036342.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed May 10 09:41:04 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 10 May 2017 09:41:04 +0200 Subject: [Scilab-users] Clear, export only an axis In-Reply-To: <2fea760e-6292-b2f3-9441-5183463acbc9@promes.cnrs.fr> References: <1493829380993-4036294.post@n3.nabble.com> <89300062.1611183.1493855572583.JavaMail.root@zimbra75-e12.priv.proxad.net> <2fea760e-6292-b2f3-9441-5183463acbc9@promes.cnrs.fr> Message-ID: Hello Alexx, Le 10/05/2017 ? 08:56, Alexx a ?crit : > Thank you Samuel, > > good idea to copy the axis into a new figure, i could do what I > wanted. I just turn the new figure invisible to make the process > transparent for the user. We can see the new figure opening and > closing right away (seeable no more than 0.3s). Nevertheless, I didn't > succes in doing the contrary, that's to say to copy a whole figure > containing only one axis into a frame which occupies a part of a figure. You may try to copy only the axes. A whole figure can't be a child of a frame, but an axes can. Best regards Samuel From derogis at applied-acoustics.com Wed May 10 12:50:31 2017 From: derogis at applied-acoustics.com (=?utf-8?Q?Philippe_D=C3=89ROGIS?=) Date: Wed, 10 May 2017 12:50:31 +0200 Subject: [Scilab-users] Problems with figures in Scilab 6.0.0 Message-ID: <9811BACC-C050-4AD2-9CAB-A455A0485C9B@icloud.com> Hi, My name is Philippe, I work in the field of physics and signal processing, I use scilab a lot in my work and I want to thanks very much all the the people involve in the development of this great software. I updated my scilab to 6.0.0 two weeks ago on my power book (retina) running macOS 10.12.4. Since this time I experiment two problems with graphic figures. The first issue is that the thickness of the lines is really small and the text for the axis labels, curves label and title are almost unreadable (way smaller than in the preceding version). The second problem is about the zoom, when I try to zoom on a graphic figure using the rectangular selection with the mouse, I get an offset between the mouse pointer and the actual selection, making it impossible to correctly define de rectangular region. Is anybody else experimenting the same issues ? Does somebody have a fix or a workaround for that ? Philippe. From Frieder.Nikolaisen at student.hs-rm.de Wed May 10 13:24:28 2017 From: Frieder.Nikolaisen at student.hs-rm.de (Frieder Nikolaisen) Date: Wed, 10 May 2017 13:24:28 +0200 Subject: [Scilab-users] applying a function to each element Message-ID: <98e1d2ac07fd965028563082be4372c5@mail.student.hs-rm.de> Hello, I have to matrices: A = [1; 2; 2] B = [3; 3; 1] I looking for get matric with having only the larger Elemtns: C = [3; 3; 2] Is there function to make to apply functions to eacth element. C = [ if A .> B then A else B] elemtwise. A for loop is to slow. Thanks a lot. Cheers Frieder -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed May 10 13:33:15 2017 From: sgougeon at free.fr (sgougeon at free.fr) Date: Wed, 10 May 2017 13:33:15 +0200 (CEST) Subject: [Scilab-users] applying a function to each element In-Reply-To: <98e1d2ac07fd965028563082be4372c5@mail.student.hs-rm.de> Message-ID: <353739497.4152035.1494415995494.JavaMail.root@zimbra75-e12.priv.proxad.net> Hello Frieder, max(A,B) does it: --> max(A,B) ans = 3. 3. 2. Samuel ----- Mail original ----- Hello, I have to matrices: A = [ 1 ; 2 ; 2 ] B = [ 3 ; 3 ; 1 ] I looking for get matric with having only the larger Elemtns: C = [ 3 ; 3 ; 2 ] Is there function to make to apply functions to eacth element. C = [ if A .> B then A else B] elemtwise. A for loop is to slow. Thanks a lot. Cheers Frieder From sgougeon at free.fr Wed May 10 13:37:08 2017 From: sgougeon at free.fr (sgougeon at free.fr) Date: Wed, 10 May 2017 13:37:08 +0200 (CEST) Subject: [Scilab-users] Problems with figures in Scilab 6.0.0 In-Reply-To: <9811BACC-C050-4AD2-9CAB-A455A0485C9B@icloud.com> Message-ID: <1259484092.4166399.1494416228019.JavaMail.root@zimbra75-e12.priv.proxad.net> Hello Philippe, Could you provide compared parts of screenshots from 5.5.2 and from 6.0.0 illustrating it at the same resolution? (whole heavy screenshots are not necessarily required) Thanks Samuel ----- Mail original ----- Hi, My name is Philippe, I work in the field of physics and signal processing, I use scilab a lot in my work and I want to thanks very much all the the people involve in the development of this great software. I updated my scilab to 6.0.0 two weeks ago on my power book (retina) running macOS 10.12.4. Since this time I experiment two problems with graphic figures. The first issue is that the thickness of the lines is really small and the text for the axis labels, curves label and title are almost unreadable (way smaller than in the preceding version). The second problem is about the zoom, when I try to zoom on a graphic figure using the rectangular selection with the mouse, I get an offset between the mouse pointer and the actual selection, making it impossible to correctly define de rectangular region. Is anybody else experimenting the same issues ? Does somebody have a fix or a workaround for that ? Philippe. _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From Frieder.Nikolaisen at student.hs-rm.de Wed May 10 13:48:52 2017 From: Frieder.Nikolaisen at student.hs-rm.de (Frieder Nikolaisen) Date: Wed, 10 May 2017 13:48:52 +0200 Subject: [Scilab-users] applying a function to each element In-Reply-To: <353739497.4152035.1494415995494.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <353739497.4152035.1494415995494.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: <760707c0806eed03a0f78fe9e8af2004@mail.student.hs-rm.de> Hello Samuel, thanks a lot. It works fine. Best regards Frieder Am 2017-05-10 13:33, schrieb sgougeon at free.fr: > Hello Frieder, > > max(A,B) does it: > --> max(A,B) > ans = > 3. > 3. > 2. > > Samuel > > ----- Mail original ----- > > Hello, > > I have to matrices: A = [ 1 ; 2 ; 2 ] B = [ 3 ; 3 ; 1 ] > > I looking for get matric with having only the larger Elemtns: > > C = [ 3 ; 3 ; 2 ] > Is there function to make to apply functions to eacth element. > > C = [ if A .> B then A else B] elemtwise. > > A for loop is to slow. > > Thanks a lot. > > Cheers > Frieder > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From zogheib.ali at gmail.com Wed May 10 16:17:06 2017 From: zogheib.ali at gmail.com (AliZ) Date: Wed, 10 May 2017 07:17:06 -0700 (MST) Subject: [Scilab-users] Problem installing Image Processing Toolbox In-Reply-To: References: <1494345199240-4036334.post@n3.nabble.com> Message-ID: <1494425826298-4036351.post@n3.nabble.com> Great, that makes sense. Thanks a lot! -- View this message in context: http://mailinglists.scilab.org/Problem-installing-Image-Processing-Toolbox-tp4036334p4036351.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Frieder.Nikolaisen at student.hs-rm.de Wed May 10 17:23:23 2017 From: Frieder.Nikolaisen at student.hs-rm.de (Frieder Nikolaisen) Date: Wed, 10 May 2017 17:23:23 +0200 Subject: [Scilab-users] Avoiding a loop Message-ID: Hello, I did write an example code, but I do not like the time consuming way I solved the problem. With 50 000 lines in the matrix, it wouldn't be fun. How can I avoid using the for-loop? 10, 80; 11, 200 15, 0]; batt = 1000; gen = 0; n = 1 for n=1:5 if P(n,2) > 100 then if batt > 800 then batt = batt - P(n,2) * (P(n+1,1) - P(n,1)) else gen = gen + P(n,2) * (P(n+1,1) - P(n,1)) end else batt = batt - P(n,2) * (P(n+1,1) - P(n,1)) end disp('n ' + string(n)) disp('batt ' + string(batt)) disp('gen ' + string(gen)) end Thanks alot! Best regards Frieder -------------- next part -------------- An HTML attachment was scrubbed... URL: From Frieder.Nikolaisen at student.hs-rm.de Wed May 10 17:25:36 2017 From: Frieder.Nikolaisen at student.hs-rm.de (Frieder Nikolaisen) Date: Wed, 10 May 2017 17:25:36 +0200 Subject: [Scilab-users] Avoiding a loop In-Reply-To: <25091_1494429895_591330C7_25091_11_1_a34c152e811a7086696941778504785f@mail.student.hs-rm.de> References: <25091_1494429895_591330C7_25091_11_1_a34c152e811a7086696941778504785f@mail.student.hs-rm.de> Message-ID: There was a piece of code missing: P = [ 1, 0; 2, 50; 5, 110; 10, 80; 11, 200 15, 0]; batt = 1000; gen = 0; n = 1 for n=1:5 if P(n,2) > 100 then if batt > 800 then batt = batt - P(n,2) * (P(n+1,1) - P(n,1)) else gen = gen + P(n,2) * (P(n+1,1) - P(n,1)) end else batt = batt - P(n,2) * (P(n+1,1) - P(n,1)) end disp('n ' + string(n)) disp('batt ' + string(batt)) disp('gen ' + string(gen)) end Am 2017-05-10 17:23, schrieb Frieder Nikolaisen: > Hello, > > I did write an example code, but I do not like the time consuming way I solved the problem. With 50 000 lines in the matrix, it wouldn't be fun. > > How can I avoid using the for-loop? > > 10, 80; > 11, 200 > 15, 0]; > > batt = 1000; > gen = 0; > > n = 1 > for n=1:5 > > if P(n,2) > 100 then > if batt > 800 then batt = batt - P(n,2) * (P(n+1,1) - P(n,1)) > else > gen = gen + P(n,2) * (P(n+1,1) - P(n,1)) > end > > else > batt = batt - P(n,2) * (P(n+1,1) - P(n,1)) > end > disp('n ' + string(n)) > disp('batt ' + string(batt)) > disp('gen ' + string(gen)) > end > > Thanks alot! > > Best regards > Frieder -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim at wescottdesign.com Wed May 10 18:51:49 2017 From: tim at wescottdesign.com (Tim Wescott) Date: Wed, 10 May 2017 09:51:49 -0700 Subject: [Scilab-users] Avoiding a loop In-Reply-To: References: Message-ID: <1494435109.2833.146.camel@wescottdesign.com> I had a cool solution for you, but then I saw that you're implementing a difference equation, with current values of batt (for instance) depending on prior values. I think that no, you can't eliminate the loop. ?If speed is a concern and if you're using the code heavily, you can put it in a C function -- but that's only for really heavy pro users. On Wed, 2017-05-10 at 17:23 +0200, Frieder Nikolaisen wrote: > Hello, > I did write an example code, but I do not like the time consuming way > I solved the problem. With 50 000 lines in the matrix, it wouldn't be > fun. > How can I avoid using the for-loop? > 10,?????80; > 11,?????200 > 15,?????0]; > > batt = 1000; > gen = 0; > > n = 1 > for n=1:5 > > ????if P(n,2) > 100 then > ????????if batt > 800 then batt = batt - P(n,2) * (P(n+1,1) - P(n,1)) > ????????else > ????????gen = gen + P(n,2) * (P(n+1,1) - P(n,1)) > ????????end > ???? > ????else > ????batt = batt - P(n,2) * (P(n+1,1) - P(n,1)) > ????end > disp('n ' + string(n)) > disp('batt ' + string(batt)) > disp('gen ' + string(gen)) > end > Thanks alot! > > Best regards > Frieder? > ? > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From lambdasoftware at yahoo.es Wed May 10 20:53:11 2017 From: lambdasoftware at yahoo.es (Amanda Osvaldo) Date: Wed, 10 May 2017 15:53:11 -0300 Subject: [Scilab-users] Avoiding a loop In-Reply-To: References: Message-ID: <1494442391.4089.3.camel@yahoo.es> What it's the equation you need to compute ?Perhaps I can help. I think it's possible to compute with something in this way: map = find (P(:,2) > 100 ); if batt > 800 then ????batt = batt - P(map,2) * (P(map+1,1) - P(map,1)); end On Wed, 2017-05-10 at 17:23 +0200, Frieder Nikolaisen wrote: > Hello, > > I did write an example code, but I do not like the time consuming way > I solved the problem. With 50 000 lines in the matrix, it wouldn't be > fun. > > How can I avoid using the for-loop? > > 10,?????80; > 11,?????200 > 15,?????0]; > > batt = 1000; > gen = 0; > > n = 1 > for n=1:5 > > ????if P(n,2) > 100 then > ????????if batt > 800 then batt = batt - P(n,2) * (P(n+1,1) - P(n,1)) > ????????else > ????????gen = gen + P(n,2) * (P(n+1,1) - P(n,1)) > ????????end > ???? > ????else > ????batt = batt - P(n,2) * (P(n+1,1) - P(n,1)) > ????end > disp('n ' + string(n)) > disp('batt ' + string(batt)) > disp('gen ' + string(gen)) > end > > > Thanks alot! > > > > Best regards > Frieder? > > ? > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From erhard.glueck.austria at gmail.com Wed May 10 21:36:06 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Wed, 10 May 2017 12:36:06 -0700 (MST) Subject: [Scilab-users] applying a function to each element In-Reply-To: <760707c0806eed03a0f78fe9e8af2004@mail.student.hs-rm.de> References: <98e1d2ac07fd965028563082be4372c5@mail.student.hs-rm.de> <353739497.4152035.1494415995494.JavaMail.root@zimbra75-e12.priv.proxad.net> <760707c0806eed03a0f78fe9e8af2004@mail.student.hs-rm.de> Message-ID: <1494444966444-4036359.post@n3.nabble.com> in this special task it is a good practice. Generally I wished to have a similar notation as in C or java (logical) ? a : b Is there a built in function to have such conditionals ? Erhy -- View this message in context: http://mailinglists.scilab.org/Scilab-users-applying-a-function-to-each-element-tp4036347p4036359.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Wed May 10 23:08:02 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 10 May 2017 23:08:02 +0200 Subject: [Scilab-users] applying a function to each element In-Reply-To: <1494444966444-4036359.post@n3.nabble.com> References: <98e1d2ac07fd965028563082be4372c5@mail.student.hs-rm.de> <353739497.4152035.1494415995494.JavaMail.root@zimbra75-e12.priv.proxad.net> <760707c0806eed03a0f78fe9e8af2004@mail.student.hs-rm.de> <1494444966444-4036359.post@n3.nabble.com> Message-ID: Le 10/05/2017 ? 21:36, Erhy a ?crit : > in this special task it is a good practice. > Generally I wished to have a similar notation as in C or java (logical) ? a > : b > Is there a built in function to have such conditionals ? Example: --> format(6) --> a = rand(3,4) a = 0.362 0.483 0.502 0.633 0.292 0.332 0.437 0.405 0.566 0.594 0.269 0.918 --> c = a< 0.5 c = T T F F T T T T F F T F --> a(c) = 0 a = 0. 0. 0.502 0.633 0. 0. 0. 0. 0.566 0.594 0. 0.918 From sgougeon at free.fr Wed May 10 23:30:24 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 10 May 2017 23:30:24 +0200 Subject: [Scilab-users] Avoiding a loop In-Reply-To: References: <25091_1494429895_591330C7_25091_11_1_a34c152e811a7086696941778504785f@mail.student.hs-rm.de> Message-ID: <80b8c155-a334-7edb-7f3e-d1195c4c7edc@free.fr> Le 10/05/2017 ? 17:25, Frieder Nikolaisen a ?crit : > > There was a piece of code missing: > > P = [ > 1, 0; > 2, 50; > 5, 110; > 10, 80; > 11, 200 > 15, 0]; > > batt = 1000; > gen = 0; > > n = 1 > for n=1:5 > > if P(n,2) > 100 then > if batt > 800 then batt = batt - P(n,2) * (P(n+1,1) - P(n,1)) > else > gen = gen + P(n,2) * (P(n+1,1) - P(n,1)) > end > > else > batt = batt - P(n,2) * (P(n+1,1) - P(n,1)) > end > disp('n ' + string(n)) > disp('batt ' + string(batt)) > disp('gen ' + string(gen)) > end > > Am 2017-05-10 17:23, schrieb Frieder Nikolaisen: > >> Hello, >> >> I did write an example code, but I do not like the time consuming way >> I solved the problem. With 50 000 lines in the matrix, it wouldn't be >> fun. >> >> How can I avoid using the for-loop? >> >> 10, 80; >> 11, 200 >> 15, 0]; >> >> batt = 1000; >> gen = 0; >> >> n = 1 >> for n=1:5 >> >> if P(n,2) > 100 then >> if batt > 800 then batt = batt - P(n,2) * (P(n+1,1) - P(n,1)) >> else >> gen = gen + P(n,2) * (P(n+1,1) - P(n,1)) >> end >> >> else >> batt = batt - P(n,2) * (P(n+1,1) - P(n,1)) >> end >> disp('n ' + string(n)) >> disp('batt ' + string(batt)) >> disp('gen ' + string(gen)) >> end It may be compacted with: P = [ 1. 2. 5. 10. 11. 15. 0. 50. 110. 80. 200. 0. ]'; batt = 1000; gen = 0; terms = P(1:$-1,2) .* (P(2:$,1) - P(1:$-1,1)); for n = 1:5 if P(n,2) <= 100 | batt > 800 then batt = batt - terms(n); else gen = gen + terms(n); end mprintf("n = %d batt = %d gen = %d\n", n, batt, gen); end Then, as told by Tim, since the condition on batt may change batt according to n, it is hard to go on without the loop. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Frieder.Nikolaisen at student.hs-rm.de Thu May 11 09:17:42 2017 From: Frieder.Nikolaisen at student.hs-rm.de (Frieder Nikolaisen) Date: Thu, 11 May 2017 09:17:42 +0200 Subject: [Scilab-users] Avoiding a loop In-Reply-To: <1494442391.4089.3.camel@yahoo.es> References: <1494442391.4089.3.camel@yahoo.es> Message-ID: Thanks for all the answers. I feared that there is no way around a loop. During the process batt (Battery) is charged and discharged. In my example, it is only discharged. I will code the entire problem with a loop, maybe somebody knows something to speed up the process with the full problem. (Tim: I am not a programming pro, a C-function might not be a solution. ) Why do I try avoidng a loop? I do have txt-document with 50 000 to 100 000 lines about a (hybrid-)locomotive shunting process. I do need to optimize the energy managment. Because I am not mathemtic student, I have to solve the problem empirical (try and error). The programm has to run a few hundred times. With a matrix thats no problem, but with matrixes only, I can only calculate the diesel usage without any battery energy storage. Thanks for the checking my code anyway. Am 10.05.2017 um 20:53 schrieb Amanda Osvaldo: > What it's the equation you need to compute ? > Perhaps I can help. > > I think it's possible to compute with something in this way: > map = find (P(:,2) > 100 ); > if batt > 800 then > batt = batt - P(map,2) * (P(map+1,1) - P(map,1)); > end > On Wed, 2017-05-10 at 17:23 +0200, Frieder Nikolaisen wrote: >> >> Hello, >> >> I did write an example code, but I do not like the time consuming way >> I solved the problem. With 50 000 lines in the matrix, it wouldn't be >> fun. >> >> How can I avoid using the for-loop? >> >> 10, 80; >> 11, 200 >> 15, 0]; >> >> batt = 1000; >> gen = 0; >> >> n = 1 >> for n=1:5 >> >> if P(n,2) > 100 then >> if batt > 800 then batt = batt - P(n,2) * (P(n+1,1) - P(n,1)) >> else >> gen = gen + P(n,2) * (P(n+1,1) - P(n,1)) >> end >> >> else >> batt = batt - P(n,2) * (P(n+1,1) - P(n,1)) >> end >> disp('n ' + string(n)) >> disp('batt ' + string(batt)) >> disp('gen ' + string(gen)) >> end >> >> Thanks alot! >> >> Best regards Frieder >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From derogis.philippe at gmail.com Thu May 11 11:53:02 2017 From: derogis.philippe at gmail.com (=?utf-8?Q?Philippe_D=C3=A9rogis?=) Date: Thu, 11 May 2017 11:53:02 +0200 Subject: [Scilab-users] =?utf-8?q?R=C3=A9p=C2=A0=3A__Problems_with_figures?= =?utf-8?q?_in_Scilab_6=2E0=2E0?= Message-ID: <2193F198-414D-4257-8689-15640F84616C@gmail.com> Hi Samuel, Find in here https://we.tl/QIICI7f19C a capture of the figure window with scilab 6.0. I tried to reinstall scilab 5.5 in order to provide you with the capture of the same figure generated with scilab 5.5 but it doesn?t worked. I remember that at some point I had to do a strange things such as overwriting some system libraries in order to have scilab working (I founded the fix on the internet) but I didn?t remember what. So unfortunately the capture of the 6.0 figure is the only thing that I can give you. Thanks for your help. Philippe. -------------- next part -------------- An HTML attachment was scrubbed... URL: From erhard.glueck.austria at gmail.com Thu May 11 17:24:47 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Thu, 11 May 2017 08:24:47 -0700 (MST) Subject: [Scilab-users] automatic traverse question In-Reply-To: <232224270.13460046.1494327027311.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <1494323587049-4036327.post@n3.nabble.com> <232224270.13460046.1494327027311.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: <1494516287727-4036368.post@n3.nabble.com> another question gray=rand(200,300); lumimins=[ 0.1, 0.5, 0.7, 0.9 ]; // doesn't work*:* monos(:,:,1..length(lumimins)) = ( gray(:,:) >= lumimins(1:$) ) .* 1; is there a way to generate a plane for each lumimins with automatic traverse? -- View this message in context: http://mailinglists.scilab.org/automatic-traverse-question-tp4036327p4036368.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Thu May 11 18:04:24 2017 From: sgougeon at free.fr (sgougeon at free.fr) Date: Thu, 11 May 2017 18:04:24 +0200 (CEST) Subject: [Scilab-users] automatic traverse question In-Reply-To: <1494516287727-4036368.post@n3.nabble.com> Message-ID: <1833746644.682930.1494518664390.JavaMail.root@zimbra75-e12.priv.proxad.net> >another question > >gray=rand(200,300); >lumimins=[ 0.1, 0.5, 0.7, 0.9 ]; >// doesn't work*:* >monos(:,:,1..length(lumimins)) = ( gray(:,:) >= lumimins(1:$) ) .* 1; > >is there a way to generate a plane for each lumimins with automatic traverse? gray = rand(200,300); lumimins = [ 0.1, 0.5, 0.7, 0.9 ]; Gray = gray .*. ones(1,1,length(lumimins)); L = ones(gray) .*. permute(lumimins,[1 3 2]); monos = (Gray >= L) * 1; From tim at wescottdesign.com Thu May 11 18:48:38 2017 From: tim at wescottdesign.com (Tim Wescott) Date: Thu, 11 May 2017 09:48:38 -0700 Subject: [Scilab-users] Avoiding a loop In-Reply-To: References: <1494442391.4089.3.camel@yahoo.es> Message-ID: <1494521318.27368.57.camel@wescottdesign.com> Depending on how often you switch between battery and generator, and how icky-picky you're willing to be, there may be a way to reduce computation. It looks like the term?P(n,2) * (P(n+1,1) - P(n,1)) is always there, and you're either adding it to 'gen' (is it energy production?) or subtracting it from 'batt'. If you really want to go there, you can vectorize "if" statements by using boolean expressions on vectors and the "find" function, which returns indexes of true results. ?Then you can use "cumsum" on your P(n,2) * (P(n+1,1) - P(n,1)) term to find where the battery state of charge (I assume that's what 'batt' is) hits 800. It'll be complicated. ?It'll be prone to error. ?Proving that it's correct will be a pain. ?But when you get it working, it'll be considerably faster. On Thu, 2017-05-11 at 09:17 +0200, Frieder Nikolaisen wrote: > Thanks for all the answers.? > > I feared that there is no way around a loop. During the process batt > (Battery) is charged and discharged. In my example, it is only > discharged. I will code the entire problem with a loop, maybe > somebody knows something to speed up the process with the full > problem. (Tim: I am not a programming pro, a C-function might not be > a solution. ) > Why do I try avoidng a loop? I do have txt-document with 50 000 to > 100 000 lines about a (hybrid-)locomotive shunting process. I do need > to optimize the energy managment. Because I am not mathemtic student, > I have to solve the problem empirical (try and error). The programm > has to run a few hundred times. With a matrix thats no problem, but > with matrixes only, I can only calculate the diesel usage without any > battery energy storage.? > Thanks for the checking my code anyway.? > > Am 10.05.2017 um 20:53 schrieb Amanda Osvaldo: > > What it's the equation you need to compute ? > > Perhaps I can help. > > > > I think it's possible to compute with something in this way: > > > > map = find (P(:,2) > 100 ); > > if batt > 800 then > > ????batt = batt - P(map,2) * (P(map+1,1) - P(map,1)); > > end > > > > > > On Wed, 2017-05-10 at 17:23 +0200, Frieder Nikolaisen wrote: > > > Hello, > > > I did write an example code, but I do not like the time consuming > > > way I solved the problem. With 50 000 lines in the matrix, it > > > wouldn't be fun. > > > How can I avoid using the for-loop? > > > 10,?????80; > > > 11,?????200 > > > 15,?????0]; > > > > > > batt = 1000; > > > gen = 0; > > > > > > n = 1 > > > for n=1:5 > > > > > > ????if P(n,2) > 100 then > > > ????????if batt > 800 then batt = batt - P(n,2) * (P(n+1,1) - > > > P(n,1)) > > > ????????else > > > ????????gen = gen + P(n,2) * (P(n+1,1) - P(n,1)) > > > ????????end > > > ???? > > > ????else > > > ????batt = batt - P(n,2) * (P(n+1,1) - P(n,1)) > > > ????end > > > disp('n ' + string(n)) > > > disp('batt ' + string(batt)) > > > disp('gen ' + string(gen)) > > > end > > > Thanks alot! > > > > > > Best regards > > > Frieder? > > > ? > > > _______________________________________________ > > > users mailing list > > > users at lists.scilab.org > > > http://lists.scilab.org/mailman/listinfo/users > > ? > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > ? > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From erhard.glueck.austria at gmail.com Thu May 11 20:21:40 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Thu, 11 May 2017 11:21:40 -0700 (MST) Subject: [Scilab-users] automatic traverse question In-Reply-To: <1833746644.682930.1494518664390.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <1494323587049-4036327.post@n3.nabble.com> <232224270.13460046.1494327027311.JavaMail.root@zimbra75-e12.priv.proxad.net> <1494516287727-4036368.post@n3.nabble.com> <1833746644.682930.1494518664390.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: <1494526900702-4036371.post@n3.nabble.com> much learned - thank you Erhy -- View this message in context: http://mailinglists.scilab.org/automatic-traverse-question-tp4036327p4036371.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Frieder.Nikolaisen at student.hs-rm.de Fri May 12 09:23:10 2017 From: Frieder.Nikolaisen at student.hs-rm.de (Frieder Nikolaisen) Date: Fri, 12 May 2017 09:23:10 +0200 Subject: [Scilab-users] Avoiding a loop In-Reply-To: <1494521318.27368.57.camel@wescottdesign.com> References: <1494442391.4089.3.camel@yahoo.es> <1494521318.27368.57.camel@wescottdesign.com> Message-ID: Hello Tim, Yes. batt is the is the State of Charge of the battery. P(n,2) (kN) is the power taken rom battery, engine or both. I will calculate the battery in As, so P(n,2) is only an in alternate value - but thats fare to complicated for the example code. "Proving that it's correct will be a pain." - prooving the for-loop and getting the same result with your way - that might be a prooving. As I have to code the loop anyway, I will consider your if the loop is very slow. Best regards Frieder Am 2017-05-11 18:48, schrieb Tim Wescott: > Depending on how often you switch between battery and generator, and > how icky-picky you're willing to be, there may be a way to reduce > computation. > > It looks like the term P(n,2) * (P(n+1,1) - P(n,1)) is always there, > and you're either adding it to 'gen' (is it energy production?) or > subtracting it from 'batt'. > > If you really want to go there, you can vectorize "if" statements by > using boolean expressions on vectors and the "find" function, which > returns indexes of true results. Then you can use "cumsum" on your > P(n,2) * (P(n+1,1) - P(n,1)) term to find where the battery state of > charge (I assume that's what 'batt' is) hits 800. > > It'll be complicated. It'll be prone to error. Proving that it's > correct will be a pain. But when you get it working, it'll be > considerably faster. > > On Thu, 2017-05-11 at 09:17 +0200, Frieder Nikolaisen wrote: > >> Thanks for all the answers. I feared that there is no way around a loop. During the process batt (Battery) is charged and discharged. In my example, it is only discharged. I will code the entire problem with a loop, maybe somebody knows something to speed up the process with the full problem. (Tim: I am not a programming pro, a C-function might not be a solution. ) Why do I try avoidng a loop? I do have txt-document with 50 000 to 100 000 lines about a (hybrid-)locomotive shunting process. I do need to optimize the energy managment. Because I am not mathemtic student, I have to solve the problem empirical (try and error). The programm has to run a few hundred times. With a matrix thats no problem, but with matrixes only, I can only calculate the diesel usage without any battery energy storage. Thanks for the checking my code anyway. Am 10.05.2017 um 20:53 schrieb Amanda Osvaldo: >> >>> What it's the equation you need to compute ? Perhaps I can help. I think it's possible to compute with something in this way: map = find (P(:,2) > 100 ); if batt > 800 then batt = batt - P(map,2) * (P(map+1,1) - P(map,1)); end On Wed, 2017-05-10 at 17:23 +0200, Frieder Nikolaisen wrote: >>> >>>> Hello, I did write an example code, but I do not like the time consuming way I solved the problem. With 50 000 lines in the matrix, it wouldn't be fun. How can I avoid using the for-loop? 10, 80; 11, 200 15, 0]; batt = 1000; gen = 0; n = 1 for n=1:5 if P(n,2) > 100 then if batt > 800 then batt = batt - P(n,2) * (P(n+1,1) - P(n,1)) else gen = gen + P(n,2) * (P(n+1,1) - P(n,1)) end else batt = batt - P(n,2) * (P(n+1,1) - P(n,1)) end disp('n ' + string(n)) disp('batt ' + string(batt)) disp('gen ' + string(gen)) end Thanks alot! Best regards Frieder _______________________________________________ users mailing list users at lists.scilab.org [1] http://lists.scilab.org/mailman/listinfo/users [2] >>> _______________________________________________ users mailing list users at lists.scilab.org [3] http://lists.scilab.org/mailman/listinfo/users [4] >> _______________________________________________ users mailing list users at lists.scilab.org [5] http://lists.scilab.org/mailman/listinfo/users [6] Links: ------ [1] mailto:users at lists.scilab.org [2] http://lists.scilab.org/mailman/listinfo/users [3] mailto:users at lists.scilab.org [4] http://lists.scilab.org/mailman/listinfo/users [5] mailto:users at lists.scilab.org [6] http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Frieder.Nikolaisen at student.hs-rm.de Fri May 12 11:15:35 2017 From: Frieder.Nikolaisen at student.hs-rm.de (Frieder Nikolaisen) Date: Fri, 12 May 2017 11:15:35 +0200 Subject: [Scilab-users] linking (jumping) from line of code to an other Message-ID: Hello, another question to solve the locomotive stuff, giving you a example with the not implented code. I don't want to code the same stuff twice. Thats why I want to jump between lines of code. Is this possible and how? P = 200; DM = 1; for n = 1:10 if DM == 1 then if P > 100 then DM = 1 P = P - 60 disp('P bigger 100. DM = ' + string(DM)) else DM = 0 P = P + 100 //instead of writing P = P + 100, I would like ... disp('P smaller 100. DM = ' + string(DM)) end else // D == 0 if P > 100 then DM = 1 disp('P bigger 100. DM = ' + string(DM)) P = P - 30 else DM = 0 // ... to continue here disp('P smaller 100. DM = ' + string(DM)) P = P + 100 // to use this P = P + 100 end end disp(string(n) + ' ' + string(P)) end -------------- next part -------------- An HTML attachment was scrubbed... URL: From erhard.glueck.austria at gmail.com Fri May 12 15:18:42 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Fri, 12 May 2017 06:18:42 -0700 (MST) Subject: [Scilab-users] automatic traverse question In-Reply-To: <1833746644.682930.1494518664390.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <1494323587049-4036327.post@n3.nabble.com> <232224270.13460046.1494327027311.JavaMail.root@zimbra75-e12.priv.proxad.net> <1494516287727-4036368.post@n3.nabble.com> <1833746644.682930.1494518664390.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: <1494595122960-4036377.post@n3.nabble.com> I studied your solution and think there will be a very huge array with kronecker operator and generated the planes with a for loop. And now I have the problem with the max() function for all planes, at which in the resulting plane each pixel should have the max. values of the according pixels of the planes mentioned. max() works of a known number of planes: resu=max(monos (:,:,1),monos (:,:,2),monos (:,:,3)) What is the smartest way to code, if the number of planes can differ? -- View this message in context: http://mailinglists.scilab.org/automatic-traverse-question-tp4036327p4036377.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Frieder.Nikolaisen at student.hs-rm.de Fri May 12 18:40:20 2017 From: Frieder.Nikolaisen at student.hs-rm.de (Frieder Nikolaisen) Date: Fri, 12 May 2017 18:40:20 +0200 Subject: [Scilab-users] linking (jumping) from line of code to an other In-Reply-To: <12571_1494580643_59157DA3_12571_6_1_f02142d5d9f2ccf8e366de9e1d473cce@mail.student.hs-rm.de> References: <12571_1494580643_59157DA3_12571_6_1_f02142d5d9f2ccf8e366de9e1d473cce@mail.student.hs-rm.de> Message-ID: The Solution is: Using whil: i = 1 a = 1 while i < 5 disp(i) a = a + 1 i = i +1 if a == 3 then i = i - 1 end end Am 2017-05-12 11:15, schrieb Frieder Nikolaisen: > Hello, > > another question to solve the locomotive stuff, giving you a example with the not implented code. > > I don't want to code the same stuff twice. Thats why I want to jump between lines of code. Is this possible and how? > > P = 200; > DM = 1; > > for n = 1:10 > if DM == 1 then > if P > 100 then DM = 1 > P = P - 60 > disp('P bigger 100. DM = ' + string(DM)) > else DM = 0 > P = P + 100 //instead of writing P = P + 100, I would like ... > disp('P smaller 100. DM = ' + string(DM)) > end > else // D == 0 > if P > 100 then DM = 1 > disp('P bigger 100. DM = ' + string(DM)) > P = P - 30 > else DM = 0 // ... to continue here > disp('P smaller 100. DM = ' + string(DM)) > P = P + 100 // to use this P = P + 100 > end > end > disp(string(n) + ' ' + string(P)) > end -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim at wescottdesign.com Fri May 12 18:50:40 2017 From: tim at wescottdesign.com (Tim Wescott) Date: Fri, 12 May 2017 09:50:40 -0700 Subject: [Scilab-users] linking (jumping) from line of code to an other In-Reply-To: References: Message-ID: <1494607840.3244.12.camel@wescottdesign.com> Jumps are generally bad style; I don't know if Scilab even supports them. ?If it does I advise you not to use them for something this trivial (error handling is the only place I've seen them seriously recommended, and even there they can be very problematical -- it's why people invented exceptions). For something that small the cost in making your code into spaghetti is larger than the cost of just doing it. The two ways that software professionals would deal with this are to either get rid of 100 as a "magic number" and assign its value to a variable (i.e., before the "for" statement assign PowerIncrement = 100), or rearrange the conditional so that the P = P + PowerIncrement line is only encountered once. Or do both. Certainly if you use the existing structure and if the two lines that increment P are supposed to do the same thing always, then using a named variable is a Good Thing -- that means that at some later date, when some poor ignorant fool reads your code they don't have to wonder if the "P+100" in one spot means the same thing as the "P+100" in another, AND they don't run the risk of changing the (hopefully proper) increment in one place but not another. And note, based on my experience writing software for the last 40 years, that often the poor ignorant fool who has to maintain your software is you, months or years down the road -- so it pays to make your code readable. ?Nothing makes you feel dumber than not being able to understand your own code, because no matter which way the blame flies, it always lands squarely on you. On Fri, 2017-05-12 at 11:15 +0200, Frieder Nikolaisen wrote: > Hello, > another question to solve the locomotive stuff, giving you a example > with the not implented code.? > I don't want to code the same stuff twice. Thats why I want to jump > between lines of code. Is this possible and how?? > P = 200; > DM = 1; > > for n = 1:10 > ????if DM == 1 then? > ????????if P > 100 then?????DM = 1 > ????????????????????????????P = P - 60 > ????????????????????????????disp('P bigger 100. DM = ' + string(DM)) > ????????else????DM = 0 > ????????????????????????????P = P + 100 //instead of writing P = P + > 100, I would like ... > ????????????????????????????disp('P smaller 100. DM = ' + string(DM)) > ????????end? > ????else // D == 0? > ????????if P > 100 then DM = 1?????????? > ????????????????????????????????????????disp('P bigger 100. DM = ' + > string(DM)) > ????????????????????????P = P - 30 > ????????else????????DM = 0??????????????// ... to continue here? > ????????????????????????????????????????disp('P smaller 100. DM = ' + > string(DM)) > ????????????????????P = P + 100???????// to use this P = P + 100 > ????????end > ????end? > ????disp(string(n) + ' ' + string(P)) > end > ? > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From sgougeon at free.fr Fri May 12 19:50:47 2017 From: sgougeon at free.fr (sgougeon at free.fr) Date: Fri, 12 May 2017 19:50:47 +0200 (CEST) Subject: [Scilab-users] automatic traverse question In-Reply-To: <1494595122960-4036377.post@n3.nabble.com> Message-ID: <501368592.5664015.1494611447105.JavaMail.root@zimbra75-e12.priv.proxad.net> Hello Erhy, >I studied your solution and think there will be a very huge array with >kronecker operator and generated the planes with a for loop. There is a common compromise between the used amount of memory and the algorithmic speed. There we are. >And now I have the problem with the max() function for all planes, >at which in the resulting plane each pixel should have the max. values of >the according pixels of the planes mentioned. > >max() works of a known number of planes: >resu=max(monos (:,:,1),monos (:,:,2),monos (:,:,3)) > >What is the smartest way to code, if the number of planes can differ? I am afraid that i don't clearly catch your point. If what i guess is not too far from what you mean, here is a way: MAX = monos(:,:,1); for i = 2:N MAX = max(MAX, monos(:,:,i)) end Samuel From erhard.glueck.austria at gmail.com Fri May 12 20:43:18 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Fri, 12 May 2017 11:43:18 -0700 (MST) Subject: [Scilab-users] automatic traverse question In-Reply-To: <501368592.5664015.1494611447105.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <1494323587049-4036327.post@n3.nabble.com> <232224270.13460046.1494327027311.JavaMail.root@zimbra75-e12.priv.proxad.net> <1494516287727-4036368.post@n3.nabble.com> <1833746644.682930.1494518664390.JavaMail.root@zimbra75-e12.priv.proxad.net> <1494595122960-4036377.post@n3.nabble.com> <501368592.5664015.1494611447105.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: <1494614598007-4036383.post@n3.nabble.com> as I did thank you -- View this message in context: http://mailinglists.scilab.org/automatic-traverse-question-tp4036327p4036383.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From j.s.strom at hslmg.de Sun May 14 18:51:20 2017 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Sun, 14 May 2017 18:51:20 +0200 Subject: [Scilab-users] surf and plot3d Message-ID: <59188B08.20303@hslmg.de> Hi, Please check the graph below: x=[0 1]; y=[0 2]; [X,Y]=ndgrid(x,y) Z=X+2*Y xdel(); surf(x,y,Z) param3d(X,Y,Z) ce=gce(); ce.line_mode="off"; ce.mark_mode = "on"; ce.mark_size = 10 ca=gca(); ca.rotation_angles=[65 290]; The facet corners do not coincide with the marks in Version 5.4.0. and 5.5.2.. Shouldn't they? Kind regards Jens -------------- next part -------------- An HTML attachment was scrubbed... URL: From Frieder.Nikolaisen at student.hs-rm.de Mon May 15 09:11:34 2017 From: Frieder.Nikolaisen at student.hs-rm.de (Frieder Nikolaisen) Date: Mon, 15 May 2017 09:11:34 +0200 Subject: [Scilab-users] linking (jumping) from line of code to an other In-Reply-To: <1494607840.3244.12.camel@wescottdesign.com> References: <1494607840.3244.12.camel@wescottdesign.com> Message-ID: <0fa2d14cc4d40f2760c7cea5981c1b3c@mail.student.hs-rm.de> Dear Tim, thanks for your answer. I have already the trouble of handling the code from last autum. In the moment I have written my exam, my boss has the trouble all to himself. I will still use your advice. Unfortuanlly I had to learn in a few weeks coding on myself. It's surely easy to see by reading the code. Best regards Frieder Am 2017-05-12 18:50, schrieb Tim Wescott: > Jumps are generally bad style; I don't know if Scilab even supports > them. If it does I advise you not to use them for something this > trivial (error handling is the only place I've seen them seriously > recommended, and even there they can be very problematical -- it's why > people invented exceptions). > > For something that small the cost in making your code into spaghetti is > larger than the cost of just doing it. > > The two ways that software professionals would deal with this are to > either get rid of 100 as a "magic number" and assign its value to a > variable (i.e., before the "for" statement assign PowerIncrement = > 100), or rearrange the conditional so that the P = P + PowerIncrement > line is only encountered once. > > Or do both. > > Certainly if you use the existing structure and if the two lines that > increment P are supposed to do the same thing always, then using a > named variable is a Good Thing -- that means that at some later date, > when some poor ignorant fool reads your code they don't have to wonder > if the "P+100" in one spot means the same thing as the "P+100" in > another, AND they don't run the risk of changing the (hopefully proper) > increment in one place but not another. > > And note, based on my experience writing software for the last 40 > years, that often the poor ignorant fool who has to maintain your > software is you, months or years down the road -- so it pays to make > your code readable. Nothing makes you feel dumber than not being able > to understand your own code, because no matter which way the blame > flies, it always lands squarely on you. > > On Fri, 2017-05-12 at 11:15 +0200, Frieder Nikolaisen wrote: > >> Hello, another question to solve the locomotive stuff, giving you a example with the not implented code. I don't want to code the same stuff twice. Thats why I want to jump between lines of code. Is this possible and how? P = 200; DM = 1; for n = 1:10 if DM == 1 then if P > 100 then DM = 1 P = P - 60 disp('P bigger 100. DM = ' + string(DM)) else DM = 0 P = P + 100 //instead of writing P = P + 100, I would like ... disp('P smaller 100. DM = ' + string(DM)) end else // D == 0 if P > 100 then DM = 1 disp('P bigger 100. DM = ' + string(DM)) P = P - 30 else DM = 0 // ... to continue here disp('P smaller 100. DM = ' + string(DM)) P = P + 100 // to use this P = P + 100 end end disp(string(n) + ' ' + string(P)) end _______________________________________________ users mailing list users at lists.scilab.org [1] http://lists.scilab.org/mailman/listinfo/users [2] Links: ------ [1] mailto:users at lists.scilab.org [2] http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Patrice.MEGRET at umons.ac.be Mon May 15 11:10:03 2017 From: Patrice.MEGRET at umons.ac.be (Patrice MEGRET) Date: Mon, 15 May 2017 09:10:03 +0000 Subject: [Scilab-users] surf and plot3d In-Reply-To: <59188B08.20303@hslmg.de> References: <59188B08.20303@hslmg.de> Message-ID: <8EAD3A11C751924B9AB951FA32FD86EB9640A792@EXCHANGEDB3.umons.ac.be> Dear Jens, If you use plot3d instead of surf, it is ok. The problem is that surf uses Matlab definition of the matrix Z whereas plot3d, ... use Scilab definition. ==> there is a transposition between these two definitions (see help file) Ndgrid for plot3d, contour, ... Meshgrid for surf If you would like to use surf with ndgrid: surf(x,y,Z.') PM De : users [mailto:users-bounces at lists.scilab.org] De la part de Jens Simon Strom Envoy? : dimanche 14 mai 2017 18:51 ? : International users mailing list for Scilab. Objet : [Scilab-users] surf and plot3d Hi, Please check the graph below: x=[0 1]; y=[0 2]; [X,Y]=ndgrid(x,y) Z=X+2*Y xdel(); surf(x,y,Z) param3d(X,Y,Z) ce=gce(); ce.line_mode="off"; ce.mark_mode = "on"; ce.mark_size = 10 ca=gca(); ca.rotation_angles=[65 290]; The facet corners do not coincide with the marks in Version 5.4.0. and 5.5.2.. Shouldn't they? Kind regards Jens -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.s.strom at hslmg.de Mon May 15 12:27:14 2017 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Mon, 15 May 2017 12:27:14 +0200 Subject: [Scilab-users] surf and plot3d In-Reply-To: <8EAD3A11C751924B9AB951FA32FD86EB9640A792@EXCHANGEDB3.umons.ac.be> References: <59188B08.20303@hslmg.de> <8EAD3A11C751924B9AB951FA32FD86EB9640A792@EXCHANGEDB3.umons.ac.be> Message-ID: <59198282.3080107@hslmg.de> Thanks a lot, Patrice! Regards, Jens ------------------------------------------------------------------------------------------------------------------ Am 15.05.2017 11:10, schrieb Patrice MEGRET: > > Dear Jens, > > If you use plot3d instead of surf, it is ok. > > The problem is that surf uses Matlab definition of the matrix Z > whereas plot3d, ... use Scilab definition. ?there is a transposition > between these two definitions (see help file) > > Ndgrid for plot3d, contour, ... > > Meshgrid for surf > > If you would like to use surf with ndgrid: surf(x,y,Z.') > > PM > > *De :*users [mailto:users-bounces at lists.scilab.org] *De la part de* > Jens Simon Strom > *Envoy? :* dimanche 14 mai 2017 18:51 > *? :* International users mailing list for Scilab. > > *Objet :* [Scilab-users] surf and plot3d > > Hi, > Please check the graph below: > > x=[0 1]; y=[0 2]; > [X,Y]=_ndgrid_(x,y) > Z=X+2*Y > xdel(); > _surf_(x,y,Z) > param3d(X,Y,Z) > ce=_gce_(); ce.line_mode="off"; ce.mark_mode = "on"; ce.mark_size = 10 > ca=_gca_(); ca.rotation_angles=[65 290]; > > The facet corners do not coincide with the marks in Version 5.4.0. and 5.5.2.. Shouldn't they? > > Kind regards > Jens > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From erhard.glueck.austria at gmail.com Mon May 15 12:52:48 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Mon, 15 May 2017 03:52:48 -0700 (MST) Subject: [Scilab-users] VIM syntax script for Scilab 6 ? Message-ID: <1494845568327-4036390.post@n3.nabble.com> Hello, has anybody an actual syntax script for Scilab 6 ? Mine doesn't care to comments in /* */ in .sce files. Thank you Erhy -- View this message in context: http://mailinglists.scilab.org/VIM-syntax-script-for-Scilab-6-tp4036390.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Mon May 15 16:17:10 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 15 May 2017 16:17:10 +0200 Subject: [Scilab-users] =?utf-8?q?R=C3=A9p=C2=A0=3A_Problems_with_figures_?= =?utf-8?q?in_Scilab_6=2E0=2E0?= In-Reply-To: <2193F198-414D-4257-8689-15640F84616C@gmail.com> References: <2193F198-414D-4257-8689-15640F84616C@gmail.com> Message-ID: http://mailinglists.scilab.org/Scilab-users-Problems-with-figures-in-Scilab-6-0-0-tt4036346.html Hello Philippe, The screenshot looks normal to me: lines are continuous and of minimal thickness, what is the default and standard. Since there is no 5.5 output to be compared (*), i would say that all this is normal. You could check that the attributes for the fonts size have their default standard values. If you use some external toolboxes, may be one of them had changed the default values through gda(). Otherwise, you can use gda() to do so according to your wishes. Regards Samuel (*) AFAIK, at least on Windows, there is no need to uninstall a Scilab release to install a new one, or as many versions needed. Hence, we never have to abandon a known working environment to get a new one: we can have all of them together. Le 11/05/2017 ? 11:53, Philippe D?rogis a ?crit : > Hi Samuel, > > Find in here https://we.tl/QIICI7f19C a capture of the figure window > with scilab 6.0. I tried to reinstall scilab 5.5 in order to provide > you with the capture of the same figure generated with scilab 5.5 but > it doesn?t worked. I remember that at some point I had to do a strange > things such as overwriting some system libraries in order to have > scilab working (I founded the fix on the internet) but I didn?t > remember what. So unfortunately the capture of the 6.0 figure is the > only thing that I can give you. > > Thanks for your help. > > Philippe. -------------- next part -------------- An HTML attachment was scrubbed... URL: From derogis.philippe at gmail.com Tue May 16 14:13:04 2017 From: derogis.philippe at gmail.com (Philippe Derogis) Date: Tue, 16 May 2017 05:13:04 -0700 (MST) Subject: [Scilab-users] =?utf-8?q?R=C3=A9p=C2=A0=3A_Problems_with_figures_?= =?utf-8?q?in_Scilab_6=2E0=2E0?= In-Reply-To: References: <2193F198-414D-4257-8689-15640F84616C@gmail.com> Message-ID: <1494936784814-4036402.post@n3.nabble.com> Hi Samuel, Thank you for your reply. I think that te problem is coming from the fact that the new scilab (6.0) seems to take into account the retina display from apple, the fonts in the console and edit windows are of the same size than in version 5.5 but they are now really sharp (like in other application supporting retina) which is really a good improvement. But in the graphics windows all the printing is two time smaller/thiner than in version 5.5. It looks like the very hight dpi of the retina display is taken into account in the console and edit windows but not in the graphic window. Philippe. -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Rep-Problems-with-figures-in-Scilab-6-0-0-tp4036366p4036402.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From payen.pierre at gmail.com Tue May 16 15:18:52 2017 From: payen.pierre at gmail.com (Pierre Payen) Date: Tue, 16 May 2017 06:18:52 -0700 (MST) Subject: [Scilab-users] linking (jumping) from line of code to an other In-Reply-To: References: Message-ID: <1494940732419-4036403.post@n3.nabble.com> Is there some routines like goto ? I've never heard of it, so I doubt it. The jumping (which can be partially achieved with break, abort, continue) has to be avoided , with the reason explained in the previous emails. Regarding your code, if we follow the algorithm then no matter DM, if P < 100 then you set up DM to 0 and increase P. So you could switch the if statement , making the P test in the first place, thus you only write your decreasing of P only once, as asked : P = 200; DM = 1; for n = 1:10 if P > 100 then if DM == 1 then P = P - 60 else P = P - 30 end DM = 1 printf('P bigger than 100. DM = %d\n',DM) else DM = 0 P = P + 100 //instead of writing P = P + 100, I would like ... printf('P smaller than 100. DM = %d\n',DM) end printf('%d %d\n',n,P) // changed disp for printf end -- View this message in context: http://mailinglists.scilab.org/Scilab-users-linking-jumping-from-line-of-code-to-an-other-tp4036375p4036403.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From denis.crete at thalesgroup.com Wed May 17 14:20:18 2017 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Wed, 17 May 2017 14:20:18 +0200 Subject: [Scilab-users] Scilab 6's plot2d displays %nan on the horizontal line in the mid-range of vertical axis Message-ID: <8F1D40232A0E68409E3FC23A30C326620174577A0EA1@THSONEA01CMS04P.one.grp> Hello, New in Scilab 6 (+Linux): If %nan values are in the Y vector, plot2d behaves as if the following was performed before display: Y (isnan(Y))=(YM + Ym)/2; where YM and Ym are max and min values of the Y-tics. It is probably not what one expects... Denis [@@ THALES GROUP INTERNAL @@] Unit? Mixte de Physique CNRS / THALES 1 Avenue Augustin Fresnel 91767 Palaiseau CEDEx - France Tel : +33 (0)1 69 41 58 52 Fax : +33 (0)1 69 41 58 78 e-mail : denis.crete at thalesgroup.com http://www.trt.thalesgroup.com/ump-cnrs-thales http://www.research.thalesgroup.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Wed May 17 15:24:58 2017 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Wed, 17 May 2017 13:24:58 +0000 Subject: [Scilab-users] {EXT} Scilab 6's plot2d displays %nan on the horizontal line in the mid-range of vertical axis In-Reply-To: <8F1D40232A0E68409E3FC23A30C326620174577A0EA1@THSONEA01CMS04P.one.grp> References: <8F1D40232A0E68409E3FC23A30C326620174577A0EA1@THSONEA01CMS04P.one.grp> Message-ID: Hello Denis, > De CRETE Denis > Envoy? : mercredi 17 mai 2017 14:20 > > If %nan values are in the Y vector, > plot2d behaves as if the following was performed before display: > Y (isnan(Y))=(YM + Ym)/2 I'm not sure I understand what you're pointing out. The following code works exactly as I expect: ---------- x = 1:5; y=x.^2; y(3)=%nan; plot(x, y) ---------- i.e. the point at x=3 is simply missing, with a blank between x=2 and x=4. -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From erhard.glueck.austria at gmail.com Thu May 18 00:11:02 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Wed, 17 May 2017 15:11:02 -0700 (MST) Subject: [Scilab-users] no automatic conversion from uint to double Message-ID: <1495059062860-4036411.post@n3.nabble.com> Hello, I'm wondering that there is no automatic conversion from uint to double. While coding for image editing I used the array values gotted with imread() and added a double value and got a wrong result. If convert the UINT with the double() function the result is correct. -- View this message in context: http://mailinglists.scilab.org/no-automatic-conversion-from-uint-to-double-tp4036411.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From erikrognaldsen1989 at gmail.com Thu May 18 19:31:19 2017 From: erikrognaldsen1989 at gmail.com (erikr) Date: Thu, 18 May 2017 10:31:19 -0700 (MST) Subject: [Scilab-users] Problem CPGE Pack to trace Bode Diagram In-Reply-To: <1493715110059-4036285.post@n3.nabble.com> References: <1493715110059-4036285.post@n3.nabble.com> Message-ID: <1495128679338-4036416.post@n3.nabble.com> I have the same problem now. It works perfectly in 5.5 versjon. Tested the CPGE Package in scilab 6 and boom. Error mesage. -- View this message in context: http://mailinglists.scilab.org/Problem-CPGE-Pack-to-trace-Bode-Diagram-tp4036285p4036416.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From fachbueroniedermaier at bayern-mail.de Fri May 19 07:51:00 2017 From: fachbueroniedermaier at bayern-mail.de (=?utf-8?Q?Sachverst=C3=A4ndigenb=C3=BCro_Niedermaier_Holger?=) Date: Fri, 19 May 2017 07:51:00 +0200 Subject: [Scilab-users] calculate TRMS value in Xcos Message-ID: <883477F0-56E2-46DC-B3E6-1320A983602F@bayern-mail.de> Dear all, by simulating an electrical power circuit I?d like to plot the voltage and the current over time, which is easy to perform by using the scope block. In addition to the signal recorded I?d like to calculate the TRMS value of the plotted current and voltage signal. Unfortunately Xcos does not include a TRMS block like e.g. Simulink do. Because I?m so far not so familiar with Xcos and Scilab I?d like to ask the community for support. Does anybody have a good idea or advise how to get the TRMS value of the recorded signal? Thanks and nice weekend Holger From curtis at geoscience.co.uk Fri May 19 10:29:46 2017 From: curtis at geoscience.co.uk (planetcooler) Date: Fri, 19 May 2017 01:29:46 -0700 (MST) Subject: [Scilab-users] FORTRAN Block in XCOS Message-ID: <1495182586931-4036422.post@n3.nabble.com> Can anyone point me at an example of an XCOS FORTRAN Block please ? -- View this message in context: http://mailinglists.scilab.org/FORTRAN-Block-in-XCOS-tp4036422.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Clement.David at esi-group.com Fri May 19 12:03:48 2017 From: Clement.David at esi-group.com (=?utf-8?B?Q2zDqW1lbnQgRGF2aWQ=?=) Date: Fri, 19 May 2017 10:03:48 +0000 Subject: [Scilab-users] FORTRAN Block in XCOS In-Reply-To: <1495182586931-4036422.post@n3.nabble.com> References: <1495182586931-4036422.post@n3.nabble.com> Message-ID: <1495188225.8891.50.camel@esi-group.com> Hello, You could take a look at inside Scilab source code ; the source code for fortran blocks are located in http://gitweb.scilab.org/?p=scilab.git;a=tree;f=scilab/modules/scicos_blocks/src/fortran . Thanks, -- Cl?ment Le vendredi 19 mai 2017 ? 01:29 -0700, planetcooler a ?crit?: > Can anyone point me at an example of an XCOS FORTRAN Block please ? > > > > -- > View this message in context: http://mailinglists.scilab.org/FORTRAN-Block-in-XCOS-tp4036422.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From curtis at geoscience.co.uk Fri May 19 12:26:56 2017 From: curtis at geoscience.co.uk (planetcooler) Date: Fri, 19 May 2017 03:26:56 -0700 (MST) Subject: [Scilab-users] FORTRAN Block in XCOS In-Reply-To: <1495188225.8891.50.camel@esi-group.com> References: <1495182586931-4036422.post@n3.nabble.com> <1495188225.8891.50.camel@esi-group.com> Message-ID: Cl?ment Thank you for this - much appreciated. Sorry - two questions: Where are the parameters in the Subroutine Call defined / explained ? ie - each subroutine call appears to have the format: subroutine XXXX (flag,nevprt,t,xd,x,nx,z,nz,tvec,ntvec, & rpar,nrpar,ipar,nipar,u,nu,y,ny) ?.where are the definitions of iflag, nevprt, t, xd etc???.? and If I compile my Subroutine - how does it get used / called by XCOS ? Do I make a dll ? Put it in a library ? Sorry to bother you with this - but I am guessing that there is a document somewhere that explains all of this? Regards and many thanks?????... Robin On 19 May 2017, at 11:05, Cl?ment David-3 [via Scilab / Xcos - Mailing Lists Archives] > wrote: Hello, You could take a look at inside Scilab source code ; the source code for fortran blocks are located in http://gitweb.scilab.org/?p=scilab.git;a=tree;f=scilab/modules/scicos_blocks/src/fortran . Thanks, -- Cl?ment Le vendredi 19 mai 2017 ? 01:29 -0700, planetcooler a ?crit : > Can anyone point me at an example of an XCOS FORTRAN Block please ? > > > > -- > View this message in context: http://mailinglists.scilab.org/FORTRAN-Block-in-XCOS-tp4036422.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > [hidden email] > http://lists.scilab.org/mailman/listinfo/users _______________________________________________ users mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/users ________________________________ If you reply to this email, your message will be added to the discussion below: http://mailinglists.scilab.org/FORTRAN-Block-in-XCOS-tp4036422p4036423.html To unsubscribe from FORTRAN Block in XCOS, click here. NAML -- View this message in context: http://mailinglists.scilab.org/FORTRAN-Block-in-XCOS-tp4036422p4036424.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mjmccann at ieee.org Fri May 19 17:25:38 2017 From: mjmccann at ieee.org (Michael J McCann) Date: Fri, 19 May 2017 15:25:38 +0000 Subject: [Scilab-users] calculate TRMS value in Xcos In-Reply-To: <883477F0-56E2-46DC-B3E6-1320A983602F@bayern-mail.de> References: <883477F0-56E2-46DC-B3E6-1320A983602F@bayern-mail.de> Message-ID: RMS Value: In a dynamic system simulation you can readily generate an instantaneous power value that can be recorded simply by using a volts*current product or any other dimensionally equivalent product. If however you want to do some averaging of the power level then you must have a record of that instantaneous value and do the averaging over the length of the record, which your request implies you have and therefore implies a post processing operation. You can partition the record into whatever shorter lengths you want and generate true RMS values over those time segments. But beware, if the model is simulating a fixed frequency (e.g.50Hz) power system then the periods must be integer multiples of the cycle time. If you want a value that appears like a metered value might appear then you can put the product term through a 1st order lag (exponentially weighted effect) G(s)=1/(1+sT) // xdot=(1/T)*(Input- x); and imitate the behaviour of a meter. All you have to do is chose the "time constant",T, of the meter. e.g several cycles. The MATLAB (2017a) Moving RMS includes the exponential weighting option and the true moving window version as well. I expect it could be replicated in XCOS with a SciLab function. Mike. ================== On 19/05/2017 05:51, Sachverst?ndigenb?ro Niedermaier Holger wrote: > Dear all, > by simulating an electrical power circuit I?d like to plot the voltage and the current over time, which is easy to perform by using the scope block. > In addition to the signal recorded I?d like to calculate the TRMS value of the plotted current and voltage signal. > Unfortunately Xcos does not include a TRMS block like e.g. Simulink do. > Because I?m so far not so familiar with Xcos and Scilab I?d like to ask the community for support. > Does anybody have a good idea or advise how to get the TRMS value of the recorded signal? > Thanks and nice weekend > Holger > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Dr.M.J.McCann,MJMcCann-Consulting -------------- next part -------------- An HTML attachment was scrubbed... URL: From fachbueroniedermaier at bayern-mail.de Fri May 19 18:00:29 2017 From: fachbueroniedermaier at bayern-mail.de (=?utf-8?Q?Sachverst=C3=A4ndigenb=C3=BCro_Niedermaier_Holger?=) Date: Fri, 19 May 2017 18:00:29 +0200 Subject: [Scilab-users] calculate TRMS value in Xcos In-Reply-To: References: <883477F0-56E2-46DC-B3E6-1320A983602F@bayern-mail.de> Message-ID: <2AEE39F9-E35C-45B0-9F23-A4FEB8F5FA2B@bayern-mail.de> I?m going to try both, the post simulation calculation and the 1st order lag. Thanks to you Mike and have a nice weekend. > Am 19.05.2017 um 17:25 schrieb Michael J McCann : > > RMS Value: > In a dynamic system simulation you can readily generate an instantaneous power value that can be recorded simply by using a volts*current product or any other dimensionally equivalent product. > If however you want to do some averaging of the power level then you must have a record of that instantaneous value and do the averaging over the length of the record, which your request implies you have and therefore implies a post processing operation. You can partition the record into whatever shorter lengths you want and generate true RMS values over those time segments. But beware, if the model is simulating a fixed frequency (e.g.50Hz) power system then the periods must be integer multiples of the cycle time. > > If you want a value that appears like a metered value might appear then you can put the product term through a 1st order lag (exponentially weighted effect) > G(s)=1/(1+sT) // xdot=(1/T)*(Input- x); > and imitate the behaviour of a meter. All you have to do is chose the "time constant",T, of the meter. e.g several cycles. > > The MATLAB (2017a) Moving RMS includes the exponential weighting option and the true moving window version as well. I expect it could be replicated in XCOS with a SciLab function. > > Mike. > ================== > > On 19/05/2017 05:51, Sachverst?ndigenb?ro Niedermaier Holger wrote: >> Dear all, >> by simulating an electrical power circuit I?d like to plot the voltage and the current over time, which is easy to perform by using the scope block. >> In addition to the signal recorded I?d like to calculate the TRMS value of the plotted current and voltage signal. >> Unfortunately Xcos does not include a TRMS block like e.g. Simulink do. >> Because I?m so far not so familiar with Xcos and Scilab I?d like to ask the community for support. >> Does anybody have a good idea or advise how to get the TRMS value of the recorded signal? >> Thanks and nice weekend >> Holger >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > -- > Dr.M.J.McCann,MJMcCann-Consulting > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.s.strom at hslmg.de Mon May 22 00:32:37 2017 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Mon, 22 May 2017 00:32:37 +0200 Subject: [Scilab-users] Extracting numerical an text data from gmx files Message-ID: <59221585.7000204@hslmg.de> Hi, I want to extract lat, lon and -name from gmx files. See the following reduced example: ----------------------------------------------------------------------------------------------------------------------------------------- route_1 1 Start 11 station 111 destination. ------------------------------------------------------------------------------------------------------------------------------------ lat and lon should be collected as numerical colum vectors, name as a colum of strings. Which commands would you recommend? Is reading by mgetl and retrieving by regexp recommendable? The regex expression itself is no problem, e.g. (?<=())(\w|\d|\n|[().,\-:;@#$%^&*\[\]"'+--/\/???!?{}|`~]| )+?(?=()) I'm not asking for an executable function, just a smart choice of commands. Kind regards, Jens -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Mon May 22 01:14:01 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 22 May 2017 01:14:01 +0200 Subject: [Scilab-users] Extracting numerical an text data from gmx files In-Reply-To: <59221585.7000204@hslmg.de> References: <59221585.7000204@hslmg.de> Message-ID: Hello, Le 22/05/2017 ? 00:32, Jens Simon Strom a ?crit : > Hi, > I want to extract lat, lon and -name from gmx files. See the > following reduced example: > ----------------------------------------------------------------------------------------------------------------------------------------- > xmlns="http://www.topografix.com/GPX/1/1" creator="MEDIA-TOURS" > version="1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.topografix.com/GPX/1/1 > http://www.topografix.com/GPX/1/1/gpx.xsd"> > > > route_1 > > 1 Start > > > 11 station > > > 111 destination. > > > > ------------------------------------------------------------------------------------------------------------------------------------ > lat and lon should be collected as numerical colum vectors, name as a > colum of strings. > > Which commands would you recommend? Is reading by mgetl and retrieving > by regexp recommendable? xmlXPath() is made for parsing xml documents and extracting selected informations. getPreferencesValue() may also help. It is based on xmlXPath() HTH Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.s.strom at hslmg.de Mon May 22 01:31:55 2017 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Mon, 22 May 2017 01:31:55 +0200 Subject: [Scilab-users] Extracting numerical an text data from gmx files In-Reply-To: References: <59221585.7000204@hslmg.de> Message-ID: <5922236B.2060601@hslmg.de> Great, I will try this soon. Regards, Jens -------------------------------------------------------------------------- Am 22.05.2017 01:14, schrieb Samuel Gougeon: > Hello, > > Le 22/05/2017 ? 00:32, Jens Simon Strom a ?crit : >> Hi, >> I want to extract lat, lon and -name from gmx files. See the >> following reduced example: >> ----------------------------------------------------------------------------------------------------------------------------------------- >> > xmlns="http://www.topografix.com/GPX/1/1" creator="MEDIA-TOURS" >> version="1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xsi:schemaLocation="http://www.topografix.com/GPX/1/1 >> http://www.topografix.com/GPX/1/1/gpx.xsd"> >> >> >> route_1 >> >> 1 Start >> >> >> 11 station >> >> >> 111 destination. >> >> >> >> ------------------------------------------------------------------------------------------------------------------------------------ >> lat and lon should be collected as numerical colum vectors, name as >> a colum of strings. >> >> Which commands would you recommend? Is reading by mgetl and >> retrieving by regexp recommendable? > > xmlXPath() is made for parsing xml documents and extracting selected > informations. > getPreferencesValue() may also help. It is based on xmlXPath() > > HTH > Samuel > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.s.strom at hslmg.de Mon May 22 08:19:47 2017 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Mon, 22 May 2017 08:19:47 +0200 Subject: [Scilab-users] Extracting numerical an text data from gmx files In-Reply-To: <5922236B.2060601@hslmg.de> References: <59221585.7000204@hslmg.de> <5922236B.2060601@hslmg.de> Message-ID: <59228303.4090704@hslmg.de> Hello Samuel, I tried the script doc=xmlRead("G:/Daten/Navigation/gpxArchiv/testfile.gpx") recent =getPreferencesValue("/gpx/rte/body/rtept", ["lat","lon"],doc) xmlDelete(doc) The file is as below. The result is: doc = XML Document url: file:///G:/Daten/Navigation/gpxArchiv/testfile.gpx root: XML Element !--error 10000 getPreferencesValue: Invalid XPath request. at line 39 of function getPreferencesValue called by : recent = getPreferencesValue("/gpx/rte/rtept", ["lat","lon"],doc) at line 55 of exec file called by : exec('G:\Daten\Navigation\eTrex10_GPX_Generator.sce', -1) What am I doing wrong here? Regards, Jens ----------------------------------------------------------------------------- Am 22.05.2017 01:31, schrieb Jens Simon Strom: > Great, I will try this soon. > Regards, Jens > -------------------------------------------------------------------------- > > Am 22.05.2017 01:14, schrieb Samuel Gougeon: >> Hello, >> >> Le 22/05/2017 ? 00:32, Jens Simon Strom a ?crit : >>> Hi, >>> I want to extract lat, lon and -name from gmx files. See the >>> following reduced example: >>> ----------------------------------------------------------------------------------------------------------------------------------------- >>> >> xmlns="http://www.topografix.com/GPX/1/1" creator="MEDIA-TOURS" >>> version="1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>> xsi:schemaLocation="http://www.topografix.com/GPX/1/1 >>> http://www.topografix.com/GPX/1/1/gpx.xsd"> >>> >>> >>> route_1 >>> >>> 1 Start >>> >>> >>> 11 station >>> >>> >>> 111 destination. >>> >>> >>> >>> ------------------------------------------------------------------------------------------------------------------------------------ >>> lat and lon should be collected as numerical colum vectors, name as >>> a colum of strings. >>> >>> Which commands would you recommend? Is reading by mgetl and >>> retrieving by regexp recommendable? >> >> xmlXPath() is made for parsing xml documents and extracting selected >> informations. >> getPreferencesValue() may also help. It is based on xmlXPath() >> >> HTH >> Samuel >> >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From curtis at geoscience.co.uk Mon May 22 12:31:59 2017 From: curtis at geoscience.co.uk (planetcooler) Date: Mon, 22 May 2017 03:31:59 -0700 (MST) Subject: [Scilab-users] FORTRAN Block in XCOS In-Reply-To: References: <1495182586931-4036422.post@n3.nabble.com> <1495188225.8891.50.camel@esi-group.com> Message-ID: <1495449119394-4036437.post@n3.nabble.com> ok - not many FORTRAN folk out there using XCOS I guess. Does anyone have an example using C, perhaps or another language? -- View this message in context: http://mailinglists.scilab.org/FORTRAN-Block-in-XCOS-tp4036422p4036437.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From curtis at geoscience.co.uk Mon May 22 22:25:28 2017 From: curtis at geoscience.co.uk (planetcooler) Date: Mon, 22 May 2017 13:25:28 -0700 (MST) Subject: [Scilab-users] FORTRAN Block in XCOS In-Reply-To: <1495449119394-4036437.post@n3.nabble.com> References: <1495182586931-4036422.post@n3.nabble.com> <1495188225.8891.50.camel@esi-group.com> <1495449119394-4036437.post@n3.nabble.com> Message-ID: <1495484728694-4036441.post@n3.nabble.com> Is there a Developer's Guide somewhere - for folk who want to develop new blocks? -- View this message in context: http://mailinglists.scilab.org/FORTRAN-Block-in-XCOS-tp4036422p4036441.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From perrichon.pierre at wanadoo.fr Mon May 22 22:33:30 2017 From: perrichon.pierre at wanadoo.fr (Perrichon) Date: Mon, 22 May 2017 22:33:30 +0200 Subject: [Scilab-users] FORTRAN Block in XCOS In-Reply-To: <1495484728694-4036441.post@n3.nabble.com> References: <1495182586931-4036422.post@n3.nabble.com> <1495188225.8891.50.camel@esi-group.com> <1495449119394-4036437.post@n3.nabble.com> <1495484728694-4036441.post@n3.nabble.com> Message-ID: Dear, I'm also interest to translate Fortran to C. It's a big task looking at MGO and science to translate done by the olders Good luck Before printing, think about ENVIRONMENTAL responsabity -----Message d'origine----- De?: users [mailto:users-bounces at lists.scilab.org] De la part de planetcooler Envoy??: lundi 22 mai 2017 22:25 ??: users at lists.scilab.org Objet?: Re: [Scilab-users] FORTRAN Block in XCOS Is there a Developer's Guide somewhere - for folk who want to develop new blocks? -- View this message in context: http://mailinglists.scilab.org/FORTRAN-Block-in-XCOS-tp4036422p4036441.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From Clement.David at esi-group.com Tue May 23 10:14:25 2017 From: Clement.David at esi-group.com (=?utf-8?B?Q2zDqW1lbnQgRGF2aWQ=?=) Date: Tue, 23 May 2017 08:14:25 +0000 Subject: [Scilab-users] FORTRAN Block in XCOS In-Reply-To: <1495484728694-4036441.post@n3.nabble.com> References: <1495182586931-4036422.post@n3.nabble.com> <1495188225.8891.50.camel@esi-group.com> <1495449119394-4036437.post@n3.nabble.com> <1495484728694-4036441.post@n3.nabble.com> Message-ID: <1495527263.2189.1.camel@esi-group.com> Hello, There is some documents listed in the Scilab website [1] however there is no dedicated documentation for creating a block. There is some books [2] on Scilab/Xcos which also cover the subject however the most up to date books are in French. [1]: http://www.scilab.org/resources/documentation/tutorials [2]: http://www.scilab.org/resources/documentation/books Thanks -- Cl?ment Le lundi 22 mai 2017 ? 13:25 -0700, planetcooler a ?crit?: > Is there a Developer's Guide somewhere - for folk who want to develop new > blocks?? > > > > > > -- > View this message in context: http://mailinglists.scilab.org/FORTRAN-Block-in-XCOS-tp4036422p40364 > 41.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From curtis at geoscience.co.uk Tue May 23 13:35:00 2017 From: curtis at geoscience.co.uk (planetcooler) Date: Tue, 23 May 2017 04:35:00 -0700 (MST) Subject: [Scilab-users] FORTRAN Block in XCOS In-Reply-To: <1495527263.2189.1.camel@esi-group.com> References: <1495182586931-4036422.post@n3.nabble.com> <1495188225.8891.50.camel@esi-group.com> <1495449119394-4036437.post@n3.nabble.com> <1495484728694-4036441.post@n3.nabble.com> <1495527263.2189.1.camel@esi-group.com> Message-ID: Thank you. (Might have to try my very rusty French !) Robin On 23 May 2017, at 09:16, Cl?ment David-3 [via Scilab / Xcos - Mailing Lists Archives] > wrote: Hello, There is some documents listed in the Scilab website [1] however there is no dedicated documentation for creating a block. There is some books [2] on Scilab/Xcos which also cover the subject however the most up to date books are in French. [1]: http://www.scilab.org/resources/documentation/tutorials [2]: http://www.scilab.org/resources/documentation/books Thanks -- Cl?ment Le lundi 22 mai 2017 ? 13:25 -0700, planetcooler a ?crit : > Is there a Developer's Guide somewhere - for folk who want to develop new > blocks? > > > > > > -- > View this message in context: http://mailinglists.scilab.org/FORTRAN-Block-in-XCOS-tp4036422p40364 > 41.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > [hidden email] > http://lists.scilab.org/mailman/listinfo/users _______________________________________________ users mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/users ________________________________ If you reply to this email, your message will be added to the discussion below: http://mailinglists.scilab.org/FORTRAN-Block-in-XCOS-tp4036422p4036443.html To unsubscribe from FORTRAN Block in XCOS, click here. NAML -- View this message in context: http://mailinglists.scilab.org/FORTRAN-Block-in-XCOS-tp4036422p4036444.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.s.strom at hslmg.de Tue May 23 15:35:00 2017 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Tue, 23 May 2017 15:35:00 +0200 Subject: [Scilab-users] Extracting numerical an text data from gmx files In-Reply-To: <59228303.4090704@hslmg.de> References: <59221585.7000204@hslmg.de> <5922236B.2060601@hslmg.de> <59228303.4090704@hslmg.de> Message-ID: <59243A84.7080206@hslmg.de> Hello Samuel, Here comes a sucsessful result: function [route,lat,lon,n]=gpx2scilab(gpxpath) //Extracting geographical coordinates and route point names from a gpx file //containing a route with routepoints as defined by the rte element //gpxpath: full path of the gpx file (string 1 x 1). //The first two lines of the file have to be // // //The last line of the file has to be // //route: All results compiled in a n x 4 string matrix //lat: Geographical latitude/? (numerical row vector)) //long: Geographical longitude/? (numerical row vector)) //n: number of route points //gpx2scilab() requires Scilab Version 6. doc=xmlRead(gpxpath); Coo=getPreferencesValue("/gpx/rte/rtept", ["lat", "lon"],doc);//string matrix n x 2 xp = xmlXPath(doc, "/gpx/rte/rtept/name");//XMLSet s = size(xp) Name=[] for i=1:s(2) Name=[Name;xmlDump(xp(i))] end xmlDelete(doc) route=[Name Coo string(1:s(2))'] lat=strtod(Coo(:,1))//double, ? lon=strtod(Coo(:,2))//double, ? n=length(lat)//number of route points endfunction Thanks again for your help. Regards, Jens ______________________________________________________________________________ Am 22.05.2017 08:19, schrieb Jens Simon Strom: > Hello Samuel, > > I tried the script > doc=xmlRead("G:/Daten/Navigation/gpxArchiv/testfile.gpx") > recent =getPreferencesValue("/gpx/rte/body/rtept", ["lat","lon"],doc) > xmlDelete(doc) > The file is as below. > > The result is: > doc = > XML Document > url: file:///G:/Daten/Navigation/gpxArchiv/testfile.gpx > root: XML Element > !--error 10000 > getPreferencesValue: Invalid XPath request. > at line 39 of function getPreferencesValue called by : > recent = getPreferencesValue("/gpx/rte/rtept", ["lat","lon"],doc) > at line 55 of exec file called by : > exec('G:\Daten\Navigation\eTrex10_GPX_Generator.sce', -1) > > What am I doing wrong here? > Regards, Jens > ----------------------------------------------------------------------------- > > Am 22.05.2017 01:31, schrieb Jens Simon Strom: >> Great, I will try this soon. >> Regards, Jens >> -------------------------------------------------------------------------- >> >> Am 22.05.2017 01:14, schrieb Samuel Gougeon: >>> Hello, >>> >>> Le 22/05/2017 ? 00:32, Jens Simon Strom a ?crit : >>>> Hi, >>>> I want to extract lat, lon and -name from gmx files. See the >>>> following reduced example: >>>> ----------------------------------------------------------------------------------------------------------------------------------------- >>>> >>> xmlns="http://www.topografix.com/GPX/1/1" creator="MEDIA-TOURS" >>>> version="1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>>> xsi:schemaLocation="http://www.topografix.com/GPX/1/1 >>>> http://www.topografix.com/GPX/1/1/gpx.xsd"> >>>> >>>> >>>> route_1 >>>> >>>> 1 Start >>>> >>>> >>>> 11 station >>>> >>>> >>>> 111 destination. >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------------------------------------------------------------ >>>> lat and lon should be collected as numerical colum vectors, name >>>> as a colum of strings. >>>> >>>> Which commands would you recommend? Is reading by mgetl and >>>> retrieving by regexp recommendable? >>> >>> xmlXPath() is made for parsing xml documents and extracting selected >>> informations. >>> getPreferencesValue() may also help. It is based on xmlXPath() >>> >>> HTH >>> Samuel >>> >>> >>> >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.auch5395 at outlook.de Mon May 22 12:58:28 2017 From: m.auch5395 at outlook.de (marcus scilab) Date: Mon, 22 May 2017 03:58:28 -0700 (MST) Subject: [Scilab-users] GUI Message-ID: <1495450708121-4036438.post@n3.nabble.com> Hello, I have 2 GUI's. now i want to open the 2nd GUI with a push button on the first GUI. I tried opening it with the exec('C....') command. But when I do it like this, i can't set or get values out of edit buttons. So how can I call my 2nd GUI with the push button and all its handles files? Thanks for your help! -- View this message in context: http://mailinglists.scilab.org/GUI-tp4036438.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From m.auch5395 at outlook.de Mon May 22 15:07:08 2017 From: m.auch5395 at outlook.de (marcus scilab) Date: Mon, 22 May 2017 06:07:08 -0700 (MST) Subject: [Scilab-users] !--error 10000 Message-ID: <1495458428816-4036440.post@n3.nabble.com> Hello, i get this error message: !--error 10000 %st_e: Wrong value for input argument #1: not a valid field name. at line 39 of function %st_e called by : at line 219 of function push_calc_callback called by : ect(23472);push_calc_callback(handles);if exists("%oldgcbo") then gcbo = %ol while executing a callback i am trying to get my the entry of an edit field in GUI with get(handles.obj1,'String'). I am using this code line earlier in my code and it works fine. Now later in the code for an other edit field it gives me this error. Any suggestions what i've done wrong? Thank you! -- View this message in context: http://mailinglists.scilab.org/error-10000-tp4036440.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From denis.crete at thalesgroup.com Wed May 24 11:15:51 2017 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Wed, 24 May 2017 11:15:51 +0200 Subject: [Scilab-users] {EXT} Scilab 6's plot2d displays %nan on the horizontal line in the mid-range of vertical axis In-Reply-To: References: <8F1D40232A0E68409E3FC23A30C326620174577A0EA1@THSONEA01CMS04P.one.grp> Message-ID: <8F1D40232A0E68409E3FC23A30C326620174579A585F@THSONEA01CMS04P.one.grp> Hello Christophe, Thank you for trying also the function "plot" instead of "plot2d". On Scilab 6, on a Linux platform, I have the same result for both functions = they both plot a number of points equal to size(x,'*'), with guessed values for Yk when Yk is %nan... Code: X=1:5; Y=X.^2; Y(3)=%nan; plot(X',Y'); plot2d(X',Y',style=3); // cf. figures; Parabole_nan.png is generated by "plot", and Parabole_2d_nan.png is generated by "plot2d". I did not install Scilab 6 on Windows yet. When this is done, I'll give it a try. Best regards Denis -----Message d'origine----- De?: users [mailto:users-bounces at lists.scilab.org] De la part de Dang Ngoc Chan, Christophe Envoy??: mercredi 17 mai 2017 15:25 ??: Users mailing list for Scilab Objet?: Re: [Scilab-users] {EXT} Scilab 6's plot2d displays %nan on the horizontal line in the mid-range of vertical axis Hello Denis, > De CRETE Denis > Envoy? : mercredi 17 mai 2017 14:20 > > If %nan values are in the Y vector, > plot2d behaves as if the following was performed before display: > Y (isnan(Y))=(YM + Ym)/2 I'm not sure I understand what you're pointing out. The following code works exactly as I expect: ---------- x = 1:5; y=x.^2; y(3)=%nan; plot(x, y) ---------- i.e. the point at x=3 is simply missing, with a blank between x=2 and x=4. -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- A non-text attachment was scrubbed... Name: Parabole-2d_nan.png Type: image/png Size: 4914 bytes Desc: Parabole-2d_nan.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Parabole_nan.png Type: image/png Size: 5430 bytes Desc: Parabole_nan.png URL: From j-lan at online.no Sat May 27 10:20:48 2017 From: j-lan at online.no (JLan) Date: Sat, 27 May 2017 01:20:48 -0700 (MST) Subject: [Scilab-users] =?utf-8?q?Handling_of_special_characters_like_?= =?utf-8?b?wrA=?= Message-ID: <1495873248995-4036459.post@n3.nabble.com> Is there a good explanation for this behavior? It is of course possible to work around it, but the extra character has caused me some unwanted shifts in strings. --> d=ascii('?') d = 194. 176. --> ascii(d(1)) ans = ? --> ascii(d(2)) ans = ? --> ascii(d) ans = ? --> ascii(d(1))+ascii(d(2)) ans = ?? --> ascii([194 176]) ans = ? --> ascii([194 194]) ans = ?? -->ascii(ascii(176)) ans = 194. 176. Brgds Jan -- View this message in context: http://mailinglists.scilab.org/Handling-of-special-characters-like-tp4036459.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From adelson.oliveira at gmail.com Sat May 27 17:12:37 2017 From: adelson.oliveira at gmail.com (Adelson) Date: Sat, 27 May 2017 08:12:37 -0700 (MST) Subject: [Scilab-users] vector product (hyper)matrix and vector Message-ID: <1495897957822-4036460.post@n3.nabble.com> Hello, How to obtain the product of a one dimensional array and a hypermatrix in a vector way? I mean, an array a(1:N) times a hypermatrix H(1:M,1:N,1:P,....), for all m,p,q,... indices: for m=1:M for p=1:P for q=..... .... R(m,:,p,q,....) =H(m,:,p,q,...) .* a(:); .... end end end in a vectorized form? As an example, in FORTRAN one could simply write in a vectorized form, FORALL(m=1:M,p=1:P,q=...,...); R(m,:,p,q,...)=H(m,:,p,q,....)*a(:); And, it seems that in MATLAB one could do something similar using the comand DOT. Thanks -- View this message in context: http://mailinglists.scilab.org/vector-product-hyper-matrix-and-vector-tp4036460.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Sat May 27 21:19:18 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 27 May 2017 21:19:18 +0200 Subject: [Scilab-users] vector product (hyper)matrix and vector In-Reply-To: <1495897957822-4036460.post@n3.nabble.com> References: <1495897957822-4036460.post@n3.nabble.com> Message-ID: Hello Adelson, Le 27/05/2017 ? 17:12, Adelson a ?crit : > Hello, > > How to obtain the product of a one dimensional array and a hypermatrix in a > vector way? > > I mean, an array a(1:N) times a hypermatrix H(1:M,1:N,1:P,....), for all > m,p,q,... indices: > > for m=1:M > for p=1:P > for q=..... > .... > R(m,:,p,q,....) =H(m,:,p,q,...) .* a(:); > .... > end > end > end > > in a vectorized form? > > As an example, in FORTRAN one could simply write in a vectorized form, > > FORALL(m=1:M,p=1:P,q=...,...); R(m,:,p,q,...)=H(m,:,p,q,....)*a(:); > > And, it seems that in MATLAB one could do something similar using the comand > DOT. You can use tmp=matrix(H,size(H,1),-1);R=matrix(tmp.*(a(:)*ones(tmp(1,:))),size(H));Example: --> H = grand(3,5,2,2,"uin",0,2)H = (:,:,1,1)2. 2. 2. 1. 0.0. 1. 2. 1. 0.2. 1. 0. 2. 2.(:,:,2,1)0. 1. 1. 0. 0.0. 1. 2. 2. 1.1. 2. 1. 1. 2.(:,:,1,2)0. 2. 1. 0. 2.0. 0. 2. 0. 0.1. 1. 1. 0. 2.(:,:,2,2)0. 1. 2. 0. 2.0. 2. 2. 0. 1.1. 1. 0. 1. 2.--> a = (1:3)'a = 1.2.3.--> tmp = matrix(H,size(H,1),-1);--> R = matrix(tmp .* (a(:) * ones(tmp(1,:))), size(H));--> RR = (:,:,1,1)2. 2. 2. 1. 0.0. 2. 4. 2. 0.6. 3. 0. 6. 6.(:,:,2,1)0. 1. 1. 0. 0.0. 2. 4. 4. 2.3. 6. 3. 3. 6.(:,:,1,2)0. 2. 1. 0. 2.0. 0. 4. 0. 0.3. 3. 3. 0. 6.(:,:,2,2)0. 1. 2. 0. 2.0. 4. 4. 0. 2.3. 3. 0. 3. 6.Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From adelson.oliveira at gmail.com Sun May 28 03:55:05 2017 From: adelson.oliveira at gmail.com (Adelson Oliveira) Date: Sat, 27 May 2017 22:55:05 -0300 Subject: [Scilab-users] vector product (hyper)matrix and vector In-Reply-To: References: <1495897957822-4036460.post@n3.nabble.com> Message-ID: Thanks, The trick is to create an auxiliar matrix "A" where replics of array "a" fill the columns and to perform regular elemental multiplications with a reshaped version of the target hypermatrix "H" and then reshape the result as original H. It maybe fast because of vectorization but I still have two questions. This demands addtional memory space if one cannot to do everything in one step, and, would it be possible to multiply a line vector "b=(1:5)" to all lines of "H" or another array "c" to the third dimension of H in a vectorized way? Thanks again 2017-05-27 16:19 GMT-03:00 Samuel Gougeon : > Hello Adelson, > > Le 27/05/2017 ? 17:12, Adelson a ?crit : > > Hello, > > How to obtain the product of a one dimensional array and a hypermatrix in a > vector way? > > I mean, an array a(1:N) times a hypermatrix H(1:M,1:N,1:P,....), for all > m,p,q,... indices: > > for m=1:M > for p=1:P > for q=..... > .... > R(m,:,p,q,....) =H(m,:,p,q,...) .* a(:); > .... > end > end > end > > in a vectorized form? > > As an example, in FORTRAN one could simply write in a vectorized form, > > FORALL(m=1:M,p=1:P,q=...,...); R(m,:,p,q,...)=H(m,:,p,q,....)*a(:); > > And, it seems that in MATLAB one could do something similar using the comand > DOT. > > > > You can use > > tmp = matrix(H,size(H,1),-1);R = matrix(tmp .* (a(:) * ones(tmp(1,:))), size(H));Example:--> H = grand(3,5,2,2,"uin",0,2) H = (:,:,1,1) 2. 2. 2. 1. 0. 0. 1. 2. 1. 0. 2. 1. 0. 2. 2.(:,:,2,1) 0. 1. 1. 0. 0. 0. 1. 2. 2. 1. 1. 2. 1. 1. 2.(:,:,1,2) 0. 2. 1. 0. 2. 0. 0. 2. 0. 0. 1. 1. 1. 0. 2.(:,:,2,2) 0. 1. 2. 0. 2. 0. 2. 2. 0. 1. 1. 1. 0. 1. 2.--> a = (1:3)' a = 1. 2. 3.--> tmp = matrix(H,size(H,1),-1);--> R = matrix(tmp .* (a(:) * ones(tmp(1,:))), size(H));--> R R = (:,:,1,1) 2. 2. 2. 1. 0. 0. 2. 4. 2. 0. 6. 3. 0. 6. 6.(:,:,2,1) 0. 1. 1. 0. 0. 0. 2. 4. 4. 2. 3. 6. 3. 3. 6.(:,:,1,2) 0. 2. 1. 0. 2. 0. 0. 4. 0. 0. 3. 3. 3. 0. 6.(:,:,2,2) 0. 1. 2. 0. 2. 0. 4. 4. 0. 2. 3. 3. 0. 3. 6. > Samuel > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sun May 28 05:42:07 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 28 May 2017 05:42:07 +0200 Subject: [Scilab-users] vector product (hyper)matrix and vector In-Reply-To: References: <1495897957822-4036460.post@n3.nabble.com> Message-ID: Le 28/05/2017 ? 03:55, Adelson Oliveira a ?crit : > Thanks, > > The trick is to create an auxiliar matrix "A" where replics of array > "a" fill the columns and to perform regular elemental multiplications > with a reshaped version of the target hypermatrix "H" and then reshape > the result as original H. It maybe fast because of vectorization but I > still have two questions. This demands addtional memory space if one > cannot to do everything in one step, > and, would it be possible to multiply a line vector "b=(1:5)" to all > lines of "H" or another array > "c" to the third dimension of H in a vectorized way? Yes: you must first use permute() to put in first position the dimension along which you want to multiply the vector, then process as before, and finally re-permute() the result in the reverse way. -------------- next part -------------- An HTML attachment was scrubbed... URL: From adelson.oliveira at gmail.com Sun May 28 17:14:35 2017 From: adelson.oliveira at gmail.com (Adelson Oliveira) Date: Sun, 28 May 2017 12:14:35 -0300 Subject: [Scilab-users] vector product (hyper)matrix and vector In-Reply-To: References: <1495897957822-4036460.post@n3.nabble.com> Message-ID: Well, I guess this is not the most efficient way to do this, is it? I mean, there are a lot of copies and temporary files ... 2017-05-28 0:42 GMT-03:00 Samuel Gougeon : > Le 28/05/2017 ? 03:55, Adelson Oliveira a ?crit : > > Thanks, > > The trick is to create an auxiliar matrix "A" where replics of array "a" > fill the columns and to perform regular elemental multiplications with a > reshaped version of the target hypermatrix "H" and then reshape the result > as original H. It maybe fast because of vectorization but I still have two > questions. This demands addtional memory space if one cannot to do > everything in one step, > > and, would it be possible to multiply a line vector "b=(1:5)" to all lines of "H" or another array > > "c" to the third dimension of H in a vectorized way? > > > Yes: you must first use permute() to put in first position the dimension > along which you want to multiply the vector, then process as before, and > finally re-permute() the result in the reverse way. > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sun May 28 17:27:56 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 28 May 2017 17:27:56 +0200 Subject: [Scilab-users] vector product (hyper)matrix and vector In-Reply-To: References: <1495897957822-4036460.post@n3.nabble.com> Message-ID: <76a473f8-9b3e-e450-707f-c810ef934e20@free.fr> Le 28/05/2017 ? 17:14, Adelson Oliveira a ?crit : > Well, I guess this is not the most efficient way to do this, is it? I > mean, there are a lot of copies and temporary files ... Which files?? Intermediate variables are usual in scilab programming. This way is much faster than nested explicit scilab loops. If you find a better general way, just post it :) Samuel From adelson.oliveira at gmail.com Sun May 28 17:54:24 2017 From: adelson.oliveira at gmail.com (Adelson Oliveira) Date: Sun, 28 May 2017 12:54:24 -0300 Subject: [Scilab-users] vector product (hyper)matrix and vector In-Reply-To: <76a473f8-9b3e-e450-707f-c810ef934e20@free.fr> References: <1495897957822-4036460.post@n3.nabble.com> <76a473f8-9b3e-e450-707f-c810ef934e20@free.fr> Message-ID: Sorry, not files, I meant arrays. If I figure out an alternative way, I'll post it. Thanks Em 28/05/2017 12:28 PM, "Samuel Gougeon" escreveu: > Le 28/05/2017 ? 17:14, Adelson Oliveira a ?crit : > >> Well, I guess this is not the most efficient way to do this, is it? I >> mean, there are a lot of copies and temporary files ... >> > > Which files?? > Intermediate variables are usual in scilab programming. > This way is much faster than nested explicit scilab loops. > > If you find a better general way, just post it :) > Samuel > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Mon May 29 10:15:15 2017 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Mon, 29 May 2017 08:15:15 +0000 Subject: [Scilab-users] =?utf-8?q?=7BEXT=7D__Handling_of_special_character?= =?utf-8?b?cyBsaWtlIMKw?= In-Reply-To: <1495873248995-4036459.post@n3.nabble.com> References: <1495873248995-4036459.post@n3.nabble.com> Message-ID: Hello, > De : users [mailto:users-bounces at lists.scilab.org] De la part de JLan > Envoy? : samedi 27 mai 2017 10:21 > > Is there a good explanation for this behavior? [...] > > --> d=ascii('?') > d = > 194. 176. I've got the same behaviour here and I think this deserves a bug report. Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From chinluh at tritytech.com Mon May 29 11:05:37 2017 From: chinluh at tritytech.com (Tan Chin Luh) Date: Mon, 29 May 2017 17:05:37 +0800 Subject: [Scilab-users] =?utf-8?q?=7BEXT=7D_Handling_of_special_characters?= =?utf-8?q?_like_=C2=B0?= In-Reply-To: References: <1495873248995-4036459.post@n3.nabble.com> Message-ID: <0595ff8b-bddc-915c-50d6-cb9df497412b@tritytech.com> I think this is the utf-8 encoding, which 194 is the starting byte for 2 bytes sequence to represent a character. rgd, CL On 29/5/2017 4:15 PM, Dang Ngoc Chan, Christophe wrote: > Hello, > >> De : users [mailto:users-bounces at lists.scilab.org] De la part de JLan >> Envoy? : samedi 27 mai 2017 10:21 >> >> Is there a good explanation for this behavior? [...] >> >> --> d=ascii('?') >> d = >> 194. 176. > I've got the same behaviour here and I think this deserves a bug report. > > Regards > > -- > Christophe Dang Ngoc Chan > Mechanical calculation engineer > This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From Alain.Lamy at cnes.fr Mon May 29 11:11:15 2017 From: Alain.Lamy at cnes.fr (Lamy Alain) Date: Mon, 29 May 2017 09:11:15 +0000 Subject: [Scilab-users] =?utf-8?q?=7BEXT=7D__Handling_of_special_character?= =?utf-8?b?cyBsaWtlIMKw?= In-Reply-To: References: <1495873248995-4036459.post@n3.nabble.com> Message-ID: <8F232902ADB4E14EB16789FB7006FC845A04F8A5@TW-MBX-P01.cnesnet.ad.cnes.fr> Hi, I stumbled upon the same oddity recently. I also think that some improvement is necessary. Suggestions (for discussion): ascii(string) => array of size 1xN (N = length(string)), or "ERROR" if the string contains extended characters. ascii(string, option="ext") => array of size pxN, with p = 3 or whatever value is needed. (or it could be the opposite convention : returned size = p x N by default ...) Alain From j-lan at online.no Mon May 29 10:55:04 2017 From: j-lan at online.no (=?UTF-8?Q?Jan_=c3=85ge_Langeland?=) Date: Mon, 29 May 2017 10:55:04 +0200 Subject: [Scilab-users] =?utf-8?q?=7BEXT=7D_Handling_of_special_characters?= =?utf-8?q?_like_=C2=B0?= In-Reply-To: References: <1495873248995-4036459.post@n3.nabble.com> Message-ID: On 29.05.2017 10:15, Dang Ngoc Chan, Christophe wrote: > Hello, > >> De : users [mailto:users-bounces at lists.scilab.org] De la part de JLan >> Envoy? : samedi 27 mai 2017 10:21 >> >> Is there a good explanation for this behavior? [...] >> >> --> d=ascii('?') >> d = >> 194. 176. > I've got the same behaviour here and I think this deserves a bug report. > > Regards > > -- > Christophe Dang Ngoc Chan > Done J? From j-lan at online.no Mon May 29 13:04:40 2017 From: j-lan at online.no (=?UTF-8?Q?Jan_=c3=85ge_Langeland?=) Date: Mon, 29 May 2017 13:04:40 +0200 Subject: [Scilab-users] =?utf-8?q?=7BEXT=7D_Handling_of_special_characters?= =?utf-8?q?_like_=C2=B0?= In-Reply-To: <8F232902ADB4E14EB16789FB7006FC845A04F8A5@TW-MBX-P01.cnesnet.ad.cnes.fr> References: <1495873248995-4036459.post@n3.nabble.com> <8F232902ADB4E14EB16789FB7006FC845A04F8A5@TW-MBX-P01.cnesnet.ad.cnes.fr> Message-ID: <6c923d83-8866-4d2b-1abf-ec0e558921b8@online.no> Thank you all for for comments You may want to comment in the bug report: http://bugzilla.scilab.org/show_bug.cgi?id=15172 Jan From sgougeon at free.fr Mon May 29 23:19:16 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 29 May 2017 23:19:16 +0200 Subject: [Scilab-users] ATOMS packages manager: missing packages in categories => FIXED! Message-ID: <46c11aa5-8b6f-660b-f655-5c362e28d958@free.fr> Hello, Since the ATOMS package manager exists (Scilab 5.2), its client interface launched with atomsGui() has some weird and rather annoying troubles about categories: While a package is tagged in one or several categories on the ATOMS website, and while the package is well compiled and available for the OS and the Scilab version we use, it can be missing -- i.e. not listed / proposed to install -- in the given categories. Actually, it can be listed in one of its categories, and missing in another one. This puzzling behavior impedes a lot the interest in using the ATOMS GUI rather than the atoms functions. A pity ! Considering the number of hours passed to try to understand why, noticeably when trying to publish on the ATOMS system a new package or a new version of a package that commonly refuses to appear in the manager, i have managed to analyze and track this issue up to a solution. I've got it ! There was a thread that it was on the server (so private) side, but it is not the case. The solution is committed here, aiming to make it available in Scilab 6.0.1, when it will find a reviewer: https://codereview.scilab.org/19273 *This fix works for all Scilab versions since 5.2 and up to Scilab 5.5.2 *and 6. Everybody can apply the patch on his/her Scilab, provided that one has /write access/ to the Scilab's installation directory. *The how-to apply the patch is the following*: * --> oldd = pwd(); // save your current directory * --> edit("atomsDESCRIPTIONcat.sci", 114) * In the /categor//ies_flat/ section, replace for i=1:size(category_names,"*") if~isfield(categories_flat_out,category_names(i))then categories_flat_out(category_names(i))=categories_flat_in_2(category_names(i)); end end with for i=1:size(category_names,"*") if~isfield(categories_flat_out,category_names(i))then categories_flat_out(category_names(i))=categories_flat_in_2(category_names(i)); else // If the category is already registered, we concatenate the master // and the new incoming lists of packages registered in it: tmp_out=categories_flat_out(category_names(i))("packages"); tmp_in_2=categories_flat_in_2(category_names(i))("packages"); categories_flat_out(category_names(i))("packages")=[tmp_out;tmp_in_2]; end end Then : * save the modification. In the console: --> predef clear // unprotect the library name --> genlib atomsinternalslib // recompile the library --> cd(oldd) // go back to your working dir --> atomsSystemUpdate // refresh your atoms list --> atomsGui() // launch the manager, and enjoy, for ever :) The issue was that as soon as a first package was installed from a category, it canceled the listing of all other packages proposed in its categories. So, the bug appeared or not for a category depending on packages already installed. Hope this can save hours to other ATOMS users and authors Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From cfuttrup at gmail.com Tue May 30 07:52:12 2017 From: cfuttrup at gmail.com (Claus Futtrup) Date: Tue, 30 May 2017 07:52:12 +0200 Subject: [Scilab-users] ATOMS packages manager: missing packages in categories => FIXED! In-Reply-To: <46c11aa5-8b6f-660b-f655-5c362e28d958@free.fr> References: <46c11aa5-8b6f-660b-f655-5c362e28d958@free.fr> Message-ID: Wow! On May 29, 2017 23:20, "Samuel Gougeon" wrote: > Hello, > > Since the ATOMS package manager exists (Scilab 5.2), its client interface > launched with atomsGui() has some weird and rather annoying troubles about > categories: While a package is tagged in one or several categories on the > ATOMS website, and while the package is well compiled and available for the > OS and the Scilab version we use, it can be missing -- i.e. not listed / > proposed to install -- in the given categories. Actually, it can be listed > in one of its categories, and missing in another one. This puzzling > behavior impedes a lot the interest in using the ATOMS GUI rather than the > atoms functions. A pity ! > > Considering the number of hours passed to try to understand why, > noticeably when trying to publish on the ATOMS system a new package or a > new version of a package that commonly refuses to appear in the manager, i > have managed to analyze and track this issue up to a solution. I've got it > ! There was a thread that it was on the server (so private) side, but it is > not the case. > > The solution is committed here, aiming to make it available in Scilab > 6.0.1, when it will find a reviewer: > https://codereview.scilab.org/19273 > > *This fix works for all Scilab versions since 5.2 and up to Scilab 5.5.2 *and > 6. > Everybody can apply the patch on his/her Scilab, provided that one has *write > access* to the Scilab's installation directory. > *The how-to apply the patch is the following*: > > - --> oldd = pwd(); // save your current directory > - --> edit("atomsDESCRIPTIONcat.sci", 114) > - In the *categor**ies_flat* section, replace > > for i=1:size(category_names,"*") > if ~ isfield(categories_flat_out,category_names(i)) then > categories_flat_out(category_names(i)) = categories_flat_in_2( > category_names(i)); > end > end > with > > for i=1:size(category_names,"*") > if ~ isfield(categories_flat_out,category_names(i)) then > categories_flat_out(category_names(i)) = categories_flat_in_2( > category_names(i)); > else > // If the category is already registered, we concatenate the > master > // and the new incoming lists of packages registered in it: > tmp_out = categories_flat_out(category_names(i))("packages"); > tmp_in_2 = categories_flat_in_2(category_names(i))("packages"); > categories_flat_out(category_names(i))("packages") = [tmp_out ; > tmp_in_2]; > end > end > Then : > > - save the modification. In the console: > --> predef clear // unprotect the library name > --> genlib atomsinternalslib // recompile the library > --> cd(oldd) // go back to your working dir > --> atomsSystemUpdate // refresh your atoms list > --> atomsGui() // launch the manager, and enjoy, for ever :) > > The issue was that as soon as a first package was installed from a > category, it canceled the listing of all other packages proposed in its > categories. So, the bug appeared or not for a category depending on > packages already installed. > Hope this can save hours to other ATOMS users and authors > > Samuel > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Tue May 30 08:05:37 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 30 May 2017 08:05:37 +0200 Subject: [Scilab-users] ATOMS packages manager: missing packages in categories => FIXED! In-Reply-To: <46c11aa5-8b6f-660b-f655-5c362e28d958@free.fr> References: <46c11aa5-8b6f-660b-f655-5c362e28d958@free.fr> Message-ID: I did something before posting that removed a step of the how-to . Here it is restored: Le 29/05/2017 ? 23:19, Samuel Gougeon a ?crit : > *The how-to apply the patch is the following*: > > * --> oldd = pwd(); // save your current directory > * --> cd SCI/modules/atoms/macros/atoms_internals > --> edit("atomsDESCRIPTIONcat.sci", 114) > * In the /categor//ies_flat/ section, replace > > for i=1:size(category_names,"*") > if~isfield(categories_flat_out,category_names(i))then > categories_flat_out(category_names(i))=categories_flat_in_2(category_names(i)); > end > end > with > > for i=1:size(category_names,"*") > if~isfield(categories_flat_out,category_names(i))then > categories_flat_out(category_names(i))=categories_flat_in_2(category_names(i)); > else > // If the category is already registered, we concatenate the master > // and the new incoming lists of packages registered in it: > tmp_out=categories_flat_out(category_names(i))("packages"); > tmp_in_2=categories_flat_in_2(category_names(i))("packages"); > categories_flat_out(category_names(i))("packages")=[tmp_out;tmp_in_2]; > end > end > Then : > > * save the modification. In the console: > --> predef clear // unprotect the library name > --> genlib atomsinternalslib // recompile the library > --> cd(oldd) // go back to your working dir > --> atomsSystemUpdate // refresh your atoms list > --> atomsGui() // launch the manager, and enjoy, for ever :) > > The issue was that as soon as a first package was installed from a > category, it canceled the listing of all other packages proposed in > its categories. So, the bug appeared or not for a category depending > on packages already installed. > > Hope this can save hours to other ATOMS users and authors > > Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From Clement.David at esi-group.com Tue May 30 11:09:02 2017 From: Clement.David at esi-group.com (=?utf-8?B?Q2zDqW1lbnQgRGF2aWQ=?=) Date: Tue, 30 May 2017 09:09:02 +0000 Subject: [Scilab-users] ATOMS packages manager: missing packages in categories => FIXED! In-Reply-To: References: <46c11aa5-8b6f-660b-f655-5c362e28d958@free.fr> Message-ID: <1496135339.3363.5.camel@esi-group.com> Thanks Samuel for the in-depth understanding of how ATOMS works and the patch. I merged it after a small edit on the test. -- Cl?ment Le mardi 30 mai 2017 ? 08:05 +0200, Samuel Gougeon a ?crit?: > I did something before posting that removed a step of the how-to . Here it is restored: > > Le 29/05/2017 ? 23:19, Samuel Gougeon a ?crit?: > > The how-to apply the patch is the following: > > --> oldd = pwd();? // save your current directory > > --> cd SCI/modules/atoms/macros/atoms_internals > > --> edit("atomsDESCRIPTIONcat.sci", 114) > > In the categories_flat section, replace > > for i=1:size(category_names,"*") > > ??? if ~ isfield(categories_flat_out,category_names(i)) then > > ??????? categories_flat_out(category_names(i)) = categories_flat_in_2(category_names(i)); > > ??? end > > end > > ??? ??? with > > > > for i=1:size(category_names,"*") > > ??? if ~ isfield(categories_flat_out,category_names(i)) then > > ??????? categories_flat_out(category_names(i)) = categories_flat_in_2(category_names(i)); > > ??? else > > ??????? // If the category is already registered, we concatenate the master > > ??????? // and the new incoming lists of packages registered in it: > > ??????? tmp_out = categories_flat_out(category_names(i))("packages"); > > ??????? tmp_in_2 = categories_flat_in_2(category_names(i))("packages"); > > ??????? categories_flat_out(category_names(i))("packages") = [tmp_out ; tmp_in_2]; > > ??? end > > end > > ??? ??? Then :? > > save the modification. In the console: > > --> predef clear??????? // unprotect the library name > > --> genlib atomsinternalslib? // recompile the library > > --> cd(oldd)??????????? // go back to your working dir > > --> atomsSystemUpdate?? // refresh your atoms list > > --> atomsGui()????????? // launch the manager, and enjoy, for ever :) > > The issue was that as soon as a first package was installed from a category, it canceled the > > listing of all other packages proposed in its categories. So, the bug appeared or not for a > > category depending on packages already installed. > > Hope this can save hours to other ATOMS users and authors > > > > Samuel > ? > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From arwooldridge at googlemail.com Tue May 30 12:52:42 2017 From: arwooldridge at googlemail.com (arwooldridge) Date: Tue, 30 May 2017 03:52:42 -0700 (MST) Subject: [Scilab-users] Problems getting started with Xcos In-Reply-To: <1490372054723-4035982.post@n3.nabble.com> References: <1490372054723-4035982.post@n3.nabble.com> Message-ID: <1496141562920-4036490.post@n3.nabble.com> Having similar problems with xcos on scilab 6.0.0 with windows 7 and 10. 1/ On saving a model and subsequent reopen, some routes get jumbled like spagetti. ( workaround fix: highlight the route and optimise with SC "O" subsequent save and open then works) 2/ Some text blocks when saved do not reappear on opening, or sometimes appear top left of window. 3/ Some models will not reopen after saving, blank window. 4/Some saved models halt with "invalid index" on simulation, no apparent reason or explanation. Models were previously working before saving. 5/Superblocks not functioning when created by converting selected group. Tried on fresh install on different computer, this time Windows 7, Same bugs exhibited. The combination and severity of these bugs make xcos unusable, at least in Windows for me. Suspect problem in saving files correctly but cannot pin down further. Could it be spaces in filenames, long filenames or other Windows/Linux discrepancies? As far as I can gather Linux users are not having these problems. Models built from scratch without saving appear to work OK, but this is not a workable solution! -- View this message in context: http://mailinglists.scilab.org/Problems-getting-started-with-Xcos-tp4035982p4036490.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Clement.David at esi-group.com Tue May 30 14:28:26 2017 From: Clement.David at esi-group.com (=?utf-8?B?Q2zDqW1lbnQgRGF2aWQ=?=) Date: Tue, 30 May 2017 12:28:26 +0000 Subject: [Scilab-users] Problems getting started with Xcos In-Reply-To: <1496141562920-4036490.post@n3.nabble.com> References: <1490372054723-4035982.post@n3.nabble.com> <1496141562920-4036490.post@n3.nabble.com> Message-ID: <1496147304.3363.7.camel@esi-group.com> Hello, Thanks for these information, as you wrote the save / load bug might be related to your system. Are you using a specific system locale / languages ? -- Cl?ment Le mardi 30 mai 2017 ? 03:52 -0700, arwooldridge a ?crit?: > Having similar problems with xcos on scilab 6.0.0 with windows 7 and 10. > 1/ On saving a model and subsequent reopen, some routes get jumbled like > spagetti. ( workaround fix: highlight the route and optimise with SC "O" > subsequent save and open then works) > > 2/ Some text blocks when saved do not reappear on opening, or sometimes > appear top left of window. > > 3/ Some models will not reopen after saving, blank window. > > 4/Some saved models halt with "invalid index" on simulation, no apparent > reason or explanation. Models were previously working before saving. > > 5/Superblocks not functioning when created by converting selected group. > > Tried on fresh install on different computer, this time Windows 7, Same bugs > exhibited. > > The combination and severity of these bugs make xcos unusable, at least in > Windows for me. > > Suspect problem in saving files correctly but cannot pin down further. Could > it be spaces in filenames, long filenames or other Windows/Linux > discrepancies? As far as I can gather Linux users are not having these > problems. > > Models built from scratch without saving appear to work OK, but this is not > a workable solution! > > > > > -- > View this message in context: http://mailinglists.scilab.org/Problems-getting-started-with-Xcos-tp > 4035982p4036490.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From perrichon.pierre at wanadoo.fr Tue May 30 15:06:20 2017 From: perrichon.pierre at wanadoo.fr (Perrichon) Date: Tue, 30 May 2017 15:06:20 +0200 Subject: [Scilab-users] Problems getting started with Xcos In-Reply-To: <1496147304.3363.7.camel@esi-group.com> References: <1490372054723-4035982.post@n3.nabble.com> <1496141562920-4036490.post@n3.nabble.com> <1496147304.3363.7.camel@esi-group.com> Message-ID: <007101d2d945$8889f8c0$999dea40$@wanadoo.fr> Hello, Confirmed Before printing, think about ENVIRONMENTAL responsabity -----Message d'origine----- De : users [mailto:users-bounces at lists.scilab.org] De la part de Cl?ment David Envoy? : mardi 30 mai 2017 14:28 ? : users at lists.scilab.org Objet : Re: [Scilab-users] Problems getting started with Xcos Hello, Thanks for these information, as you wrote the save / load bug might be related to your system. Are you using a specific system locale / languages ? -- Cl?ment Le mardi 30 mai 2017 ? 03:52 -0700, arwooldridge a ?crit : > Having similar problems with xcos on scilab 6.0.0 with windows 7 and 10. > 1/ On saving a model and subsequent reopen, some routes get jumbled > like spagetti. ( workaround fix: highlight the route and optimise with SC "O" > subsequent save and open then works) > > 2/ Some text blocks when saved do not reappear on opening, or > sometimes appear top left of window. > > 3/ Some models will not reopen after saving, blank window. > > 4/Some saved models halt with "invalid index" on simulation, no > apparent reason or explanation. Models were previously working before saving. > > 5/Superblocks not functioning when created by converting selected group. > > Tried on fresh install on different computer, this time Windows 7, > Same bugs exhibited. > > The combination and severity of these bugs make xcos unusable, at > least in Windows for me. > > Suspect problem in saving files correctly but cannot pin down further. > Could it be spaces in filenames, long filenames or other Windows/Linux > discrepancies? As far as I can gather Linux users are not having these > problems. > > Models built from scratch without saving appear to work OK, but this > is not a workable solution! > > > > > -- > View this message in context: > http://mailinglists.scilab.org/Problems-getting-started-with-Xcos-tp > 4035982p4036490.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From Alexis.Cros at promes.cnrs.fr Tue May 30 15:58:40 2017 From: Alexis.Cros at promes.cnrs.fr (Alexis Cros) Date: Tue, 30 May 2017 15:58:40 +0200 Subject: [Scilab-users] Exporting graphic figure and its calcs Message-ID: <0e18351f-b7e9-fcf0-8cea-ad4dc61f93be@promes.cnrs.fr> Hello, I have created a graphic figure which contains several things : - uicontrol frames which contain axes (polarplot, plot2d...) - uicontrol texts gui_sumup = figure(55, 'Position', [0 0 my_screen_size(1)-H_BORDERS_THICK my_screen_size(2)-START_BAR_THICK],.. // Position x, y and size x, y 'BackgroundColor', BLUE,.. 'Figure_name', 'Emissivity compute utility') I would like to export the full figure containing all entities. When I execute the folowing instruction, only the background figure is exported : xs2png(gui_sumup, computed_folder_path + '\Graphs\SUM_UP-' + csv_main_header_edit.String + '.png') or xs2png(55 , computed_folder_path + '\Graphs\SUM_UP-' + csv_main_header_edit.String + '.png') Is there a way to encapsulate all entities into the general figure (like merging?) to export it ? Thanks Alexis -------------- next part -------------- An HTML attachment was scrubbed... URL: From arwooldridge at googlemail.com Tue May 30 17:15:38 2017 From: arwooldridge at googlemail.com (arwooldridge) Date: Tue, 30 May 2017 08:15:38 -0700 (MST) Subject: [Scilab-users] Problems getting started with Xcos In-Reply-To: <007101d2d945$8889f8c0$999dea40$@wanadoo.fr> References: <1490372054723-4035982.post@n3.nabble.com> <1496141562920-4036490.post@n3.nabble.com> <1496147304.3363.7.camel@esi-group.com> <007101d2d945$8889f8c0$999dea40$@wanadoo.fr> Message-ID: <23325920-f65a-e7a5-0d31-2b5fdf1444a4@googlemail.com> Hi, Using English UK language and Locale/Region. Re paths was only thinking it may be looking for other paths to other files needed. On 30/05/2017 14:08, Perrichon Pierre [via Scilab / Xcos - Mailing Lists Archives] wrote: > Hello, > Confirmed > > > > > Before printing, think about ENVIRONMENTAL responsabity > > -----Message d'origine----- > De : users [mailto:[hidden email] > ] De la part de > Cl?ment David > Envoy? : mardi 30 mai 2017 14:28 > ? : [hidden email] > Objet : Re: [Scilab-users] Problems getting started with Xcos > > Hello, > > Thanks for these information, as you wrote the save / load bug might > be related to your system. Are you using a specific system locale / > languages ? > > -- > Cl?ment > > Le mardi 30 mai 2017 ? 03:52 -0700, arwooldridge a ?crit : > > > Having similar problems with xcos on scilab 6.0.0 with windows 7 and > 10. > > 1/ On saving a model and subsequent reopen, some routes get jumbled > > like spagetti. ( workaround fix: highlight the route and optimise > with SC "O" > > subsequent save and open then works) > > > > 2/ Some text blocks when saved do not reappear on opening, or > > sometimes appear top left of window. > > > > 3/ Some models will not reopen after saving, blank window. > > > > 4/Some saved models halt with "invalid index" on simulation, no > > apparent reason or explanation. Models were previously working > before saving. > > > > 5/Superblocks not functioning when created by converting selected > group. > > > > Tried on fresh install on different computer, this time Windows 7, > > Same bugs exhibited. > > > > The combination and severity of these bugs make xcos unusable, at > > least in Windows for me. > > > > Suspect problem in saving files correctly but cannot pin down further. > > Could it be spaces in filenames, long filenames or other Windows/Linux > > discrepancies? As far as I can gather Linux users are not having these > > problems. > > > > Models built from scratch without saving appear to work OK, but this > > is not a workable solution! > > > > > > > > > > -- > > View this message in context: > > http://mailinglists.scilab.org/Problems-getting-started-with-Xcos-tp > > 4035982p4036490.html > > Sent from the Scilab users - Mailing Lists Archives mailing list > archive at Nabble.com. > > _______________________________________________ > > users mailing list > > [hidden email] > > http://lists.scilab.org/mailman/listinfo/users > _______________________________________________ > users mailing list > [hidden email] > http://lists.scilab.org/mailman/listinfo/users > > _______________________________________________ > users mailing list > [hidden email] > http://lists.scilab.org/mailman/listinfo/users > > > ------------------------------------------------------------------------ > If you reply to this email, your message will be added to the > discussion below: > http://mailinglists.scilab.org/Problems-getting-started-with-Xcos-tp4035982p4036493.html > > To unsubscribe from Problems getting started with Xcos, click here > . > NAML > > -- View this message in context: http://mailinglists.scilab.org/Problems-getting-started-with-Xcos-tp4035982p4036495.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From curtis at geoscience.co.uk Tue May 30 21:23:13 2017 From: curtis at geoscience.co.uk (planetcooler) Date: Tue, 30 May 2017 12:23:13 -0700 (MST) Subject: [Scilab-users] FORTRAN Block in XCOS In-Reply-To: <1495527263.2189.1.camel@esi-group.com> References: <1495182586931-4036422.post@n3.nabble.com> <1495188225.8891.50.camel@esi-group.com> <1495449119394-4036437.post@n3.nabble.com> <1495484728694-4036441.post@n3.nabble.com> <1495527263.2189.1.camel@esi-group.com> Message-ID: <1496172193543-4036496.post@n3.nabble.com> I still find it surprising that I cannot find a document that describes these calling / return parameters in a XCOS Fortran Block: subroutine evtdly(flag,nevprt,t,xd,x,nx,z,nz,tvec,ntvec, & rpar,nrpar,ipar,nipar,u,nu,y,ny) Is there some way to get this question to the SciLab people ? Someone must know !!!!! Sorry to post this here again. Thanks readers........ -- View this message in context: http://mailinglists.scilab.org/FORTRAN-Block-in-XCOS-tp4036422p4036496.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From antoine.monmayrant at laas.fr Tue May 30 22:23:26 2017 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 30 May 2017 22:23:26 +0200 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ICBFeHBvcnRpbmcgZ3JhcGhp?= =?utf-8?q?c_figure_and_its_calcs?= In-Reply-To: <0e18351f-b7e9-fcf0-8cea-ad4dc61f93be@promes.cnrs.fr> Message-ID: <525e-592dd480-b-7ed47e00@57651966> Le Mardi, Mai 30, 2017 15:58 CEST, Alexis Cros a ?crit: > Hello, > > I have created a graphic figure which contains several things : > > - uicontrol frames which contain axes (polarplot, plot2d...) > > - uicontrol texts > > gui_sumup = figure(55, 'Position', [0 0 my_screen_size(1)-H_BORDERS_THICK my_screen_size(2)-START_BAR_THICK],.. // Position x, y and size x, y > 'BackgroundColor', BLUE,.. > 'Figure_name', 'Emissivity compute utility') > > I would like to export the full figure containing all entities. When I > execute the folowing instruction, only the background figure is exported : > > xs2png(gui_sumup, computed_folder_path + '\Graphs\SUM_UP-' + csv_main_header_edit.String + '.png') > > or > > xs2png(55 , computed_folder_path + '\Graphs\SUM_UP-' + csv_main_header_edit.String + '.png') > > Is there a way to encapsulate all entities into the general figure (like > merging?) to export it ? No, there is currently no way to export uicontrols. It's a real limitation. I resorted to screen capture of the figure to get both plots and uicontrols. Antoine > > Thanks > > Alexis > From arwooldridge at googlemail.com Tue May 30 22:59:52 2017 From: arwooldridge at googlemail.com (arwooldridge) Date: Tue, 30 May 2017 13:59:52 -0700 (MST) Subject: [Scilab-users] Problems getting started with Xcos In-Reply-To: <23325920-f65a-e7a5-0d31-2b5fdf1444a4@googlemail.com> References: <1490372054723-4035982.post@n3.nabble.com> <1496141562920-4036490.post@n3.nabble.com> <1496147304.3363.7.camel@esi-group.com> <007101d2d945$8889f8c0$999dea40$@wanadoo.fr> <23325920-f65a-e7a5-0d31-2b5fdf1444a4@googlemail.com> Message-ID: <1496177992397-4036498.post@n3.nabble.com> Found a workaround for the superblock save problem. Scilab previously reported haveacompiler() F when Visual Studio was in fact installed. Used the script in https://stackoverflow.com/questions/37685427/scilab-with-visual-studio-2015 Now haveacompiler() reports T Superblocks now appear to work and save. but does not prevent the other bugs mentioned occuring. -- View this message in context: http://mailinglists.scilab.org/Problems-getting-started-with-Xcos-tp4035982p4036498.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From arwooldridge at googlemail.com Tue May 30 23:51:31 2017 From: arwooldridge at googlemail.com (arwooldridge) Date: Tue, 30 May 2017 14:51:31 -0700 (MST) Subject: [Scilab-users] Problems getting started with Xcos In-Reply-To: <1496177992397-4036498.post@n3.nabble.com> References: <1490372054723-4035982.post@n3.nabble.com> <1496141562920-4036490.post@n3.nabble.com> <1496147304.3363.7.camel@esi-group.com> <007101d2d945$8889f8c0$999dea40$@wanadoo.fr> <23325920-f65a-e7a5-0d31-2b5fdf1444a4@googlemail.com> <1496177992397-4036498.post@n3.nabble.com> Message-ID: <1496181091722-4036499.post@n3.nabble.com> Well spoke too soon, on restart, and execute the script, cannot now reproduce havaeacompiler T now get: --> configure_msvc ans = T --> findmsvccompiler ans = msvc140express --> haveacompiler ans = F -- View this message in context: http://mailinglists.scilab.org/Problems-getting-started-with-Xcos-tp4035982p4036499.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From antoine.monmayrant at laas.fr Wed May 31 10:47:09 2017 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 31 May 2017 10:47:09 +0200 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ICBFeHBvcnRpbmcgZ3JhcGhp?= =?utf-8?q?c_figure_and_its_calcs?= In-Reply-To: <0e18351f-b7e9-fcf0-8cea-ad4dc61f93be@promes.cnrs.fr> Message-ID: <4780-592e8300-13-70064180@127662925> Hello again, To add more details to my previous answer, here is the function I hastily hacked together to workaround the bug that prevent exporting uicontrols: function exportHack() // Export figure with uicontrols to png using X server & import (imagemagick) // Horrible hack that should only work on my machine (linux 64bits) // get around bug http://bugzilla.scilab.org/show_bug.cgi?id=14836 https://bugzilla.scilab.org/show_bug.cgi?id=14502 h=gcbo; //current figure name figname=h.parent.parent.figure_name; //getting X server id for current window ret=unix_g("xwininfo -int -name " +""""+figname+""""); //hackish, depends directly on the syntax of xwininfo outputs tok=tokens(ret(2),':'); tok=tokens(tok(3)," ") winid=tok(1);//X server windows id, as a string // File save dialog parameters file_mask=["*.png"]; boxTitle="Export"; //If previous filename is present, use it to start in the corresponding directory if h.userdata~="" then dir=h.userdata; else dir=pwd(); end dir PathFileName=uiputfile(file_mask,dir,boxTitle); // LD_LIBRARY_PATH required to get around bug: http://bugzilla.scilab.org/show_bug.cgi?id=14143 unix_s("LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH ; import -window "+winid +" "+PathFileName) // keep savec filename for future reference. h.userdata=PathFileName; endfunction It only works on a linux system with X server and imagemagick. It will not run out of the box on your system, but it might inspire you to find your own workaround. Hope it helps, Antoine Le Mardi, Mai 30, 2017 15:58 CEST, Alexis Cros a ?crit: > Hello, > > I have created a graphic figure which contains several things : > > - uicontrol frames which contain axes (polarplot, plot2d...) > > - uicontrol texts > > gui_sumup = figure(55, 'Position', [0 0 my_screen_size(1)-H_BORDERS_THICK my_screen_size(2)-START_BAR_THICK],.. // Position x, y and size x, y > 'BackgroundColor', BLUE,.. > 'Figure_name', 'Emissivity compute utility') > > I would like to export the full figure containing all entities. When I > execute the folowing instruction, only the background figure is exported : > > xs2png(gui_sumup, computed_folder_path + '\Graphs\SUM_UP-' + csv_main_header_edit.String + '.png') > > or > > xs2png(55 , computed_folder_path + '\Graphs\SUM_UP-' + csv_main_header_edit.String + '.png') > > Is there a way to encapsulate all entities into the general figure (like > merging?) to export it ? > > Thanks > > Alexis > From curtis at geoscience.co.uk Wed May 31 12:24:38 2017 From: curtis at geoscience.co.uk (planetcooler) Date: Wed, 31 May 2017 03:24:38 -0700 (MST) Subject: [Scilab-users] FORTRAN Block in XCOS In-Reply-To: <1496172193543-4036496.post@n3.nabble.com> References: <1495182586931-4036422.post@n3.nabble.com> <1495188225.8891.50.camel@esi-group.com> <1495449119394-4036437.post@n3.nabble.com> <1495484728694-4036441.post@n3.nabble.com> <1495527263.2189.1.camel@esi-group.com> <1496172193543-4036496.post@n3.nabble.com> Message-ID: <1496226278908-4036502.post@n3.nabble.com> ok - so I bit the bullet and wrote a one line XCOS FORTRAN Block - (robfor.f) using the XCOS template and this happened : Startup execution: loading initial environment Generate a loader file Generate a Makefile ilib_gen_Make: configure : Generate Makefile. ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR ilib_gen_Make: Copy robfor.f to TMPDIR ilib_gen_Make: configure : Generate Makefile. ilib_gen_Make: Modification of the Makefile in TMPDIR. Running the Makefile !sorry compiling problem ! ! ! !ilib_compile: An error occurred during the compilation: ! ! ! !libtool: compile: unrecognized option `-I/Applications/scilab-6.0.0.app/Co! !ntents/MacOS/share/scilab/../../include/scilab/' ! ! ! !libtool: compile: Try `libtool --help' for more information. ! ! ! !make: *** [robfor.lo] Error 1 ! ! ! !ilib_compile: The command was: ! ! ! !make CFLAGS=" -D__SCILAB_TOOLBOX__ -I/Applications/scilab-6.0.0.app/Conte! !nts/MacOS/share/scilab/../../include/scilab/ -I/Applications/scilab-6.0.0.! !app/Contents/MacOS/share/scilab/../../include/ -I/Applications/scilab-6.0! !.0.app/Contents/MacOS/share/scilab/modules/scicos/includes/ -I/Application! !s/scilab-6.0.0.app/Contents/MacOS/share/scilab/modules/scicos_blocks/inclu! !des/ -I/Applications/scilab-6.0.0.app/Contents/MacOS/share/scilab/modules/! !dynamic_link/includes/" CXXFLAGS=" -D__SCILAB_TOOLBOX__ -I/Applications/sc! !ilab-6.0.0.app/Contents/MacOS/share/scilab/../../include/scilab/ -I/Applic! !ations/scilab-6.0.0.app/Contents/MacOS/share/scilab/../../include/ -I/App! !lications/scilab-6.0.0.app/Contents/MacOS/share/scilab/modules/scicos/incl! !udes/ -I/Applications/scilab-6.0.0.app/Contents/MacOS/share/scilab/modules! !/scicos_blocks/includes/ -I/Applications/scilab-6.0.0.app/Contents/MacOS/s! !hare/scilab/modules/dynamic_link/includes/" FFLAGS="-I/Applications/scilab! !-6.0.0.app/Contents/MacOS/share/scilab/../../include/scilab/ " Anyone the wiser ? Where do I find an explanation of Error 1 ? Where does Scilab / XCOS expect to find a FORTRAN compiler ? -- View this message in context: http://mailinglists.scilab.org/FORTRAN-Block-in-XCOS-tp4036422p4036502.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Alexis.Cros at promes.cnrs.fr Wed May 31 14:54:00 2017 From: Alexis.Cros at promes.cnrs.fr (Alexis Cros) Date: Wed, 31 May 2017 14:54:00 +0200 Subject: [Scilab-users] ?==?utf-8?q? Exporting graphic figure and its calcs In-Reply-To: <4780-592e8300-13-70064180@127662925> References: <4780-592e8300-13-70064180@127662925> Message-ID: Hi, nice trick. May be interesting to transcode it to other OSs and to integrate into the Scilab built-in functions. Thank you for the tip A. Le 31/05/2017 ? 10:47, Antoine Monmayrant a ?crit : > Hello again, > > To add more details to my previous answer, here is the function I hastily hacked together to workaround the bug that prevent exporting uicontrols: > > > function exportHack() > // Export figure with uicontrols to png using X server & import (imagemagick) > // Horrible hack that should only work on my machine (linux 64bits) > // get around bug http://bugzilla.scilab.org/show_bug.cgi?id=14836 https://bugzilla.scilab.org/show_bug.cgi?id=14502 > h=gcbo; > //current figure name > figname=h.parent.parent.figure_name; > //getting X server id for current window > ret=unix_g("xwininfo -int -name " +""""+figname+""""); > //hackish, depends directly on the syntax of xwininfo outputs > tok=tokens(ret(2),':'); > tok=tokens(tok(3)," ") > winid=tok(1);//X server windows id, as a string > > // File save dialog parameters > file_mask=["*.png"]; > boxTitle="Export"; > //If previous filename is present, use it to start in the corresponding directory > if h.userdata~="" then > dir=h.userdata; > else > dir=pwd(); > end > dir > PathFileName=uiputfile(file_mask,dir,boxTitle); > // LD_LIBRARY_PATH required to get around bug: http://bugzilla.scilab.org/show_bug.cgi?id=14143 > unix_s("LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH ; import -window "+winid +" "+PathFileName) > // keep savec filename for future reference. > h.userdata=PathFileName; > endfunction > > It only works on a linux system with X server and imagemagick. > It will not run out of the box on your system, but it might inspire you to find your own workaround. > > Hope it helps, > > Antoine > > > > Le Mardi, Mai 30, 2017 15:58 CEST, Alexis Cros a ?crit: > >> Hello, >> >> I have created a graphic figure which contains several things : >> >> - uicontrol frames which contain axes (polarplot, plot2d...) >> >> - uicontrol texts >> >> gui_sumup = figure(55, 'Position', [0 0 my_screen_size(1)-H_BORDERS_THICK my_screen_size(2)-START_BAR_THICK],.. // Position x, y and size x, y >> 'BackgroundColor', BLUE,.. >> 'Figure_name', 'Emissivity compute utility') >> >> I would like to export the full figure containing all entities. When I >> execute the folowing instruction, only the background figure is exported : >> >> xs2png(gui_sumup, computed_folder_path + '\Graphs\SUM_UP-' + csv_main_header_edit.String + '.png') >> >> or >> >> xs2png(55 , computed_folder_path + '\Graphs\SUM_UP-' + csv_main_header_edit.String + '.png') >> >> Is there a way to encapsulate all entities into the general figure (like >> merging?) to export it ? >> >> Thanks >> >> Alexis >> > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From p.muehlmann at gmail.com Wed May 31 18:09:16 2017 From: p.muehlmann at gmail.com (=?UTF-8?Q?Philipp_M=C3=BChlmann?=) Date: Wed, 31 May 2017 18:09:16 +0200 Subject: [Scilab-users] ?==?utf-8?q? Exporting graphic figure and its calcs In-Reply-To: References: <4780-592e8300-13-70064180@127662925> Message-ID: Hallo, I understand you want to export a GUI-surface with all entities (buttons, etc) as an image. For windows machines one can use the dos() command, connected with irfanView to create screen shots and save them as an image. Have a look at the irfanView i_options.txt to see what can be done by calling irfanView. Here an example: you might exchange the path-variables to your needs h = figure('position', [50 50 400 400], 'backgroundcolor', [0.7 0.9 1], .."figure_name", 'WHAT DAY WERE YOU BORN?'); T1 = uicontrol(h, 'style', 'text', 'string', 'Type year:', ..'position', [20 340 200 50], 'backgroundcolor', [0.7 0.9 1]); E1 = uicontrol(h, 'style', 'edit', 'string', '2000', ..'position', [150 350 70 30], 'fontsize', 15, 'backgroundcolor', [1 1 1]); T2 = uicontrol(h, 'style', 'text', 'string', 'Select month:', ..'position', [20 260 200 50], 'backgroundcolor', [0.7 0.9 1]); L1 = uicontrol(h, 'style', 'listbox', 'position', [150 130 120 170], .. 'fontsize', 15, 'backgroundcolor', [1 1 1]);set(L1, 'string', 'January | February | March | April | May | June | ..July | August | September | October | November | December'); set(L1, 'value', [1:12]); T3 = uicontrol(h, 'style', 'text', 'string', 'Type date:', ..'position', [20 60 200 50], 'backgroundcolor', [0.7 0.9 1]); E2 = uicontrol(h, 'style', 'edit', 'string', '15', ..'position', [150 70 70 30], 'fontsize', 15, 'backgroundcolor', [1 1 1]); function birthday(guientries) y = eval(get(E1, 'string')) m = get(L1, 'value') d = eval(get(E2, 'string')) num = datenum(y, m, d); [n, s] = weekday(num); disp('You were born on '+s)endfunction P1 = uicontrol(h, 'position', [300 70 80 30], 'style', 'pushbutton', ..'string', 'Submit', 'callback', 'birthday', 'backgroundcolor', [1 1 0]); // access IrfanView and try to make a screen shot of the GUIIV_PATH = 'C:\Program Files (x86)\IrfanView'; OUT_PATH = 'E:\Scilab_Uebungen\031_call_software' // capture the GUI crop it, so that figure borders are not visible anymore and save it as a png filedos('i_view32.exe /capture=3 /crop=(0,47,0,420,0) /convert='+OUT_PATH+'\test.png '); Good luck, Philipp 2017-05-31 14:54 GMT+02:00 Alexis Cros : > Hi, > > nice trick. May be interesting to transcode it to other OSs and to > integrate into the Scilab built-in functions. > > Thank you for the tip > > A. > > > > Le 31/05/2017 ? 10:47, Antoine Monmayrant a ?crit : > >> Hello again, >> >> To add more details to my previous answer, here is the function I hastily >> hacked together to workaround the bug that prevent exporting uicontrols: >> >> >> function exportHack() >> // Export figure with uicontrols to png using X server & import >> (imagemagick) >> // Horrible hack that should only work on my machine (linux 64bits) >> // get around bug http://bugzilla.scilab.org/show_bug.cgi?id=14836 >> https://bugzilla.scilab.org/show_bug.cgi?id=14502 >> h=gcbo; >> //current figure name >> figname=h.parent.parent.figure_name; >> //getting X server id for current window >> ret=unix_g("xwininfo -int -name " +""""+figname+""""); >> //hackish, depends directly on the syntax of xwininfo outputs >> tok=tokens(ret(2),':'); >> tok=tokens(tok(3)," ") >> winid=tok(1);//X server windows id, as a string >> // File save dialog parameters >> file_mask=["*.png"]; >> boxTitle="Export"; >> //If previous filename is present, use it to start in the >> corresponding directory >> if h.userdata~="" then >> dir=h.userdata; >> else >> dir=pwd(); >> end >> dir >> PathFileName=uiputfile(file_mask,dir,boxTitle); >> // LD_LIBRARY_PATH required to get around bug: >> http://bugzilla.scilab.org/show_bug.cgi?id=14143 >> unix_s("LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH >> ; import -window "+winid +" "+PathFileName) >> // keep savec filename for future reference. >> h.userdata=PathFileName; >> endfunction >> >> It only works on a linux system with X server and imagemagick. >> It will not run out of the box on your system, but it might inspire you >> to find your own workaround. >> >> Hope it helps, >> >> Antoine >> >> >> >> Le Mardi, Mai 30, 2017 15:58 CEST, Alexis Cros < >> Alexis.Cros at promes.cnrs.fr> a ?crit: >> >> >>> Hello, >>> >>> I have created a graphic figure which contains several things : >>> >>> - uicontrol frames which contain axes (polarplot, plot2d...) >>> >>> - uicontrol texts >>> >>> gui_sumup = figure(55, 'Position', [0 0 >>> my_screen_size(1)-H_BORDERS_THICK my_screen_size(2)-START_BAR_THICK],.. >>> // Position x, y and size >>> x, y >>> >>> 'BackgroundColor', BLUE,.. >>> 'Figure_name', >>> 'Emissivity compute utility') >>> >>> I would like to export the full figure containing all entities. When I >>> execute the folowing instruction, only the background figure is exported >>> : >>> >>> xs2png(gui_sumup, computed_folder_path + '\Graphs\SUM_UP-' + >>> csv_main_header_edit.String + '.png') >>> >>> or >>> >>> xs2png(55 , computed_folder_path + '\Graphs\SUM_UP-' + >>> csv_main_header_edit.String + '.png') >>> >>> Is there a way to encapsulate all entities into the general figure (like >>> merging?) to export it ? >>> >>> Thanks >>> >>> Alexis >>> >>> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -- In Kanada is' ka' na' da. Sonst w?r' Kanada Jemanda. There we have the salad. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nigamakashkumar at gmail.com Tue May 30 12:01:33 2017 From: nigamakashkumar at gmail.com (nigamakashkumar) Date: Tue, 30 May 2017 03:01:33 -0700 (MST) Subject: [Scilab-users] Standalone program generation and compatibility questions Message-ID: Hi everyone, I am new to Scilab and am currently doing a project on image processing using SIVP. Due to the limitations of my system (Windows XP Professional, 2 GB - Ram), I am only able to install Scilab 5.3.3 and SIVP 0.5.0 (also scetoexe_0.1) The aim of the project is to create a standalone executable program for image processing, which works without Scilab. I have searched on the internet for a few days now, but haven't got a concrete solution. Also, I am afraid that using SIVP would create some problems in standard methods. I request the Scilab community to provide any solutions, if possible. My code is not very big, but it uses a lot of inbuilt functions of Scilab and SIVP. Any solutions (even including other platforms such as C (using Sci to C toolbox or other methods), Matlab or any other that works on my system) are welcome. I really need all of your help. I am largely limited by time in what I can do and the processing time of the final program. I may also occasionally have access to a better system with Scilab 6.0.0 installed and may be allowed to install some toolboxes on it. Kindly also consider this little detail. Please provide any suggestions if possible. -- View this message in context: http://mailinglists.scilab.org/Standalone-program-generation-and-compatibility-questions-tp4036489.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Luc.Hermitte at cnes.fr Tue May 30 12:46:58 2017 From: Luc.Hermitte at cnes.fr (Hermitte Luc (CS SI)) Date: Tue, 30 May 2017 10:46:58 +0000 Subject: [Scilab-users] GUI start up stalls because of unreachable scilab.io (specified in newsfeed.xml) Message-ID: Hi, I'm trying to install scilab on our cluster, but before fine tuning the compilation, I've tried the binaries you've packaged. When I simply run `path/to/scilab`, I end up with: 1- java.net.ConnectException: Connection timed out 2- eventually, **minutes later**, the GUI pops up If I execute the cli version, I've no troubles. With a strace -f, I see a [pid 43009] 1496135543.190668 connect(64, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("213.186.33.16")}, 16 Looks like a good culprit as I'm behind a firewall. It appears to be the IP address of scilab.io. I've found an occurrence of it in newsfeed.xml, and indeed, this is the culprit. It'll be nice to : - print a more precise error message like: "Cannot connect to news.scilab.io, see the related documentation XXX" - document the issue, how to fix it, the file syntax (for instance, I'd like to clear it, but a entry is expected, and it cannot be empty) - not stall for so long for something definitively not critical (from an end-user point of view) - support proxies with authentication configured with $http(s)_proxy variables. Regards, -- Luc Hermitte From elmar.grom at renovo.auto Tue May 30 14:21:35 2017 From: elmar.grom at renovo.auto (ejg) Date: Tue, 30 May 2017 05:21:35 -0700 (MST) Subject: [Scilab-users] Problems getting started with Xcos In-Reply-To: <1496141562920-4036490.post@n3.nabble.com> References: <1490372054723-4035982.post@n3.nabble.com> <1496141562920-4036490.post@n3.nabble.com> Message-ID: <000201d2d93f$4113cf30$c33b6d90$@renovo.auto> Well, there seems to be a Windows connection. However, if it was a path issue Xcos would simply be unable to locate the file again, instead of opening it but messing it up. From: arwooldridge [via Scilab / Xcos - Mailing Lists Archives] [mailto:ml+s994242n4036490h72 at n3.nabble.com] Sent: Tuesday, May 30, 2017 3:53 AM To: ejg Subject: Re: Problems getting started with Xcos Having similar problems with xcos on scilab 6.0.0 with windows 7 and 10. 1/ On saving a model and subsequent reopen, some routes get jumbled like spagetti. ( workaround fix: highlight the route and optimise with SC "O" subsequent save and open then works) 2/ Some text blocks when saved do not reappear on opening, or sometimes appear top left of window. 3/ Some models will not reopen after saving, blank window. 4/Some saved models halt with "invalid index" on simulation, no apparent reason or explanation. Models were previously working before saving. 5/Superblocks not functioning when created by converting selected group. Tried on fresh install on different computer, this time Windows 7, Same bugs exhibited. The combination and severity of these bugs make xcos unusable, at least in Windows for me. Suspect problem in saving files correctly but cannot pin down further. Could it be spaces in filenames, long filenames or other Windows/Linux discrepancies? As far as I can gather Linux users are not having these problems. Models built from scratch without saving appear to work OK, but this is not a workable solution! _____ If you reply to this email, your message will be added to the discussion below: http://mailinglists.scilab.org/Problems-getting-started-with-Xcos-tp4035982p 4036490.html To unsubscribe from Problems getting started with Xcos, click here . NAML -- View this message in context: http://mailinglists.scilab.org/Problems-getting-started-with-Xcos-tp4035982p4036491.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nigamakashkumar at gmail.com Wed May 31 12:07:25 2017 From: nigamakashkumar at gmail.com (nigamakashkumar) Date: Wed, 31 May 2017 03:07:25 -0700 (MST) Subject: [Scilab-users] finding pixel values in SIVP Message-ID: Hi. Just started using SIVP. For my project, I need the user to click on the image generated from the function imshow();. Then, I need to store the pixel values clicked (W.R.T the image or on the screen. I am ready to do any caliberations). I have to use these pixel values to do some caliberations like cropping the image, removing unwanted points and calculating the distance between two points. Scilab has functions xclick(),xgetmouse and locate, but only for the graphics window. I need the same functionality with the image window created. I have tried to 3d plot the image(it is binary), but for some reason that dosen't work, and I also think it would not be good for my final application. Does anyone has any suggestions about how to do this. -- View this message in context: http://mailinglists.scilab.org/finding-pixel-values-in-SIVP-tp4036501.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.auch5395 at outlook.de Mon May 29 11:18:01 2017 From: m.auch5395 at outlook.de (marcus scilab) Date: Mon, 29 May 2017 02:18:01 -0700 (MST) Subject: [Scilab-users] interp2 in Scilab Message-ID: <1496049481469-4036474.post@n3.nabble.com> Hello, i am trying to use an equal function to interp2 in matlab. So i've tried the linear_interpn but it doesnt work at all. I have xp and yp at size(1). x is a 1x26 y is a 1x241 and v is 26x241 so actually it should work. Can anyone help me please? Thanks -- View this message in context: http://mailinglists.scilab.org/interp2-in-Scilab-tp4036474.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From m.auch5395 at outlook.de Mon May 29 15:23:59 2017 From: m.auch5395 at outlook.de (marcus scilab) Date: Mon, 29 May 2017 06:23:59 -0700 (MST) Subject: [Scilab-users] interp2 in Scilab In-Reply-To: <1496049481469-4036474.post@n3.nabble.com> References: <1496049481469-4036474.post@n3.nabble.com> Message-ID: <1496064239332-4036479.post@n3.nabble.com> Vq = interp2(X,Y,V,Xq,Yq) works in scilab as V_new=splin2d(X,Y,V) Vq=interp2d(Xq,Yq,X,Y,V_new) -- View this message in context: http://mailinglists.scilab.org/interp2-in-Scilab-tp4036474p4036479.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.