From fmiyara at fceia.unr.edu.ar Fri Mar 1 04:19:35 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Fri, 1 Mar 2019 00:19:35 -0300 Subject: [Scilab-users] {EXT} Re: Export plot from figure with uicontrols In-Reply-To: References: <65a9b64fce8c80690edfc5cdb7e6e453@il.pw.edu.pl> <78ebed42-d7fc-76a5-06c0-6582044ad9d6@free.fr> <5C756A9F.6070700@fceia.unr.edu.ar> Message-ID: <5C78A4C7.5000201@fceia.unr.edu.ar> Christophe, One can also export as EMF directly from Scilab, the problem is that it is not compatible with Word 2003 (the version I have). Do you mean that the EMF produced by Inkscape is really compatible with Word? If this is the case, there is something to be improved in the Scilab EMF export. Regards, Federico Miyara On 28/02/2019 05:26, Dang Ngoc Chan, Christophe wrote: > Hello, > > Concerning the following point (which is not related to Scilab): > >> I couldn't manage to make it compatible with, for instance, Word. >> My solution has been to save the figure as svg (a vectorized format), >> then open it with GIMP > You'd better open the SVG with Inkscape (also free) > then save as .emf. > > EMF (enhanced metafile) is a Microsoft Windows vector graphic format, > you can thus have the vector graphic quality inside Microsoft Word. > > There are some limitations to EMF > but as long as you only have curves, colour surfaces and texts > it should be OK. > > Regards > > -- > Christophe Dang Ngoc Chan > Mechanical calculation engineer > > Public > 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 > --- El software de antivirus Avast ha analizado este correo electr?nico en busca de virus. https://www.avast.com/antivirus -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Fri Mar 1 09:05:58 2019 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Fri, 1 Mar 2019 08:05:58 +0000 Subject: [Scilab-users] {EXT} Re: Export plot from figure with uicontrols In-Reply-To: <5C78A4C7.5000201@fceia.unr.edu.ar> References: <65a9b64fce8c80690edfc5cdb7e6e453@il.pw.edu.pl> <78ebed42-d7fc-76a5-06c0-6582044ad9d6@free.fr> <5C756A9F.6070700@fceia.unr.edu.ar> <5C78A4C7.5000201@fceia.unr.edu.ar> Message-ID: Hello, > De : users [mailto:users-bounces at lists.scilab.org] De la part de > Federico Miyara Envoy? : vendredi 1 mars 2019 04:20 > > Do you mean that the EMF produced by Inkscape is really compatible with Word? I do. I regularly produce sketches with Inkscape and export them as .emf to include them in .docx fles (at work, I use Microsoft Word 2013). > If this is the case, there is something to be improved in the Scilab EMF export. I never used it but probably. -- Christophe Dang Ngoc Chan Mechanical calculation engineer Public This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From Christophe.Dang at sidel.com Fri Mar 1 09:13:33 2019 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Fri, 1 Mar 2019 08:13:33 +0000 Subject: [Scilab-users] {EXT} creating nice svg-files In-Reply-To: References: Message-ID: Hello, > De : users [mailto:users-bounces at lists.scilab.org] De la part de P M > Envoy? : jeudi 28 f?vrier 2019 20:06 > > When I export the plot with xs2svg some thin black lines appear within the regions. > This can be seen when I open the svg with inkscape. > [...] Any idea how to avoid these black lines. I don't know for your case but I usually rework a bit the SVG files created by Scilab. I noticed for example that the white background is made of several rectangles and right triangles, I simplify the paths etc. I wonder if the black line is not a seam between two surfaces: maybe your red surface is made of two objects instead of one and you might join them. HTH -- Christophe Dang Ngoc Chan Mechanical calculation engineer Public This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From sgougeon at free.fr Fri Mar 1 14:03:52 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 1 Mar 2019 14:03:52 +0100 Subject: [Scilab-users] {EXT} Re: Export plot from figure with uicontrols In-Reply-To: <5C78A4C7.5000201@fceia.unr.edu.ar> References: <65a9b64fce8c80690edfc5cdb7e6e453@il.pw.edu.pl> <78ebed42-d7fc-76a5-06c0-6582044ad9d6@free.fr> <5C756A9F.6070700@fceia.unr.edu.ar> <5C78A4C7.5000201@fceia.unr.edu.ar> Message-ID: Hello Federico, Le 01/03/2019 ? 04:19, Federico Miyara a ?crit : > > Christophe, > > One can also export as EMF directly from Scilab, the problem is that > it is not compatible with Word 2003 (the version I have). Do you mean > that the EMF produced by Inkscape is really compatible with Word? If > this is the case, there is something to be improved in the Scilab EMF > export. I have not Word 2003, but i have done the following, and it works: * create a .odt document with LibreOffice * Convert and save it as an empty .doc Word 2003 document. * Import an EMF image generated with xs2emf() in the document * Save and close the document * Reopen the document, still with LibreOffice: The EMF image is perfectly rendered. Best regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.muehlmann at gmail.com Fri Mar 1 14:20:43 2019 From: p.muehlmann at gmail.com (P M) Date: Fri, 1 Mar 2019 14:20:43 +0100 Subject: [Scilab-users] {EXT} creating nice svg-files In-Reply-To: References: Message-ID: Hi Christophe ... I figured out that in inkscape one can combine paths...( Ctrl++ )... so that creates just one single area. so i have a solution. However it might be interesting to know, how Scilab fills the polygon when saving it as an svg. To me it seems something similar to a tessalation...building triangles to fill the area. The lines in the image are the triangle edges. In my example the red surface is a fill of one single polygon. Also the green area is the fill of one single polygon. Thanks, Philipp Am Fr., 1. M?rz 2019 um 09:13 Uhr schrieb Dang Ngoc Chan, Christophe < Christophe.Dang at sidel.com>: > Hello, > > > De : users [mailto:users-bounces at lists.scilab.org] De la part de P M > > Envoy? : jeudi 28 f?vrier 2019 20:06 > > > > When I export the plot with xs2svg some thin black lines appear within > the regions. > > This can be seen when I open the svg with inkscape. > > [...] Any idea how to avoid these black lines. > > I don't know for your case but I usually rework a bit the SVG files > created by Scilab. > > I noticed for example that the white background is made of several > rectangles and right triangles, I simplify the paths etc. > > I wonder if the black line is not a seam between two surfaces: > maybe your red surface is made of two objects instead of one and you might > join them. > > HTH > > -- > Christophe Dang Ngoc Chan > Mechanical calculation engineer > > Public > This e-mail may contain confidential and/or privileged information. If you > are not the intended recipient (or have received this e-mail in error), > please notify the sender immediately and destroy this e-mail. Any > unauthorized copying, disclosure or distribution of the material in this > e-mail is strictly forbidden. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Fri Mar 1 15:17:08 2019 From: paul.carrico at esterline.com (Carrico, Paul) Date: Fri, 1 Mar 2019 14:17:08 +0000 Subject: [Scilab-users] /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found Message-ID: <3A6B7233274DB449A2A0053A47684F953FF21FE1@BGS-EX01.auxitrol.ad> Dear All Not sure that the issue comes from Scilab itself, but I cannot fix it ; so far I've had not trouble using cgal libraries, but on a new machine under Centos 7, the error detailed here below occurs and I do not understand why ; I've update the profile but it still fails. Does somebody has ever met it? Thanks for any feedback Paul ################### Scilab ########################## Initialisation : Chargement de l'environnement de travail Start CG-lab Load macros Load thirdparties Load gateways atomsLoad : Une erreur est survenue au cours du chargement de 'cglab-2.3.2': exec: error on line #13: "link : La biblioth?que partag?e n'a pas ?t? charg?e: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /opt/scilab-6.0.2/share/scilab/contrib/cglab/2.3.2/sci_gateway/c//../../src/cpp/libcgal_cpp.so)" ##################### profile ############################## export LD_LIBRARY_PATH=/usr/lib64/libstdc++.so.6:/lib64/libstdc++.so.6:$LD_LIBRARY_PATH -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Fri Mar 1 15:23:38 2019 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Fri, 1 Mar 2019 15:23:38 +0100 Subject: [Scilab-users] /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found In-Reply-To: <3A6B7233274DB449A2A0053A47684F953FF21FE1@BGS-EX01.auxitrol.ad> References: <3A6B7233274DB449A2A0053A47684F953FF21FE1@BGS-EX01.auxitrol.ad> Message-ID: <45974d92-d112-6b45-c3cb-2bcd7eef2c51@utc.fr> Hello, Can you try to load version 2.3.1 version instead ? atomsInstall(["cglab" "2.3.1"]); S. Le 01/03/2019 ? 15:17, Carrico, Paul a ?crit?: > > Dear All > > Not sure that the issue comes from Scilab itself, but I cannot fix > it?; so far I?ve had not trouble using cgal libraries, but on a new > machine under Centos 7, the error detailed here below occurs and I do > not understand why ; I?ve update the profile but it still fails. > > Does somebody has ever met it? > > Thanks for any feedback > > Paul > > ################### Scilab ########################## > > Initialisation : > > ? Chargement de l'environnement de travail > > Start CG-lab > > ??????????????? Load macros > > ??????????????? Load thirdparties > > Load gateways > > atomsLoad : Une erreur est survenue au cours du chargement de > 'cglab-2.3.2': > > exec: error on line #13: "link : La biblioth?que partag?e n'a pas ?t? > charg?e: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found > (required by > /opt/scilab-6.0.2/share/scilab/contrib/cglab/2.3.2/sci_gateway/c//../../src/cpp/libcgal_cpp.so)" > > ##################### profile ############################## > > export > LD_LIBRARY_PATH=/usr/lib64/libstdc++.so.6:/lib64/libstdc++.so.6:$LD_LIBRARY_PATH > > > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Fri Mar 1 15:32:54 2019 From: paul.carrico at esterline.com (Carrico, Paul) Date: Fri, 1 Mar 2019 14:32:54 +0000 Subject: [Scilab-users] [EXTERNAL] Re: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found In-Reply-To: <45974d92-d112-6b45-c3cb-2bcd7eef2c51@utc.fr> References: <3A6B7233274DB449A2A0053A47684F953FF21FE1@BGS-EX01.auxitrol.ad> <45974d92-d112-6b45-c3cb-2bcd7eef2c51@utc.fr> Message-ID: <3A6B7233274DB449A2A0053A47684F953FF22094@BGS-EX01.auxitrol.ad> Well good suggestion and now it works ... but strange since I've 2 machines both under Centos 7, and it works on the first one without doing anything, and using this workaround on the second one. (I cannot use plot2d on both, but it's another issue) Thanks for the suggestion Paul De : users [mailto:users-bounces at lists.scilab.org] De la part de St?phane Mottelet Envoy? : vendredi 1 mars 2019 15:24 ? : users at lists.scilab.org Objet : [EXTERNAL] Re: [Scilab-users] /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found Hello, Can you try to load version 2.3.1 version instead ? atomsInstall(["cglab" "2.3.1"]); S. Le 01/03/2019 ? 15:17, Carrico, Paul a ?crit : Dear All Not sure that the issue comes from Scilab itself, but I cannot fix it ; so far I've had not trouble using cgal libraries, but on a new machine under Centos 7, the error detailed here below occurs and I do not understand why ; I've update the profile but it still fails. Does somebody has ever met it? Thanks for any feedback Paul ################### Scilab ########################## Initialisation : Chargement de l'environnement de travail Start CG-lab Load macros Load thirdparties Load gateways atomsLoad : Une erreur est survenue au cours du chargement de 'cglab-2.3.2': exec: error on line #13: "link : La biblioth?que partag?e n'a pas ?t? charg?e: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /opt/scilab-6.0.2/share/scilab/contrib/cglab/2.3.2/sci_gateway/c//../../src/cpp/libcgal_cpp.so)" ##################### profile ############################## export LD_LIBRARY_PATH=/usr/lib64/libstdc++.so.6:/lib64/libstdc++.so.6:$LD_LIBRARY_PATH _______________________________________________ users mailing list users at lists.scilab.org https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Fri Mar 1 17:27:57 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 1 Mar 2019 17:27:57 +0100 Subject: [Scilab-users] creating nice svg-files In-Reply-To: References: Message-ID: <9a0ba85c-17de-ad3e-8e08-5d45757613c3@free.fr> Le 01/03/2019 ? 14:20, P M a ?crit : > Hi Christophe > > ... I figured out that in inkscape one can combine paths...( Ctrl++ > )... so that creates just one single area. > so i have a solution. > > However it might be interesting to know, how Scilab fills the polygon > when saving it as an svg. > To me it seems something similar to a tessalation...building triangles > to fill the area. > The lines in the image are the triangle edges. Yes, it's the case, at least as soon as the figure is in 3D. In 3D, every surface defined by a set of (not necessarily coplanar) vertices is decomposed as a set of joined triangles. These "edges" are not extra drawn lines, but a very thin space (likely 1-pixel thin) in-between almost joined triangles edges. Indeed, changing the background color changes their color. The fix would be to output some triangles oversized by 1/10000 ? This could have some potential drawbacks, like (partly) hiding some lines actually drawn as edges, etc. To be assessed. Samuel From iwoj at il.pw.edu.pl Fri Mar 1 17:48:33 2019 From: iwoj at il.pw.edu.pl (=?UTF-8?Q?Izabela_W=C3=B3jcik-Grz=C4=85ba?=) Date: Fri, 01 Mar 2019 17:48:33 +0100 Subject: [Scilab-users] Pushbutton exporting the plot to graphic file Message-ID: Hello, I am still fighting with my figure with plot inside about which I wrote here: http://mailinglists.scilab.org/Scilab-users-Export-plot-from-figure-with-uicontrols-td4039166.html I deleted the frame in which there was a plot so now I can export it to a graphic file. In the left frame with checkboxes I added a pushbutton. I wanted to use it to export current view of the plot (as I can change the visibility of its elements with the checkboxes). I added a callback function for the pushbutton as below: function [n_ex]=eksport(n_ex) n_ex=n_ex+1; xs2png(f2,'widok_'+string(n_ex)); endfunction The plan was to add a number to a file name. The number would increase with every export so I could produce different pictures from the plot. A variable n_ex is initialized with zero outside the callback function. Unfortunately something is wrong here because when I use the pushbutton I get a prompt: "Undefined variable: n_ex". The whole definition of the figure and plot is inside a function - maybe it's also an important information. Any idea would be appreciated. Kind regards, Iza From sgougeon at free.fr Fri Mar 1 17:54:13 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 1 Mar 2019 17:54:13 +0100 Subject: [Scilab-users] creating nice svg-files In-Reply-To: <9a0ba85c-17de-ad3e-8e08-5d45757613c3@free.fr> References: <9a0ba85c-17de-ad3e-8e08-5d45757613c3@free.fr> Message-ID: <4d6845cc-4bb2-ce6b-5ee1-499f651c49b5@free.fr> Le 01/03/2019 ? 17:27, Samuel Gougeon a ?crit : > Le 01/03/2019 ? 14:20, P M a ?crit : >> Hi Christophe >> >> ... I figured out that in inkscape one can combine paths...( Ctrl++ >> )... so that creates just one single area. >> so i have a solution. >> >> However it might be interesting to know, how Scilab fills the polygon >> when saving it as an svg. >> To me it seems something similar to a tessalation...building >> triangles to fill the area. >> The lines in the image are the triangle edges. > > Yes, it's the case, at least as soon as the figure is in 3D. In 3D, > every surface defined by a set of (not necessarily coplanar) vertices > is decomposed as a set of joined triangles. > > These "edges" are not extra drawn lines, but a very thin space (likely > 1-pixel thin) in-between almost joined triangles edges. Indeed, > changing the background color changes their color. > The fix would be to output some triangles oversized by 1/10000 ? Maybe there is some SVG internal property directly tuning this effect. I will look at that. From sgougeon at free.fr Fri Mar 1 20:49:19 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 1 Mar 2019 20:49:19 +0100 Subject: [Scilab-users] {EXT} creating nice svg-files In-Reply-To: References: Message-ID: <6bbfe06e-0897-0e8d-8dba-7e340c432176@free.fr> This issue is now reported as bug 15991 . A way to correct it is provided in the report. However, implementing this fix for Scilab -- that uses an external library for SVG exports -- might be not possible. Regards Le 01/03/2019 ? 14:20, P M a ?crit : > Hi Christophe > > ... I figured out that in inkscape one can combine paths...( Ctrl++ > )... so that creates just one single area. > so i have a solution. > > However it might be interesting to know, how Scilab fills the polygon > when saving it as an svg. > To me it seems something similar to a tessalation...building triangles > to fill the area. > The lines in the image are the triangle edges. > > In my example the red surface is a fill of one single polygon. > Also the green area is the fill of one single polygon. > > Thanks, > Philipp -------------- next part -------------- An HTML attachment was scrubbed... URL: From fmiyara at fceia.unr.edu.ar Mon Mar 4 05:58:23 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Mon, 4 Mar 2019 01:58:23 -0300 Subject: [Scilab-users] Behavior of gettext Message-ID: <5C7CB06F.8060300@fceia.unr.edu.ar> Dear all, I'm trying to understand the way the localizing function gettext works. For instance, setlanguage('es') // Set Spanish as session language gettext("%s: Wrong number of input arguments.\n") produces the expected result: %s: N?mero incorrecto de argumentos de entrada.\n But gettext("Wrong number of input arguments.") returns the original English version Wrong number of input arguments. Are the elements %s and \n part of the indexed string? How can I get a list of indexed strings? Regards, Federico Miyara --- El software de antivirus Avast ha analizado este correo electr?nico en busca de virus. https://www.avast.com/antivirus From p.muehlmann at gmail.com Mon Mar 4 14:15:37 2019 From: p.muehlmann at gmail.com (P M) Date: Mon, 4 Mar 2019 14:15:37 +0100 Subject: [Scilab-users] buliding masks for images Message-ID: Dear all, I build some masks with scilab, that I want to apply later on a set of images. I can build these masks a batch process, because I have pixel coordinates that define the mask coordinates. Each mask itself will be an image.... For now I use xs2svg and/or xs2png Now: Is there a way to export images from scilab applying alpha channel? I ask, because several masks will be layered on top of each other...together with a mask that is build manually by a user. To get the final result I - for now - have to make each (mask-) image a bit transparent, to still see the underlaying image. Thus I loose the original color of the mask image. I could probably build an R-G-B-alpha image such as: img = zeros[imgHeight, imgWidht ,4]; R = img[ : , : ,1]; G = img[ : , : ,2]; B = img[ : , : ,3]; A = img[ : , : ,4]; and than set the right pixel values at the right positions. However: It seems, that it is not possible to add the alpha channel to an image when exporting it to a native image file..such as png. imwrite (IPCV-toolbox) seems to support only 8bit (one-channel) or 24bit (3-channel) image. Many thanks, Philipp -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Mon Mar 4 18:29:39 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 4 Mar 2019 18:29:39 +0100 Subject: [Scilab-users] Behavior of gettext In-Reply-To: <5C7CB06F.8060300@fceia.unr.edu.ar> References: <5C7CB06F.8060300@fceia.unr.edu.ar> Message-ID: <4a4b920a-f042-dd3b-ed75-70ee761c9eff@free.fr> Hello Federico, Le 04/03/2019 ? 05:58, Federico Miyara a ?crit : > > Dear all, > > I'm trying to understand the way the localizing function gettext > works. For instance, > > setlanguage('es') // Set Spanish as session language > gettext("%s: Wrong number of input arguments.\n") > > produces the expected result: > > %s: N?mero incorrecto de argumentos de entrada.\n > > But > > gettext("Wrong number of input arguments.") > > returns the original English version > > Wrong number of input arguments. > > Are the elements %s and \n part of the indexed string? Yes. The string provided to gettext() is an identifier. So changing any single character of it then refers to another message. You might have already had a look at the gettext page: https://help.scilab.org/docs/6.0.2/en_US/gettext.html > > How can I get a list of indexed strings? The most frequent ones are newly listed in --> help error_table https://help.scilab.org/docs/6.0.2/en_US/error_table.html For an exhaustive list, please * Download and unzip the source code : https://www.scilab.org/previous-scilab-versions * In your OS file browser, from the root directory of the source tree, select all *.pot files (roughtly 1 hundred of files) * Edit *.pot files. They are unformatted text files. Each one gathers all gettext messages identifiers for a native Scilab module. Hope This Helps Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Mon Mar 4 19:05:29 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 4 Mar 2019 19:05:29 +0100 Subject: [Scilab-users] buliding masks for images In-Reply-To: References: Message-ID: Hello Philipp, Le 04/03/2019 ? 14:15, P M a ?crit : > Dear all, > > I build some masks with scilab, that I want to apply later on a set of > images. > I can build these masks a batch process, because I have pixel > coordinates that define the mask coordinates. > Each mask itself will be an image.... > For now I use xs2svg and/or xs2png > > Now: Is there a way to export images from scilab applying alpha channel? > > I ask, because several masks will be layered on top of each > other...together with a mask that is build manually by a user. > To get the final result I - for now - have to make each (mask-) image > a bit transparent, to still see the underlaying image. > Thus I loose the original color of the mask image. > > I could probably build an R-G-B-alpha image such as: > > img = zeros[imgHeight, imgWidht ,4]; > > R = img[ : , : ,1]; > G = img[ : , : ,2]; > B = img[ : , : ,3]; > A = img[ : , : ,4]; > > and than set the right pixel values at the right positions. > > However: It seems, that it is not possible to add the alpha channel to > an image when exporting it to a native image file..such as png. Interesting piece of information. It would deserve being documented in the xs*() pages for formats theoretically supporting the transparency. Have you tried with xs2gif() as well? At least, since Scilab 5.5.0, images with an alpha channel can be handled and display with Matlpot(). > > imwrite (IPCV-toolbox) seems to support only 8bit (one-channel) or > 24bit (3-channel) image. Have you tried with https://atoms.scilab.org/toolboxes/scicv ? It is likely the most huge external image processing library available for Scilab. Regards Samuel From p.muehlmann at gmail.com Mon Mar 4 22:12:22 2019 From: p.muehlmann at gmail.com (P M) Date: Mon, 4 Mar 2019 22:12:22 +0100 Subject: [Scilab-users] buliding masks for images In-Reply-To: References: Message-ID: Thanks for the reply. - no , I did not test xs2gif() yet. I just installed scicv. First Off: - it does read images (png's) with alpha channel. But it seems that it converts it to a 3-channel image: Example: Beeing RGBA_test.png a 4 channel image scicv_Init(); img = imread("RGBA_test.png",CV_LOAD_IMAGE_ANYDEPTH);matplot(img);disp(getImageType(img)); // this will translate into a image of type: CV_8UC1 = 8 bit, 1 channel...hence a grayscale image with 256 pixel values //use: img = imread("RGBA_test.png",CV_LOAD_IMAGE_COLOR); // this will translate into a image of type: CV_8UC3 = 8 bit, 3 channel...hence a color image with 256 pixel values for each channel So I am not sure if imwrite() will use transparency. The help is quite short on that. It states: imwrite(filename, img[, params]) But it does not explain what "params" is. The openCV help on imwrite however brings hope, since the scicv toolbox is based on openCV: ...from the openCV help: It is possible to store PNG images with an alpha channel using this function. To do this, create 8-bit (or 16-bit) 4-channel image BGRA, where the alpha channel goes last. Fully transparent pixels should have alpha set to 0, fully opaque pixels should have alpha set to 255 (65535). Best regards, Philipp Am Mo., 4. M?rz 2019 um 19:05 Uhr schrieb Samuel Gougeon : > Hello Philipp, > > Le 04/03/2019 ? 14:15, P M a ?crit : > > Dear all, > > > > I build some masks with scilab, that I want to apply later on a set of > > images. > > I can build these masks a batch process, because I have pixel > > coordinates that define the mask coordinates. > > Each mask itself will be an image.... > > For now I use xs2svg and/or xs2png > > > > Now: Is there a way to export images from scilab applying alpha channel? > > > > I ask, because several masks will be layered on top of each > > other...together with a mask that is build manually by a user. > > To get the final result I - for now - have to make each (mask-) image > > a bit transparent, to still see the underlaying image. > > Thus I loose the original color of the mask image. > > > > I could probably build an R-G-B-alpha image such as: > > > > img = zeros[imgHeight, imgWidht ,4]; > > > > R = img[ : , : ,1]; > > G = img[ : , : ,2]; > > B = img[ : , : ,3]; > > A = img[ : , : ,4]; > > > > and than set the right pixel values at the right positions. > > > > However: It seems, that it is not possible to add the alpha channel to > > an image when exporting it to a native image file..such as png. > > Interesting piece of information. It would deserve being documented in > the xs*() pages for formats theoretically supporting the transparency. > Have you tried with xs2gif() as well? > > At least, since Scilab 5.5.0, images with an alpha channel can be > handled and display with Matlpot(). > > > > > imwrite (IPCV-toolbox) seems to support only 8bit (one-channel) or > > 24bit (3-channel) image. > > Have you tried with https://atoms.scilab.org/toolboxes/scicv ? It is > likely the most huge external image processing library available for > Scilab. > > Regards > 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 p.muehlmann at gmail.com Tue Mar 5 08:18:40 2019 From: p.muehlmann at gmail.com (P M) Date: Tue, 5 Mar 2019 08:18:40 +0100 Subject: [Scilab-users] atomsRemove('IPCV') Message-ID: Hi, I try to deinstall the IPCV module to install the SciCV module. Otherwise I guess there might be issues due to the fact, that both toolboxes have common function names, e.g.: imread, imwrite, etc. Here's the issue: - uninstall IPCV within ATOMS - close Scilab - reopen Scilab IPCV is still at autoload // without any error message..etc. modul can not be found or something like this - atomsRemove('IPCV') ans = [] What does this mean? Is the module removed, but some manual deleting has still to be done? Thanks, Philipp -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.muehlmann at gmail.com Tue Mar 5 10:24:11 2019 From: p.muehlmann at gmail.com (P M) Date: Tue, 5 Mar 2019 10:24:11 +0100 Subject: [Scilab-users] using SciCV Message-ID: Dear all, I read an RGB image with ScCV imread: img = imread("path_to_image",CV_LOAD_IMAGE_COLOR); The result is an image of type: CV_8UC3 I can display the image pixel values with: disp(img) The image itself is of type: Mat (Mlist) So far, so clear. Now, I want to extract a single plane..lets say the R-plane I would normally do something like this: R = img( : , : , 1) But for some reason it does not work. It seems that one can only extract pixel values from all 3 planes altogether.....If so, why? So the question comes down to: How to extract/change a single pixel value of a single plane in SciCV ? Thank you, Philipp -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.muehlmann at gmail.com Tue Mar 5 14:08:44 2019 From: p.muehlmann at gmail.com (P M) Date: Tue, 5 Mar 2019 14:08:44 +0100 Subject: [Scilab-users] using SciCV In-Reply-To: References: Message-ID: ... Ok, my approach: R = img( : , : , 1) G = img( : , : , 2) B = img( : , : , 3) does not work ... although I remember it somehow using it with IPD & scilab 5.4.1...good old times :-) In SciCV a image is a mlist But still same issue: /// build the imageimg = mlist(['v','r','g','b','a'], zeros(10,10), zeros(10,10), zeros(10,10), zeros(10,10));// extract the R-planeR = img.r;// modify the R-planeR(3:6,4:8) = 255;// write the R-plane back to the imageimg.r = R;// check the image contentdisp(img); Why is this not possible with an image nativly created with SciCV ? Thanks, Philipp Am Di., 5. M?rz 2019 um 10:24 Uhr schrieb P M : > Dear all, > > I read an RGB image with ScCV imread: > > img = imread("path_to_image",CV_LOAD_IMAGE_COLOR); > > The result is an image of type: CV_8UC3 > > I can display the image pixel values with: disp(img) > > The image itself is of type: Mat (Mlist) > > So far, so clear. > > Now, I want to extract a single plane..lets say the R-plane > > I would normally do something like this: > > R = img( : , : , 1) > > But for some reason it does not work. > > It seems that one can only extract pixel values from all 3 planes altogether.....If so, why? > > So the question comes down to: How to extract/change a single pixel value of a single plane in SciCV ? > > Thank you, > > Philipp > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fmiyara at fceia.unr.edu.ar Wed Mar 6 00:56:23 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Tue, 5 Mar 2019 20:56:23 -0300 Subject: [Scilab-users] Behavior of gettext In-Reply-To: <4a4b920a-f042-dd3b-ed75-70ee761c9eff@free.fr> References: <5C7CB06F.8060300@fceia.unr.edu.ar> <4a4b920a-f042-dd3b-ed75-70ee761c9eff@free.fr> Message-ID: <5C7F0CA7.1000508@fceia.unr.edu.ar> Dear Samuel, Thank you very much. I had read the gettext help but it is not as clear as it should, it was not clear for me if the indexed strings were the complete error message including the formatting details or the plain English version within it. Now it is more clear. What is still not cleaer is if the only use of getttext is to localize errore messages or it is possible to localize a GUI without formatting. Regards, Federico Miyara On 04/03/2019 14:29, Samuel Gougeon wrote: > Hello Federico, > > > Le 04/03/2019 ? 05:58, Federico Miyara a ?crit : >> >> Dear all, >> >> I'm trying to understand the way the localizing function gettext >> works. For instance, >> >> setlanguage('es') // Set Spanish as session language >> gettext("%s: Wrong number of input arguments.\n") >> >> produces the expected result: >> >> %s: N?mero incorrecto de argumentos de entrada.\n >> >> But >> >> gettext("Wrong number of input arguments.") >> >> returns the original English version >> >> Wrong number of input arguments. >> >> Are the elements %s and \n part of the indexed string? > > Yes. The string provided to gettext() is an identifier. So changing > any single character of it then refers to another message. > > You might have already had a look at the gettext page: > https://help.scilab.org/docs/6.0.2/en_US/gettext.html > >> >> How can I get a list of indexed strings? > > The most frequent ones are newly listed in > --> help error_table > > https://help.scilab.org/docs/6.0.2/en_US/error_table.html > For an exhaustive list, please > > * Download and unzip the source code : > https://www.scilab.org/previous-scilab-versions > * In your OS file browser, from the root directory of the source > tree, select all *.pot files (roughtly 1 hundred of files) > * Edit *.pot files. They are unformatted text files. Each one > gathers all gettext messages identifiers for a native Scilab module. > > > Hope This Helps > > Samuel > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users --- El software de antivirus Avast ha analizado este correo electr?nico en busca de virus. https://www.avast.com/antivirus -------------- next part -------------- An HTML attachment was scrubbed... URL: From f.s.farimani at gmail.com Wed Mar 6 09:53:44 2019 From: f.s.farimani at gmail.com (farimani) Date: Wed, 6 Mar 2019 01:53:44 -0700 (MST) Subject: [Scilab-users] Piping output of a program to a scilab script In-Reply-To: <4FAAD400.5010004@scilab-enterprises.com> References: <4FA3B1F4.6010709@limsi.fr> <4FAAD400.5010004@scilab-enterprises.com> Message-ID: <1551862424667-0.post@n3.nabble.com> Sorry this is a very old thread, but is piping inside scilab is also possible? I want to pipe the result of whos command into a tlist but I can't! -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Wed Mar 6 22:02:09 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 6 Mar 2019 22:02:09 +0100 Subject: [Scilab-users] Behavior of gettext In-Reply-To: <5C7F0CA7.1000508@fceia.unr.edu.ar> References: <5C7CB06F.8060300@fceia.unr.edu.ar> <4a4b920a-f042-dd3b-ed75-70ee761c9eff@free.fr> <5C7F0CA7.1000508@fceia.unr.edu.ar> Message-ID: Le 06/03/2019 ? 00:56, Federico Miyara a ?crit : > > Dear Samuel, > > Thank you very much. I had read the gettext help but it is not as > clear as it should, it was not clear for me if the indexed strings > were the complete error message including the formatting details or > the plain English version within it. Now it is more clear. What is > still not cleaer is if the only use of getttext is to localize errore > messages or it is possible to localize a GUI without formatting. gettext() is used to register and translate any message: warnings, menus, titles, etc etc. Whatever you want. Just edit .pot files : The sources files where the messages are registered (so gettext("...") is called) are all indicated, in Scilab files, in files in C, C++.. From p.muehlmann at gmail.com Thu Mar 7 18:01:31 2019 From: p.muehlmann at gmail.com (P M) Date: Thu, 7 Mar 2019 18:01:31 +0100 Subject: [Scilab-users] atomsRemove('IPCV') In-Reply-To: References: Message-ID: Mh... atomsRemove('IPCV') .... did not remove the Toolbox. so I deleted it manually by removing the associated contrib-subfolder ...big mistake....had to de-/re-install Scilab to make it start without any error message. At least the right time to switch to Scilab 6.0.2 Am Di., 5. M?rz 2019 um 08:18 Uhr schrieb P M : > Hi, > > I try to deinstall the IPCV module to install the SciCV module. > > Otherwise I guess there might be issues due to the fact, that both > toolboxes have common function names, e.g.: imread, imwrite, etc. > > Here's the issue: > > - uninstall IPCV within ATOMS > - close Scilab > - reopen Scilab > > IPCV is still at autoload // without any error message..etc. modul can > not be found or something like this > > - atomsRemove('IPCV') > ans = [] > > What does this mean? > Is the module removed, but some manual deleting has still to be done? > > Thanks, > Philipp > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Thu Mar 7 19:33:19 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 7 Mar 2019 19:33:19 +0100 Subject: [Scilab-users] atomsRemove('IPCV') In-Reply-To: References: Message-ID: <5d2f8768-b301-d064-d2ed-1e3564fd5183@free.fr> Hello, Le 07/03/2019 ? 18:01, P M a ?crit : > Mh... > > atomsRemove('IPCV') .... did not remove the Toolbox. When the module is already loaded, its actual removal is done only when restarting a next session. If in the meanwhile you remove the folder by hand, indeed this then yields some issues. To cure them, either the folder can be restore, or the SCI/.atoms files or/and SCIHOME/.atoms ones can be cleaned (removed). The removal procedure is safer in Scilab 6.0.2 . May be still not enough. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.muehlmann at gmail.com Fri Mar 8 08:50:01 2019 From: p.muehlmann at gmail.com (P M) Date: Fri, 8 Mar 2019 08:50:01 +0100 Subject: [Scilab-users] atomsRemove('IPCV') In-Reply-To: <5d2f8768-b301-d064-d2ed-1e3564fd5183@free.fr> References: <5d2f8768-b301-d064-d2ed-1e3564fd5183@free.fr> Message-ID: to make myself clearer: - atomsRemove('IPCV') - close Scilab - restart Scilab .... did not remove the Toolbox. Instead it was still on autoload Philipp Am Do., 7. M?rz 2019 um 19:33 Uhr schrieb Samuel Gougeon : > Hello, > > Le 07/03/2019 ? 18:01, P M a ?crit : > > Mh... > > atomsRemove('IPCV') .... did not remove the Toolbox. > > > When the module is already loaded, its actual removal is done only when > restarting a next session. > If in the meanwhile you remove the folder by hand, indeed this then yields > some issues. > To cure them, either the folder can be restore, or the SCI/.atoms files > or/and SCIHOME/.atoms > ones can be cleaned (removed). > > The removal procedure is safer in Scilab 6.0.2 > . May be still not enough. > > 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 chinluh at tritytech.com Fri Mar 8 08:57:47 2019 From: chinluh at tritytech.com (Tan Chin Luh) Date: Fri, 8 Mar 2019 15:57:47 +0800 Subject: [Scilab-users] atomsRemove('IPCV') In-Reply-To: References: <5d2f8768-b301-d064-d2ed-1e3564fd5183@free.fr> Message-ID: <0df614de-173d-192a-b3af-3a181fbc1722@tritytech.com> Hi, if it is under windows, have you tried to launch the Scilab as Administrator? (right click on the icon, and choose run as administrator) thanks. rgds, CL On 8/3/2019 3:50 PM, P M wrote: > to make myself clearer: > > - atomsRemove('IPCV') > - close Scilab > - restart Scilab > .... did not remove the Toolbox. > > Instead it was still on autoload > > Philipp > > > > Am Do., 7. M?rz 2019 um 19:33?Uhr schrieb Samuel Gougeon > >: > > Hello, > > Le 07/03/2019 ? 18:01, P M a ?crit?: >> Mh... >> >> atomsRemove('IPCV') .... did not remove the Toolbox. > > When the module is already loaded, its actual removal is done only > when restarting a next session. > If in the meanwhile you remove the folder by hand, indeed this > then yields some issues. > To cure them, either the folder can be restore, or the SCI/.atoms > files or/and SCIHOME/.atoms > ones can be cleaned (removed). > > The removal procedure is safer in Scilab 6.0.2 > . May be still not enough. > > Samuel > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Tan Chin Luh Trity Technologies Sdn Bhd Tel : +603 80637737 HP : +6013 3691728 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Fri Mar 8 10:55:38 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 8 Mar 2019 10:55:38 +0100 Subject: [Scilab-users] atomsRemove('IPCV') In-Reply-To: <0df614de-173d-192a-b3af-3a181fbc1722@tritytech.com> References: <5d2f8768-b301-d064-d2ed-1e3564fd5183@free.fr> <0df614de-173d-192a-b3af-3a181fbc1722@tritytech.com> Message-ID: <90ad7b5c-d27a-727c-1aa6-c05c03b0c8e5@free.fr> Hello, Le 08/03/2019 ? 08:57, Tan Chin Luh a ?crit : > Hi, > > if it is under windows, have you tried to launch the Scilab as > Administrator? (right click on the icon, and choose run as administrator) That's right. If a user without OS priviledge requests the removal of a module installed as admin, what does occur? Likely -- but this should be confirmed by some tests -- atomsRemove(..) simply returns []. Actually, according to the atomsRemove() design and help page, in case of removal failure no error flag is returned, and likely no error or warning message is displayed. This is somewhat an issue. There is another issue about atomsRemove(), reported as bug 9595 (2011) : /"when multiple versions installed, atomsRemove doesn't delete the loaded one, even after restart"/ To be analyzed, and fixed is it is confirmed with a recent Scilab version. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.muehlmann at gmail.com Fri Mar 8 12:44:35 2019 From: p.muehlmann at gmail.com (P M) Date: Fri, 8 Mar 2019 12:44:35 +0100 Subject: [Scilab-users] atomsRemove('IPCV') In-Reply-To: <90ad7b5c-d27a-727c-1aa6-c05c03b0c8e5@free.fr> References: <5d2f8768-b301-d064-d2ed-1e3564fd5183@free.fr> <0df614de-173d-192a-b3af-3a181fbc1722@tritytech.com> <90ad7b5c-d27a-727c-1aa6-c05c03b0c8e5@free.fr> Message-ID: ...[ if it is under windows, have you tried to launch the Scilab as Administrator? (right click on the icon, and choose run as administrator) ] ... ...indeed...I am on win7. I did not open Scilab with admin rights....didn't expect this, because with Scilab 5.x versions I could use atomsRemove() just like that. now here's a little research: start Scilab *6.0.2* without admin rights - install SciCV with atoms.....done...close / restart Scilab ...OK toolbox is installed - remove SciCV with atoms ...done...close / restart Scilab ... OK toolbox is removed - install IPCV with atoms ....done...close/restart Scilab....OK toolbox is installed - remove IPCV with atoms ...done...close / restart Scilab ... OK toolbox is removed ....mh...why now? I'll not redo this with Scilab 6.0.1 (since it's already removed from the PC) and stop here...case closed Best regards, Philipp Am Fr., 8. M?rz 2019 um 10:56 Uhr schrieb Samuel Gougeon : > Hello, > > Le 08/03/2019 ? 08:57, Tan Chin Luh a ?crit : > > Hi, > > if it is under windows, have you tried to launch the Scilab as > Administrator? (right click on the icon, and choose run as administrator) > > > > That's right. If a user without OS priviledge requests the removal of a > module installed as admin, what does occur? > > Likely -- but this should be confirmed by some tests -- atomsRemove(..) > simply returns []. > Actually, according to the atomsRemove() design and help page, in case of > removal failure no error flag is returned, and likely no error or warning > message is displayed. > This is somewhat an issue. > > There is another issue about atomsRemove(), reported as bug 9595 > (2011) : > *"when multiple versions installed, atomsRemove doesn't delete the loaded > one, even after restart"* > > To be analyzed, and fixed is it is confirmed with a recent Scilab version. > > 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 fmiyara at fceia.unr.edu.ar Fri Mar 8 20:46:21 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Fri, 8 Mar 2019 16:46:21 -0300 Subject: [Scilab-users] Question on switch Message-ID: <5C82C68D.7020207@fceia.unr.edu.ar> Dear all, I've seen that Scilab accepts the conditional switch clause like Matlab and C, and it seems to work as expected. But when one attemps to get help on switch the result refers to a switch block from Xcos. Indeed, it is not documented among the control flow keywords. I wonder if it is or will be deprecated, and if it is advisable not to use it and use select instead (like in Fortran and Basic). The mfile2sci function converts the switch clauses to select. Thank you. Regards, Federico Miyara --- El software de antivirus Avast ha analizado este correo electr?nico en busca de virus. https://www.avast.com/antivirus -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Fri Mar 8 22:23:46 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 8 Mar 2019 22:23:46 +0100 Subject: [Scilab-users] Question on switch In-Reply-To: <5C82C68D.7020207@fceia.unr.edu.ar> References: <5C82C68D.7020207@fceia.unr.edu.ar> Message-ID: <2da72fb8-5e77-bed8-7d35-910268e5aaa1@free.fr> Hello Federico, I have nothing to add to comments posted for the bug 14940 about this topic. Le 08/03/2019 ? 20:46, Federico Miyara a ?crit : > > Dear all, > > I've seen that Scilab accepts the conditional switch clause like > Matlab and C, and it seems to work as expected. But when one attemps > to get help on switch the result refers to a switch block from Xcos. > > Indeed, it is not documented among the control flow keywords. > > I wonder if it is or will be deprecated, and if it is advisable not to > use it and use select instead (like in Fortran and Basic). > > The mfile2sci function converts the switch clauses to select. Yes, it's enough. > > Thank you. > > Regards, > > Federico Miyara Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From fmiyara at fceia.unr.edu.ar Sat Mar 9 01:45:54 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Fri, 8 Mar 2019 21:45:54 -0300 Subject: [Scilab-users] Question on switch In-Reply-To: <2da72fb8-5e77-bed8-7d35-910268e5aaa1@free.fr> References: <5C82C68D.7020207@fceia.unr.edu.ar> <2da72fb8-5e77-bed8-7d35-910268e5aaa1@free.fr> Message-ID: <5C830CC2.8070508@fceia.unr.edu.ar> Dear Samuel, OK, very clear. I have added some comments there. Now I'm curious why the "then" keyword has been included in Scilab (but allowed to leave it out). In my opinion it is an unnecessary addition to the select case construct from other languages such as Fortran. Regards, Federico On 08/03/2019 18:23, Samuel Gougeon wrote: > Hello Federico, > > I have nothing to add to comments posted for the bug 14940 > about this topic. > > Le 08/03/2019 ? 20:46, Federico Miyara a ?crit : >> >> Dear all, >> >> I've seen that Scilab accepts the conditional switch clause like >> Matlab and C, and it seems to work as expected. But when one attemps >> to get help on switch the result refers to a switch block from Xcos. >> >> Indeed, it is not documented among the control flow keywords. >> >> I wonder if it is or will be deprecated, and if it is advisable not >> to use it and use select instead (like in Fortran and Basic). >> >> The mfile2sci function converts the switch clauses to select. > > Yes, it's enough. > >> >> Thank you. >> >> Regards, >> >> Federico Miyara > > Regards > Samuel > > > > > Libre de virus. www.avg.com > > > > <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > > > _______________________________________________ > 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 Sat Mar 9 15:56:07 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 9 Mar 2019 15:56:07 +0100 Subject: [Scilab-users] Question on switch In-Reply-To: <5C830CC2.8070508@fceia.unr.edu.ar> References: <5C82C68D.7020207@fceia.unr.edu.ar> <2da72fb8-5e77-bed8-7d35-910268e5aaa1@free.fr> <5C830CC2.8070508@fceia.unr.edu.ar> Message-ID: <08b1ddaf-66b6-818b-0db8-a4fd80685313@free.fr> Le 09/03/2019 ? 01:45, Federico Miyara a ?crit : > Dear Samuel, > > OK, very clear. I have added some comments there. > > Now I'm curious why the "then" keyword has been included in Scilab > (but allowed to leave it out). > > In my opinion it is an unnecessary addition to the select case > construct from other languages such as Fortran. +1 -------------- next part -------------- An HTML attachment was scrubbed... URL: From f.s.farimani at gmail.com Sun Mar 10 23:37:48 2019 From: f.s.farimani at gmail.com (farimani) Date: Sun, 10 Mar 2019 15:37:48 -0700 (MST) Subject: [Scilab-users] xcos summation block doesn't work properly In-Reply-To: <983069f3-618c-75da-af3e-26368102aa25@free.fr> References: <1550591815845-0.post@n3.nabble.com> <983069f3-618c-75da-af3e-26368102aa25@free.fr> Message-ID: <1552257468509-0.post@n3.nabble.com> This was indeed an issue with the old version which I had installed through Chocolatey. It would be nice if the core Scilab team would take acare of the major package managers. here the link for the Chocolatey: https://chocolatey.org/packages/SciLab -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From f.s.farimani at gmail.com Sun Mar 10 23:40:21 2019 From: f.s.farimani at gmail.com (farimani) Date: Sun, 10 Mar 2019 15:40:21 -0700 (MST) Subject: [Scilab-users] Where is the best place for Scilab - xcos / ScicosLab - scicos questions and bug report? In-Reply-To: <50009395-1043-10ba-f897-72a2bb134dac@free.fr> References: <1550825509208-0.post@n3.nabble.com> <50009395-1043-10ba-f897-72a2bb134dac@free.fr> Message-ID: <1552257621296-0.post@n3.nabble.com> It would be nice if you could also be more present on Reddit: https://www.reddit.com/search?q=scilab&sort=new and StackOverflow: https://stackoverflow.com/questions/tagged/scilab?sort=newest those are the places where most people go for their questions. I have tried my best to answer as many questions as I can but my knowledge of Scilab is embarrassingly limited. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From f.s.farimani at gmail.com Sun Mar 10 23:41:19 2019 From: f.s.farimani at gmail.com (farimani) Date: Sun, 10 Mar 2019 15:41:19 -0700 (MST) Subject: [Scilab-users] scilab 6.0.0-beta-1/2 - uicontrol callback problem In-Reply-To: <1466170299812-4034221.post@n3.nabble.com> References: <1466170299812-4034221.post@n3.nabble.com> Message-ID: <1552257679353-0.post@n3.nabble.com> I have also asked a similar question here on StackOverflow: https://stackoverflow.com/questions/55092467/while-loop-blocks-reading-callbacks-from-gui -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Mon Mar 11 00:43:54 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 11 Mar 2019 00:43:54 +0100 Subject: [Scilab-users] xcos summation block doesn't work properly In-Reply-To: <1552257468509-0.post@n3.nabble.com> References: <1550591815845-0.post@n3.nabble.com> <983069f3-618c-75da-af3e-26368102aa25@free.fr> <1552257468509-0.post@n3.nabble.com> Message-ID: <96d334d5-b465-4ca0-1617-ee827b818796@free.fr> Le 10/03/2019 ? 23:37, farimani a ?crit : > This was indeed an issue with the old version which I had installed through > Chocolatey. It would be nice if the core Scilab team would take acare of the > major package managers. here the link for the Chocolatey: > > https://chocolatey.org/packages/SciLab Why using an external Windows package manager on Windows for Scilab? Just download the Scilab binary from the official Scilab portal, and exec it. And that's it. By the way, as advertised at the first visit to chocolatey, the website is maintained by the community. And you are part of the community... From sgougeon at free.fr Mon Mar 11 01:10:20 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 11 Mar 2019 01:10:20 +0100 Subject: [Scilab-users] Where is the best place for Scilab - xcos / ScicosLab - scicos questions and bug report? In-Reply-To: <1552257621296-0.post@n3.nabble.com> References: <1550825509208-0.post@n3.nabble.com> <50009395-1043-10ba-f897-72a2bb134dac@free.fr> <1552257621296-0.post@n3.nabble.com> Message-ID: <7ec5d779-f55f-2752-20d5-df1baaa5c9f4@free.fr> Le 10/03/2019 ? 23:40, farimani a ?crit : > It would be nice if you could also be more present on Reddit: > > https://www.reddit.com/search?q=scilab&sort=new > > and StackOverflow: > > https://stackoverflow.com/questions/tagged/scilab?sort=newest > > those are the places where most people go for their questions. I have tried > my best to answer as many questions as I can but my knowledge of Scilab is > embarrassingly limited. I have no reason to spread and dilute contributions on many sites. To answer the same questions in several places. Already, IMO there are too many official Scilab lists. Most of them are almost dead. From f.s.farimani at gmail.com Tue Mar 12 19:20:11 2019 From: f.s.farimani at gmail.com (farimani) Date: Tue, 12 Mar 2019 11:20:11 -0700 (MST) Subject: [Scilab-users] Check code on SCILAB`` In-Reply-To: <884645667.55870.1312474004585.JavaMail.root@zmbs3.inria.fr> References: <884645667.55870.1312474004585.JavaMail.root@zmbs3.inria.fr> Message-ID: <1552414811676-0.post@n3.nabble.com> I was wondering if there is any way to force the interpreter check all the syntax, including the ones inside the functions, while/for loops, if statement ...? -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From fmiyara at fceia.unr.edu.ar Tue Mar 12 21:31:31 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Tue, 12 Mar 2019 17:31:31 -0300 Subject: [Scilab-users] Behavior of gettext In-Reply-To: References: <5C7CB06F.8060300@fceia.unr.edu.ar> <4a4b920a-f042-dd3b-ed75-70ee761c9eff@free.fr> <5C7F0CA7.1000508@fceia.unr.edu.ar> Message-ID: <5C881723.30904@fceia.unr.edu.ar> Dear All, I try to get this error message translated: msprintf(gettext("%s: Argument #%d: Vector expected.\n"), "bandfilter", 1) Any idea of what's wrong? This one works fine: msprintf(gettext("%s: Wrong number of input arguments: %d to %d expected.\n"), "bandfilter", 2, 4) Both messages were taken from the error_table documentation. Federico Miyara On 06/03/2019 18:02, Samuel Gougeon wrote: > Le 06/03/2019 ? 00:56, Federico Miyara a ?crit : >> >> Dear Samuel, >> >> Thank you very much. I had read the gettext help but it is not as >> clear as it should, it was not clear for me if the indexed strings >> were the complete error message including the formatting details or >> the plain English version within it. Now it is more clear. What is >> still not cleaer is if the only use of getttext is to localize errore >> messages or it is possible to localize a GUI without formatting. > > gettext() is used to register and translate any message: warnings, > menus, titles, etc etc. Whatever you want. Just edit .pot files : The > sources files where the messages are registered (so gettext("...") is > called) are all indicated, in Scilab files, in files in C, C++.. > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > --- El software de antivirus Avast ha analizado este correo electr?nico en busca de virus. https://www.avast.com/antivirus -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Mar 13 01:05:19 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 13 Mar 2019 01:05:19 +0100 Subject: [Scilab-users] Behavior of gettext In-Reply-To: <5C881723.30904@fceia.unr.edu.ar> References: <5C7CB06F.8060300@fceia.unr.edu.ar> <4a4b920a-f042-dd3b-ed75-70ee761c9eff@free.fr> <5C7F0CA7.1000508@fceia.unr.edu.ar> <5C881723.30904@fceia.unr.edu.ar> Message-ID: <9ba3707b-6c45-af86-ab2e-f9347b10326b@free.fr> Hello, Le 12/03/2019 ? 21:31, Federico Miyara a ?crit : > > Dear All, > > I try to get this error message translated: > > msprintf(gettext("%s: Argument #%d: Vector expected.\n"), "bandfilter", 1) It may be a very recent one, not yet translated. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Mar 13 01:19:05 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 13 Mar 2019 01:19:05 +0100 Subject: [Scilab-users] Behavior of gettext In-Reply-To: <5C881723.30904@fceia.unr.edu.ar> References: <5C7CB06F.8060300@fceia.unr.edu.ar> <4a4b920a-f042-dd3b-ed75-70ee761c9eff@free.fr> <5C7F0CA7.1000508@fceia.unr.edu.ar> <5C881723.30904@fceia.unr.edu.ar> Message-ID: <0d426c1d-751e-b1ac-49c9-94a37ecce732@free.fr> Le 12/03/2019 ? 21:31, Federico Miyara a ?crit : > > Dear All, > > I try to get this error message translated: > > msprintf(gettext("%s: Argument #%d: Vector expected.\n"), "bandfilter", 1) > > Any idea of what's wrong? The long historical form is gettext("%s: Wrong size for argument #%d: Vector expected.\n") When some students or colleagues ask me for help, i have noticed that quite often they did not really read the error message, and i wondered why. Often, IMO error messages are uselessly verbosy. This is why i proposed a series of shorter, more straightforward, and more orthogonal ones. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From fmiyara at fceia.unr.edu.ar Wed Mar 13 01:56:22 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Tue, 12 Mar 2019 21:56:22 -0300 Subject: [Scilab-users] Behavior of gettext In-Reply-To: <0d426c1d-751e-b1ac-49c9-94a37ecce732@free.fr> References: <5C7CB06F.8060300@fceia.unr.edu.ar> <4a4b920a-f042-dd3b-ed75-70ee761c9eff@free.fr> <5C7F0CA7.1000508@fceia.unr.edu.ar> <5C881723.30904@fceia.unr.edu.ar> <0d426c1d-751e-b1ac-49c9-94a37ecce732@free.fr> Message-ID: <5C885536.9090306@fceia.unr.edu.ar> Thank you Samuel, this one does work! I understand the verbosity issue (it's the age of SMS's and WhatsApp's). However, the "orthogonality", in spite of being a good idea to avoid many instances of similar messages, would be really useful if some way to combine short messages did exist. But I'm afraid it is a very hard problem since the way things combine in different languages may be quite different, particularly word order. Federico On 12/03/2019 21:19, Samuel Gougeon wrote: > Le 12/03/2019 ? 21:31, Federico Miyara a ?crit : >> >> Dear All, >> >> I try to get this error message translated: >> >> msprintf(gettext("%s: Argument #%d: Vector expected.\n"), >> "bandfilter", 1) >> >> Any idea of what's wrong? > > The long historical form is > gettext("%s: Wrong size for argument #%d: Vector expected.\n") > > When some students or colleagues ask me for help, i have noticed that > quite often they did not really read the error message, and i wondered > why. > Often, IMO error messages are uselessly verbosy. This is why i proposed > a series of shorter, more straightforward, and more orthogonal ones. > > Samuel > > > > Libre de virus. www.avg.com > > > > <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.muehlmann at gmail.com Thu Mar 14 15:27:49 2019 From: p.muehlmann at gmail.com (P M) Date: Thu, 14 Mar 2019 15:27:49 +0100 Subject: [Scilab-users] extract pixel values along a profile Message-ID: Hi, >From an image I want to extract the pixel values along a profile. The profile coordinates are set automatically, so that I do not have to click in the image. How do I get the pixel values for that profile? In IPCV() I find the function: improfile() which would do the very thing I want. But this function waits for mouse clicks. Is there somehow a way to give this function a fake mouse click? Thanks, Philipp -------------- next part -------------- An HTML attachment was scrubbed... URL: From chinluh at tritytech.com Thu Mar 14 17:10:52 2019 From: chinluh at tritytech.com (Tan Chin Luh) Date: Fri, 15 Mar 2019 00:10:52 +0800 Subject: [Scilab-users] extract pixel values along a profile In-Reply-To: References: Message-ID: <1db99dff-1e2f-71c2-5756-52dddce07754@tritytech.com> Hi, Try to replace the attached 2 files into your IPCV macros folder to patch the existing one and restart scilab, and the syntax should be: improfile(S,[xc1,yc2;xc2,yc2]); it it does not works, try to exec the sci file and run again. hope this helps. rgds, CL On 14/3/2019 10:27 PM, P M wrote: > Hi, > > From an image I want to extract the pixel values along a profile. > > The profile coordinates are set automatically, so that I do not have > to click in the image. > > How do I get the pixel values for that profile? > > In IPCV()? I find the function:?? improfile() which would do the very > thing I want. > > But this function waits for mouse clicks. > > Is there somehow a way to give this function a fake mouse click? > > Thanks, > Philipp > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Tan Chin Luh Trity Technologies Sdn Bhd Tel : +603 80637737 HP : +6013 3691728 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: improfile.bin Type: application/octet-stream Size: 14224 bytes Desc: not available URL: -------------- next part -------------- //============================================================================= // IPCV - Scilab Image Processing and Computer Vision toolbox // Copyright (C) 2017 Tan Chin Luh //============================================================================= function [xc,yc,pixval] = improfile(S,points) // Return profiles for the selected 2 points // // Syntax // [xc,yc,pixval] = improfile(S) // // Parameters // S : Image matrix in Scilab // xc : x-coordinates for the selected points // yc : y-coordinates for the selected points // pixval : Correspond pixels' values along the selected points // // Description // This function provides interactive way to select 2 points on an image // and returned with the line profile. Use left mouse click to select 2 // points and the image profile would be computed and ploted on a new graph. // // Examples // S = imread(fullpath(getIPCVpath() + "/images/balloons.png")); // improfile(S); // // See also // impixel // // Authors // Tan Chin Luh // rhs=argn(2); // Error Checking if rhs < 1; error("At least 1 arguments expected, model file and the prototext."); end if rhs < 2; imshow(S); [b,xc,yc]=xclick(); plot2d(xc,yc,style = -1, strf = '082'); cnt = 2; while b ~=5 & cnt <=2 [b(cnt),xc(cnt),yc(cnt)]=xclick(); plot2d(xc(cnt),yc(cnt),style = -1,strf = '082'); plot2d([xc(cnt-1),xc(cnt)],[yc(cnt-1),yc(cnt)],style = 1,strf = '082'); cnt = cnt + 1; end else xc = points(:,1); yc = points(:,2); cnt=3; end [r,c] = size(S); //pixval = cell(cnt-1,1); yc = r+1-yc; for cnt2 = 2:cnt-1 //yc(cnt2) = r+1-yc(cnt2); [mv,mi] = max(length(xc(cnt2-1):xc(cnt2)),length(yc(cnt2-1):yc(cnt2))); if mi ==1 xcnew = xc(cnt2-1):xc(cnt2); ycnew = linspace(yc(cnt2-1),yc(cnt2),mv) else ycnew = yc(cnt2-1):yc(cnt2); xcnew = linspace(xc(cnt2-1),xc(cnt2),mv) end end pixval = cell(length(xcnew),1); for cnt3 = 1:length(xcnew) pixtemp = S(ycnew(cnt3),xcnew(cnt3),:); pixval{cnt3} = double(matrix(pixtemp,length(pixtemp))); //mprintf('[x,y] = [%i,%i] \t RGB = %s \n',xcnew(cnt3),ycnew(cnt3),string(pixval(cnt3))); end if length(pixval{1}) == 3 pixvalmat = cell2mat(pixval); pixvalmat = matrix(pixvalmat,3,double(max(size(pixval)))); figure();newaxes(); plot(1:length(xcnew),pixvalmat(1,:),'r',1:length(xcnew),pixvalmat(2,:),'g',1:length(xcnew),pixvalmat(3,:),'b'); else pixvalmat = cell2mat(pixval); pixvalmat = matrix(pixvalmat,1,double(max(size(pixval)))); figure();newaxes(); plot(1:length(xcnew),pixvalmat); end endfunction From p.muehlmann at gmail.com Fri Mar 15 08:16:26 2019 From: p.muehlmann at gmail.com (P M) Date: Fri, 15 Mar 2019 08:16:26 +0100 Subject: [Scilab-users] extract pixel values along a profile In-Reply-To: <1db99dff-1e2f-71c2-5756-52dddce07754@tritytech.com> References: <1db99dff-1e2f-71c2-5756-52dddce07754@tritytech.com> Message-ID: Thank you, that does it. Philipp Am Do., 14. M?rz 2019 um 17:34 Uhr schrieb Tan Chin Luh < chinluh at tritytech.com>: > Hi, > > Try to replace the attached 2 files into your IPCV macros folder to patch > the existing one and restart scilab, and the syntax should be: > > improfile(S,[xc1,yc2;xc2,yc2]); > > it it does not works, try to exec the sci file and run again. > > hope this helps. > > rgds, > CL > > On 14/3/2019 10:27 PM, P M wrote: > > Hi, > > From an image I want to extract the pixel values along a profile. > > The profile coordinates are set automatically, so that I do not have to > click in the image. > > How do I get the pixel values for that profile? > > In IPCV() I find the function: improfile() which would do the very > thing I want. > > But this function waits for mouse clicks. > > Is there somehow a way to give this function a fake mouse click? > > Thanks, > Philipp > > _______________________________________________ > users mailing listusers at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users > > > -- > Tan Chin Luh > Trity Technologies Sdn Bhd > Tel : +603 80637737 > HP : +6013 3691728 > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Fri Mar 15 15:12:45 2019 From: paul.carrico at esterline.com (Carrico, Paul) Date: Fri, 15 Mar 2019 14:12:45 +0000 Subject: [Scilab-users] images in hdf5 format Message-ID: <3A6B7233274DB449A2A0053A47684F953FF88DB9@BGS-EX01.auxitrol.ad> Dear All I'm currently digging on the net in order to find how to convert (and then insert) images in hdf5 format ... of course using Scilab (an image remains no more no less than a matrix). I can do it manually using hdfview, or I can use h5py library, but I'm wondering if somebody has ever experienced it using Scilab ? Thanls Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From heinznabielek at icloud.com Sun Mar 17 23:49:51 2019 From: heinznabielek at icloud.com (Heinz Nabielek) Date: Sun, 17 Mar 2019 23:49:51 +0100 Subject: [Scilab-users] Can you suggest a more efficient procedure for generating random variables? In-Reply-To: References: Message-ID: I need to generate random deviates x according to a given cumulative distribution y that is available only in tabular form. Scilab coding was easy by table lookup: length(y)= 360. // only for general information N=1000; z=grand(1,N,'def'); x=[]; for i=1:N; x=[x find(y>z(i),1)]; end; Problem is that execution times are exponentially increasing when I want one million deviates. Can you suggest a significantly more efficient procedure? Heinz From marcusvpsouza at yahoo.com.br Mon Mar 18 01:56:09 2019 From: marcusvpsouza at yahoo.com.br (Marcus Vinicius Pereira de Souza) Date: Mon, 18 Mar 2019 00:56:09 +0000 (UTC) Subject: [Scilab-users] Sprintf and Italic font. References: <558451214.5862215.1552870569957.ref@mail.yahoo.com> Message-ID: <558451214.5862215.1552870569957@mail.yahoo.com> Dear all,Kindly, I am generating a graphic and would like some information in the title to be in italics. Can someone help me? By way of illustration, see the script below:clc; clear; A=[2 4;-4 2/4] b=[10;0] K=inv(A)*b kp1=K(1) kp2=K(2) t=[0:0.01:5] y=-kp1*exp(-1/2*t) + kp1*cos(4*t) + kp2*sin(4*t); xset('window',0) xset('font size',2.5) xgrid(0.25) plot2d(t,y,[2],"011",rect=[0,min(y)-1,t($),max(y)+1]) // p=get("hdl"); p.children.thickness=4; a = gca(); a.x_label.font_size = 4; a.y_label.font_size = 4; a.title.font_size = 4; a.x_label.text = "$t(s)$" a.y_label.text = "$y(t)$" title(sprintf('y(t) = -%0.2f exp(-0.5t)\ + %0.2f cos(4t)\ + %0.2f sin(4t) ',kp1,kp1,kp2))y(t) --> italic fontexp --> italic fontcos --> italic fontsin --> italic font. Thank you very much for your attention.Best wishes, -------------- next part -------------- An HTML attachment was scrubbed... URL: From fmiyara at fceia.unr.edu.ar Mon Mar 18 06:43:43 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Mon, 18 Mar 2019 02:43:43 -0300 Subject: [Scilab-users] Can you suggest a more efficient procedure for generating random variables? In-Reply-To: References: Message-ID: <5C8F300F.9020704@fceia.unr.edu.ar> Heinz, I don't find your example clear enough. What's y? Is it defined previously? Perhaps an example would be useful. Regards, Federico Miyara On 17/03/2019 19:49, Heinz Nabielek wrote: > I need to generate random deviates x according to a given cumulative distribution y that is available only in tabular form. > > Scilab coding was easy by table lookup: > > length(y)= 360. // only for general information > N=1000; > z=grand(1,N,'def'); > x=[]; > for i=1:N; > x=[x find(y>z(i),1)]; > end; > > Problem is that execution times are exponentially increasing when I want one million deviates. > > Can you suggest a significantly more efficient procedure? > Heinz > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > --- El software de antivirus Avast ha analizado este correo electr?nico en busca de virus. https://www.avast.com/antivirus From Christophe.Dang at sidel.com Mon Mar 18 09:12:31 2019 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Mon, 18 Mar 2019 08:12:31 +0000 Subject: [Scilab-users] Sprintf and Italic font. Message-ID: Hello Marcus, > De : Marcus Vinicius Pereira de Souza > Envoy? : lundi 18 mars 2019 01:56 > > I am generating a graphic > and would like some information in the title to be in italics. > [?] > title(sprintf('y(t) = -%0.2f exp(-0.5t)\ + %0.2f cos(4t)\ + %0.2f sin(4t) ',kp1,kp1,kp2)) The online doc tells me that sprintf() is obsolete https://help.scilab.org/docs/6.0.2/en_US/msprintf.html Apart from this, when I want to make some text layout, I usually use the LaTeX feature. How don't know how it mixes with (m)sprint but maybe you could try something like title("$" + msprintf(?) + "$") (I did not try so I don't know if it works). HTH, 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 heinznabielek at me.com Mon Mar 18 09:22:35 2019 From: heinznabielek at me.com (Heinz Nabielek) Date: Mon, 18 Mar 2019 09:22:35 +0100 Subject: [Scilab-users] Can you suggest a more efficient procedure for generating random variables? In-Reply-To: <5C8F300F.9020704@fceia.unr.edu.ar> References: <5C8F300F.9020704@fceia.unr.edu.ar> Message-ID: <683F9921-E6FA-44C5-A265-EA27D2DC3FC8@me.com> y is a previously defined table with values monotonically increasing from zero to one. h > On 18.03.2019, at 06:43, Federico Miyara wrote: > > > Heinz, > > I don't find your example clear enough. What's y? Is it defined previously? > > Perhaps an example would be useful. > > Regards, > > Federico Miyara > > > On 17/03/2019 19:49, Heinz Nabielek wrote: >> I need to generate random deviates x according to a given cumulative distribution y that is available only in tabular form. >> >> Scilab coding was easy by table lookup: >> >> length(y)= 360. // only for general information >> N=1000; >> z=grand(1,N,'def'); >> x=[]; >> for i=1:N; >> x=[x find(y>z(i),1)]; >> end; >> >> Problem is that execution times are exponentially increasing when I want one million deviates. >> >> Can you suggest a significantly more efficient procedure? >> Heinz From Christophe.Dang at sidel.com Mon Mar 18 09:50:31 2019 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Mon, 18 Mar 2019 08:50:31 +0000 Subject: [Scilab-users] {EXT} Can you suggest a more efficient procedure for generating random variables? In-Reply-To: References: Message-ID: Hello Heinz, > De : Heinz Nabielek > Envoy? : dimanche 17 mars 2019 23:50 > > I need to generate random deviates x according to a given cumulative > distribution y that is available only in tabular form. > [...] > for i=1:N; > x=[x find(y>z(i),1)]; > end; > > y is a previously defined table with values monotonically increasing from zero I guess these are quantiles. I think you can vectorise with something like x = dsearch(z, y) I tried a little bit and it seems to work but I don't know the exact application so... HTH -- Christophe Dang Ngoc Chan Mechanical calculation engineer Public 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 heinznabielek at me.com Mon Mar 18 11:06:43 2019 From: heinznabielek at me.com (Heinz Nabielek) Date: Mon, 18 Mar 2019 11:06:43 +0100 Subject: [Scilab-users] {EXT} Can you suggest a more efficient procedure for generating random variables? In-Reply-To: References: Message-ID: <6D8D0198-69C0-47D2-B537-1EC8243BC11E@me.com> Ingenious. Works with precision. Gigantically fast for a million random deviates. Ideal for Monte-Carlo simulations. I had never heard of dsearch* before...... Thanks a lot Heinz * I wished the Scilab help files would be more readable..... > On 18.03.2019, at 09:50, Dang Ngoc Chan, Christophe wrote: > > Hello Heinz, > >> De : Heinz Nabielek >> Envoy? : dimanche 17 mars 2019 23:50 >> >> I need to generate random deviates x according to a given cumulative >> distribution y that is available only in tabular form. >> [...] >> for i=1:N; >> x=[x find(y>z(i),1)]; >> end; >> >> y is a previously defined table with values monotonically increasing from zero > > I guess these are quantiles. > > I think you can vectorise with something like > > x = dsearch(z, y) > > I tried a little bit and it seems to work but I don't know the exact application so... > > HTH > > -- > Christophe Dang Ngoc Chan > Mechanical calculation engineer > > Public > 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 Christophe.Dang at sidel.com Mon Mar 18 11:17:20 2019 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Mon, 18 Mar 2019 10:17:20 +0000 Subject: [Scilab-users] {EXT} Can you suggest a more efficient procedure for generating random variables? In-Reply-To: <6D8D0198-69C0-47D2-B537-1EC8243BC11E@me.com> References: <6D8D0198-69C0-47D2-B537-1EC8243BC11E@me.com> Message-ID: Hello, > De : Heinz Nabielek [mailto:heinznabielek at me.com] > Envoy? : lundi 18 mars 2019 11:07 > > I had never heard of dsearch* before...... Neither did I :-D I just couldn't imagine such a feature didn't exist so I looked at the neighbouring "Search and sort" functions in the help online page? > * I wished the Scilab help files would be more readable... You're probably right. I just wonder how in this case. Maybe adding "dsearch" to the "See also" list at the bottom of the "find" help page? It may deserve a "wishlist" severity on http://bugzilla.scilab.org Anyway, I'm happy I could be useful to someone today (-: -- Christophe Dang Ngoc Chan Mechanical calculation engineer Public 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 Clement.David at esi-group.com Mon Mar 18 13:18:43 2019 From: Clement.David at esi-group.com (=?iso-8859-1?Q?Cl=E9ment_David?=) Date: Mon, 18 Mar 2019 12:18:43 +0000 Subject: [Scilab-users] Check code on SCILAB`` In-Reply-To: <1552414811676-0.post@n3.nabble.com> References: <884645667.55870.1312474004585.JavaMail.root@zmbs3.inria.fr> <1552414811676-0.post@n3.nabble.com> Message-ID: Hi Farimani, You could check the syntax by "executing" the function definition while writing it. The interpreter will catch some simple syntax issues and redefine the function each time you execute it. Using slint, might also help you to get more warnings. -- Cl?ment -----Original Message----- From: users On Behalf Of farimani Sent: Tuesday, March 12, 2019 7:20 PM To: users at lists.scilab.org Subject: Re: [Scilab-users] Check code on SCILAB`` I was wondering if there is any way to force the interpreter check all the syntax, including the ones inside the functions, while/for loops, if statement ...? -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From cfuttrup at gmail.com Mon Mar 18 17:27:58 2019 From: cfuttrup at gmail.com (Claus Futtrup) Date: Mon, 18 Mar 2019 17:27:58 +0100 Subject: [Scilab-users] {EXT} Can you suggest a more efficient procedure for generating random variables? In-Reply-To: <6D8D0198-69C0-47D2-B537-1EC8243BC11E@me.com> References: <6D8D0198-69C0-47D2-B537-1EC8243BC11E@me.com> Message-ID: Hi there Interesting ... If this is excellent for Monte-Carlo simulations, I wish that such an example is put into the documentation. Lots of people (who need Monte-Carlo) would then accidentally fall over it and take advantage of it. Cheers, Claus On 18.03.2019 11:06, Heinz Nabielek wrote: > Ingenious. Works with precision. Gigantically fast for a million random deviates. Ideal for Monte-Carlo simulations. > > I had never heard of dsearch* before...... > Thanks a lot > Heinz > > > * I wished the Scilab help files would be more readable..... > >> On 18.03.2019, at 09:50, Dang Ngoc Chan, Christophe wrote: >> >> Hello Heinz, >> >>> De : Heinz Nabielek >>> Envoy? : dimanche 17 mars 2019 23:50 >>> >>> I need to generate random deviates x according to a given cumulative >>> distribution y that is available only in tabular form. >>> [...] >>> for i=1:N; >>> x=[x find(y>z(i),1)]; >>> end; >>> >>> y is a previously defined table with values monotonically increasing from zero >> I guess these are quantiles. >> >> I think you can vectorise with something like >> >> x = dsearch(z, y) >> >> I tried a little bit and it seems to work but I don't know the exact application so... >> >> HTH >> >> -- >> Christophe Dang Ngoc Chan >> Mechanical calculation engineer >> >> Public >> 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 > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From heinznabielek at me.com Mon Mar 18 17:50:49 2019 From: heinznabielek at me.com (Heinz Nabielek) Date: Mon, 18 Mar 2019 17:50:49 +0100 Subject: [Scilab-users] {EXT} Can you suggest a more efficient procedure for generating random variables? In-Reply-To: References: <6D8D0198-69C0-47D2-B537-1EC8243BC11E@me.com> Message-ID: I am happy to write a 1.5 page technical note. What would we do with it Greetings from Heinz > On 18.03.2019, at 17:27, Claus Futtrup wrote: > > Hi there > > Interesting ... > > If this is excellent for Monte-Carlo simulations, I wish that such an example is put into the documentation. Lots of people (who need Monte-Carlo) would then accidentally fall over it and take advantage of it. > > Cheers, > Claus > >> On 18.03.2019 11:06, Heinz Nabielek wrote: >> Ingenious. Works with precision. Gigantically fast for a million random deviates. Ideal for Monte-Carlo simulations. >> >> I had never heard of dsearch* before...... >> Thanks a lot >> Heinz >> >> >> * I wished the Scilab help files would be more readable..... >> >>> On 18.03.2019, at 09:50, Dang Ngoc Chan, Christophe wrote: >>> >>> Hello Heinz, >>> >>>> De : Heinz Nabielek >>>> Envoy? : dimanche 17 mars 2019 23:50 >>>> >>>> I need to generate random deviates x according to a given cumulative >>>> distribution y that is available only in tabular form. >>>> [...] >>>> for i=1:N; >>>> x=[x find(y>z(i),1)]; >>>> end; >>>> >>>> y is a previously defined table with values monotonically increasing from zero >>> I guess these are quantiles. >>> >>> I think you can vectorise with something like >>> >>> x = dsearch(z, y) >>> >>> I tried a little bit and it seems to work but I don't know the exact application so... >>> >>> HTH >>> >>> -- >>> Christophe Dang Ngoc Chan >>> Mechanical calculation engineer >>> >>> Public >>> 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 >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > > > --- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From fmiyara at fceia.unr.edu.ar Mon Mar 18 19:24:23 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Mon, 18 Mar 2019 15:24:23 -0300 Subject: [Scilab-users] Can you suggest a more efficient procedure for generating random variables? In-Reply-To: <683F9921-E6FA-44C5-A265-EA27D2DC3FC8@me.com> References: <5C8F300F.9020704@fceia.unr.edu.ar> <683F9921-E6FA-44C5-A265-EA27D2DC3FC8@me.com> Message-ID: <5C8FE257.3030206@fceia.unr.edu.ar> Heinz, I'm not quite sure if this is what you need. Even if you have been suggested a good solution, here is a possible alternative. Suppose you have a number of equally spaced bins (this is not really necessary but it generally is the case), for instance x = (0:100); with a cummulative distribution which may be experimental but for this example I'll use this one: y = (x/100).^4; This means that the values close to 100 are much more frequent. You can then apply the inverse function to a series of 1000000 uniformly distributed random numbers such as y1 = rand(1,1000000); As you don't know the inverse for any value different from the tabulated ones, you just interpolate: x1 = interp(y, x, y1); This is linear interpolation, which in most cases will suffice. You could try splines, at the expense of reduced speed. It is reasonably fast, 1000000 values take an average of 0.1 ms on an i7 laptop with Windows 7. Federico On 18/03/2019 05:22, Heinz Nabielek wrote: > y is a previously defined table with values monotonically increasing from zero to one. > h > >> On 18.03.2019, at 06:43, Federico Miyara wrote: >> >> >> Heinz, >> >> I don't find your example clear enough. What's y? Is it defined previously? >> >> Perhaps an example would be useful. >> >> Regards, >> >> Federico Miyara >> >> >> On 17/03/2019 19:49, Heinz Nabielek wrote: >>> I need to generate random deviates x according to a given cumulative distribution y that is available only in tabular form. >>> >>> Scilab coding was easy by table lookup: >>> >>> length(y)= 360. // only for general information >>> N=1000; >>> z=grand(1,N,'def'); >>> x=[]; >>> for i=1:N; >>> x=[x find(y>z(i),1)]; >>> end; >>> >>> Problem is that execution times are exponentially increasing when I want one million deviates. >>> >>> Can you suggest a significantly more efficient procedure? >>> Heinz > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > --- El software de antivirus Avast ha analizado este correo electr?nico en busca de virus. https://www.avast.com/antivirus From sgougeon at free.fr Mon Mar 18 23:37:17 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 18 Mar 2019 23:37:17 +0100 Subject: [Scilab-users] Sprintf and Italic font. In-Reply-To: <558451214.5862215.1552870569957@mail.yahoo.com> References: <558451214.5862215.1552870569957.ref@mail.yahoo.com> <558451214.5862215.1552870569957@mail.yahoo.com> Message-ID: <968f1970-aaf8-bec1-0469-2855a723f756@free.fr> Hello, Le 18/03/2019 ? 01:56, Marcus Vinicius Pereira de Souza a ?crit : > Dear all, > Kindly, I am generating a graphic and would like some information in > the title to be in italics. Can someone help me? By way of > illustration, see the script below: > .../... > > title(sprintf('y(t) = -%0.2f exp(-0.5t)\ + %0.2f cos(4t)\ + %0.2f > sin(4t) ',kp1,kp1,kp2)) > y(t) --> italic font > exp --> italic font > cos --> italic font > sin --> italic font. As recommended by Christophe, you may try for instance tit = "$y(t)\mathsf{ = -%0.2f \mathit{exp}(-0.5t)\ + %0.2f \mathit{cos}(4t)\ + %0.2f \mathit{sin}(4t)}$"; title(msprintf(tit, kp1,kp1, kp2)) -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Tue Mar 19 09:04:11 2019 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Tue, 19 Mar 2019 08:04:11 +0000 Subject: [Scilab-users] {EXT} Re: Can you suggest a more efficient procedure for generating random variables? In-Reply-To: <5C8FE257.3030206@fceia.unr.edu.ar> References: <5C8F300F.9020704@fceia.unr.edu.ar> <683F9921-E6FA-44C5-A265-EA27D2DC3FC8@me.com> <5C8FE257.3030206@fceia.unr.edu.ar> Message-ID: Hello, > De Federico Miyara > Envoy? : lundi 18 mars 2019 19:24 > > As you don't know the inverse for any value different from the tabulated > ones, you just interpolate: > > x1 = interp(y, x, y1); If you considere that the probability distribution function is continuous, yes, that's a very good solution. But there might be some cases where you have to stick to a discrete PDF. -- Christophe Dang Ngoc Chan Mechanical calculation engineer Public 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 amonmayr at laas.fr Tue Mar 19 23:52:36 2019 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Tue, 19 Mar 2019 23:52:36 +0100 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ICBpbWFnZXMgaW4gaGRmNSBm?= =?utf-8?q?ormat?= In-Reply-To: <3A6B7233274DB449A2A0053A47684F953FF88DB9@BGS-EX01.auxitrol.ad> Message-ID: <4199-5c917280-d-14748820@224627071> Hello Paul, We do it all the time in our group, from scilab, julia or Labview (and other field specific languages). But as you said, it's just a matter of saving it using h5write (or equivalent) either as a matrix (grayscale image) or hypermatrix (rgb, multispectral or hyperspectral images). The only issue with Scilab is to get a proper way to read the image in the first place. Most of the image related atom modules are just unreliable (I mean that if by chance one of them is installing and working ok on a specific version of Linux or Windows, you have almost no change to get it running on another Linux or another Windows version). But maybe I did not really undertand your question... Feel free to ask for more specific details. Cheers, Antoine Le Vendredi, Mars 15, 2019 15:12 CET, "Carrico, Paul" a ?crit: > Dear All > > I'm currently digging on the net in order to find how to convert (and then insert) images in hdf5 format ... of course using Scilab (an image remains no more no less than a matrix). I can do it manually using hdfview, or I can use h5py library, but I'm wondering if somebody has ever experienced it using Scilab ? > > Thanls > > Paul From paul.carrico at esterline.com Wed Mar 20 09:20:20 2019 From: paul.carrico at esterline.com (Carrico, Paul) Date: Wed, 20 Mar 2019 08:20:20 +0000 Subject: [Scilab-users] [EXTERNAL] Re: ?==?utf-8?q? images in hdf5 format In-Reply-To: <4199-5c917280-d-14748820@224627071> References: <3A6B7233274DB449A2A0053A47684F953FF88DB9@BGS-EX01.auxitrol.ad> <4199-5c917280-d-14748820@224627071> Message-ID: <3A6B7233274DB449A2A0053A47684F953FF894E3@BGS-EX01.auxitrol.ad> Hello Antoine, Thanks for this feedback; As you know, the hdf5 file format is just wonderful to record information's in a general way, through the dataset, the attributs and so on, and I'm quite happy to use Scilab to manage it. You also have the opportunity to insert images (a lot of images) and so on : the hdf5 format becomes self-consistent and I particularly appreciate it. (In addition, on would say that the hdf5 format is becoming the first level of another format such as the XDMF, NETCDF for example, very promising for visualization topics ? Currently I can insert pictures/fig manually using hdfview, but with dozens of images, I'm wondering if I can do it directly with Scilab (inserted in my current modelling workflow) ... so this post ; of course the h5 file must be ?readable? with hdfview/Vitables for example in order to share it with my colleagues. Nb: One thing is missing in my mind (or maybe I missed it), the opportunity to compress the data as we can do with h5py libraries for example, in order to reduce the final file size (in conjunction with the float format). Regards Paul EXPORT CONTROL : ? Cet email ne contient pas de donn?es techniques ? ? This email does not contain technical data ? -----Message d'origine----- De : users [mailto:users-bounces at lists.scilab.org] De la part de Antoine Monmayrant Envoy? : mardi 19 mars 2019 23:53 ? : Users mailing list for Scilab Objet : [EXTERNAL] Re: [Scilab-users] ?==?utf-8?q? images in hdf5 format Hello Paul, We do it all the time in our group, from scilab, julia or Labview (and other field specific languages). But as you said, it's just a matter of saving it using h5write (or equivalent) either as a matrix (grayscale image) or hypermatrix (rgb, multispectral or hyperspectral images). The only issue with Scilab is to get a proper way to read the image in the first place. Most of the image related atom modules are just unreliable (I mean that if by chance one of them is installing and working ok on a specific version of Linux or Windows, you have almost no change to get it running on another Linux or another Windows version). But maybe I did not really undertand your question... Feel free to ask for more specific details. Cheers, Antoine Le Vendredi, Mars 15, 2019 15:12 CET, "Carrico, Paul" a ?crit: > Dear All > > I'm currently digging on the net in order to find how to convert (and then insert) images in hdf5 format ... of course using Scilab (an image remains no more no less than a matrix). I can do it manually using hdfview, or I can use h5py library, but I'm wondering if somebody has ever experienced it using Scilab ? > > Thanls > > Paul _______________________________________________ users mailing list users at lists.scilab.org https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.scilab.org_mailman_listinfo_users&d=DwIGaQ&c=0hKVUfnuoBozYN8UvxPA-w&r=4TCz--8bXfJhZZvIxJAemAJyz7Vfx78XvgYu3LN7eLo&m=dhPKDUyUt9zvLnlaGkOF0IVVrbzwsU4BErQRHSfenLs&s=PChMgzKwd7NNux7IPBnAgJseCS4q5in9aj3YUmUwqPU&e= -------------- next part -------------- An HTML attachment was scrubbed... URL: From f.s.farimani at gmail.com Thu Mar 21 09:55:30 2019 From: f.s.farimani at gmail.com (farimani) Date: Thu, 21 Mar 2019 01:55:30 -0700 (MST) Subject: [Scilab-users] Where is the best place for Scilab - xcos / ScicosLab - scicos questions and bug report? In-Reply-To: <7ec5d779-f55f-2752-20d5-df1baaa5c9f4@free.fr> References: <1550825509208-0.post@n3.nabble.com> <50009395-1043-10ba-f897-72a2bb134dac@free.fr> <1552257621296-0.post@n3.nabble.com> <7ec5d779-f55f-2752-20d5-df1baaa5c9f4@free.fr> Message-ID: <1553158530331-0.post@n3.nabble.com> Samuel GOUGEON wrote > I have no reason to spread and dilute contributions on many sites. > To answer the same questions in several places. > Already, IMO there are too many official Scilab lists. Most of them are > almost dead. Dear Samuel, Like it or not people don't like to sign up here in these forums or mailing lists to ask their questions. Reddit and StackOverflow/StackExchange are the place they go. They already have nice formatting environment, they have mobile apps... During the last couple of days I have tried to answer new questions as much as my crippled Scilab skills allow. We don't have to answer repetitive questions. If there are questions for which there is already an answer we can just point them to the right place. I want to urge you and other Scilab experts to take a look at the most visited unanswered questions here: https://stackoverflow.com/unanswered/tagged/scilab and help them as much as you can. Best regards, Foad -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From Christophe.Dang at sidel.com Thu Mar 21 10:39:20 2019 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Thu, 21 Mar 2019 09:39:20 +0000 Subject: [Scilab-users] {EXT} Re: Where is the best place for Scilab - xcos / ScicosLab - scicos questions and bug report? In-Reply-To: <1553158530331-0.post@n3.nabble.com> References: <1550825509208-0.post@n3.nabble.com> <50009395-1043-10ba-f897-72a2bb134dac@free.fr> <1552257621296-0.post@n3.nabble.com> <7ec5d779-f55f-2752-20d5-df1baaa5c9f4@free.fr> <1553158530331-0.post@n3.nabble.com> Message-ID: Dear Farmiani > De : farimani > Envoy? : jeudi 21 mars 2019 09:56 > > Like it or not Well like it or not, I can't figure an editor without an official mailing list, which is the present one for Scilab. This is far different from languages that have several implementations and where users are not customers of a specific editor. Reddit and StackOverflow/StackExchange are great tools for Python/NumPy for example. This is not the case here because although it is free, there is only one editor for Scilab. Now people are free of course to question and answer where they like but as the community of users is also the community of customers of the editor, and as this mailing list is also the place to reach the developers, Samuel and others (like me) do post on this mailing list. And our days only have 24 hours amongst which we have sleeping time, commuting time, labour time, free time, not all of us are able to watch over multiple communication channels. But we all read your call and everyone here will decide for themselves. Thank you for the interest you have for Scilab and for your efforts to promote it, sorry if only few of us can contribute elsewhere than here. Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer General 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 fmiyara at fceia.unr.edu.ar Thu Mar 21 13:09:18 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Thu, 21 Mar 2019 09:09:18 -0300 Subject: [Scilab-users] Where is the best place for Scilab - xcos / ScicosLab - scicos questions and bug report? In-Reply-To: <7ec5d779-f55f-2752-20d5-df1baaa5c9f4@free.fr> References: <1550825509208-0.post@n3.nabble.com> <50009395-1043-10ba-f897-72a2bb134dac@free.fr> <1552257621296-0.post@n3.nabble.com> <7ec5d779-f55f-2752-20d5-df1baaa5c9f4@free.fr> Message-ID: <5C937EEE.3020808@fceia.unr.edu.ar> I think we must say a big "thank you" to the developers and maintainers of such a great program as Scilab, which has in addition such a great official support system. While it is important that other sites are contributing to its spread, we cannot really ask official supporters be omnipresent in all discussions on Scilab worldwide. Federico Miyara On 10/03/2019 21:10, Samuel Gougeon wrote: > Le 10/03/2019 ? 23:40, farimani a ?crit : >> It would be nice if you could also be more present on Reddit: >> >> https://www.reddit.com/search?q=scilab&sort=new >> >> and StackOverflow: >> >> https://stackoverflow.com/questions/tagged/scilab?sort=newest >> >> those are the places where most people go for their questions. I have >> tried >> my best to answer as many questions as I can but my knowledge of >> Scilab is >> embarrassingly limited. > > I have no reason to spread and dilute contributions on many sites. > To answer the same questions in several places. > Already, IMO there are too many official Scilab lists. Most of them > are almost dead. > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > From fmiyara at fceia.unr.edu.ar Sun Mar 24 03:27:10 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Sat, 23 Mar 2019 23:27:10 -0300 Subject: [Scilab-users] cannot get polarplot to graph a decent windrose In-Reply-To: <8AFE7C27-D8DF-4852-853B-735F394281B0@me.com> References: <55794E69-BD46-437C-86A7-70D38A079B1A@me.com> <5C96A84B.9010406@fceia.unr.edu.ar> <8AFE7C27-D8DF-4852-853B-735F394281B0@me.com> Message-ID: <5C96EAFE.9040209@fceia.unr.edu.ar> Heinz, > gca().rotation_angles = [180 0] is perfect for me. 270? West is > correctly on the left hand side ! > > But I get a mess with a multiple plot.....I want the degrees only at > the outermost circle > Heinz > > for i=1:6; .. > polarplot(theta,MM(:,i),style=i); ... > end; > gca().rotation_angles = [180 0] Sorry, I don't know how to fix that elegantly... except a brute force method. Try the following. Take as an example with two graphs: clf x = (0:360)/180*%pi; y = 0.5*(1 + cos(x)); z = 0.375 + 0.675*cos(x); polarplot(x,z) polarplot(x,y) Then, gca().children yields ans = 70 by 1 matrix of handles: ========================== Text Segs Text Segs (...) I pressume that there are 70 "children" (any subordinated object) whose handles are organized as a matrix (or rather a column vector...), so I retrieve their handles writing gca().children(n) where n is a number between 1 and 70. They should contain some interesting properties. For instance: gca().children(1) yields Handle of type "Text" with properties: ====================================== parent: Axes children: [] visible = "on" text = "330" alignment = "left" (...) The "330" suggests this property is which controls at least one of both (in my case) 330's, so gca().children(1).visible = "off" should make it invisible... and it does! Then you could create a loop varying n so to make them all disappear. As a previous task, check which graph reaches the maximum and draw it at the end, so that you remove all the degree marks up to the graph before the last one. I'm sure there must be a better way to do this, but in the emergency it might do the job. If you find a better solution, please comment it. Federico Miyara On 23/03/2019 19:59, Heinz Nabielek wrote: > gca().rotation_angles = [180 0] is perfect for me. 270? West is > correctly on the left hand side ! > > But I get a mess with a multiple plot.....I want the degrees only at > the outermost circle > Heinz > > for i=1:6; .. > polarplot(theta,MM(:,i),style=i); ... > end; > gca().rotation_angles = [180 0] --- El software de antivirus Avast ha analizado este correo electr?nico en busca de virus. https://www.avast.com/antivirus -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sun Mar 24 13:31:28 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 24 Mar 2019 13:31:28 +0100 Subject: [Scilab-users] cannot get polarplot to graph a decent windrose In-Reply-To: <5C96EAFE.9040209@fceia.unr.edu.ar> References: <55794E69-BD46-437C-86A7-70D38A079B1A@me.com> <5C96A84B.9010406@fceia.unr.edu.ar> <8AFE7C27-D8DF-4852-853B-735F394281B0@me.com> <5C96EAFE.9040209@fceia.unr.edu.ar> Message-ID: <0ee0b114-e3ff-3c40-d1c3-62e84f068067@free.fr> Hello, Le 24/03/2019 ? 03:27, Federico Miyara a ?crit : > > Heinz, > >> gca().rotation_angles = [180 0] is perfect for me. 270? West is >> correctly on the left hand side ! >> >> But I get a mess with a multiple plot.....I want the degrees only at >> the outermost circle >> Heinz >> >> for i=1:6; .. >> polarplot(theta,MM(:,i),style=i); ... >> end; >> gca().rotation_angles = [180 0] Where is the original message, and what's the original request and its context? I have not received it and it is not archived for any Scilab mailing list. It's not possible to use polarplot() in overplotting mod e. The only way to plot several curves in polar mode is to use matrices as input, as for the plot() and plot2d() functions, and as illustrated in some polarplot() examples. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From heinznabielek at me.com Sun Mar 24 16:18:33 2019 From: heinznabielek at me.com (Heinz Nabielek) Date: Sun, 24 Mar 2019 16:18:33 +0100 Subject: [Scilab-users] cannot get polarplot to graph a decent windrose In-Reply-To: <0ee0b114-e3ff-3c40-d1c3-62e84f068067@free.fr> References: <55794E69-BD46-437C-86A7-70D38A079B1A@me.com> <5C96A84B.9010406@fceia.unr.edu.ar> <8AFE7C27-D8DF-4852-853B-735F394281B0@me.com> <5C96EAFE.9040209@fceia.unr.edu.ar> <0ee0b114-e3ff-3c40-d1c3-62e84f068067@free.fr> Message-ID: <096416C5-2759-4B41-82C9-8F677D8A4E0D@me.com> First polarplot problem was to put 0 on top and 90? to the right. This problem was solved by Federico using gca().rotation_angles = [180 0] x = (0:360)/180*%pi; y = 0.5*(1 + cos(x)); polarplot(x, y) gca().rotation_angles = [180 0] ______ Second problem: > plot several curves in polar mode is to use matrices as input, as for the plot() and plot2d() functions does not work.... x = (0:360)'/180*%pi; z=[(0.5*(1 + cos(x))) (0.5+(1 + cos(x)))]; polarplot(x,z); produces the ERROR MESSAGE > at line 18 of function polarplot ( /Applications/scilab-6.0.2.app/Contents/MacOS/share/scilab/modules/graphics/macros/polarplot.sci line 31 ) > Inconsistent row/column dimensions. _________________ Third: solving my problem with polarplot(x,z(:,1),style=1);polarplot(x',z(:,2),style=5); gives me two polarplot curves, but messes up the diagram with twice writing out all angles and all function scales which I do not want. And: gca().children(2).visible = "off" does not help it either. So, I am still stuck with problem #2 and problem #3 and help would be appreciated. Heinz > On 24.03.2019, at 13:31, Samuel Gougeon wrote: > > Hello, > > Le 24/03/2019 ? 03:27, Federico Miyara a ?crit : >> >> Heinz, >> >>> gca().rotation_angles = [180 0] is perfect for me. 270? West is correctly on the left hand side ! >>> >>> But I get a mess with a multiple plot.....I want the degrees only at the outermost circle >>> Heinz >>> >>> for i=1:6; .. >>> polarplot(theta,MM(:,i),style=i); ... >>> end; >>> gca().rotation_angles = [180 0] > > Where is the original message, and what's the original request and its context? > I have not received it and it is not archived for any Scilab mailing list. > > It's not possible to use polarplot() in overplotting mode. > > The only way to plot several curves in polar mode is to use matrices as input, as for the plot() and plot2d() functions, and as illustrated in some polarplot() examples. > > Samuel From fmiyara at fceia.unr.edu.ar Sun Mar 24 23:44:04 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Sun, 24 Mar 2019 19:44:04 -0300 Subject: [Scilab-users] cannot get polarplot to graph a decent windrose In-Reply-To: <55794E69-BD46-437C-86A7-70D38A079B1A@me.com> References: <55794E69-BD46-437C-86A7-70D38A079B1A@me.com> Message-ID: <5C980834.3000502@fceia.unr.edu.ar> Heinz, This example shows how to plot multiple graphs and rotate the plot: // Generate angles x = (0:360)/180*%pi; // Generate two directional patterns y = 0.5*(1 + cos(x)); z = 0.5 + 0.5*(1 + cos(x)); // Just in case clear figure clf // Plot both patterns polarplot(kron(1:2,x'),[y' z'], [1 2]) // Rotate 90? the polar plot gca().rotation_angles = [0 180]; The documentation for polarplot (https://help.scilab.org/docs/6.0.2/en_US/polarplot.html) seems to be incomplete, since the description indicates that rho and theta are vectors of the same size, but it does not mention, except tacitly in example 2, that they can be also matrices of equal size, whose homologous columns are theta-rho pairs. The third argument refers to line style, and usually is 1:n where n is the number of columns (graphs). There is also a difference with plot, which allows that the first argument be either a single vector containing the x data for all the graphs, while the second argument may be a vector for a single graph or a matrix for several graphs sharing the same x data. The rotation statement uses the figure handle properties. gca() refers to the current axes, and gca().rotation_angles refers to the rotation property, which by default is [0 270]. [0 180] rotates it so that 0? is on the top. Finally, you can change the text in the peripheral scale, which by default indicates the angle values. For instance gca().children([23, 5, 11, 17]).text = ["N" "E" "S" "W"]; changes the text properties of the children objects (these refer to the ticks and their labels) 23, 5, 11 and 17 from 0, 270, 180, 90 to the names of the cardinal directions. I don't know how to change easily the number and separation of angular ticks to allow NNE, NE and so on. Federico Miyara On 23/03/2019 13:17, Heinz Nabielek wrote: > Please help: I just cannot get the Scilab "polarplot" to graph a > similar windrose as EXCEL is doing. Mainly as far as the orientation > is concerned.... > Heinz > > > > > > > > --- El software de antivirus Avast ha analizado este correo electr?nico en busca de virus. https://www.avast.com/antivirus -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Mon Mar 25 12:17:05 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 25 Mar 2019 12:17:05 +0100 Subject: [Scilab-users] cannot get polarplot to graph a decent windrose In-Reply-To: <096416C5-2759-4B41-82C9-8F677D8A4E0D@me.com> References: <55794E69-BD46-437C-86A7-70D38A079B1A@me.com> <5C96A84B.9010406@fceia.unr.edu.ar> <8AFE7C27-D8DF-4852-853B-735F394281B0@me.com> <5C96EAFE.9040209@fceia.unr.edu.ar> <0ee0b114-e3ff-3c40-d1c3-62e84f068067@free.fr> <096416C5-2759-4B41-82C9-8F677D8A4E0D@me.com> Message-ID: <8bbd188c-2582-95f7-497b-9a105d7921e6@free.fr> Hello Heinz, Le 24/03/2019 ? 16:18, Heinz Nabielek a ?crit : > First polarplot problem was to put 0 on top and 90? to the right. This problem was solved by Federico using gca().rotation_angles = [180 0] > > x = (0:360)/180*%pi; > y = 0.5*(1 + cos(x)); > polarplot(x, y) > gca().rotation_angles = [180 0] Yes, this is the trick. It work since Scilab 6.0.2. Before, labels were shifted when rotating the axes. This was recently corrected in order to use this trick. It is now being documented . > ______ > Second problem: >> plot several curves in polar mode is to use matrices as input, as for the plot() and plot2d() functions > does not work.... > x = (0:360)'/180*%pi; > z=[(0.5*(1 + cos(x))) (0.5+(1 + cos(x)))]; > polarplot(x,z); > > produces the ERROR MESSAGE >> at line 18 of function polarplot ( /Applications/scilab-6.0.2.app/Contents/MacOS/share/scilab/modules/graphics/macros/polarplot.sci line 31 ) >> Inconsistent row/column dimensions. To be reported. This occurs since the first ages of Scilab. This clearly deserves to be fixed. The behavior should be the plot() and plot2d() one. As a workaround before Scilab 6.1.0, the following code may be used: x = (0:360)'/180*%pi; z = [(0.5*(1 + cos(x))) (0.5+(1 + cos(x)))]; polarplot(x*ones(z(1,:)), z) Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: fpjinkeflcnjegfe.png Type: image/png Size: 6859 bytes Desc: not available URL: From sgougeon at free.fr Mon Mar 25 12:32:14 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 25 Mar 2019 12:32:14 +0100 Subject: [Scilab-users] cannot get polarplot to graph a decent windrose In-Reply-To: <8bbd188c-2582-95f7-497b-9a105d7921e6@free.fr> References: <55794E69-BD46-437C-86A7-70D38A079B1A@me.com> <5C96A84B.9010406@fceia.unr.edu.ar> <8AFE7C27-D8DF-4852-853B-735F394281B0@me.com> <5C96EAFE.9040209@fceia.unr.edu.ar> <0ee0b114-e3ff-3c40-d1c3-62e84f068067@free.fr> <096416C5-2759-4B41-82C9-8F677D8A4E0D@me.com> <8bbd188c-2582-95f7-497b-9a105d7921e6@free.fr> Message-ID: <2fc5f8a6-4467-d07f-7b60-d3a1cdda82ce@free.fr> Le 25/03/2019 ? 12:17, Samuel Gougeon a ?crit : > > Le 24/03/2019 ? 16:18, Heinz Nabielek a ?crit : > .../... > __ >> Second problem: >>> plot several curves in polar mode is to use matrices as input, as for the plot() and plot2d() functions >> does not work.... >> x = (0:360)'/180*%pi; >> z=[(0.5*(1 + cos(x))) (0.5+(1 + cos(x)))]; >> polarplot(x,z); >> >> produces the ERROR MESSAGE >>> at line 18 of function polarplot ( /Applications/scilab-6.0.2.app/Contents/MacOS/share/scilab/modules/graphics/macros/polarplot.sci line 31 ) >>> Inconsistent row/column dimensions. > > To be reported. here: http://bugzilla.scilab.org/16019 From Jean-Yves.Baudais at insa-rennes.fr Mon Mar 25 12:50:36 2019 From: Jean-Yves.Baudais at insa-rennes.fr (Jean-Yves Baudais) Date: Mon, 25 Mar 2019 12:50:36 +0100 Subject: [Scilab-users] Sprintf and Italic font. In-Reply-To: <558451214.5862215.1552870569957@mail.yahoo.com> References: <558451214.5862215.1552870569957.ref@mail.yahoo.com> <558451214.5862215.1552870569957@mail.yahoo.com> Message-ID: Hi, Le 18/03/2019 ? 01:56, Marcus Vinicius Pereira de Souza a ?crit?: > Kindly, I am generating a graphic and would like some information in the > title to be in italics. Can someone help me? By way of illustration, see > the script below > [...] > a.x_label.text = "$t(s)$" > a.y_label.text = "$y(t)$" With $ you write LaTeX expression. > title(sprintf('y(t) = -%0.2f exp(-0.5t)\ + %0.2f cos(4t)\ + %0.2f > sin(4t) ',kp1,kp1,kp2)) Then, use $ in sprintf title(sprintf('$y(t) = -%0.2f exp(-0.5t)\ + %0.2f cos(4t)\ + %0.2f sin(4t)$',kp1,kp1,kp2)) Br, Jean-Yves Baudais From Antoine1997b at hotmail.fr Tue Mar 26 14:46:41 2019 From: Antoine1997b at hotmail.fr (Antoine97) Date: Tue, 26 Mar 2019 06:46:41 -0700 (MST) Subject: [Scilab-users] Help with the "From Workspace" block in xcos Message-ID: <1553608001752-0.post@n3.nabble.com> I'm trying to simulate a simple discrete system with xcos. My source is a PRBS that i defined in a scinote file. I use others variables from the same scinote file on this system and they are all accepted by xccos, but when i use the block "From Workspace" to simulate my PRBS, the console tells me this variable doesn't exist. I've tried declaring simpler variables but they are still not recognised... -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From f.s.farimani at gmail.com Tue Mar 26 21:02:42 2019 From: f.s.farimani at gmail.com (farimani) Date: Tue, 26 Mar 2019 13:02:42 -0700 (MST) Subject: [Scilab-users] Where is the best place for Scilab - xcos / ScicosLab - scicos questions and bug report? In-Reply-To: <1550825509208-0.post@n3.nabble.com> References: <1550825509208-0.post@n3.nabble.com> Message-ID: <1553630562673-0.post@n3.nabble.com> I would like to thank St?phane Mottelet for taking the initiative and being present on StackOverflow. Thanks to his support now almost all new questions there have proper answers from a professional: https://stackoverflow.com/questions/tagged/scilab I know it is too much work while basically the whole Scilab project is being handled by 3 core developers at this moment. Thanks to his support we see more people encouraged to use the software and this hopefully will stimulate a positive momentum. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From stephane.mottelet at utc.fr Wed Mar 27 08:26:32 2019 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Wed, 27 Mar 2019 08:26:32 +0100 Subject: [Scilab-users] Where is the best place for Scilab - xcos / ScicosLab - scicos questions and bug report? In-Reply-To: <1553630562673-0.post@n3.nabble.com> References: <1550825509208-0.post@n3.nabble.com> <1553630562673-0.post@n3.nabble.com> Message-ID: <4e2279e1-c4ed-3678-dd75-98269da51084@utc.fr> Le 26/03/2019 ? 21:02, farimani a ?crit?: > I would like to thank St?phane Mottelet for taking the initiative and being > present on StackOverflow. Thanks to his support now almost all new questions > there have proper answers from a professional: My personal experience is that the traffic on users at lists.scilab.org is mostly composed of messages from rather experienced users talking to each other. On the other hand, on? StackOverflow I see messages of newcomers who don't even know the existence of an official mailing list. I think we should fix this. But how ? > > https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/stackoverflow.com/questions/tagged/scilab > > I know it is too much work while basically the whole Scilab project is being > handled by 3 core developers at this moment. I must say that I am not one of these... > Thanks to his support we see > more people encouraged to use the software and this hopefully will stimulate > a positive momentum. As I already said above, I am not sure that answering questions on StackOverflow is a good idea. I am not saying that users at lists.scilab.org shoud be the ONLY place but competent persons are more easily reached there. S. > > > > -- > Sent from: https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users From Christophe.Dang at sidel.com Wed Mar 27 08:47:28 2019 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Wed, 27 Mar 2019 07:47:28 +0000 Subject: [Scilab-users] Where is the best place for Scilab - xcos / ScicosLab - scicos questions and bug report? Message-ID: Hello, > De : St?phane Mottelet > Envoy? : mercredi 27 mars 2019 08:27 > > on StackOverflow I see messages of newcomers who > don't even know the existence of an official mailing list. > I think we should fix this. But how ? The information is already present at the bottom of the welcome page of the inline help. It is obviously not enough. I suggest the "Documentation and help" section should be at the top and should contain the link to the list (it is in the "Other ressources" section). I don't know if there is a "Tip" box that shows up (I there is one, I deactivated it for a long time :-) ) but it could/should be there to. Shall we fill in a wishlist? -- Christophe Dang Ngoc Chan Mechanical calculation engineer General 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 Karoli at greenae.org Wed Mar 27 09:20:33 2019 From: Karoli at greenae.org (karoli) Date: Wed, 27 Mar 2019 01:20:33 -0700 (MST) Subject: [Scilab-users] non linear optimization why produce Nan Message-ID: <1553674833584-0.post@n3.nabble.com> hello team why my optimization produce an Nan result, any help [fd,SST,Sheetnames,Sheetpos]=xls_open('D:\MAG2.xls') [Value,TextInd]=xls_read(fd,Sheetpos(1)) y=45 i=33 p0=[53.8;1527;43.7;55.7;3424.7] function T= dyke(p,Value, i, y) h =1.0 - cosd( y )^2*sind( i )^2 I= atand( tand( i )./sind( y ) ) O=2*I - p(1) //P(1) = dip of the dyke(?) O is degree q1 = atand ( (( Value(:,1)-p(2)) - p(3) )./p(4) ) q2 = atand ( (( Value(:,1)-p(2)) + p(3) )./p(4) ) //p(2) = horizontal location of the centre of top of dyke model, p(3)= the half width of dyke, p(4) = the depth to top of the model ,q1 and q2 are degrees Q = q1 - q2 A=%pi*Q./180 // convertion to radisn r1 = sqrt ( p(4)^2 + ((Value(:,1)-p(2))-p(3))^2 ) r2 = sqrt ( p(4)^2 + ((Value(:,1)-p(2))+p(3))^2 ) R=r1./r2 T = 2*h*p(5)*sind(p(1))*( sind(O)*A - cosd(O)*log(R)) //P(5) the intesity of magnetisation endfunction function e=dyke_error(p,Value, i, y) e= dyke(p,Value, i, y)-Value(:,2) endfunction. ->[f,p,g]=leastsq(dyke_error,p0) g = Nan Nan Nan Nan Nan p = 53.8 1527. 43.7 55.7 3424.7 f = Nan -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From stephane.mottelet at utc.fr Wed Mar 27 09:33:03 2019 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Wed, 27 Mar 2019 09:33:03 +0100 Subject: [Scilab-users] non linear optimization why produce Nan In-Reply-To: <1553674833584-0.post@n3.nabble.com> References: <1553674833584-0.post@n3.nabble.com> Message-ID: Helllo, Start by testing your residual function *alone* with inital value of your parameters --> dyke_error(p0,Value, i, y) S. Le 27/03/2019 ? 09:20, karoli a ?crit?: > hello team > why my optimization produce an Nan result, any help > > > [fd,SST,Sheetnames,Sheetpos]=xls_open('D:\MAG2.xls') > [Value,TextInd]=xls_read(fd,Sheetpos(1)) > > y=45 > i=33 > p0=[53.8;1527;43.7;55.7;3424.7] > > function T= dyke(p,Value, i, y) > h =1.0 - cosd( y )^2*sind( i )^2 > I= atand( tand( i )./sind( y ) ) > O=2*I - p(1) //P(1) = dip of the dyke(?) O is degree > q1 = atand ( (( Value(:,1)-p(2)) - p(3) )./p(4) ) > q2 = atand ( (( Value(:,1)-p(2)) + p(3) )./p(4) ) //p(2) = horizontal > location of the centre of top of dyke model, p(3)= the half width of dyke, > p(4) = the depth to top of the model ,q1 and q2 are degrees > Q = q1 - q2 > A=%pi*Q./180 // convertion to radisn > r1 = sqrt ( p(4)^2 + ((Value(:,1)-p(2))-p(3))^2 ) > r2 = sqrt ( p(4)^2 + ((Value(:,1)-p(2))+p(3))^2 ) > R=r1./r2 > T = 2*h*p(5)*sind(p(1))*( sind(O)*A - cosd(O)*log(R)) //P(5) the > intesity of magnetisation > endfunction > > function e=dyke_error(p,Value, i, y) > e= dyke(p,Value, i, y)-Value(:,2) > endfunction. > > ->[f,p,g]=leastsq(dyke_error,p0) > g = > > Nan > Nan > Nan > Nan > Nan > p = > > 53.8 > 1527. > 43.7 > 55.7 > 3424.7 > f = > > Nan > > > > > -- > Sent from: https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users From sgougeon at free.fr Wed Mar 27 09:54:15 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 27 Mar 2019 09:54:15 +0100 Subject: [Scilab-users] Where is the best place for Scilab - xcos / ScicosLab - scicos questions and bug report? In-Reply-To: References: Message-ID: Le 27/03/2019 ? 08:47, Dang Ngoc Chan, Christophe a ?crit : > Hello, > >> De : St?phane Mottelet >> Envoy? : mercredi 27 mars 2019 08:27 >> >> on StackOverflow I see messages of newcomers who >> don't even know the existence of an official mailing list. >> I think we should fix this. But how ? > The information is already present at the bottom of the welcome page of the inline help. > > It is obviously not enough. > > I suggest the "Documentation and help" section should be at the top > and should contain the link to the list > (it is in the "Other ressources" section). I agree. With Octave, main links are displayed in the ASCII banner at the startup. With Scilab, all things are in the "?" main menu. This menu could be improved: * first, it could be renamed more explicitly, for instance "Info" instead of "?" * second: it should be updated: o AFAIK, "Scilab enterprises" no longer exists. BTW, the main thing is to point to the "Scilab portal". o All goodies that are not already reachable through the toolbar are hidden in the "Links" submenu. BTW, the "Mailing lists" URL is outdated and leads to a 404 error. o A "Subscribe to Help lists" item could be added in the main list (not as a Link). It could display the "How to subscribe" information in the console. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Mar 27 10:10:15 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 27 Mar 2019 10:10:15 +0100 Subject: [Scilab-users] Where is the best place for Scilab - xcos / ScicosLab - scicos questions and bug report? In-Reply-To: References: Message-ID: Le 27/03/2019 ? 08:47, Dang Ngoc Chan, Christophe a ?crit : > Hello, > >> De : St?phane Mottelet >> Envoy? : mercredi 27 mars 2019 08:27 >> >> on StackOverflow I see messages of newcomers who >> don't even know the existence of an official mailing list. >> I think we should fix this. But how ? > The information is already present at the bottom of the welcome page of the inline help. > > It is obviously not enough. > > I suggest the "Documentation and help" section should be at the top > and should contain the link to the list > (it is in the "Other ressources" section). Still about this help page: Unfortunately, it is not reachable from the online help. Yet, this page is interesting since it gathers pointers to many key ressources, while these pointers are spread in all menus/pages of the Scilab portal. [As well, the CHANGES page is hardly reachable: We have to type "CHANGES" in the search engine to get the page selected and displayed.] Samuel From heinznabielek at me.com Wed Mar 27 21:37:27 2019 From: heinznabielek at me.com (Heinz Nabielek) Date: Wed, 27 Mar 2019 21:37:27 +0100 Subject: [Scilab-users] =?utf-8?q?22=2E5=C2=B0_ray_separations_in_polarplo?= =?utf-8?q?t?= Message-ID: <5DC3B48A-B43E-4456-9E8A-BE7D111FC042@me.com> Friends and colleagues: Scilab polarplot does a great job displaying my 155,508 measured data pairs wind direction/ wind speed in a split second( while MS Excel is petrified) to make a great wind rose. One concern: I would like to change the default 30? ray separation into 22.5? separations to indicate N, NNE, NE, ENE, E .... directions. How can I do that? Best greetings Heinz From fmiyara at fceia.unr.edu.ar Thu Mar 28 04:14:08 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Thu, 28 Mar 2019 00:14:08 -0300 Subject: [Scilab-users] =?utf-8?q?22=2E5=C2=B0_ray_separations_in_polarplo?= =?utf-8?q?t?= In-Reply-To: <5DC3B48A-B43E-4456-9E8A-BE7D111FC042@me.com> References: <5DC3B48A-B43E-4456-9E8A-BE7D111FC042@me.com> Message-ID: <5C9C3C00.3020208@fceia.unr.edu.ar> Heinz, VERY LONG :) I've found that the gca() (get current axes) handle allows to see and control many properties. First run this example: x = (0:360)/180*%pi; y = 0.5*(1 + cos(x)); z = 0.5 + 0.5*(1 + cos(x)); clf polarplot([x' x'],[y' z'],[1 2]) Entering gca() one of the entities included in the handle are the children. Among much other information there is children: matrix 34x1. With gca().children you get a hint. The answer is: 34 by 1 matrix of handles: ========================== Text Segs Text Segs (...) Text Arc Compound Exactly 34 rows. Yo can see what's inside any one of them by means of, for instance, gca().children(1) The answer starts Handle of type "Text" with properties: ====================================== parent: Axes children: [] visible = "on" text = "330" alignment = "left" data = [1.3825602,-0.7982215,0] (...) This says it has a "parent" Axes (it is logical, since this is one of the "children" of the current axes), no children (no subordinated structure), it is visible, its text is "330", it is lefy aligned, and its coordinates are (x,y,z) = [1.3825602,-0.7982215,0] They can be retrieved as a variable by means of gca().children(1).data It is easy to check that these coordinates represent an angle of 330? and a radius slightly larger than the radius of the polar plot border circumference (by simple inspection, 1.5). This radius can be calculated as Rtext = sqrt(sum(gca().children(1).data.^2)) One can change the position and the text to be displayed, for instance, to locate the text "NNE" at -22.5?, theta = -22.5/180*%pi; gca().children(1).data = Rtext*[cos(theta), sin(theta), 0]; gca().children(1).text = "NNE"; Next is to control the radial lines. These are in children(2). Typing gca().children(2) gives the following answer: Handle of type "Segs" with properties: ====================================== parent: Axes children: [] visible = "on" data = [0,0,0;1.3858193,-0.5740251,0] line_mode = "on" (...) The field data represent the coordinates of the extremes of the radial lines: 0. 0. 0. 1.3858193 -0.5740251 0. so the radius is the length: A = gca().children(2).data; R = sqrt((A(2, :)- A(1, :)).^2); You can modify the angle this way: theta = -22.5/180*%pi; gca().children(2).data(2, :) = R * [cos(theta), R*sin(theta), 0]; This can be repeated with other children, for instance children(3) contains the second text and children(4) the second radial line. Most of this information can be discovered typing apropos entities which leads to the graphic entities help. It is very ramified and very long, but it is worth it... There is stil a problem I could not solve, i.e., there are only 24 children, corresponding 12 to text and 12 to radius, and for a windrose you need 16 of each. The other children correspond to the circumference arcs of the rho grid of the polar plot. I don't know how to add or insert more children to the graphic handle... One possible way (very risky, ensure you make a backup first or work with a different function name) is try to find the source for the function polarplot and see where is the definition of the number of labels and try to customize the function. Regards, Federico Miyara On 27/03/2019 17:37, Heinz Nabielek wrote: > Friends and colleagues: > > Scilab polarplot does a great job displaying my 155,508 measured data pairs wind direction/ wind speed in a split second( while MS Excel is petrified) to make a great wind rose. > > One concern: I would like to change the default 30? ray separation into 22.5? separations to indicate N, NNE, NE, ENE, E .... directions. > > How can I do that? > > Best greetings > Heinz > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > --- El software de antivirus Avast ha analizado este correo electr?nico en busca de virus. https://www.avast.com/antivirus From sgougeon at free.fr Thu Mar 28 06:39:31 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 28 Mar 2019 06:39:31 +0100 Subject: [Scilab-users] =?utf-8?q?22=2E5=C2=B0_ray_separations_in_polarplo?= =?utf-8?q?t?= In-Reply-To: <5DC3B48A-B43E-4456-9E8A-BE7D111FC042@me.com> References: <5DC3B48A-B43E-4456-9E8A-BE7D111FC042@me.com> Message-ID: <7957e695-2aa1-fa4e-5801-8f3911c4c83a@free.fr> Le 27/03/2019 ? 21:37, Heinz Nabielek a ?crit : > Friends and colleagues: > > Scilab polarplot does a great job displaying my 155,508 measured data pairs wind direction/ wind speed in a split second( while MS Excel is petrified) to make a great wind rose. > > One concern: I would like to change the default 30? ray separation into 22.5? separations to indicate N, NNE, NE, ENE, E .... directions. > > How can I do that? edit polarplot 246 // on line 246, replace eA=30 with eA=22.5 re-exec polarplot.sci, and then use it. This angular step could become an input option in a next version. Samuel From f.s.farimani at gmail.com Thu Mar 28 09:23:13 2019 From: f.s.farimani at gmail.com (farimani) Date: Thu, 28 Mar 2019 01:23:13 -0700 (MST) Subject: [Scilab-users] Where is the best place for Scilab - xcos / ScicosLab - scicos questions and bug report? In-Reply-To: <4e2279e1-c4ed-3678-dd75-98269da51084@utc.fr> References: <1550825509208-0.post@n3.nabble.com> <1553630562673-0.post@n3.nabble.com> <4e2279e1-c4ed-3678-dd75-98269da51084@utc.fr> Message-ID: <1553761393957-0.post@n3.nabble.com> Dear St?phane, It will certainly help to point more new users to this mailing list. However I would argue that it is not just a matter of knowing this place but if this place is attractive enough for new-comers: 1. Many users already have StackOverflow accounts and they don't have to go through another registration process, which unfortunately is not very easy on different Scilab related websites (e.g. ATOMS) 2. One StackOverflow I can use MarkDown / HTML to format my question / answer nicely, include images ... 3. Some employees noways check the StackOverflow profiles. So it is a motivation for many young generation to have a nice profile. in fact this seems to be the reason why Python community is boosting up so fast. please consider that I'm not saying this mailing list should be abandoned nor replaced. I'm just saying a significant portion of Scilab users are seeking help and ignoring them would not be beneficial for the community. on a side note this Google group also deserves some attention: https://groups.google.com/forum/#!forum/comp.soft-sys.math.scilab some questions are asked there with no proper answers. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From f.s.farimani at gmail.com Thu Mar 28 09:33:24 2019 From: f.s.farimani at gmail.com (farimani) Date: Thu, 28 Mar 2019 01:33:24 -0700 (MST) Subject: [Scilab-users] xcos summation block doesn't work properly In-Reply-To: <96d334d5-b465-4ca0-1617-ee827b818796@free.fr> References: <1550591815845-0.post@n3.nabble.com> <983069f3-618c-75da-af3e-26368102aa25@free.fr> <1552257468509-0.post@n3.nabble.com> <96d334d5-b465-4ca0-1617-ee827b818796@free.fr> Message-ID: <1553762004431-0.post@n3.nabble.com> Dear Samuel, My apologies for the late reply. I don't get any email notifications and I can't find the option! I hope you don't mind me saying that I think relying only on binary distribution is a bad practice. Many users do not bother updating, missing many new features and bug fixes. Moreover, when setting up a new system it is a hassle to install all the software manually. Of course as soon as I learn Chocolatey packaging I will try to help. but in the meantime I would like to urge the Scilab core developers to invest in package managers. Fow example take a look at Repology query for Scilab: https://repology.org/projects/?search=scilab&maintainer=&category=&inrepo=¬inrepo=&repos=&families=&repos_newest=&families_newest= improving these would boost our user-base significantly IMHO. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From p.muehlmann at gmail.com Thu Mar 28 10:55:29 2019 From: p.muehlmann at gmail.com (P M) Date: Thu, 28 Mar 2019 10:55:29 +0100 Subject: [Scilab-users] =?utf-8?q?22=2E5=C2=B0_ray_separations_in_polarplo?= =?utf-8?q?t?= In-Reply-To: <7957e695-2aa1-fa4e-5801-8f3911c4c83a@free.fr> References: <5DC3B48A-B43E-4456-9E8A-BE7D111FC042@me.com> <7957e695-2aa1-fa4e-5801-8f3911c4c83a@free.fr> Message-ID: ...well you always can kind of rebuild the polarplot. See example below, Best regard, Philipp clc;clear();x = (0:360)/180*%pi;y = 0.5*(1 + cos(x));z = 0.5 + 0.5*(1 + cos(x));clfpolarplot([x' x'],[y' z'],[1 2]) a = gca();// clear old scale...first 24 entries we want to change//24 = 12x text + 12x lines// you need to check if this is true for the actual polarplot you want to changefor(i=1:24) delete(a.children(1))end// play with data bounds to keep all labels visible in the grapha.data_bounds = [-2,-2;2,2];// angle spacing = 22.5?alphaStep = 22.5 // [?]rL=1.6; // Radius of labels // rebuild the radial linesr = 1.5 // is the radius of the outer circlecount = 0;for(i = 1:360/alphaStep) alpha = count * alphaStep; x = cosd(alpha) * r ; y = sind(alpha) * r ; xsegs([0 x],[0 y], 0); e = gce(); e.line_style = 8; // defines the linestyle count = count + 1;end // rebuild the labelscount = 0;for(i = 1:360/alphaStep) alpha = count * alphaStep; // get the length of the actual label tmp=xstringl(0,0,string(alpha)+'?') // or without the '?' sign w=tmp(3) h=tmp(4) xstring((rL+w/2)*cosd(alpha)-w/2, (rL+h/2)*sind(alpha)-h/2, string(alpha)+'?') // or without the '?' sign count = count + 1;end Am Do., 28. M?rz 2019 um 06:39 Uhr schrieb Samuel Gougeon : > Le 27/03/2019 ? 21:37, Heinz Nabielek a ?crit : > > Friends and colleagues: > > > > Scilab polarplot does a great job displaying my 155,508 measured data > pairs wind direction/ wind speed in a split second( while MS Excel is > petrified) to make a great wind rose. > > > > One concern: I would like to change the default 30? ray separation into > 22.5? separations to indicate N, NNE, NE, ENE, E .... directions. > > > > How can I do that? > > edit polarplot 246 > // on line 246, replace eA=30 with eA=22.5 > re-exec polarplot.sci, and then use it. > > This angular step could become an input option in a next version. > > 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 Thu Mar 28 20:11:06 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 28 Mar 2019 20:11:06 +0100 Subject: [Scilab-users] Where is the best place for Scilab - xcos / ScicosLab - scicos questions and bug report? In-Reply-To: <1553761393957-0.post@n3.nabble.com> References: <1550825509208-0.post@n3.nabble.com> <1553630562673-0.post@n3.nabble.com> <4e2279e1-c4ed-3678-dd75-98269da51084@utc.fr> <1553761393957-0.post@n3.nabble.com> Message-ID: <760f561f-0a92-f1b0-a788-1ae969da49e9@free.fr> Le 28/03/2019 ? 09:23, farimani a ?crit : > .../... > > 2. One StackOverflow I can use MarkDown / HTML to format my question / > answer nicely, include images ... Markdown / HTML tagging are definitely not handy. With my mailing sofware (Thunderbird), styling the text or including inline images in any message is straightforward, just as with an enriched text editor: select the text / apply the style | itemized or ordered lists, and that's it. Same thing to create a table, add or delete or select a column|row, etc. Very hopefully i don't need any tag to do such stuff. Just as easy as in OpenWriter. Samuel From f.s.farimani at gmail.com Thu Mar 28 22:09:20 2019 From: f.s.farimani at gmail.com (farimani) Date: Thu, 28 Mar 2019 14:09:20 -0700 (MST) Subject: [Scilab-users] Scipad can't open ascii file? In-Reply-To: <001c01ca4547$fb8c4930$6a01a8c0@toshibauser> References: <001c01ca4547$fb8c4930$6a01a8c0@toshibauser> Message-ID: <1553807360708-0.post@n3.nabble.com> I had a similar issue with ScicosLab. error log: invalid command name ".scipad.new3" invalid command name ".scipad.new3" while executing "$ta peer names" (procedure "getpeerlist" line 14) invoked from within "getpeerlist $ta" (procedure "filteroutpeers" line 16) invoked from within "filteroutpeers $listoftextarea" (procedure "checkifanythingchangedondisk" line 40) invoked from within "checkifanythingchangedondisk .scipad" (command bound to event) ScicoLab-4.4.2 on Windows 10 I have already emailed the issue to support at scicoslab.org -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From stephane.mottelet at utc.fr Fri Mar 29 04:43:28 2019 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Fri, 29 Mar 2019 04:43:28 +0100 Subject: [Scilab-users] Scipad can't open ascii file? In-Reply-To: <1553807360708-0.post@n3.nabble.com> References: <001c01ca4547$fb8c4930$6a01a8c0@toshibauser> <1553807360708-0.post@n3.nabble.com> Message-ID: Sorry, This list is definitively not about ScicosLab. S. Le 28/03/2019 ? 22:09, farimani a ?crit?: > I had a similar issue with ScicosLab. error log: > > > > > invalid command name ".scipad.new3" > invalid command name ".scipad.new3" > while executing > "$ta peer names" > (procedure "getpeerlist" line 14) > invoked from within > "getpeerlist $ta" > (procedure "filteroutpeers" line 16) > invoked from within > "filteroutpeers $listoftextarea" > (procedure "checkifanythingchangedondisk" line 40) > invoked from within > "checkifanythingchangedondisk .scipad" > (command bound to event) > > ScicoLab-4.4.2 on Windows 10 > > I have already emailed the issue to support at scicoslab.org > > > > > -- > Sent from: https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users From f.s.farimani at gmail.com Sat Mar 30 19:57:15 2019 From: f.s.farimani at gmail.com (farimani) Date: Sat, 30 Mar 2019 11:57:15 -0700 (MST) Subject: [Scilab-users] A collection of Scilab GUI tutorials Message-ID: <1553972235611-0.post@n3.nabble.com> Dear All, Trying to develop some GUIs for my own projects I realized there could be place to collect some of the available examples on the internet and then add proper explanations for the new users. So I created this repository: https://github.com/Foadsf/ScilabGUItuts given the fact that I'm not a programmer, I was wondering if some of you guys / gals could help me with this. The goals are: - to collect the available examples / samples / tutorials in one place plus proper step by step explanations for novice users - make sure all variants of Scilab including ScicosLab, ScilabGtk and the new forks Nsp / Tumbi, Balisc and Nelson are covered as much as possible. I have tried to change the codes in a way to be cross-compatible between Scilab and ScicosLab with little success so far. - make sure the examples are cross platform (Windows, macOS and Linux...) - to transfer the existing documentation and restructure it to light-weight markup languages such as MarkDown and AsciiDoc to do: - complete the Documentation.adoc - collect more examples - test all the examples and add explanations (so far up to Ex007) - edit the examples to be sure they are compatible with as many Scilab / ScicosLab variants as possible - transfer the MarkDown documentation to AsciiDoc It would be great if you could take a look at it and help me with your feedback and maybe contributions. Best regards, Foad -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From n.strelkov at gmail.com Sat Mar 30 20:34:02 2019 From: n.strelkov at gmail.com (Nikolay Strelkov) Date: Sat, 30 Mar 2019 22:34:02 +0300 Subject: [Scilab-users] A collection of Scilab GUI tutorials In-Reply-To: <1553972235611-0.post@n3.nabble.com> References: <1553972235611-0.post@n3.nabble.com> Message-ID: Dear Foad! At first I should say that your idea is very good. Then I can share a link to GUI programming thread - http://mailinglists.scilab.org/Scilab-users-GUI-programming-td4037452.html#a4037453 Please read it for links and maybe tutorials for your collection. About documentation I can recommend to use Markdown. It may be trasformed to real book in some time. Currenly Markdown books are written with bookdown.org RMarkdown dialect. It can produce even TeX books for publishing (see Bookdown book example ). As an author of very comprehensive GUI for Mathieu Functions Toolbox I can say that Scilab GUI programming is really still poor documented. Wish you good luck! -- *With best regards,Ph.D., * *associate professor at MPEI ,IEEE member,maintainer of Mathieu functions toolbox for Scilab ,Nikolay Strelkov.* -------------- next part -------------- An HTML attachment was scrubbed... URL: From f.s.farimani at gmail.com Sun Mar 31 17:19:08 2019 From: f.s.farimani at gmail.com (farimani) Date: Sun, 31 Mar 2019 08:19:08 -0700 (MST) Subject: [Scilab-users] A collection of Scilab GUI tutorials In-Reply-To: References: <1553972235611-0.post@n3.nabble.com> Message-ID: <1554045548184-0.post@n3.nabble.com> Dear Nikolay, Thanks a lot for your reply: nikolay wrote > At first I should say that your idea is very good. Happy to hear that nikolay wrote > Then I can share a link to GUI programming thread - > http://mailinglists.scilab.org/Scilab-users-GUI-programming-td4037452.html#a4037453 > Please read it for links and maybe tutorials for your collection. I will go through the post in that thread and will add them to the collection. Thanks. nikolay wrote > About documentation I can recommend to use Markdown. It may be trasformed > to real book in some time. Currenly Markdown books are written with > bookdown.org RMarkdown dialect. It can produce even TeX books for > publishing (see Bookdown book example > <https://bookdown.org/yihui/bookdown/> > ). MarkDown is great. The current documentation of the above repository are with the GitHub flavor of MarkDown plus some HTML. The advantage is that the documentation is already rendered on Github and there is not need to have a different website for that... RMarkDown, MultiMarkDown and other flavors of MD are of course way better. But I Opted for AsciiDoc and I think it has a way better support and features. For example see my post here nikolay wrote > As an author of very comprehensive GUI for Mathieu Functions Toolbox That seems like a great piece of work. It would be great if competent people like you could contribute to the repository. nikolay wrote > I can say that Scilab GUI programming is really still poor documented. True. Scilab could benefit a lot from better documentation. As a humble user I do my part to help, hopefully the key members of the community and core developers will support. Best, Foad -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From yann.debray at scilab-enterprises.com Sun Mar 31 20:26:45 2019 From: yann.debray at scilab-enterprises.com (yanndebray) Date: Sun, 31 Mar 2019 11:26:45 -0700 (MST) Subject: [Scilab-users] A collection of Scilab GUI tutorials In-Reply-To: <1554045548184-0.post@n3.nabble.com> References: <1553972235611-0.post@n3.nabble.com> <1554045548184-0.post@n3.nabble.com> Message-ID: <1554056805330-0.post@n3.nabble.com> Dear Foad, Great initiative! I have been willing to conduct the same initiative for a while, to centralize resources around the development of Graphical User Interfaces, and make it easily accessible for beginners... I appreciate that you take the lead with this git repository. For a start, I would suggest to use existing scilab tools for collaboration, such as the wiki: https://wiki.scilab.org/howto/GUI This way, it is quite easy for anyone to contribute, without any Git skills necessary, with a rendering that is ok (not as good as Markdown rendering in Github, but we will get there). Those resources would be already easy to find, even though our wiki could use some more attention. Next step could be a tutorial listed in the *Application development* category: https://www.scilab.org/tutorials?field_tutorials_tid=13 And eventually for content that is mature could be summarized on a dedicated page such as this one: https://www.scilab.org/software/scilab/app-development (could also use a revamp) Yann -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Sun Mar 31 21:10:42 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 31 Mar 2019 21:10:42 +0200 Subject: [Scilab-users] A collection of Scilab GUI tutorials In-Reply-To: <1554056805330-0.post@n3.nabble.com> References: <1553972235611-0.post@n3.nabble.com> <1554045548184-0.post@n3.nabble.com> <1554056805330-0.post@n3.nabble.com> Message-ID: <325dacb9-f0f9-aaa7-b2ba-52fd0c702e35@free.fr> Hello, Indeed, the wiki is potentially the best first place where to contribute, provided that it's possible to loggin. Its HowTo section shows already an interesting list of items: https://wiki.scilab.org/howto Among these ones, as also returned in first position by the search engine for the "GUI" keyword, https://wiki.scilab.org/howto/guicontrol Regards Samuel Le 31/03/2019 ? 20:26, yanndebray a ?crit : > Dear Foad, > > Great initiative! > I have been willing to conduct the same initiative for a while, to > centralize resources around the development of Graphical User Interfaces, > and make it easily accessible for beginners... > I appreciate that you take the lead with this git repository. > For a start, I would suggest to use existing scilab tools for collaboration, > such as the wiki: > https://wiki.scilab.org/howto/GUI > > This way, it is quite easy for anyone to contribute, without any Git skills > necessary, with a rendering that is ok (not as good as Markdown rendering in > Github, but we will get there). > Those resources would be already easy to find, even though our wiki could > use some more attention. > > Next step could be a tutorial listed in the *Application development* > category: > https://www.scilab.org/tutorials?field_tutorials_tid=13 > > And eventually for content that is mature could be summarized on a dedicated > page such as this one: > https://www.scilab.org/software/scilab/app-development > (could also use a revamp) > > Yann From f.s.farimani at gmail.com Sun Mar 31 22:55:15 2019 From: f.s.farimani at gmail.com (farimani) Date: Sun, 31 Mar 2019 13:55:15 -0700 (MST) Subject: [Scilab-users] GUI programming In-Reply-To: References: Message-ID: <1554065715153-0.post@n3.nabble.com> Hello everyone, First of all Thanks to Nikolay Strelkov for pointing me to this thread from this post I left earlier. Basically I'm trying to collect some of the available Scilab GUI tutorials here plus proper explanation for the novice users like myself: https://github.com/Foadsf/ScilabGUItuts I went through almost all details in this page and here is what I have done: - contacted openeering and Manolo Venturin for their permission to include their tutorial here in the repository. - included the codes from cgit.scilab.org yet to be tested and documented - contacted Varodom Toochinda for this tutorials which are unfortunately no longer available - contacted tritytech and Chin Luh Tan - in reply to Antoine Monmayrant-2 wrote > There is a nice trick to get a responsive GUI even if your callback > functions take some time to execute. The idea is, from within the > callback function, to first disable the callback function of the > uicontrol, run the long calculation and then re-enable the callback. > That way you avoid getting a huge amount of events and callbacks that > accumulate and lag behind the actions of the user. As an example, > imagine a slider where the callback function runs a 500ms-long > calculation and plot the results on a graph. If you don't apply the > trick described above, sliding the slider can generate 10's of events in > a fraction of a second and then you have to wait for all the > calculations and plotting to finish in order to get back to a usable GUI. I have asked for this feature request to add more callback-type s, and implemented similar idea here in this example . Hopefully this will receive some support from the community. Best regards, Foad Twitter Linkedin -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From f.s.farimani at gmail.com Sun Mar 31 23:29:36 2019 From: f.s.farimani at gmail.com (farimani) Date: Sun, 31 Mar 2019 14:29:36 -0700 (MST) Subject: [Scilab-users] A collection of Scilab GUI tutorials In-Reply-To: <325dacb9-f0f9-aaa7-b2ba-52fd0c702e35@free.fr> References: <1553972235611-0.post@n3.nabble.com> <1554045548184-0.post@n3.nabble.com> <1554056805330-0.post@n3.nabble.com> <325dacb9-f0f9-aaa7-b2ba-52fd0c702e35@free.fr> Message-ID: <1554067776436-0.post@n3.nabble.com> Dear Yann and Samuel, yanndebray wrote > Great initiative! > I have been willing to conduct the same initiative for a while, to > centralize resources around the development of Graphical User Interfaces, > and make it easily accessible for beginners... > I appreciate that you take the lead with this git repository. First of all I'm happy see my humble effort has been noted. yanndebray wrote > For a start, I would suggest to use existing scilab tools for > collaboration, > such as the wiki: > https://wiki.scilab.org/howto/GUI It is great to see they have been worthy of being copied to the wiki. However I hope you don't mind me saying that I think using GitHub, GitLab or similar platforms have many advantages. It is not just because I haven't been able to login into the ATOMS nor wiki websites for last two month (reported here and you have been already bothered enough for that), but the fact that: - GitHub rendering is much nicer and mobile friendly - a great majority of developers have GiHub or GitLab accounts - They are made for collaboration and code development - GitHub renders its own flavors of MarkDown and AsciiDoc yanndebray wrote > This way, it is quite easy for anyone to contribute, without any Git > skills > necessary, I hope you don't find me opposing to this statement as being rude, but GitHub is quit user friendly. You don't have to push to your computer, just open any file and edit it right away and send pull requests. GitLab also has similar features. In fact I'm in favor of moving the entire project to GitHub as I have proposed here . yanndebray wrote > Next step could be a tutorial listed in the *Application development* > category: > https://www.scilab.org/tutorials?field_tutorials_tid=13 Some of those code is already in the above repository, the documentation yet to be added though. However those are pretty advanced examples and I'm not even sure if I'm competent to understand them myself. Having some of your expertise would be very valuable. yanndebray wrote > And eventually for content that is mature could be summarized on a > dedicated > page such as this one: > https://www.scilab.org/software/scilab/app-development > (could also use a revamp) of course when matured enough all these could be pulled back to the official Scilab documentation. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html