From fmiyara at fceia.unr.edu.ar Tue Oct 1 03:05:52 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Mon, 30 Sep 2019 22:05:52 -0300 Subject: [Scilab-users] cotg and acot In-Reply-To: <8540d1ca-2a2c-c652-86e9-141d41229624@free.fr> References: <0948801f-e39a-9f59-c4ee-a869efc8c4bc@fceia.unr.edu.ar> <8540d1ca-2a2c-c652-86e9-141d41229624@free.fr> Message-ID: Dear Samuel, >> I wonder why this function doesn't follow the tacit rule that >> trigonometric functions are notated with three-letter names > > There is no such rule, even tacit. Shortness is much weaker than > clarity, and to me cot is really unclear (and too short). There is, indeed, a rule. It is included in ISO Standard 8000 Part 2 (Mathematical signs and symbols to be used in natural sciences and technology), clause 13, and states that the symbol for "cotangent of x" is cot /x/, and that ctg should not be used (it says nothing about cotg, I acknowledge, but preference is clearly for cot). I don't see why cot would be unclear. > The shorter are reserved keywords, the more probable are conflicts > with custom current variables. So this "g" is welcome. The same would apply to sin or cos or to any of the short or long function names. I think the basic knowledge of common symbols is the responsibility of the user. If a user decided to use cot as a custom variable and then wants to use the same symbol as the trigonometric function (without clearing first the variable) there is a programming style problem. The only problem I see with cot would be a backward compatibility one, which could be handled by keeping cotg during some versions and, if there is any difference between the Matlab cot and the Scilab cot/cotg, introducing a mtlb_cot function as happens with other functions used in the matlab to scilab conveersion tool. 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 fujimoto2005 at gmail.com Tue Oct 1 08:34:21 2019 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Mon, 30 Sep 2019 23:34:21 -0700 (MST) Subject: [Scilab-users] cotg and acot In-Reply-To: References: <0948801f-e39a-9f59-c4ee-a869efc8c4bc@fceia.unr.edu.ar> <8540d1ca-2a2c-c652-86e9-141d41229624@free.fr> Message-ID: <1569911661484-0.post@n3.nabble.com> Dear Federico, Even if there is such a rule, I think that it is not useful to follow the rule mechanically. For example, the integral function is "intg" in scilab. If we follow strictly the rules, it becomes "int" which is confused with the integer (although int is not used as a keyword in scilab). The "intg" is easier to understand it means integral. I think it is a good way from the practical viewpoint not to limit us to follow three characters rule. Best regards, Masahiro Fujimoto -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From fmiyara at fceia.unr.edu.ar Tue Oct 1 16:06:36 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Tue, 1 Oct 2019 11:06:36 -0300 Subject: [Scilab-users] cotg and acot In-Reply-To: <1569911661484-0.post@n3.nabble.com> References: <0948801f-e39a-9f59-c4ee-a869efc8c4bc@fceia.unr.edu.ar> <8540d1ca-2a2c-c652-86e9-141d41229624@free.fr> <1569911661484-0.post@n3.nabble.com> Message-ID: <2216bde8-f7c0-bcca-e6d3-fdf1bd99cebe@fceia.unr.edu.ar> Dear Masahiro, I accept that in some cases it might be not convenient to follow a rule, but I think the cotangent is not the case because of 1) a long tradition acknowledged in an international standard, 2) consistency, 3) aesthetics, 4) ease of pronounciation, 5) virtual impossibility of confusion (indeed, try a web search of "definition of cot in math" (*)). The other meanings of cot have nothing to do with math. Regards, Federio Miyara (*) After three and a half pages of links where cot is the cotangent symbol, I've found this page: http://www.memidex.com/ctn+trigonometric-function, where the most serious source, the Collins dictionary, accepts also cotan and ctn as abbreviations On 01/10/2019 03:34, fujimoto2005 wrote: > Dear Federico, > > Even if there is such a rule, I think that it is not useful to follow the > rule mechanically. > For example, the integral function is "intg" in scilab. > If we follow strictly the rules, it becomes "int" which is confused with the > integer (although int is not used as a keyword in scilab). The "intg" is > easier to understand it means integral. > I think it is a good way from the practical viewpoint not to limit us to > follow three characters rule. > > Best regards, > Masahiro Fujimoto > > > > -- > 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 > -- 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 stephane.mottelet at utc.fr Wed Oct 2 09:09:45 2019 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Wed, 2 Oct 2019 09:09:45 +0200 Subject: [Scilab-users] grand in loop In-Reply-To: <1569847239413-0.post@n3.nabble.com> References: <1569831665714-0.post@n3.nabble.com> <1569847239413-0.post@n3.nabble.com> Message-ID: <77ccf756-e5cb-21c6-7bb2-a2e2281c6e52@utc.fr> Le 30/09/2019 ? 14:40, jbaudais a ?crit?: > I cannot create an account on https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/bugzilla.scilab.org! I did not received > email... Did you check your SPAM folder ? > If someone could send a but report? > Thanks, > > Jean-Yves > > > > -- > 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 -- 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 From stephane.mottelet at utc.fr Wed Oct 2 11:04:10 2019 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Wed, 2 Oct 2019 11:04:10 +0200 Subject: [Scilab-users] {EXT} Re: grand in loop In-Reply-To: <1569835418573-0.post@n3.nabble.com> References: <1569831665714-0.post@n3.nabble.com> <5C8E5896-3BB5-4E7F-8C96-B82302249E2E@utc.fr> <1569835418573-0.post@n3.nabble.com> Message-ID: Le 30/09/2019 ? 11:23, jbaudais a ?crit?: > I used disp instead of mprintf and it is the same. I removed mprintf, so the > code is > >> for i=1:2000, grand(1,1000000,"exp",1); end > and after some minutes I cannot stop or kill within Scilab. I must use the > kill linux command. That's incredible!!! There are other incredible things in Scilab, but this one seems quite easy to track. First of all, this is not a problem in the Scilab kernel itself, but rather localized in the random generator itself. More precisely in the base uniform generator. If you change the default one (Mersenne-Twister) by the "Keep It Simple Stupid" : grand("setgen","kiss") then your script does not freeze Scilab. However, with the default Mersenne-Twister generator the freeze occurs very early before the? 2^19937 period so it does not seem so simple? but I think we can fix the issue. In the meantime, please use "kiss" generator which has a not-so-small period (2^131). S. > > Jean-Yves > > > > -- > 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 -- 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 From rouxph.22 at gmail.com Thu Oct 3 10:46:02 2019 From: rouxph.22 at gmail.com (philippe) Date: Thu, 3 Oct 2019 10:46:02 +0200 Subject: [Scilab-users] problem when loading Coselica help in scilab-6.0.02 Message-ID: Hi, there is a problem loading the man pages for Coselica with scilab-6.0.2 (see the error message below) and it's not possible to load man pages from other toolboxes after loading coselica. A workaround is to deselect coselica auto-loading from Atoms, after restart I can load help of other toolboxes. Best regards, Philippe. Could not load file: /usr/share/scilab-6.0.2/share/scilab/contrib/coselica/0.6.6/jar/scilab_en_US_help.jar. Please check its contents, must be a Java Help file. Error message: Could not parse Got an IOException (JAR entry scilab_en_US_help/jhelpset.hs not found in /usr/share/scilab-6.0.2/share/scilab/contrib/coselica/0.6.6/jar/scilab_en_US_help.jar) Parsing failed for null From jean-yves.baudais at insa-rennes.fr Thu Oct 3 13:59:56 2019 From: jean-yves.baudais at insa-rennes.fr (jbaudais) Date: Thu, 3 Oct 2019 04:59:56 -0700 (MST) Subject: [Scilab-users] grand in loop In-Reply-To: <77ccf756-e5cb-21c6-7bb2-a2e2281c6e52@utc.fr> References: <1569831665714-0.post@n3.nabble.com> <1569847239413-0.post@n3.nabble.com> <77ccf756-e5cb-21c6-7bb2-a2e2281c6e52@utc.fr> Message-ID: <1570103996872-0.post@n3.nabble.com> mottelet wrote > Did you check your SPAM folder ? Yes I did. I think it's a firewall problem and it could come from Renater (this already happened)! I'm going to check with my intitution. Thanks Jean-Yves -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From anna.parravicini at cnao.it Thu Oct 3 15:10:54 2019 From: anna.parravicini at cnao.it (anna78) Date: Thu, 3 Oct 2019 06:10:54 -0700 (MST) Subject: [Scilab-users] userdata not updated Message-ID: <1570108254328-0.post@n3.nabble.com> Hi all, I'm trying to build my first GUI, but I need some helps... Basically, I have a button, that allows the user to select an input file. Once it is done, four cells are filled in using data got from the input file itself, as follows: h4value = uicontrol(schottkyGui, "style","edit","string",string(max(spectrum(:,2))), "units","pixels",... "position",[margin_x margin_y 70 25],"fontname",defaultfont, "fontunits","points",... "BackgroundColor",[1 1 1],"horizontalalignment","left", "fontsize",12,"tag","yMaxParam"); Then, I assume the user changes (writing in the cells by the keyboard). At the end, a second button, calling a second function, reads the 4 parameters written in those cells, as follows: b=findobj("tag", "yMaxParam"); yMax=evstr(b.string); disp(yMax); It happens that the script works properly at the first run as I open SCILAB, at the following runs, the findobj function always gives back the first run values, whatever is given by the selected file and whatever the user writes in the cells. I think I should add a sort of "cleaner" at the beginning of the script, but I dont know how. Can anybody help me? cheers Anna -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From fujimoto2005 at gmail.com Fri Oct 4 14:43:22 2019 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Fri, 4 Oct 2019 05:43:22 -0700 (MST) Subject: [Scilab-users] statenge result of integration of exponential function Message-ID: <1570193002745-0.post@n3.nabble.com> I'm working on a stochastic control problem. When I calculate an integral of the exponential function, I got strange results. I want to integrate densDisutil of the attached file from -? to + ?, but the correct result is not obtained. The integrand is an exponential function which exponent part is the sum of the piecewise linear function and the exponents of the standard normal density function. The slope of the linear function changes piecewise for each event (D_T>=dC),(dC>D_T) & (D_T>=0) and (=0>D_T). Each event is represented by event_idx=1,2 and 3. I calculated the integration for each event. This sum should match the integral of all events(event_idx=4). The calculation results for each event are 59.865979, 0 and 2.592D + 14 whose sum must match the result for all events. But starangeResltsIntg.sce the result for all event is 3.112D + 14 which is not equal to the sum of three events. What is wrong? I would appreciate any advice. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From fujimoto2005 at gmail.com Fri Oct 4 14:46:28 2019 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Fri, 4 Oct 2019 05:46:28 -0700 (MST) Subject: [Scilab-users] strange result of an exponential function integeration Message-ID: <1570193188998-0.post@n3.nabble.com> I'm working on a stochastic control problem. When I calculate an integral of the exponential function, I got strange results. I want to integrate densDisutil of the attached file from -? to + ?, but the correct result is not obtained. The integrand is an exponential function which exponent part is the sum of the piecewise linear function and the exponents of the standard normal density function. The slope of the linear function changes piecewise for each event (D_T>=dC),(dC>D_T) & (D_T>=0) and (=0>D_T). Each event is represented by event_idx=1,2 and 3. I calculated the integration for each event. This sum should match the integral of all events(event_idx=4). The calculation results for each event are 59.865979, 0 and 2.592D + 14 whose sum must match the result for all events. But the result for all event is 3.112D + 14 which is not equal to the sum of three events. What is wrong? I would appreciate any advice. starangeResltsIntg.sce -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From domec at ac-bordeaux.fr Sun Oct 6 12:25:39 2019 From: domec at ac-bordeaux.fr (Domec Jean Louis) Date: Sun, 6 Oct 2019 03:25:39 -0700 (MST) Subject: [Scilab-users] scilab-5.5.2 segmentation fault au boot Message-ID: <1570357539110-0.post@n3.nabble.com> Hello, I'm french an a new user of this list. My configuration is: $ lsb_release -sd Debian GNU/Linux 10 (buster) $ uname -a Linux Microknoppix 5.2.5 #11 SMP PREEMPT Sun Aug 4 13:11:50 CEST 2019 i686 GNU/Linux I have installed scilab-5.5.2.bin.linux-i686.tar.gz without problem I have this error when i boot scilab like that: knoppix at Microknoppix:/usr/local/bin/scilab-5.5.2$ bin/scilab bin/scilab: line 928: 3516 Segmentation fault "$SCILABBIN" "$@" I've tested on differents PC Have you an idea about this problem ? Thank you -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From amonmayr at laas.fr Sun Oct 6 14:50:37 2019 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Sun, 06 Oct 2019 14:50:37 +0200 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ICBzY2lsYWItNS41LjIgc2Vn?= =?utf-8?q?mentation_fault_au_boot?= In-Reply-To: <1570357539110-0.post@n3.nabble.com> Message-ID: <2c47-5d99e300-37-1fa03940@38540081> Hello Jean Louis, It seems that you are using a 32bit os, right? Are you sure you downloaded the 32bit version of scilab ( https://www.scilab.org/download/5.5.2/scilab-5.5.2.bin.linux-i686.tar.gz ), not the 64bit version? Hope it helps, Antoine Le Dimanche, Octobre 06, 2019 12:25 CEST, Domec Jean Louis a ?crit: > Hello, > I'm french an a new user of this list. > > My configuration is: > $ lsb_release -sd > Debian GNU/Linux 10 (buster) > $ uname -a > Linux Microknoppix 5.2.5 #11 SMP PREEMPT Sun Aug 4 13:11:50 CEST 2019 i686 > GNU/Linux > > I have installed scilab-5.5.2.bin.linux-i686.tar.gz without problem > > I have this error when i boot scilab like that: > knoppix at Microknoppix:/usr/local/bin/scilab-5.5.2$ bin/scilab > bin/scilab: line 928: 3516 Segmentation fault "$SCILABBIN" "$@" > > I've tested on differents PC > > Have you an idea about this problem ? > > Thank you > > > > > -- > 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 fmiyara at fceia.unr.edu.ar Mon Oct 7 08:42:41 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Mon, 7 Oct 2019 03:42:41 -0300 Subject: [Scilab-users] Problems with mfile2sci Message-ID: <8699ee49-c2af-42b9-e655-42beb7da6156@fceia.unr.edu.ar> Dear all, I'm trying to convert a script originally written in Matlab and saved as an .m file to Scilab using the function mfile2sci. However, I don't get any .sci file. I get a .cat file which contains mostly the comments without the comment sign //. I get also a .log file with a brief job summary, indicating that no conversion was performed since "file contains no instruction", which is not the case. I'm attaching the original m file and the .cat and .log files. Am I doing anything wrong? I've tried to change the options (recursive mode, etc.)with no success. I'm using 6.0.2. 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: audiometro1.cat Type: application/vnd.ms-pki.seccat Size: 4583 bytes Desc: not available URL: -------------- next part -------------- ****** Beginning of mfile2sci() session ****** File to convert: D:/work/audiometro1.m Result file path: D:/WORK_S~1/ Recursive mode: ON Only double values used in M-file: NO Verbose mode: 3 Generate formatted code: NO M-file reading... M-file reading: Done Syntax modification... Syntax modification: Done File contains no instruction, no translation made... ****** End of mfile2sci() session ****** -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: audiometro1.m URL: From sgougeon at free.fr Mon Oct 7 11:10:22 2019 From: sgougeon at free.fr (sgougeon at free.fr) Date: Mon, 7 Oct 2019 11:10:22 +0200 (CEST) Subject: [Scilab-users] =?utf-8?q?Re=C2=A0=3A__Problems_with_mfile2sci?= In-Reply-To: <8699ee49-c2af-42b9-e655-42beb7da6156@fceia.unr.edu.ar> Message-ID: <1561383375.1499653640.1570439422095.JavaMail.root@zimbra75-e12.priv.proxad.net> Hello Federico, With some end indices in your script, you are certainly facing the bug http://bugzilla.scilab.org/16181 This bug prevents starting the actual conversion. You may copy the proposed fix on your own Scilab installation, and use it. Regards Samuel ----- Mail d'origine ----- Dear all, I'm trying to convert a script originally written in Matlab and saved as an .m file to Scilab using the function mfile2sci. However, I don't get any .sci file. I get a .cat file which contains mostly the comments without the comment sign //. I get also a .log file with a brief job summary, indicating that no conversion was performed since "file contains no instruction", which is not the case. I'm attaching the original m file and the .cat and .log files. Am I doing anything wrong? I've tried to change the options (recursive mode, etc.)with no success. I'm using 6.0.2. Regards, Federico Miyara From fmiyara at fceia.unr.edu.ar Tue Oct 8 03:39:04 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Mon, 7 Oct 2019 22:39:04 -0300 Subject: [Scilab-users] =?utf-8?q?Re=C2=A0=3A_Problems_with_mfile2sci?= In-Reply-To: <1561383375.1499653640.1570439422095.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <1561383375.1499653640.1570439422095.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: Samuel, Thanks. As I'm not quite sure how to load the fix, I've removed all instances of "end" as an index and defined the required value explicitly with a different, non-reserved name. But I get the same result ("no translation made..."). I wonder if there may be another regression... Regards, Federico On 07/10/2019 06:10, sgougeon at free.fr wrote: > Hello Federico, > > With some end indices in your script, you are certainly facing the bug http://bugzilla.scilab.org/16181 > This bug prevents starting the actual conversion. > You may copy the proposed fix on your own Scilab installation, and use it. > > Regards > Samuel > > ----- Mail d'origine ----- > Dear all, > > I'm trying to convert a script originally written in Matlab and saved as > an .m file to Scilab using the function mfile2sci. However, I don't get > any .sci file. I get a .cat file which contains mostly the comments > without the comment sign //. I get also a .log file with a brief job > summary, indicating that no conversion was performed since "file > contains no instruction", which is not the case. I'm attaching the > original m file and the .cat and .log files. > > Am I doing anything wrong? > > I've tried to change the options (recursive mode, etc.)with no success. > > I'm using 6.0.2. > > Regards, > > Federico Miyara > _______________________________________________ > 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: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: audiometro1.m URL: From sgougeon at free.fr Tue Oct 8 10:58:33 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 8 Oct 2019 10:58:33 +0200 Subject: [Scilab-users] =?utf-8?q?Re=C2=A0=3A_Problems_with_mfile2sci?= In-Reply-To: References: <1561383375.1499653640.1570439422095.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: <2faeff2d-931c-2bfd-a9ec-728762722db4@free.fr> Hello Federico, Yes, this workaround for the end index shows another issue, indeed. Scilab 6.0.0 starts the conversion (but yields an "Invalid index" error after processing the first third of the file), while 6.0.1 yields the same "file contains no instruction" message. In 6.0.1 and 6.0.2, the (first) issue is in the m2sci_syntax() internal. Could you please report the bug? Thanks Samuel Le 08/10/2019 ? 03:39, Federico Miyara a ?crit?: > > Samuel, > > Thanks. As I'm not quite sure how to load the fix, I've removed all > instances of "end" as an index and defined the required value > explicitly with a different, non-reserved name. > > But I get the same result ("no translation made..."). I wonder if > there may be another regression... > > Regards, > > Federico > > > On 07/10/2019 06:10, sgougeon at free.fr wrote: >> Hello Federico, >> >> With some end indices in your script, you are certainly facing the bughttp://bugzilla.scilab.org/16181 >> This bug prevents starting the actual conversion. >> You may copy the proposed fix on your own Scilab installation, and use it. >> >> Regards >> Samuel >> >> ----- Mail d'origine ----- >> Dear all, >> >> I'm trying to convert a script originally written in Matlab and saved as >> an .m file to Scilab using the function mfile2sci. However, I don't get >> any .sci file. I get a .cat file which contains mostly the comments >> without the comment sign //. I get also a .log file with a brief job >> summary, indicating that no conversion was performed since "file >> contains no instruction", which is not the case. I'm attaching the >> original m file and the .cat and .log files. >> >> Am I doing anything wrong? >> >> I've tried to change the options (recursive mode, etc.)with no success. >> >> I'm using 6.0.2. >> >> Regards, >> >> Federico Miyara >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> > > > > Libre de virus. www.avast.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 Tue Oct 8 12:21:07 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 8 Oct 2019 12:21:07 +0200 Subject: [Scilab-users] =?utf-8?q?Re=C2=A0=3A_Problems_with_mfile2sci?= In-Reply-To: References: <1561383375.1499653640.1570439422095.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: <200c6a4e-a5c4-2106-d88d-d3a4adffad19@free.fr> Le 08/10/2019 ? 03:39, Federico Miyara a ?crit?: > > Samuel, > > Thanks. As I'm not quite sure how to load the fix, I've removed all > instances of "end" as an index and defined the required value > explicitly with a different, non-reserved name. > > But I get the same result ("no translation made..."). I wonder if > there may be another regression... Please do the following, assuming that you have write access to the SCI directory: cd SCI/modules/m2sci/macros/kernel edit m2sci_syntax.sci // Replace the line #211 ??????? endofhelp = stripblanks(part(tk,1:kc-1))<>"" & ~protoline with ????? if stripblanks(part(tk,1:kc-1))<>"" & ~protoline endofhelp = %t; end // Save. Then --> genlib m2scikernellib --> clear m2sci_syntax And re-run mfile2sci. As with Scilab 6.0.0, the conversion now actually starts, and you will get an error after the line #91 of your script, to be reported as well, separately. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Tue Oct 8 13:11:14 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 8 Oct 2019 13:11:14 +0200 Subject: [Scilab-users] =?utf-8?q?Re=C2=A0=3A_Problems_with_mfile2sci?= In-Reply-To: <200c6a4e-a5c4-2106-d88d-d3a4adffad19@free.fr> References: <1561383375.1499653640.1570439422095.JavaMail.root@zimbra75-e12.priv.proxad.net> <200c6a4e-a5c4-2106-d88d-d3a4adffad19@free.fr> Message-ID: <1eaec1c7-b399-d86b-8eb0-d9b02b264621@free.fr> Le 08/10/2019 ? 12:21, Samuel Gougeon a ?crit?: > .../... > And re-run mfile2sci. > > As with Scilab 6.0.0, the conversion now actually starts, and you will > get an error after the line #91 of your script, to be reported as > well, separately. > For some reason, the space between find and its opening ( is not accepted in n = min([n, min(find (mini(I)==99))]); while it is accepted earlier in the script as in n = min(find (mini(I)==99)); Another issue (since 6.0.0) is the bad conversion of ":" as in a(1,:), also to be reported. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Tue Oct 8 13:49:10 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 8 Oct 2019 13:49:10 +0200 Subject: [Scilab-users] =?utf-8?q?Re=C2=A0=3A_Problems_with_mfile2sci?= In-Reply-To: <2faeff2d-931c-2bfd-a9ec-728762722db4@free.fr> References: <1561383375.1499653640.1570439422095.JavaMail.root@zimbra75-e12.priv.proxad.net> <2faeff2d-931c-2bfd-a9ec-728762722db4@free.fr> Message-ID: <1f9b4a17-5191-545a-39b4-ce191ae29180@free.fr> Le 08/10/2019 ? 10:58, Samuel Gougeon a ?crit?: > Hello Federico, > > Yes, this workaround for the end index shows another issue, indeed. > Scilab 6.0.0 starts the conversion (but yields an "Invalid index" > error after processing the first third of the file), while 6.0.1 > yields the same "file contains no instruction" message. > In 6.0.1 and 6.0.2, the (first) issue is in the m2sci_syntax() internal. > Could you please report the bug? No need to report this one. The patch is already put on the scilab forge. From sgougeon at free.fr Tue Oct 8 14:23:08 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 8 Oct 2019 14:23:08 +0200 Subject: [Scilab-users] =?utf-8?q?Re=C2=A0=3A_Problems_with_mfile2sci?= In-Reply-To: <1eaec1c7-b399-d86b-8eb0-d9b02b264621@free.fr> References: <1561383375.1499653640.1570439422095.JavaMail.root@zimbra75-e12.priv.proxad.net> <200c6a4e-a5c4-2106-d88d-d3a4adffad19@free.fr> <1eaec1c7-b399-d86b-8eb0-d9b02b264621@free.fr> Message-ID: <670bee6e-824a-57b8-65f1-aaf8bba91c99@free.fr> Le 08/10/2019 ? 13:11, Samuel Gougeon a ?crit?: > > Another issue (since 6.0.0) is the bad conversion of ":" as in a(1,:), > also to be reported. > Done: http://bugzilla.scilab.org/16215 From stephane.mottelet at utc.fr Wed Oct 9 09:59:18 2019 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Wed, 9 Oct 2019 09:59:18 +0200 Subject: [Scilab-users] Important Information About Scilab and macOS Catalina Message-ID: Hello Scilab/macOS users, You may have heard that Apple recently released macOS Catalina. I didn't have the opportunity (neither the time) to install it and to test if Scilab even opens but there is a high? probability that problems will arise. What I ask you is to hang tight on performing the upgrade to Catalina. I you cannot resist and click the red button, then do it at your own risk ! Sincerely, -- 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 fmiyara at fceia.unr.edu.ar Thu Oct 10 06:33:40 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Thu, 10 Oct 2019 01:33:40 -0300 Subject: [Scilab-users] exists yields double Message-ID: <58cbd60a-5380-80af-d1a2-38dd16e5adc2@fceia.unr.edu.ar> Dear all, I wonder why the function "exists" yields 1 or 0 as doubles, instead of boolean. I know there is little distinction between booleans and {0, 1} and can be easily converted back and forth. I also know that Scilab is not meant to be a strongly typed language. But wouldn't it make more sense that this kind of funtion yielded a boolean result? It challenges reason the fact that "isreal", for instance, yields a boolean and "exists" yields a double. 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 perrichon.pierre at wanadoo.fr Fri Oct 11 09:19:54 2019 From: perrichon.pierre at wanadoo.fr (Perrichon) Date: Fri, 11 Oct 2019 09:19:54 +0200 Subject: [Scilab-users] Error in messagebox - Part of the image is truncated Message-ID: Dear, When displaying a messagebox, part of the image < warning > or < info > for example is truncated. I use W10 with Scilab 5.5.2 x64 Must I write a buggzilla message ? How to reproduce : message=msprintf("... OptSim window not found !") messagebox(message, "Save Optsim", "warning") Best regards Pierre P. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Fri Oct 11 09:32:54 2019 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Fri, 11 Oct 2019 07:32:54 +0000 Subject: [Scilab-users] {EXT} Error in messagebox - Part of the image is truncated In-Reply-To: References: Message-ID: Hello, > De : Perrichon > Envoy? : vendredi 11 octobre 2019 09:20 > > When displaying a messagebox, part of the image ? warning ? or ? info ? for example is truncated. > I use W10 with Scilab 5.5.2 x64 > [...] > message=msprintf("... OptSim window not found !") > messagebox(message, "Save Optsim", "warning") Seems to be OK with Scilab 6.0.2 under Windows 7. 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 perrichon.pierre at wanadoo.fr Fri Oct 11 11:18:58 2019 From: perrichon.pierre at wanadoo.fr (Perrichon) Date: Fri, 11 Oct 2019 11:18:58 +0200 Subject: [Scilab-users] How to identify componants in a figure ? Message-ID: Hello In my application, built with uicontrol in a main figure, I add graphs (Axes) with bode or Nyquist plot in the the main frame So, at the end, if we do f=gcf() I get : children: matrix 39x1 I add a=f.children Then a is a collection (with bode) : Axes uicontrol uicontrol uicontrol uicontrol uicontrol uicontrol uicontrol uicontrol uicontrol uicontrol uicontrol uicontrol uicontrol ... uicontrol uicontrol uimenu uimenu Axes So, How can I get, in a loop with length(a), the numbers of the chidren who are Axes ? In that case I hope something like [1, 39] Is there a way to do that ? I find nothing with the < get > function ? Thanks Pierre P. -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.muehlmann at gmail.com Fri Oct 11 16:07:04 2019 From: p.muehlmann at gmail.com (P M) Date: Fri, 11 Oct 2019 16:07:04 +0200 Subject: [Scilab-users] How to identify componants in a figure ? In-Reply-To: References: Message-ID: Hi, if you want to count how many axes-children there are in a figure, you may work with "tags". Quick-n-dirty example below. best regards, Philipp clc;clear(); // create the figuref = figure(); // first axesplot3d();a3d = gca();a3d.tag = 'axes'; // menumenu_1=uimenu(f,'label', '$\LaTeX$');menu_1.tag = "menu";// submenuml1=uimenu(menu_1,'label', '$\int_0^\infty\mathrm{e}^{-x^2}\,dx$');ml2=uimenu(menu_1,'label', '$\frac\sqrt{\pi}2$');ml1.tag = "submenu";ml2.tag = "submenu"; // uicontrolu=uicontrol(f,'style','listbox','position', [10 10 150 160]);u.tag = "uicontrol"; // second axesnewaxes()plot2d();a2d = gca();a2d.tag = "axes"; c = f.children // from all figure children count the number of axes-childrencount = 0;for i = 1:length(c) str = c(i).tag; if(str == "axes") count = count+1; endendprintf("there are %d axes children in f \n", count); // get the position of the axes children from all figure childrenposition = zeros(count,1);j = 0;for i = 1:length(c) str = c(i).tag; if(str == "axes") j = j+1; position(j) = i; endendprintf("axes children of f can be found at position %d \n", position); Am Fr., 11. Okt. 2019 um 11:19 Uhr schrieb Perrichon < perrichon.pierre at wanadoo.fr>: > Hello > > > > In my application, built with uicontrol in a main figure, I add graphs > (Axes) with bode or Nyquist plot in the the main frame > > > > So, at the end, if we do > > f=gcf() > > I get : > > > > children: matrix 39x1 > > > > I add > > a=f.children > > > > Then a is a collection (with bode) : > > > > Axes > > uicontrol > > uicontrol > > uicontrol > > uicontrol > > uicontrol > > uicontrol > > uicontrol > > uicontrol > > uicontrol > > uicontrol > > uicontrol > > uicontrol > > uicontrol > > ?.. > > uicontrol > > uicontrol > > uimenu > > uimenu > > Axes > > > > So, How can I get, in a loop with length(a), the numbers of the chidren > who are Axes ? > > > > In that case I hope something like [1, 39] > > > > Is there a way to do that ? > > I find nothing with the ? get ? function ? > > > > Thanks > > > > Pierre P. > > > > > > > > > > > _______________________________________________ > 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 Fri Oct 11 16:15:54 2019 From: sgougeon at free.fr (sgougeon at free.fr) Date: Fri, 11 Oct 2019 16:15:54 +0200 (CEST) Subject: [Scilab-users] =?utf-8?q?Re=C2=A0=3A__How_to_identify_componants_?= =?utf-8?q?in_a_figure_=3F?= In-Reply-To: Message-ID: <2030411572.1524556657.1570803354149.JavaMail.root@zimbra75-e12.priv.proxad.net> Hello Pierre, Just do find(a.type=="Axes") Regards Samuel From perrichon.pierre at wanadoo.fr Fri Oct 11 20:22:30 2019 From: perrichon.pierre at wanadoo.fr (Perrichon) Date: Fri, 11 Oct 2019 20:22:30 +0200 Subject: [Scilab-users] =?iso-8859-1?q?Re=A0=3A__How_to_identify_componant?= =?iso-8859-1?q?s_in_a_figure_=3F?= In-Reply-To: <2030411572.1524556657.1570803354149.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <2030411572.1524556657.1570803354149.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: Hello, I thanks all the scilabers for their response: Antoine, Stephane, Philipp, Samuel I've try with the "find" function The result is perfectly what I was waiting for Also great thanks to everybody it takes away a thorn from foot my nice GUI well works now Best regards -----Message d'origine----- De?: users De la part de sgougeon at free.fr Envoy??: vendredi 11 octobre 2019 16:16 ??: Users mailing list for Scilab Objet?: [Scilab-users] Re?: How to identify componants in a figure ? Hello Pierre, Just do find(a.type=="Axes") Regards Samuel _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From f.s.farimani at gmail.com Tue Oct 15 11:06:32 2019 From: f.s.farimani at gmail.com (farimani) Date: Tue, 15 Oct 2019 02:06:32 -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: <1571130392121-0.post@n3.nabble.com> Hi everyone, Given the fact that there is a conference is going on in Berlin right now, I thought it is the best time to invite everyone again to the official Scilab IRC channel: https://wiki.scilab.org/IRC I edited the page and added some links and instructions. Please take a look and try it. If you have any issues please let me know so I add more details. Best, Foad ----- Foad Sojoodi Farimani Twitter https://twitter.com/fsfarimani LinkedIn https://www.linkedin.com/in/fsfarimani/ -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From p.muehlmann at gmail.com Wed Oct 16 11:46:42 2019 From: p.muehlmann at gmail.com (P M) Date: Wed, 16 Oct 2019 11:46:42 +0200 Subject: [Scilab-users] convert matlab code to scilab Message-ID: Dear experts, trying to convert a matlab code to scilab I come across following line: [~,~,Minstances_hat] = unique(B(:)); How to replace the "~" symbol? B is the blue channel of a RGB image...hence a m x n matrix of integers (type(B) = 8 ) Thank you, Philipp -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Wed Oct 16 11:50:08 2019 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Wed, 16 Oct 2019 11:50:08 +0200 Subject: [Scilab-users] convert matlab code to scilab In-Reply-To: References: Message-ID: <385c4a82-17b8-62ab-3ca8-043a64d26c46@utc.fr> Hello Le 16/10/2019 ? 11:46, P M a ?crit?: > Dear experts, > > trying to convert a matlab code to scilab I come across following line: > [~,~,Minstances_hat] = unique(B(:)); > How to replace the "~" symbol? by dummy names, e.g. [ans,ans,Minstances_hat] = unique(B(:)); There is no equivalent mechanism in Scilab. > B is the blue channel of a RGB image...hence a m x n matrix of > integers (type(B) = 8 ) > Thank you, > Philipp > > _______________________________________________ > 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 p.muehlmann at gmail.com Wed Oct 16 12:10:51 2019 From: p.muehlmann at gmail.com (P M) Date: Wed, 16 Oct 2019 12:10:51 +0200 Subject: [Scilab-users] convert matlab code to scilab In-Reply-To: <385c4a82-17b8-62ab-3ca8-043a64d26c46@utc.fr> References: <385c4a82-17b8-62ab-3ca8-043a64d26c46@utc.fr> Message-ID: [ans,ans,Minstances_hat] = unique(B(:)); gives: Wrong number of output arguments. I also tried : [Minstances_hat] = unique(B(:)); and get a vector. also [Minstances_hat,index] = unique(B(:)); seem to work. However afterwards there is this line: masks = reshape(Minstances_hat-1,size(B)); I try to convert via: mask = matrix(Minstances_hat-1,size(B)); but no success. Am Mi., 16. Okt. 2019 um 11:50 Uhr schrieb St?phane Mottelet < stephane.mottelet at utc.fr>: > Hello > Le 16/10/2019 ? 11:46, P M a ?crit : > > Dear experts, > > trying to convert a matlab code to scilab I come across following line: > > [~,~,Minstances_hat] = unique(B(:)); > > How to replace the "~" symbol? > > by dummy names, e.g. > > [ans,ans,Minstances_hat] = unique(B(:)); > > There is no equivalent mechanism in Scilab. > > B is the blue channel of a RGB image...hence a m x n matrix of integers (type(B) = 8 ) > > > Thank you, > > Philipp > > > _______________________________________________ > users mailing listusers at lists.scilab.orghttps://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)344234688http://www.utc.fr/~mottelet > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Wed Oct 16 13:19:50 2019 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Wed, 16 Oct 2019 13:19:50 +0200 Subject: [Scilab-users] convert matlab code to scilab In-Reply-To: References: <385c4a82-17b8-62ab-3ca8-043a64d26c46@utc.fr> Message-ID: Sorry, I thought you were just asking about the tildas, not the syntax of unique() in Scilab. Please see https://help.scilab.org/docs/6.0.2/en_US/unique.html vs https://fr.mathworks.com/help/matlab/ref/unique.html Matlab syntax [C,ia,ic] = unique(___)? with 3 outputs has no equivalent in Scilab. i.e. in Matlab, after? [C,ia,ic] = unique(A) then A=C(ic), i.e. values in ic are the indices of corresponding unique value in C.? They can be recovered with the quick and dirty following loop: for i=1:length(a) ???? ia(i)=find(a(i)==C) end S. Le 16/10/2019 ? 12:10, P M a ?crit?: > [ans,ans,Minstances_hat] = unique(B(:)); > gives:? Wrong number of output arguments. > > I also tried : > [Minstances_hat] = unique(B(:)); > and get a vector. > also > [Minstances_hat,index] = unique(B(:)); > seem to work. > > > However afterwards there is this line: > masks = reshape(Minstances_hat-1,size(B)); > I try to convert via: > mask = matrix(Minstances_hat-1,size(B)); > but no success. > > > > > > > Am Mi., 16. Okt. 2019 um 11:50?Uhr schrieb St?phane Mottelet > >: > > Hello > > Le 16/10/2019 ? 11:46, P M a ?crit?: >> Dear experts, >> >> trying to convert a matlab code to scilab I come across following >> line: >> [~,~,Minstances_hat] = unique(B(:)); >> How to replace the "~" symbol? > > by dummy names, e.g. > > [ans,ans,Minstances_hat] = unique(B(:)); There is no equivalent mechanism in Scilab. > >> B is the blue channel of a RGB image...hence a m x n matrix of >> integers (type(B) = 8 ) >> Thank you, >> Philipp >> >> _______________________________________________ >> 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 > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > > > _______________________________________________ > 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 stephane.mottelet at utc.fr Wed Oct 16 13:27:26 2019 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Wed, 16 Oct 2019 13:27:26 +0200 Subject: [Scilab-users] convert matlab code to scilab In-Reply-To: References: <385c4a82-17b8-62ab-3ca8-043a64d26c46@utc.fr> Message-ID: Sorry, in my answer the loop constructs "ic", not? "ia", i.e. the full equivalent to Matlab's "[C,ia,ic] = unique(A)" is in Scilab: [C,ia] = unique(A) for i=1:length(A) ??? ic(i)=find(A(i)==C) end S. Le 16/10/2019 ? 13:19, St?phane Mottelet a ?crit?: > > Sorry, I thought you were just asking about the tildas, not the syntax > of unique() in Scilab. > > Please see > > https://help.scilab.org/docs/6.0.2/en_US/unique.html > > vs > > https://fr.mathworks.com/help/matlab/ref/unique.html > > Matlab syntax [C,ia,ic] = unique(___)? with 3 outputs has no > equivalent in Scilab. i.e. in Matlab, after? [C,ia,ic] = unique(A) > then A=C(ic), i.e. values in ic are the indices of corresponding > unique value in C.? They can be recovered with the quick and dirty > following loop: > > for i=1:length(a) > ???? ia(i)=find(a(i)==C) > end > > S. > > Le 16/10/2019 ? 12:10, P M a ?crit?: >> [ans,ans,Minstances_hat] = unique(B(:)); >> gives:? Wrong number of output arguments. >> >> I also tried : >> [Minstances_hat] = unique(B(:)); >> and get a vector. >> also >> [Minstances_hat,index] = unique(B(:)); >> seem to work. >> >> >> However afterwards there is this line: >> masks = reshape(Minstances_hat-1,size(B)); >> I try to convert via: >> mask = matrix(Minstances_hat-1,size(B)); >> but no success. >> >> >> >> >> >> >> Am Mi., 16. Okt. 2019 um 11:50?Uhr schrieb St?phane Mottelet >> >: >> >> Hello >> >> Le 16/10/2019 ? 11:46, P M a ?crit?: >>> Dear experts, >>> >>> trying to convert a matlab code to scilab I come across >>> following line: >>> [~,~,Minstances_hat] = unique(B(:)); >>> How to replace the "~" symbol? >> >> by dummy names, e.g. >> >> [ans,ans,Minstances_hat] = unique(B(:)); There is no equivalent mechanism in Scilab. >> >>> B is the blue channel of a RGB image...hence a m x n matrix of >>> integers (type(B) = 8 ) >>> Thank you, >>> Philipp >>> >>> _______________________________________________ >>> 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 >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> >> >> >> _______________________________________________ >> 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 > > _______________________________________________ > 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 p.muehlmann at gmail.com Wed Oct 16 15:47:27 2019 From: p.muehlmann at gmail.com (P M) Date: Wed, 16 Oct 2019 15:47:27 +0200 Subject: [Scilab-users] convert matlab code to scilab In-Reply-To: References: <385c4a82-17b8-62ab-3ca8-043a64d26c46@utc.fr> Message-ID: Dear Stephane, thanks for your help. I think in my case the problem is solved just by using: [Minstances_hat] = unique(B(:)); This gives a vector of used px-values for different objects shown in image. Each object is defined by a single pixel value. Since B is the B-plane of an RGB-image, it is possible to assign each pixel from the original image to an object using these values. Thanks again, Philipp Am Mi., 16. Okt. 2019 um 13:27 Uhr schrieb St?phane Mottelet < stephane.mottelet at utc.fr>: > Sorry, in my answer the loop constructs "ic", not "ia", i.e. the full > equivalent to Matlab's "[C,ia,ic] = unique(A)" is in Scilab: > > [C,ia] = unique(A) > for i=1:length(A) > ic(i)=find(A(i)==C) > end > > S. > Le 16/10/2019 ? 13:19, St?phane Mottelet a ?crit : > > Sorry, I thought you were just asking about the tildas, not the syntax of > unique() in Scilab. > > Please see > > https://help.scilab.org/docs/6.0.2/en_US/unique.html > > > vs > > https://fr.mathworks.com/help/matlab/ref/unique.html > > > Matlab syntax [C,ia,ic] = unique(___) with 3 outputs has no equivalent in > Scilab. i.e. in Matlab, after [C,ia,ic] = unique(A) then A=C(ic), i.e. > values in ic are the indices of corresponding unique value in C. They can > be recovered with the quick and dirty following loop: > > for i=1:length(a) > ia(i)=find(a(i)==C) > end > S. > > Le 16/10/2019 ? 12:10, P M a ?crit : > > [ans,ans,Minstances_hat] = unique(B(:)); > gives: Wrong number of output arguments. > > I also tried : > > [Minstances_hat] = unique(B(:)); > > and get a vector. > also > > [Minstances_hat,index] = unique(B(:)); > > seem to work. > > > However afterwards there is this line: > > masks = reshape(Minstances_hat-1,size(B)); > > I try to convert via: > > mask = matrix(Minstances_hat-1,size(B)); > > but no success. > > > > > > > Am Mi., 16. Okt. 2019 um 11:50 Uhr schrieb St?phane Mottelet < > stephane.mottelet at utc.fr>: > >> Hello >> Le 16/10/2019 ? 11:46, P M a ?crit : >> >> Dear experts, >> >> trying to convert a matlab code to scilab I come across following line: >> >> [~,~,Minstances_hat] = unique(B(:)); >> >> How to replace the "~" symbol? >> >> by dummy names, e.g. >> >> [ans,ans,Minstances_hat] = unique(B(:)); >> >> There is no equivalent mechanism in Scilab. >> >> B is the blue channel of a RGB image...hence a m x n matrix of integers (type(B) = 8 ) >> >> >> Thank you, >> >> Philipp >> >> >> _______________________________________________ >> users mailing listusers at lists.scilab.orghttps://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)344234688http://www.utc.fr/~mottelet >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> >> > > _______________________________________________ > users mailing listusers at lists.scilab.orghttps://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)344234688http://www.utc.fr/~mottelet > > > _______________________________________________ > users mailing listusers at lists.scilab.orghttps://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)344234688http://www.utc.fr/~mottelet > > _______________________________________________ > 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 Oct 17 15:40:48 2019 From: p.muehlmann at gmail.com (P M) Date: Thu, 17 Oct 2019 15:40:48 +0200 Subject: [Scilab-users] rotate x_tick labels Message-ID: Dear all, how can one insert the values of a string vector into a latex-formatted string? Example: myLabels = [ 'label1'; 'label2'; ....; label_n]; // myLabels = vector of strings I am struggling by trying to use the entries of myLabel as automatic generated LaTex-labels for x_ticks. for i = 1: nrOfLabels str = myLabels(i); a.x_ticks.labels(i)="$\rotatebox{90} {str}$"; // this will write "str" in latex format and 90? rotated to each label positionend Of course it is possible to type {str} by hand for each label. But as the labels might change from plot to plot this is not really an option. Any idea? Thank you, Philipp -------------- next part -------------- An HTML attachment was scrubbed... URL: From amonmayr at laas.fr Thu Oct 17 18:48:22 2019 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Thu, 17 Oct 2019 18:48:22 +0200 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ICByb3RhdGUgeF90aWNrIGxh?= =?utf-8?q?bels?= In-Reply-To: Message-ID: <6e24-5da89b80-25-5674fb80@141362244> Hello, a.x_ticks.labels(i)="$\rotatebox{90} {"+str+"}$"; should work. Antoine Le Jeudi, Octobre 17, 2019 15:40 CEST, P M a ?crit: > Dear all, > > how can one insert the values of a string vector into a latex-formatted > string? > > Example: > > myLabels = [ 'label1'; 'label2'; ....; label_n]; // myLabels = vector of > strings > > I am struggling by trying to use the entries of myLabel as automatic > generated LaTex-labels for x_ticks. > > for i = 1: nrOfLabels > str = myLabels(i); > a.x_ticks.labels(i)="$\rotatebox{90} {str}$"; // this will write > "str" in latex format and 90? rotated to each label positionend > > Of course it is possible to type {str} by hand for each label. > But as the labels might change from plot to plot this is not really an > option. > Any idea? > > Thank you, > Philipp From amonmayr at laas.fr Thu Oct 17 18:49:16 2019 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Thu, 17 Oct 2019 18:49:16 +0200 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ICByb3RhdGUgeF90aWNrIGxh?= =?utf-8?q?bels?= In-Reply-To: Message-ID: <6e24-5da89b80-27-5674fb80@141362245> Houps, I meant: a.x_ticks.labels(i)="$\rotatebox{90} {"+myLabels+"}$"; Antoine Le Jeudi, Octobre 17, 2019 15:40 CEST, P M a ?crit: > Dear all, > > how can one insert the values of a string vector into a latex-formatted > string? > > Example: > > myLabels = [ 'label1'; 'label2'; ....; label_n]; // myLabels = vector of > strings > > I am struggling by trying to use the entries of myLabel as automatic > generated LaTex-labels for x_ticks. > > for i = 1: nrOfLabels > str = myLabels(i); > a.x_ticks.labels(i)="$\rotatebox{90} {str}$"; // this will write > "str" in latex format and 90? rotated to each label positionend > > Of course it is possible to type {str} by hand for each label. > But as the labels might change from plot to plot this is not really an > option. > Any idea? > > Thank you, > Philipp From p.muehlmann at gmail.com Fri Oct 18 08:54:52 2019 From: p.muehlmann at gmail.com (P M) Date: Fri, 18 Oct 2019 08:54:52 +0200 Subject: [Scilab-users] ?==?utf-8?q? rotate x_tick labels In-Reply-To: <6e24-5da89b80-27-5674fb80@141362245> References: <6e24-5da89b80-27-5674fb80@141362245> Message-ID: Dear Antoine, that does it. Thank you, Philipp Am Do., 17. Okt. 2019 um 18:49 Uhr schrieb Antoine Monmayrant < amonmayr at laas.fr>: > Houps, > > I meant: > > a.x_ticks.labels(i)="$\rotatebox{90} {"+myLabels+"}$"; > > Antoine > > Le Jeudi, Octobre 17, 2019 15:40 CEST, P M a > ?crit: > > > Dear all, > > > > how can one insert the values of a string vector into a latex-formatted > > string? > > > > Example: > > > > myLabels = [ 'label1'; 'label2'; ....; label_n]; // myLabels = vector > of > > strings > > > > I am struggling by trying to use the entries of myLabel as automatic > > generated LaTex-labels for x_ticks. > > > > for i = 1: nrOfLabels > > str = myLabels(i); > > a.x_ticks.labels(i)="$\rotatebox{90} {str}$"; // this will write > > "str" in latex format and 90? rotated to each label positionend > > > > Of course it is possible to type {str} by hand for each label. > > But as the labels might change from plot to plot this is not really an > > option. > > Any idea? > > > > Thank you, > > Philipp > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From perrichon.pierre at wanadoo.fr Mon Oct 21 12:04:57 2019 From: perrichon.pierre at wanadoo.fr (Perrichon) Date: Mon, 21 Oct 2019 12:04:57 +0200 Subject: [Scilab-users] Curves color when plotting Message-ID: Dear all, Generally, when plotting, curves's color are taken in the range color [1 3 5 7 9 11 13 15], where 1 is the black color. So, the first curve is black Is there a general way to modify this vector as to get another one with blue as first curve. I don't search something like children(i).foreground=xxx, but a generic instruction to do when launching a sce or sci files This possible in xcos, with a cscope where colors can be re-organized Exemple in a cscope : [2 3 5 4 6 16 13 15] Best Regards Pierre P. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Mon Oct 21 12:41:09 2019 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Mon, 21 Oct 2019 10:41:09 +0000 Subject: [Scilab-users] {EXT} Curves color when plotting In-Reply-To: References: Message-ID: Hello Pierre, > De : Perrichon > Envoy? : lundi 21 octobre 2019 12:05 > > Generally, when plotting, curves's color are taken in the range color > [1 3 5 7 9 11 13 15 [...] Is there a general way to modify this vector > as to get another one with blue as first curve. You might consider redefining the colour map: https://help.scilab.org/docs/6.0.2/en_US/colormap.html Hope this helps, 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 anna.parravicini at cnao.it Mon Oct 21 16:02:16 2019 From: anna.parravicini at cnao.it (anna78) Date: Mon, 21 Oct 2019 07:02:16 -0700 (MST) Subject: [Scilab-users] how to faster EVSTR? Message-ID: <1571666536712-0.post@n3.nabble.com> Hi all, I have a 1 Milion entries array of STRING type (test_str array), I should convert to number (test_numer array). I do as follow: test_number=evstr(test_str) It looks like working but it takes a not acceptable time... Do you have a more clever idea? --- Sub-question: I have such a long string array because I get it from an uicontrol 'userdata' and it looks to me only string data can be set as 'userdata'. Is that true or, in fact, I could simply set the user data as a number array (without converting it in string witn the 'string' command)? Now I do as follows: "set(gcbo,"userdata",[spectrum_unit_x, string(spectrum(:,1)'),string(spectrum(:,2)')])" -- Many thanks cheers Anna -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From Christophe.Dang at sidel.com Mon Oct 21 16:39:15 2019 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Mon, 21 Oct 2019 14:39:15 +0000 Subject: [Scilab-users] {EXT} how to faster EVSTR? In-Reply-To: <1571666536712-0.post@n3.nabble.com> References: <1571666536712-0.post@n3.nabble.com> Message-ID: Hello, > De : anna78 > Envoy? : lundi 21 octobre 2019 16:02 > > test_number=evstr(test_str) > > It looks like working but it takes a not acceptable time... > > Do you have a more clever idea? You might try strtod() Generally, the evaluation or execution of strings should be avoided because one could put some malevolent code inside a string. Hope this helps, 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 denis.crete at thalesgroup.com Mon Oct 21 16:37:17 2019 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Mon, 21 Oct 2019 14:37:17 +0000 Subject: [Scilab-users] how to faster EVSTR? In-Reply-To: <1571666536712-0.post@n3.nabble.com> References: <1571666536712-0.post@n3.nabble.com> Message-ID: <19f3ec04840c422f8e8c58344d999ccd@thalesgroup.com> Hello, For the first question: did you try test_number= msscanf(-1,test_str,'%f'); or test_number= strtod(test_str); ? HTH Denis ********************************************* Hi all, I have a 1 Milion entries array of STRING type (test_str array), I should convert to number (test_numer array). I do as follow: test_number=evstr(test_str) It looks like working but it takes a not acceptable time... Do you have a more clever idea? --- Sub-question: I have such a long string array because I get it from an uicontrol 'userdata' and it looks to me only string data can be set as 'userdata'. Is that true or, in fact, I could simply set the user data as a number array (without converting it in string witn the 'string' command)? Now I do as follows: "set(gcbo,"userdata",[spectrum_unit_x, string(spectrum(:,1)'),string(spectrum(:,2)')])" -- Many thanks cheers Anna -- 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 chinluh.tan at bytecode-asia.com Tue Oct 22 04:47:32 2019 From: chinluh.tan at bytecode-asia.com (Chin Luh Tan) Date: Tue, 22 Oct 2019 10:47:32 +0800 Subject: [Scilab-users] {EXT} Curves color when plotting In-Reply-To: References: Message-ID: <16df15cc786.11e05d93e121016.2606358518021159138@bytecode-asia.com> Hi, from my understanding, easiest way to get the color you wanted is by specifying it during the plot function. --> plot(x,sin(x),'b') --> plot(x,cos(x),'b') will gives u 2 blue lines. By default, scilab figure will following the sequence as stated in "help plot" "A default color table is used to color plotted curves if you do not specify a color. When drawing multiple lines, the plot command automatically cycles through this table. Here are the used colors:" R ????? G ????? B 0.????? 0.????? 1. 0.????? 0.5????? 0. 1.????? 0.????? 0. 0.????? 0.75? 0.75 0.75? 0.????? 0.75 0.75? 0.75?? 0. 0.25? 0.25?? 0.25 no matter what colormap you are changing to before the plot, the plot w/o color input will search for the "blue" in the newly define colormap as well. If the previous methods does not work for you, you could plot the graph, find the handle for the line, and change it according to the color index in the colormap for the figure. plot(x,sin(x),x,cos(x)) f = gcf(); f.children.children.children.foreground f.children.children.children.foreground(1) = 2; this will change the second line to blue, as the default colormap f.colormap define blue in the second row. (f.color_map) hope this helps. rgds, CL ---- On Mon, 21 Oct 2019 18:41:09 +0800 Dang Ngoc Chan, Christophe wrote ---- Hello Pierre, > De : Perrichon > Envoy? : lundi 21 octobre 2019 12:05 > > Generally, when plotting, curves's color are taken in the range color > [1 3 5 7 9 11 13 15 [...] Is there a general way to modify this vector > as to get another one with blue as first curve. You might consider redefining the colour map: https://help.scilab.org/docs/6.0.2/en_US/colormap.html Hope this helps, 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. _______________________________________________ users mailing list mailto:users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From chinluh.tan at bytecode-asia.com Tue Oct 22 05:04:21 2019 From: chinluh.tan at bytecode-asia.com (Chin Luh Tan) Date: Tue, 22 Oct 2019 11:04:21 +0800 Subject: [Scilab-users] how to faster EVSTR? In-Reply-To: <19f3ec04840c422f8e8c58344d999ccd@thalesgroup.com> References: <1571666536712-0.post@n3.nabble.com> <19f3ec04840c422f8e8c58344d999ccd@thalesgroup.com> Message-ID: <16df16c2d80.d58013e7121992.3237041536268866045@bytecode-asia.com> For the sub-question, it is not true that userdata can only have string data. It could be any datatype of Scilab (at least the common one, :)) the reason you could not set the numeric data likely due to you're trying to mix string and number: [spectrum_unit_x, string(spectrum(:,1)'),string(spectrum(:,2)')] ? I believe your "spectrum_unit_x" is in string so you need to convert the second and 3rd to string to match the datatype. 1 option is that, you could save them in list: set(gcbo,"userdata", list(spectrum_unit_x, spectrum(:,1)',spectrum(:,2)') then you should be able to extract the data by using the index. mydata = get(gcbo,'userdata') mydata(2) and mydata(2) for the spectrum 1 and 2 respectively. hope this helps. CL ---- On Mon, 21 Oct 2019 22:37:17 +0800 CRETE Denis wrote ---- Hello, For the first question: did you try test_number= msscanf(-1,test_str,'%f'); or test_number= strtod(test_str); ? HTH Denis ********************************************* Hi all, I have a 1 Milion entries array of STRING type (test_str array), I should convert to number (test_numer array). I do as follow: test_number=evstr(test_str) It looks like working but it takes a not acceptable time... Do you have a more clever idea? --- Sub-question: I have such a long string array because I get it from an uicontrol 'userdata' and it looks to me only string data can be set as 'userdata'. Is that true or, in fact, I could simply set the user data as a number array (without converting it in string witn the 'string' command)? Now I do as follows: "set(gcbo,"userdata",[spectrum_unit_x, string(spectrum(:,1)'),string(spectrum(:,2)')])" -- Many thanks cheers Anna -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html _______________________________________________ users mailing list mailto:users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users _______________________________________________ users mailing list mailto:users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From perrichon.pierre at wanadoo.fr Tue Oct 22 09:02:55 2019 From: perrichon.pierre at wanadoo.fr (Perrichon) Date: Tue, 22 Oct 2019 09:02:55 +0200 Subject: [Scilab-users] {EXT} Curves color when plotting In-Reply-To: <16df15cc786.11e05d93e121016.2606358518021159138@bytecode-asia.com> References: <16df15cc786.11e05d93e121016.2606358518021159138@bytecode-asia.com> Message-ID: Hello, Thanks you for your response I mainly plot curves for bode, nyquist plans, et also time response curves with csim. With csim, curves are plotted using plot2d. So the problem is very easy to solve : simulation=csim(in, t, SYS_FTBF ); plot2d(t' , [in' simulation'],rect=[0,ymin_Temp,tmax,ymax_Temp],style=TColor); where TColor=[2 3 5 4 6 16 5 15]; I suppose that 2, 3 ?are index in a Color Table by default. I have no solution to colorize curves with bode or nyquist, exept to acces to children(xx).foreground=TColot(i) where i is the curve number. That's what I wanted to avoid Best regards Pierre P. De : users De la part de Chin Luh Tan Envoy? : mardi 22 octobre 2019 04:48 ? : Users mailing list for Scilab Cc : Users mailing list for Scilab Objet : Re: [Scilab-users] {EXT} Curves color when plotting Hi, from my understanding, easiest way to get the color you wanted is by specifying it during the plot function. --> plot(x,sin(x),'b') --> plot(x,cos(x),'b') will gives u 2 blue lines. By default, scilab figure will following the sequence as stated in "help plot" "A default color table is used to color plotted curves if you do not specify a color. When drawing multiple lines, the plot command automatically cycles through this table. Here are the used colors:" R G B 0. 0. 1. 0. 0.5 0. 1. 0. 0. 0. 0.75 0.75 0.75 0. 0.75 0.75 0.75 0. 0.25 0.25 0.25 no matter what colormap you are changing to before the plot, the plot w/o color input will search for the "blue" in the newly define colormap as well. If the previous methods does not work for you, you could plot the graph, find the handle for the line, and change it according to the color index in the colormap for the figure. plot(x,sin(x),x,cos(x)) f = gcf(); f.children.children.children.foreground f.children.children.children.foreground(1) = 2; this will change the second line to blue, as the default colormap f.colormap define blue in the second row. (f.color_map) hope this helps. rgds, CL ---- On Mon, 21 Oct 2019 18:41:09 +0800 Dang Ngoc Chan, Christophe > wrote ---- Hello Pierre, > De : Perrichon > Envoy? : lundi 21 octobre 2019 12:05 > > Generally, when plotting, curves's color are taken in the range color > [1 3 5 7 9 11 13 15 [...] Is there a general way to modify this vector > as to get another one with blue as first curve. You might consider redefining the colour map: https://help.scilab.org/docs/6.0.2/en_US/colormap.html Hope this helps, 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. _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From anna.parravicini at cnao.it Tue Oct 22 13:34:17 2019 From: anna.parravicini at cnao.it (anna78) Date: Tue, 22 Oct 2019 04:34:17 -0700 (MST) Subject: [Scilab-users] how to faster EVSTR? In-Reply-To: <16df16c2d80.d58013e7121992.3237041536268866045@bytecode-asia.com> References: <1571666536712-0.post@n3.nabble.com> <19f3ec04840c422f8e8c58344d999ccd@thalesgroup.com> <16df16c2d80.d58013e7121992.3237041536268866045@bytecode-asia.com> Message-ID: <1571744057570-0.post@n3.nabble.com> it works perfectly! many thanks! Anna -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From chinluh.tan at bytecode-asia.com Wed Oct 23 02:01:42 2019 From: chinluh.tan at bytecode-asia.com (Chin Luh Tan) Date: Wed, 23 Oct 2019 08:01:42 +0800 Subject: [Scilab-users] {EXT} Curves color when plotting In-Reply-To: <16df452b530.11bf39365246750.7396814877490380919@bytecode-asia.com> References: <16df15cc786.11e05d93e121016.2606358518021159138@bytecode-asia.com> <16df452b530.11bf39365246750.7396814877490380919@bytecode-asia.com> Message-ID: <16df5eb5090.115427f6d306797.6034693133974335391@bytecode-asia.com> Hi, I see. In his case, since Scilab is open source, I think the best way is to edit the plot to suit to your need.? for example, you can edit the bode function, add extra line?to line 125 and 155 // Set datatips info 124 e = gce(); 125 e.children.foreground = tcolor(1); <-- extra line 126 for i=1:size(e.children, "*") 154 ephi = gce(); 155 ephi.children.foreground = tcolor(2) <-- extra line // Set datatips info for i=1:size(ephi.children, "*") and the header bode(tcolor, varargin) so you can call the bode by: bode([2,5],h, 0.01, 100); and get then you goto the SCI\modules\cacsd\macros\ , run buildmacros.sce to make it permanent.? CL ---- On Tue, 22 Oct 2019 15:02:55 +0800 Perrichon wrote ---- Hello, ? Thanks you for your response ? I mainly plot curves for bode, nyquist plans, et also time response curves ?with csim. ? With csim, curves are plotted using plot2d. So the problem is very easy to solve?: ?????????????? simulation=csim(in, t, SYS_FTBF ); ?????????????? plot2d(t' , [in' simulation'],rect=[0,ymin_Temp,tmax,ymax_Temp],style=TColor); ? where TColor=[2 3 5 4 6 16 5 15]; I suppose that 2, 3 ?are index in a Color Table by default.?????????? ? I have no solution to colorize curves with bode or nyquist, exept to acces to children(xx).foreground=TColot(i) where i is the curve number. ? That's what I wanted to avoid ? Best regards Pierre P. ? De?: users De la part de Chin Luh Tan Envoy??: mardi 22 octobre 2019 04:48 ??: Users mailing list for Scilab Cc?: Users mailing list for Scilab Objet?: Re: [Scilab-users] {EXT} Curves color when plotting ? Hi, ? from my understanding, easiest way to get the color you wanted is by specifying it during the plot function. --> plot(x,sin(x),'b') --> plot(x,cos(x),'b') will gives u 2 blue lines. ? ? By default, scilab figure will following the sequence as stated in "help plot" ? ? "A default color table is used to color plotted curves if you do not specify a color. When drawing multiple lines, the plot command automatically cycles through this table. Here are the used colors:" ? R ????? G ????? B 0.????? 0.????? 1. 0.????? 0.5????? 0. 1.????? 0.????? 0. 0.????? 0.75? 0.75 0.75? 0.????? 0.75 0.75? 0.75?? 0. 0.25? 0.25?? 0.25 ? no matter what colormap you are changing to before the plot, the plot w/o color input will search for the "blue" in the newly define colormap as well. ? If the previous methods does not work for you, you could plot the graph, find the handle for the line, and change it according to the color index in the colormap for the figure. ? plot(x,sin(x),x,cos(x)) f = gcf(); f.children.children.children.foreground f.children.children.children.foreground(1) = 2; ? this will change the second line to blue, as the default colormap f.colormap define blue in the second row. (f.color_map) ? hope this helps. ? rgds, CL ? ---- On Mon, 21 Oct 2019 18:41:09 +0800 Dang Ngoc Chan, Christophe wrote ---- ? Hello Pierre, > De : Perrichon > Envoy? : lundi 21 octobre 2019 12:05 > > Generally, when plotting, curves's color are taken in the range color > [1 3 5 7 9 11 13 15 [...] Is there a general way to modify this vector > as to get another one with blue as first curve. You might consider redefining the colour map: https://help.scilab.org/docs/6.0.2/en_US/colormap.html Hope this helps, 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. _______________________________________________ users mailing list mailto:users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users ? ? _______________________________________________ users mailing list mailto:users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 1571788895263000_1830334563.png Type: image/png Size: 52824 bytes Desc: not available URL: From perrichon.pierre at wanadoo.fr Wed Oct 23 12:44:40 2019 From: perrichon.pierre at wanadoo.fr (Perrichon) Date: Wed, 23 Oct 2019 12:44:40 +0200 Subject: [Scilab-users] TR: {EXT} Curves color when plotting In-Reply-To: References: <16df15cc786.11e05d93e121016.2606358518021159138@bytecode-asia.com> <16df452b530.11bf39365246750.7396814877490380919@bytecode-asia.com> <16df5eb5090.115427f6d306797.6034693133974335391@bytecode-asia.com> Message-ID: Hello CL Thanks you for your response. It?s wise en relevant. But yesterday, I?ve found 5 minutes ti program the children(x).foreground Also thanks you for this nice conversation and exchange Pierre P. De : users > De la part de Chin Luh Tan Envoy? : mercredi 23 octobre 2019 02:02 ? : Users mailing list for Scilab > Objet : Re: [Scilab-users] {EXT} Curves color when plotting Hi, I see. In his case, since Scilab is open source, I think the best way is to edit the plot to suit to your need. for example, you can edit the bode function, add extra line to line 125 and 155 // Set datatips info 124 e = gce(); 125 e.children.foreground = tcolor(1); <-- extra line 126 for i=1:size(e.children, "*") 154 ephi = gce(); 155 ephi.children.foreground = tcolor(2) <-- extra line // Set datatips info for i=1:size(ephi.children, "*") and the header bode(tcolor, varargin) so you can call the bode by: bode([2,5],h, 0.01, 100); and get then you goto the SCI\modules\cacsd\macros\ , run buildmacros.sce to make it permanent. CL ---- On Tue, 22 Oct 2019 15:02:55 +0800 Perrichon > wrote ---- Hello, Thanks you for your response I mainly plot curves for bode, nyquist plans, et also time response curves with csim. With csim, curves are plotted using plot2d. So the problem is very easy to solve : simulation=csim(in, t, SYS_FTBF ); plot2d(t' , [in' simulation'],rect=[0,ymin_Temp,tmax,ymax_Temp],style=TColor); where TColor=[2 3 5 4 6 16 5 15]; I suppose that 2, 3 ?are index in a Color Table by default. I have no solution to colorize curves with bode or nyquist, exept to acces to children(xx).foreground=TColot(i) where i is the curve number. That's what I wanted to avoid Best regards -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 15577 bytes Desc: not available URL: From chinluh.tan at bytecode-asia.com Wed Oct 23 14:31:43 2019 From: chinluh.tan at bytecode-asia.com (Chin Luh Tan) Date: Wed, 23 Oct 2019 20:31:43 +0800 Subject: [Scilab-users] how to faster EVSTR? In-Reply-To: <1571744057570-0.post@n3.nabble.com> References: <1571666536712-0.post@n3.nabble.com> <19f3ec04840c422f8e8c58344d999ccd@thalesgroup.com> <16df16c2d80.d58013e7121992.3237041536268866045@bytecode-asia.com> <1571744057570-0.post@n3.nabble.com> Message-ID: <16df899f842.1216a0afa382911.3853531046613394107@bytecode-asia.com> welcome and great it works for you. CL ---- On Tue, 22 Oct 2019 19:34:17 +0800 anna78 wrote ---- it works perfectly! many thanks! Anna -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html _______________________________________________ users mailing list mailto:users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From chinluh.tan at bytecode-asia.com Wed Oct 23 14:32:27 2019 From: chinluh.tan at bytecode-asia.com (Chin Luh Tan) Date: Wed, 23 Oct 2019 20:32:27 +0800 Subject: [Scilab-users] TR: {EXT} Curves color when plotting In-Reply-To: References: <16df15cc786.11e05d93e121016.2606358518021159138@bytecode-asia.com> <16df452b530.11bf39365246750.7396814877490380919@bytecode-asia.com> <16df5eb5090.115427f6d306797.6034693133974335391@bytecode-asia.com> Message-ID: <16df89aa75a.c54deb79383053.5866029067681621068@bytecode-asia.com> very nice chart, great you find your way.? rgds, CL ---- On Wed, 23 Oct 2019 18:44:40 +0800 Perrichon wrote ---- Hello CL Thanks you for your response. It?s wise en relevant. But yesterday, I?ve found 5 minutes ti program the children(x).foreground Also thanks you for this nice conversation and exchange ? ? ? Pierre P. ? ? De?: users De la part de Chin Luh Tan Envoy??: mercredi 23 octobre 2019 02:02 ??: Users mailing list for Scilab Objet?: Re: [Scilab-users] {EXT} Curves color when plotting ? ? Hi, ? I see. In his case, since Scilab is open source, I think the best way is to edit the plot to suit to your need.? ? for example, you can edit the bode function, add extra line?to line 125 and 155 ? // Set datatips info 124 e = gce(); 125 e.children.foreground = tcolor(1);? <-- extra line 126 for i=1:size(e.children, "*") 154 ephi = gce(); 155 ephi.children.foreground = tcolor(2) <-- extra line // Set datatips info for i=1:size(ephi.children, "*") and the header ? bode(tcolor, varargin) so you can call the bode by: ? bode([2,5],h, 0.01, 100); ? and get ? ? ? then you goto the SCI\modules\cacsd\macros\ , run buildmacros.sce to make it permanent.? ? ? CL ? ? ---- On Tue, 22 Oct 2019 15:02:55 +0800 Perrichon wrote ---- ? Hello, ? Thanks you for your response ? I mainly plot curves for bode, nyquist plans, et also time response curves ?with csim. ? With csim, curves are plotted using plot2d. So the problem is very easy to solve?: ?????????????? simulation=csim(in, t, SYS_FTBF ); ?????????????? plot2d(t' , [in' simulation'],rect=[0,ymin_Temp,tmax,ymax_Temp],style=TColor); ? where TColor=[2 3 5 4 6 16 5 15]; I suppose that 2, 3 ?are index in a Color Table by default.?????????? ? I have no solution to colorize curves with bode or nyquist, exept to acces to children(xx).foreground=TColot(i) where i is the curve number. ? That's what I wanted to avoid ? Best regards ? _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 1.jpg Type: image/jpeg Size: 15577 bytes Desc: not available URL: From fmiyara at fceia.unr.edu.ar Fri Oct 25 22:05:23 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Fri, 25 Oct 2019 17:05:23 -0300 Subject: [Scilab-users] Difference btween flts and filter Message-ID: <28040292-aec7-af84-f175-d2dc13a4537b@fceia.unr.edu.ar> Dear all, I would like to know if there is a fundamental difference between functions flts and filter. For instance performance, accuracy, speed, versatility... I had asked some time ago but had no answer. Thanks. Regards, Federico Miyara <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> -- 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 fmiyara at fceia.unr.edu.ar Fri Oct 25 23:25:19 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Fri, 25 Oct 2019 18:25:19 -0300 Subject: [Scilab-users] Inconsistency in polynomial coefficient order? Message-ID: Dear all, I'm somewhat puzzled by what appears to be an inconsistency in polynomial coefficient order. Consider the polynomial A = 1 + 2*x + 3*x^2; If I want to create it using poly I must write A = poly([1 2 3], 'x', 'coeff'); But if I want to use it as the denominator of a filter (whose numerator we can call B) I must write y = filter(B, [3 2 1], x); Is there a reason for this? 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 stephane.mottelet at utc.fr Sat Oct 26 08:38:27 2019 From: stephane.mottelet at utc.fr (=?utf-8?Q?St=C3=A9phane_Mottelet?=) Date: Sat, 26 Oct 2019 08:38:27 +0200 Subject: [Scilab-users] Inconsistency in polynomial coefficient order? In-Reply-To: References: Message-ID: <6D7A7138-1FFB-49C6-BB31-ED1B9EEF4D5C@utc.fr> Hello I think this is due to the Matlab convention, as filter syntax is the same in Scilab. S. > Le 25 oct. 2019 ? 23:25, Federico Miyara a ?crit : > > ? > Dear all, > > I'm somewhat puzzled by what appears to be an inconsistency in polynomial coefficient order. > > Consider the polynomial > > A = 1 + 2*x + 3*x^2; > > If I want to create it using poly I must write > > A = poly([1 2 3], 'x', 'coeff'); > > But if I want to use it as the denominator of a filter (whose numerator we can call B) I must write > > y = filter(B, [3 2 1], x); > > Is there a reason for this? > > Regards, > > Federico Miyara > > Libre de virus. www.avast.com > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From perrichon.pierre at wanadoo.fr Sun Oct 27 17:53:51 2019 From: perrichon.pierre at wanadoo.fr (Perrichon) Date: Sun, 27 Oct 2019 17:53:51 +0100 Subject: [Scilab-users] lincos instruction : example file pendulum_anim45.zcos is corrupted - Buggzilla 16221 Message-ID: Hello, I seems impossible to correctly open the lincos example, so file "SCI/modules/xcos/tests/unit_tests/pendulum_anim45.zcos" I?ve written a buggzilla n? 16221 Best regards -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.jpg Type: image/jpeg Size: 14380 bytes Desc: not available URL: From heinznabielek at me.com Sun Oct 27 23:51:31 2019 From: heinznabielek at me.com (Heinz Nabielek) Date: Sun, 27 Oct 2019 23:51:31 +0100 Subject: [Scilab-users] Scilab cannot work on macOS 10.15 Catalina: Any progress in sight? In-Reply-To: References: Message-ID: <12801866-CB20-4840-AE8D-DF1B233F4EB4@me.com> HELP: after Mac breakdown, I had no other option than installting macOS 10.15 Catalina and now Scilab cannot work, because the nasty Apple people do not allow Java 6. Any progress in sight? Heinz From fujimoto2005 at gmail.com Mon Oct 28 03:44:52 2019 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Sun, 27 Oct 2019 19:44:52 -0700 (MST) Subject: [Scilab-users] save the variables except the functions Message-ID: <1572230692842-0.post@n3.nabble.com> Is there any command like "save(filename)" to saves all variables except for function names and their definition? When debugging, I want to use saved calculated variables after the modification of some functions. After I modify some functions and load all variables, the modified definitions of the functions are updated by the old definitions of the functions. I want to save the variables except for the definition of the function in order to avoid such a situation. Thanks. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From amonmayr at laas.fr Mon Oct 28 09:36:35 2019 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Mon, 28 Oct 2019 09:36:35 +0100 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ICBzYXZlIHRoZSB2YXJpYWJs?= =?utf-8?q?es_except_the_functions?= In-Reply-To: <1572230692842-0.post@n3.nabble.com> Message-ID: <62ad-5db6a880-f-2be674c0@185162427> Hello, I think you can selectively retrieve only the variables, not the functions by combining: - [names, typs, dims, vols] = listvarinfile(filename) that will list all the scilab objects saved in your file, with their type. - a loop over the typs array to discriminate between the objects of type 1 (variables), and that of type 13 (functions) . - load(filename, x1,...,xn) that let you retrieve just a selection of all the objects in a given file. Hope it helps, Antoine Le Lundi, Octobre 28, 2019 03:44 CET, fujimoto2005 a ?crit: > Is there any command like "save(filename)" to saves all variables except for > function names and their definition? > When debugging, I want to use saved calculated variables after the > modification of some functions. > After I modify some functions and load all variables, the modified > definitions of the functions are updated by the old definitions of the > functions. > I want to save the variables except for the definition of the function in > order to avoid such a situation. > > Thanks. > > > > -- > 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 stephane.mottelet at utc.fr Mon Oct 28 11:08:13 2019 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Mon, 28 Oct 2019 11:08:13 +0100 Subject: [Scilab-users] Scilab cannot work on macOS 10.15 Catalina: Any progress in sight? In-Reply-To: <12801866-CB20-4840-AE8D-DF1B233F4EB4@me.com> References: <12801866-CB20-4840-AE8D-DF1B233F4EB4@me.com> Message-ID: <019143c8-5b1d-6bfe-438d-f6fbc69fc27d@utc.fr> Hello, Le 27/10/2019 ? 23:51, Heinz Nabielek a ?crit?: > HELP: after Mac breakdown, I had no other option than installting macOS 10.15 Catalina You always have the choice (using the recovery mode) to reinstall the OSX version that was bundled with your Mac at purchase time. > and now Scilab cannot work, because the nasty Apple people do not allow Java 6. > > Any progress in sight? No. I warned everybody less that one month ago... S. > > Heinz > _______________________________________________ > 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 From sgougeon at free.fr Mon Oct 28 13:15:07 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 28 Oct 2019 13:15:07 +0100 Subject: [Scilab-users] How to know which is the system's font? Message-ID: Dear all, For some display in the console, for which a monospaced font is required, i need to know the name of the system font. Indeed, when in the preferences the console's font is set to the /Desktop font/, and when the /Desktop font/ is set to the /system's font/, the /system's font/ is the console's one. But i have no idea how to query the name of this font. I have tried some property names with system_getproperty (), without success. fonts=xlfont('AVAILABLE_FONTS') returns all fonts available on the system, but does not indicate which is the system's default one. Finally, i have found nothing interesting out of --> unix_w set? // and then getenv() Any idea is welcome. Best regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Mon Oct 28 13:30:13 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 28 Oct 2019 13:30:13 +0100 Subject: [Scilab-users] Still available memory on the Java heap In-Reply-To: References: <2285e9f6-7112-3794-acd4-2cd077a6da4e@free.fr> Message-ID: <7d0be1f9-9f79-9a6d-9695-6eaef1a8a37a@free.fr> Hello, Le 22/07/2019 ? 16:01, Cl?ment David a ?crit?: > Hello Samuel, > > You can get memory information from the JVM using JIMS: > > --> jimport java.lang.Runtime > > --> Runtime.getRuntime().totalMemory() > ans = > > 249036800 I do not get an amount matching the Scilab setting: --> jimport java.lang.Runtime --> Runtime.getRuntime().totalMemory() ?ans? = ? 111149056 --> // while we could expect, with my Scilab < 6.0.2 session --> getPreferencesValue("//general/body/java-heap-memory","heap-size") ?ans? = ?256 --> // or with Scilab >= 6.0.2: --> xmlGetValues("//general/body/java-heap-memory","heap-size") ?ans? = ?256 What could explain this difference? There is still much more than 256 MB free RAM on my computer. From here, is the amount of available Java memory as doubtful as for the total memory? Best regards Samuel PS: related java page: https://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Runtime.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From heinznabielek at me.com Mon Oct 28 13:35:31 2019 From: heinznabielek at me.com (Heinz Nabielek) Date: Mon, 28 Oct 2019 13:35:31 +0100 Subject: [Scilab-users] Scilab cannot work on macOS 10.15 Catalina: Any progress in sight? In-Reply-To: <019143c8-5b1d-6bfe-438d-f6fbc69fc27d@utc.fr> References: <12801866-CB20-4840-AE8D-DF1B233F4EB4@me.com> <019143c8-5b1d-6bfe-438d-f6fbc69fc27d@utc.fr> Message-ID: <24E1AEC7-8D4B-4D27-8CD8-E0BBE7A9312A@me.com> On 28.10.2019, at 11:08, St?phane Mottelet wrote: > > Hello, > > Le 27/10/2019 ? 23:51, Heinz Nabielek a ?crit : >> HELP: after Mac breakdown, I had no other option than installting macOS 10.15 Catalina > You always have the choice (using the recovery mode) to reinstall the OSX version that was bundled with your Mac at purchase time. >> and now Scilab cannot work, because the nasty Apple people do not allow Java 6. >> >> Any progress in sight? > > No. I warned everybody less that one month ago? Thanks a lot. I did not have a choice? There is an ancient Win10 PC around somewhere?. Heinz From sgougeon at free.fr Mon Oct 28 13:36:16 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 28 Oct 2019 13:36:16 +0100 Subject: [Scilab-users] {EXT} Curves color when plotting In-Reply-To: References: <16df15cc786.11e05d93e121016.2606358518021159138@bytecode-asia.com> Message-ID: <25d22f23-5f25-586f-40f5-7d508e85b313@free.fr> Hello, Le 22/10/2019 ? 09:02, Perrichon a ?crit?: > > Hello, > > Thanks you for your response > > I mainly plot curves for bode, nyquist plans, et also time response > curves ?with csim. > > With csim, curves are plotted using plot2d. So the problem is very > easy to solve?: > > simulation=csim(in, t, SYS_FTBF ); > > plot2d(t' , [in' > simulation'],rect=[0,ymin_Temp,tmax,ymax_Temp],style=TColor); > > where TColor=[2 3 5 4 6 16 5 15]; > > I suppose that 2, 3 ?are index in a Color Table by default. > > I have no solution to colorize curves with bode or nyquist, exept to > acces to children(xx).foreground=TColot(i) > > where i is the curve number. > > That's what I wanted to avoid > There is no need to use an external loop on i: // After the bode() 's first example: curves = gcf().children.children.children; curves.foreground = color("orange"); curves.thickness = 2; // After the second bode()'s example : curves = gcf().children.children.children o = color("orange"); g = color("green"); curves.foreground = [o g o g]; curves.thickness = 2; *Using handles on curves looks more powerful than adding a style option to bode().** ***Handles enable tuning all the properties of curves, including their thicknesses, etc, what would require several separate bode's options. Also, handles allow to set properties of any subset of selected curves, while in options a special value would be required to tell "do not change the value for this curve". However, after calling bode(), we could expect that gce() returns curves = gcf().children.children.children while presently bode() does not set gce() at all. This wish would deserve a post in bugzilla. *For the Nyquist plot*: presently, addressing graphical elements is more complex. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: aemkaikfhdocecgn.png Type: image/png Size: 9107 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ecnialkipehoipdd.png Type: image/png Size: 10299 bytes Desc: not available URL: From sgougeon at free.fr Mon Oct 28 13:49:55 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 28 Oct 2019 13:49:55 +0100 Subject: [Scilab-users] Curves color when plotting In-Reply-To: References: Message-ID: Le 21/10/2019 ? 12:04, Perrichon a ?crit?: > > Dear all, > > Generally, when plotting, curves?s color are taken in the range color > [1 3 5 7 9 11 13 15], where 1 is the black color. > > So, the first curve is black > > Is there a general way to modify this vector as to get another one > with blue as first curve. > cm = gdf().color_map; gdf().color_map(1:2,:) = cm([2 1],:); But then, in all forthcoming graphical figures, blue and black colors of the default color map will be switched, for all kinds of plots. Not sure that's a good idea. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Mon Oct 28 13:51:24 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 28 Oct 2019 13:51:24 +0100 Subject: [Scilab-users] convert matlab code to scilab In-Reply-To: References: <385c4a82-17b8-62ab-3ca8-043a64d26c46@utc.fr> Message-ID: <27991e83-a46d-8c80-240c-5fb2a81777d0@free.fr> Le 16/10/2019 ? 13:27, St?phane Mottelet a ?crit?: > > Sorry, in my answer the loop constructs "ic", not? "ia", i.e. the full > equivalent to Matlab's "[C,ia,ic] = unique(A)" is in Scilab: > > [C,ia] = unique(A) > for i=1:length(A) > ??? ic(i)=find(A(i)==C) > end > ic = ones(A); for i = 1:length(ia) ??? ic(A==C(i)) = i; end // Check: and(A==C(ic)) will be always (much) shorter and faster (in case of high redundancy). Samuel From sgougeon at free.fr Mon Oct 28 14:04:36 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 28 Oct 2019 14:04:36 +0100 Subject: [Scilab-users] convert matlab code to scilab In-Reply-To: References: <385c4a82-17b8-62ab-3ca8-043a64d26c46@utc.fr> Message-ID: <942fefa7-7eab-eedf-5002-4c2436ffce18@free.fr> Le 16/10/2019 ? 13:19, St?phane Mottelet a ?crit?: > > Sorry, I thought you were just asking about the tildas, not the syntax > of unique() in Scilab. > > Please see > > https://help.scilab.org/docs/6.0.2/en_US/unique.html > > vs > > https://fr.mathworks.com/help/matlab/ref/unique.html > > Matlab syntax [C,ia,ic] = unique(___)? with 3 outputs has no > equivalent in Scilab. > If this output option is required, this request should be urgently reported on Bugzilla. Indeed, some new unique() features have been implemented and pushed on the Scilab forge for Scilab 6.1.0 , and are pending, in answer to http://bugzilla.scilab.org/8418http://bugzilla.scilab.org/15522http://bugzilla.scilab.org/15795 Such a request would challenge the third output position. To me, the third foreseen output -- that is the vector of numbers of occurrences -- would be more useful, and faster to compute, so rather to appear before possibly ic in the output list. Please note that ic should be computed as well in case of "r" or "c" option. Regards Samuel > i.e. in Matlab, after? [C,ia,ic] = unique(A) then A=C(ic), i.e. values > in ic are the indices of corresponding unique value in C.? They can be > recovered with the quick and dirty following loop: > > for i=1:length(a) > ???? ia(i)=find(a(i)==C) > end > > S. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Mon Oct 28 14:23:52 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 28 Oct 2019 14:23:52 +0100 Subject: [Scilab-users] {EXT} how to faster EVSTR? In-Reply-To: References: <1571666536712-0.post@n3.nabble.com> Message-ID: Le 21/10/2019 ? 16:39, Dang Ngoc Chan, Christophe a ?crit?: > Hello, > >> De : anna78 >> Envoy? : lundi 21 octobre 2019 16:02 >> >> test_number=evstr(test_str) >> >> It looks like working but it takes a not acceptable time... >> >> Do you have a more clever idea? > You might try strtod() Right. evstr() is slower mainly because, historically, it includes some concatenation features that enables it not working in an element-wise way, like with --> evstr(["1:3" "4" ; "5" "7:9"]) ?ans? = ?? 1.?? 2.?? 3.?? 4. ?? 5.?? 7.?? 8.?? 9. This was an unexpected (and undocumented) complication when debugging and upgrading evstr() 2 years ago. We had to (temporarily) renounce to some element-wise processing. However, in order to avoid breaking the back-compatibility, such a element-wise processing could be implemented through a"by-element" optional flag. Then, the sizes of the input and output would match, and some related bugs like the 10196 could be fixed, at last. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From oleksiy.bond at gmail.com Tue Oct 29 02:22:08 2019 From: oleksiy.bond at gmail.com (ol.bond) Date: Mon, 28 Oct 2019 18:22:08 -0700 (MST) Subject: [Scilab-users] How to know which is the system's font? In-Reply-To: References: Message-ID: <1572312128342-0.post@n3.nabble.com> Dear Samuel, You may try to use buil in interpreter of Tcl/Tk. Try the following instruction: TCL_EvalStr("set s [font actual systemfont]") -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Tue Oct 29 18:16:20 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 29 Oct 2019 18:16:20 +0100 Subject: [Scilab-users] How to know which is the system's font? In-Reply-To: <1572312128342-0.post@n3.nabble.com> References: <1572312128342-0.post@n3.nabble.com> Message-ID: Le 29/10/2019 ? 02:22, ol.bond a ?crit?: > Dear Samuel, > > You may try to use buil in interpreter of Tcl/Tk. > > Try the following instruction: TCL_EvalStr("set s [font actual systemfont]") --> TCL_EvalStr("set s [font actual systemfont]") ?ans? = ?-family Arial -size 10 -weight normal -slant roman -underline 0 -overstrike 0 Great! It's not a solution portable to MacOS, but it already helps for 95% of users. Thanks From sgougeon at free.fr Tue Oct 29 18:33:47 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 29 Oct 2019 18:33:47 +0100 Subject: [Scilab-users] unix_w(WSCI+"\bin\scilex --help") returns nothing Message-ID: <74562679-718f-13ba-7693-4186663f3a4e@free.fr> Hello, I have just discovered that, since Scilab 6.0.0, at least for windows users (not tested on Linux), the scilex.exe scilab binary file can be run with new undocumented options. Noticeably, the "--help" one, that shows a list. From a cmd.exe shell: >.\Scilab-6.0.2\bin\scilex --help Usage: Scilab ????? -e Instruction?? : execute the scilab instruction given in Instruction argument. ???????????????????????? -e and -f arguments are mutually exclusive. ????? -f File????????? : execute the scilab script given in File argument. ???????????????????????? -e and -f arguments are mutually exclusive. ????? -quit??????????? : force scilab exit after execution of script from -e or -f argument. ???????????????????????? this flag is ignored if it is not used with -e or -f argument. ????? -l lang????????? : Change the language of scilab ( default : en_US ). ????? -nw????????????? : Enable console mode. ????? -nwni??????????? : Enable terminal mode. ????? -ns????????????? : Don't execute etc/scilab.start. ????? --help?????????? : Display this help. ????? -scihome ?? : Force SCIHOME to . Developer Trace arguments: ????? --parse-trace??? : Display bison state machine evolution. ????? --AST-trace????? : Display ASCII-art AST to be human readable. ????? --pretty-print?? : Display pretty-printed code, standard Scilab syntax. Developer Timer arguments: ????? --AST-timed????? : Time each AST node. ????? --timed????????? : Time global execution. Developer Debug arguments: ????? --no-exec??????? : Only do Lexing/parsing do not execute instructions. ????? --context-dump?? : Display context status. ????? --exec-verbose?? : Display command before running it. ????? --timeout delay? : Kill the Scilab process after a delay. However, if i try to run this command from Scilab through a unix_*() function, it? returns nothing. Nothing in the Scilab session, nothing in the consolebox...: --> unix_w(WSCI+"\bin\scilex --help") --> [re,s,e] = unix_g(SCI+"\bin\scilex --help") ?e? = ?s? = ?? 0. ?re? = ??? [] There is no space in my WSCI path. This behavior looks like the bug 14143 reported for Linux, not confirmed for Windows, and fixed in Scilab 6.0.2. Any confirmation or explanation would be welcome. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Tue Oct 29 20:44:21 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 29 Oct 2019 20:44:21 +0100 Subject: [Scilab-users] How to know which is the system's font? In-Reply-To: References: <1572312128342-0.post@n3.nabble.com> Message-ID: Le 29/10/2019 ? 18:16, Samuel Gougeon a ?crit?: > Le 29/10/2019 ? 02:22, ol.bond a ?crit?: >> Dear Samuel, >> >> You may try to use buil in interpreter of Tcl/Tk. >> >> Try the following instruction: TCL_EvalStr("set s [font actual >> systemfont]") > > --> TCL_EvalStr("set s [font actual systemfont]") > ?ans? = > ?-family Arial -size 10 -weight normal -slant roman -underline 0 > -overstrike 0 After some tests, this answer does not look (always) reliable. In NW and NWNI mode on Windows, it is possible to change at any time the font used in the cmd.exe terminal homing the scilab session. This immediately changes the rendering in the Scilab console. But this does not change the TCL_EvalStr() answer, that is always "Arial" on my system, even when actually setting "Consolas" or "Lucida console" as the actual font. In Scilab STD mode, i don't know how to check if Arial is actually the system's font. Samuel From chinluh.tan at bytecode-asia.com Wed Oct 30 02:33:08 2019 From: chinluh.tan at bytecode-asia.com (Chin Luh Tan) Date: Wed, 30 Oct 2019 09:33:08 +0800 Subject: [Scilab-users] unix_w(WSCI+"\bin\scilex --help") returns nothing In-Reply-To: <74562679-718f-13ba-7693-4186663f3a4e@free.fr> References: <74562679-718f-13ba-7693-4186663f3a4e@free.fr> Message-ID: <16e1a4b8b6d.db9278cf662797.8870424365131974933@bytecode-asia.com> Hi Samuel,? I think we could use this instead: unix_w("Scilex --help? 2>&1") As you mentioned, the "--help" is Scilab 6 dedicated "hardcoded" function, I am yet to look for where is it located from the source, if anyone find out, please share here :). For some reason, the output message seems? to have sent to stderr(2) instead of stdout(1), so we have to redirect it back to stdout for the unix_? to capture it.? Similar case happened to Linux. Thanks. Regards, Chin Luh ---- On Wed, 30 Oct 2019 01:33:47 +0800 Samuel Gougeon wrote ---- Hello, I have just discovered that, since Scilab 6.0.0, at least for windows users (not tested on Linux), the scilex.exe scilab binary file can be run with new undocumented options. Noticeably, the "--help" one, that shows a list. From a cmd.exe shell: >.\Scilab-6.0.2\bin\scilex --help Usage: Scilab ????? -e Instruction?? : execute the scilab instruction given in Instruction argument. ???????????????????????? -e and -f arguments are mutually exclusive. ????? -f File????????? : execute the scilab script given in File argument. ???????????????????????? -e and -f arguments are mutually exclusive. ????? -quit??????????? : force scilab exit after execution of script from -e or -f argument. ???????????????????????? this flag is ignored if it is not used with -e or -f argument. ????? -l lang????????? : Change the language of scilab ( default : en_US ). ????? -nw????????????? : Enable console mode. ????? -nwni??????????? : Enable terminal mode. ????? -ns????????????? : Don't execute etc/scilab.start. ????? --help?????????? : Display this help. ????? -scihome ?? : Force SCIHOME to . Developer Trace arguments: ????? --parse-trace??? : Display bison state machine evolution. ????? --AST-trace????? : Display ASCII-art AST to be human readable. ????? --pretty-print?? : Display pretty-printed code, standard Scilab syntax. Developer Timer arguments: ????? --AST-timed????? : Time each AST node. ????? --timed????????? : Time global execution. Developer Debug arguments: ????? --no-exec??????? : Only do Lexing/parsing do not execute instructions. ????? --context-dump?? : Display context status. ????? --exec-verbose?? : Display command before running it. ????? --timeout delay? : Kill the Scilab process after a delay. However, if i try to run this command from Scilab through a unix_*() function, it? returns nothing. Nothing in the Scilab session, nothing in the consolebox...: --> unix_w(WSCI+"\bin\scilex --help") --> [re,s,e] = unix_g(SCI+"\bin\scilex --help") ?e? =? ?s? = ?? 0. ?re? = ??? [] There is no space in my WSCI path. This behavior looks like the http://bugzilla.scilab.org/show_bug.cgi?id=14143 reported for Linux, not confirmed for Windows, and fixed in Scilab 6.0.2. Any confirmation or explanation would be welcome. Regards Samuel _______________________________________________ users mailing list mailto:users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From chinluh.tan at bytecode-asia.com Wed Oct 30 03:17:07 2019 From: chinluh.tan at bytecode-asia.com (Chin Luh Tan) Date: Wed, 30 Oct 2019 10:17:07 +0800 Subject: [Scilab-users] How to know which is the system's font? In-Reply-To: References: <1572312128342-0.post@n3.nabble.com> Message-ID: <16e1a73cd16.11a1ad31a664978.2997785307874790923@bytecode-asia.com> Hi Samuel,? I am not sure whether the information from the preference tab are the one you need, if so, perhaps it could be retrieved by: --> my_font = xmlGetValues("//fonts/body/fonts", ["font-face", "font-name", "font-size", "item", "latex", "system"]) my_font? = !plain? Monospaced? 13? Console? 15? true? ! --> my_font = xmlGetValues("//fonts/body/fonts/item", ["desktop", "font-face", "font-name", "font-size", "name"]) my_font? = !false? bold? Monospaced? 16? Console?? ! !?????????????????????????????????????? ! !false? bold? Monospaced? 16? Scinotes? ! ---- On Wed, 30 Oct 2019 03:44:21 +0800 Samuel Gougeon wrote ---- Le 29/10/2019 ? 18:16, Samuel Gougeon a ?crit?: > Le 29/10/2019 ? 02:22, ol.bond a ?crit?: >> Dear Samuel, >> >> You may try to use buil in interpreter of Tcl/Tk. >> >> Try the following instruction: TCL_EvalStr("set s [font actual >> systemfont]") > > --> TCL_EvalStr("set s [font actual systemfont]") > ?ans? = > ?-family Arial -size 10 -weight normal -slant roman -underline 0 > -overstrike 0 After some tests, this answer does not look (always) reliable. In NW and NWNI mode on Windows, it is possible to change at any time the font used in the cmd.exe terminal homing the scilab session. This immediately changes the rendering in the Scilab console. But this does not change the TCL_EvalStr() answer, that is always "Arial" on my system, even when actually setting "Consolas" or "Lucida console" as the actual font. In Scilab STD mode, i don't know how to check if Arial is actually the system's font. Samuel _______________________________________________ users mailing list mailto:users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From amonmayr at laas.fr Wed Oct 30 10:14:37 2019 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Wed, 30 Oct 2019 10:14:37 +0100 Subject: [Scilab-users] Accessing sound device using java api from scilab Message-ID: <672a-5db95480-2f-23c7de40@192363629> Hi all, For a small demo project, I am trying to show both the temporal signal and the spectrum of the sound recorded by the microphone of my laptop. I managed to hack together a proof of principle that relies on the linux command "arecord" and uses "unix_g" scilab function. I would be happy to go for a more portable way of recording the sound from scilab. I know there is a java api for sound: As anyone here ever worked with it or tried to call it from scilab? I've never tried to call a java api from within scilab. If you have any ressource and/or tutorial on the sound java api or on calling a java api from scilab, it would be of great help. Thanks in advance, Antoine From perrichon.pierre at wanadoo.fr Wed Oct 30 10:26:53 2019 From: perrichon.pierre at wanadoo.fr (Perrichon) Date: Wed, 30 Oct 2019 10:26:53 +0100 Subject: [Scilab-users] CLR design component is not clear in scilab 6.0.2 x64 W10 Message-ID: Hello CLR design component brings confusion by forgetting the * sign in operand of a polynomial representation in Laplace plan It makes schemes unreadeable Could it be corrected in a next version 6.xx Regards Here is a first lower pass filter with variable Ts=1 (see also buggzilla 16223) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.jpg Type: image/jpeg Size: 13753 bytes Desc: not available URL: From sgougeon at free.fr Wed Oct 30 11:48:22 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 30 Oct 2019 11:48:22 +0100 Subject: [Scilab-users] unix_w(WSCI+"\bin\scilex --help") returns nothing In-Reply-To: <16e1a4b8b6d.db9278cf662797.8870424365131974933@bytecode-asia.com> References: <74562679-718f-13ba-7693-4186663f3a4e@free.fr> <16e1a4b8b6d.db9278cf662797.8870424365131974933@bytecode-asia.com> Message-ID: <62b9f966-1999-2c41-1389-69fdedaf0cbd@free.fr> Hello Chin Luh, Le 30/10/2019 ? 02:33, Chin Luh Tan a ?crit?: > Hi Samuel, > > I think we could use this instead: > > unix_w("Scilex --help? 2>&1") It works perfectly. Thanks. I have tried the same workaround for another MSDOS command, but unfortunately it does not work: --> unix_w("chcp") --> unix_w("chcp? 2>&1") Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Oct 30 11:59:52 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 30 Oct 2019 11:59:52 +0100 Subject: [Scilab-users] CLR design component is not clear in scilab 6.0.2 x64 W10 In-Reply-To: References: Message-ID: Hello Pierre, Le 30/10/2019 ? 10:26, Perrichon a ?crit?: > > Hello > > CLR design component brings confusion by forgetting the * sign in operand > > of a polynomial representation in Laplace plan > The "*" sign has been removed on purpose, in order to somewhat compact the expression displayed in the icon, that can be very wide. It's fine when coefficients are literal numbers, but you are right: when a coefficient is a variable, the display then becomes ambiguous. I will see how to detect and avoid this. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From soeren.becker at ostfalia.de Wed Oct 30 11:54:59 2019 From: soeren.becker at ostfalia.de (=?iso-8859-1?Q?Becker=2C_S=F6ren?=) Date: Wed, 30 Oct 2019 10:54:59 +0000 Subject: [Scilab-users] Screenshot from Xcos Message-ID: Hey Guys, Currently I'm working on a project including code generation for microcontrollers using Xcos. For this I would like to have a screenshot of my Xcos model. I know that I can do it manually with the export function in Xcos, but I want to include it in my Scilab script so that it is automatically made each time code is generated. Does anyone have an idea? Best regards S?ren -------------- next part -------------- An HTML attachment was scrubbed... URL: From perrichon.pierre at wanadoo.fr Wed Oct 30 12:41:10 2019 From: perrichon.pierre at wanadoo.fr (Perrichon) Date: Wed, 30 Oct 2019 12:41:10 +0100 Subject: [Scilab-users] CLR design component is not clear in scilab 6.0.2 x64 W10 In-Reply-To: References: Message-ID: Hello Samuel, Thanks you for your positive response. It gives me hope For literal numbers, sign ? . ? is also acceptable instead of sign ? * ? Best regards Pierre De : users De la part de Samuel Gougeon Envoy? : mercredi 30 octobre 2019 12:00 ? : users at lists.scilab.org Objet : Re: [Scilab-users] CLR design component is not clear in scilab 6.0.2 x64 W10 Hello Pierre, Le 30/10/2019 ? 10:26, Perrichon a ?crit : Hello CLR design component brings confusion by forgetting the * sign in operand of a polynomial representation in Laplace plan The "*" sign has been removed on purpose, in order to somewhat compact the expression displayed in the icon, that can be very wide. It's fine when coefficients are literal numbers, but you are right: when a coefficient is a variable, the display then becomes ambiguous. I will see how to detect and avoid this. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Oct 30 12:52:05 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 30 Oct 2019 12:52:05 +0100 Subject: [Scilab-users] CLR design component is not clear in scilab 6.0.2 x64 W10 In-Reply-To: References: Message-ID: Le 30/10/2019 ? 12:41, Perrichon a ?crit?: > > Hello Samuel, > > Thanks you for your positive response. It gives me hope > > For literal numbers, sign ??.?? is also acceptable instead of sign ??*?? > Yes, i think i planned using it when i did the job, but then the dot with a literal decimal number like "2" that becomes "2." yielded 2..s , that was KO. Detecting decimal integers, trimming their dot... I have given rid of it, without thinking about variables. We could try with a small space as well. Even small things take time to be tuned... And there are _a lot_ of little things. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Oct 30 13:18:52 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 30 Oct 2019 13:18:52 +0100 Subject: [Scilab-users] Accessing sound device using java api from scilab In-Reply-To: <672a-5db95480-2f-23c7de40@192363629> References: <672a-5db95480-2f-23c7de40@192363629> Message-ID: <65a51ffa-5707-65c5-f244-07cb864d6ca7@free.fr> Hello Antoine, Le 30/10/2019 ? 10:14, Antoine Monmayrant a ?crit?: > Hi all, > > For a small demo project, I am trying to show both the temporal signal and the spectrum of the sound recorded by the microphone of my laptop. > I managed to hack together a proof of principle that relies on the linux command "arecord" and uses "unix_g" scilab function. > I would be happy to go for a more portable way of recording the sound from scilab. > I know there is a java api for sound: As anyone here ever worked with it or tried to call it from scilab? > > I've never tried to call a java api from within scilab. > If you have any ressource and/or tutorial on the sound java api or on calling a java api from scilab, it would be of great help. FYI : i am currently supervising a students project about this, for the whole academic year. I submitted this project planning to enhance and extend Scilab sound capabilities, and it was actually assigned to a group of 5 students in School of engineering. Implementing a sound recorder through the standard microphone is one of the addressed topics. It is set as a priority for the mid-term evaluation of the project, in january. The priority is also to get a fully portable solution, and without C/C++ code and compilation using any Scilab API, that would require to be reviewed and recompiled for each new Scilab 6.x release. We know how this makes external modules quickly obsolete and unusable. On this aspect, porting the portaudio and sndfile modules to Scilab 6 has been considered. But after being assessed, it looks too hard to do. BTW, it would not remedy to the need to recompile. So, it is not a priority of the project. Using Java in open source projects requires more care today than one year ago, due to major changes in Oracle Licenses policy since early 2019. But java is still a first way to be explored, indeed. Scilab help pages of JIMS have nice examples to start using the JVM from Scilab: https://help.scilab.org/docs/6.0.2/en_US/section_158670c44b251b5b028c4e3178ff4ed0.html Regards Samuel From chinluh.tan at bytecode-asia.com Wed Oct 30 13:56:09 2019 From: chinluh.tan at bytecode-asia.com (Chin Luh Tan) Date: Wed, 30 Oct 2019 20:56:09 +0800 Subject: [Scilab-users] Accessing sound device using java api from scilab In-Reply-To: <65a51ffa-5707-65c5-f244-07cb864d6ca7@free.fr> References: <672a-5db95480-2f-23c7de40@192363629> <65a51ffa-5707-65c5-f244-07cb864d6ca7@free.fr> Message-ID: <16e1cbcdd16.11719f7ca221211.8313832285744849093@bytecode-asia.com> Hi? Samuel, I agreed that porting the portaudio might not be priority as from what i understand,? it is quite hard to make it non blocking recording.? Infact we just made a module base on java for non blocking recording,? and it was planned to released in a week or 2. There are more room to improve,? perhap your team could use it as fundamental and improved it to a better module? Thanks Regards.? Chin Luh ---- On Wed, 30 Oct 2019 20:18:52 +0800 sgougeon at free.fr wrote ---- Hello Antoine, Le 30/10/2019 ? 10:14, Antoine Monmayrant a ?crit?: > Hi all, > > For a small demo project, I am trying to show both the temporal signal and the spectrum of the sound recorded by the microphone of my laptop. > I managed to hack together a proof of principle that relies on the linux command "arecord" and uses "unix_g" scilab function. > I would be happy to go for a more portable way of recording the sound from scilab. > I know there is a java api for sound: As anyone here ever worked with it or tried to call it from scilab? > > I've never tried to call a java api from within scilab. > If you have any ressource and/or tutorial on the sound java api or on calling a java api from scilab, it would be of great help. FYI : i am currently supervising a students project about this, for the whole academic year. I submitted this project planning to enhance and extend Scilab sound capabilities, and it was actually assigned to a group of 5 students in School of engineering. Implementing a sound recorder through the standard microphone is one of the addressed topics. It is set as a priority for the mid-term evaluation of the project, in january. The priority is also to get a fully portable solution, and without C/C++ code and compilation using any Scilab API, that would require to be reviewed and recompiled for each new Scilab 6.x release. We know how this makes external modules quickly obsolete and unusable. On this aspect, porting the portaudio and sndfile modules to Scilab 6 has been considered. But after being assessed, it looks too hard to do. BTW, it would not remedy to the need to recompile. So, it is not a priority of the project. Using Java in open source projects requires more care today than one year ago, due to major changes in Oracle Licenses policy since early 2019. But java is still a first way to be explored, indeed. Scilab help pages of JIMS have nice examples to start using the JVM from Scilab: https://help.scilab.org/docs/6.0.2/en_US/section_158670c44b251b5b028c4e3178ff4ed0.html 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 amonmayr at laas.fr Wed Oct 30 14:16:33 2019 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Wed, 30 Oct 2019 14:16:33 +0100 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ICBTY3JlZW5zaG90IGZyb20g?= =?utf-8?q?Xcos?= In-Reply-To: Message-ID: <1ea8-5db98d00-f-58b78f80@155445710> Hello, Could this be of any help: https://atoms.scilab.org/toolboxes/animaGIF/1.0 ? Antoine Le Mercredi, Octobre 30, 2019 11:54 CET, Becker, S?ren a ?crit: > Hey Guys, > > Currently I'm working on a project including code generation for microcontrollers using Xcos. > > For this I would like to have a screenshot of my Xcos model. I know that I can do it manually with the export function in Xcos, but I want to include it in my Scilab script so that it is automatically made each time code is generated. > > Does anyone have an idea? > > Best regards > S?ren From amonmayr at laas.fr Wed Oct 30 14:25:33 2019 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Wed, 30 Oct 2019 14:25:33 +0100 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ICBBY2Nlc3Npbmcgc291bmQg?= =?utf-8?q?device_using_java_api_from_scilab?= In-Reply-To: <65a51ffa-5707-65c5-f244-07cb864d6ca7@free.fr> Message-ID: <1ea8-5db98f80-1f-58b78f80@155445755> Hello Samuel, I'll be really happy if you can keep me up to date with the evolution of this project. If you want someone to beta-test the macros or there documentation, I'll be happy to assist. Cheers, Antoine Le Mercredi, Octobre 30, 2019 13:18 CET, Samuel Gougeon a ?crit: > Hello Antoine, > > Le 30/10/2019 ? 10:14, Antoine Monmayrant a ?crit?: > > Hi all, > > > > For a small demo project, I am trying to show both the temporal signal and the spectrum of the sound recorded by the microphone of my laptop. > > I managed to hack together a proof of principle that relies on the linux command "arecord" and uses "unix_g" scilab function. > > I would be happy to go for a more portable way of recording the sound from scilab. > > I know there is a java api for sound: As anyone here ever worked with it or tried to call it from scilab? > > > > I've never tried to call a java api from within scilab. > > If you have any ressource and/or tutorial on the sound java api or on calling a java api from scilab, it would be of great help. > > > FYI : i am currently supervising a students project about this, for the > whole academic year. > I submitted this project planning to enhance and extend Scilab sound > capabilities, and it > was actually assigned to a group of 5 students in School of engineering. > > Implementing a sound recorder through the standard microphone is one of > the addressed topics. > It is set as a priority for the mid-term evaluation of the project, in > january. > The priority is also to get a fully portable solution, and without C/C++ > code and compilation > using any Scilab API, that would require to be reviewed and recompiled > for each new Scilab 6.x release. > We know how this makes external modules quickly obsolete and unusable. > On this aspect, porting the portaudio and sndfile modules to Scilab 6 > has been considered. > But after being assessed, it looks too hard to do. BTW, it would not > remedy to the need to > recompile. So, it is not a priority of the project. > > Using Java in open source projects requires more care today than one > year ago, due to > major changes in Oracle Licenses policy since early 2019. But java is > still a first way to be > explored, indeed. > Scilab help pages of JIMS have nice examples to start using the JVM from > Scilab: > https://help.scilab.org/docs/6.0.2/en_US/section_158670c44b251b5b028c4e3178ff4ed0.html > > Regards > Samuel > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From chinluh.tan at bytecode-asia.com Wed Oct 30 14:45:29 2019 From: chinluh.tan at bytecode-asia.com (Chin Luh Tan) Date: Wed, 30 Oct 2019 21:45:29 +0800 Subject: [Scilab-users] unix_w(WSCI+"\bin\scilex --help") returns nothing In-Reply-To: <62b9f966-1999-2c41-1389-69fdedaf0cbd@free.fr> References: <74562679-718f-13ba-7693-4186663f3a4e@free.fr> <16e1a4b8b6d.db9278cf662797.8870424365131974933@bytecode-asia.com> <62b9f966-1999-2c41-1389-69fdedaf0cbd@free.fr> Message-ID: <16e1cea067a.f528f340763338.732208355973400104@bytecode-asia.com> Hi Samuel,? try unix_w('chcp 0>&1') i don't know why, 0 is the stdin, I am not sure why this works. perhaps some one can explain? Thanks. Regards, Chin Luh ---- On Wed, 30 Oct 2019 18:48:22 +0800 Samuel Gougeon wrote ---- Hello Chin Luh, Le 30/10/2019 ? 02:33, Chin Luh Tan a ?crit?: Hi Samuel,? I think we could use this instead: unix_w("Scilex --help? 2>&1") It works perfectly. Thanks. I have tried the same workaround for another MSDOS command, but unfortunately it does not work: --> unix_w("chcp") --> unix_w("chcp? 2>&1") 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 sgougeon at free.fr Wed Oct 30 15:04:08 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 30 Oct 2019 15:04:08 +0100 Subject: [Scilab-users] unix_w(WSCI+"\bin\scilex --help") returns nothing In-Reply-To: <16e1cea067a.f528f340763338.732208355973400104@bytecode-asia.com> References: <74562679-718f-13ba-7693-4186663f3a4e@free.fr> <16e1a4b8b6d.db9278cf662797.8870424365131974933@bytecode-asia.com> <62b9f966-1999-2c41-1389-69fdedaf0cbd@free.fr> <16e1cea067a.f528f340763338.732208355973400104@bytecode-asia.com> Message-ID: <45aa5f00-30cc-9c94-b777-91479eed9bbf@free.fr> Le 30/10/2019 ? 14:45, Chin Luh Tan a ?crit?: > unix_w('chcp 0>&1') Aa! Fortunately, there are only 3 standard streams to untangle...! But, agreed, this case is rather special. chcp usually expects an input arg, but this syntax does a query and does not provide any input... Anyway, in case of no answer, let's keep in mind that the content of standard streams is not always where we expect it to be. Thanks again. Samuel From sgougeon at free.fr Wed Oct 30 20:32:09 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 30 Oct 2019 20:32:09 +0100 Subject: [Scilab-users] CLR design component is not clear in scilab 6.0.2 x64 W10 In-Reply-To: References: Message-ID: <8fefe77d-6d87-398f-dbdb-ab78bbcce384@free.fr> Le 30/10/2019 ? 12:41, Perrichon a ?crit?: > > Hello Samuel, > > Thanks you for your positive response. It gives me hope > > For literal numbers, sign ??.?? is also acceptable instead of sign ??*?? > With a dot: With a wider space: With the original *: What's the best, in average situation ? My own preference goes to the wider space. But i am not a Xcos user. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ioihlcgbnmolpcmb.png Type: image/png Size: 2067 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pbkadjmdgchjcdbj.png Type: image/png Size: 1992 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: jlmeendhdokmdlli.png Type: image/png Size: 2429 bytes Desc: not available URL: From sgougeon at free.fr Wed Oct 30 21:16:04 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 30 Oct 2019 21:16:04 +0100 Subject: [Scilab-users] unix_w(WSCI+"\bin\scilex --help") returns nothing In-Reply-To: <16e1a4b8b6d.db9278cf662797.8870424365131974933@bytecode-asia.com> References: <74562679-718f-13ba-7693-4186663f3a4e@free.fr> <16e1a4b8b6d.db9278cf662797.8870424365131974933@bytecode-asia.com> Message-ID: Le 30/10/2019 ? 02:33, Chin Luh Tan a ?crit?: > Hi Samuel, > > I think we could use this instead: > > unix_w("Scilex --help? 2>&1") > > > As you mentioned, the "--help" is Scilab 6 dedicated "hardcoded" > function, I am yet to look for where is it located from the source, if > anyone find out, please share here :). > > For some reason, the output message seems? to have sent to stderr(2) > instead of stdout(1), so we have to redirect it back to stdout for the > unix_? to capture it. The whole thing is to know which reason. Clearly,? std::cerr is intentionally targeted, in the source file \scilab\modules\startup\src\cpp\scilab.cpp: static void usage(void) { ??? std::cerr << "Usage: Scilab " << std::endl; ??? std::cerr << "????? -e Instruction?? : execute the scilab instruction given in Instruction argument." << std::endl; ??? std::cerr << "???????????????????????? -e and -f arguments are mutually exclusive." << std::endl; ??? std::cerr << "????? -f File????????? : execute the scilab script given in File argument." << std::endl; ??? std::cerr << "???????????????????????? -e and -f arguments are mutually exclusive." << std::endl; ??? std::cerr << "????? -quit??????????? : force scilab exit after execution of script from -e or -f argument." << std::endl; ??? std::cerr << "???????????????????????? this flag is ignored if it is not used with -e or -f argument." << std::endl; ??? std::cerr << "????? -l lang????????? : Change the language of scilab ( default : en_US )." << std::endl; ??? std::cerr << "????? -nw????????????? : Enable console mode." << std::endl; ??? std::cerr << "????? -nwni??????????? : Enable terminal mode." << std::endl; ??? std::cerr << "????? -ns????????????? : Don't execute etc/scilab.start." << std::endl; ??? std::cerr << "????? --help?????????? : Display this help." << std::endl; ??? std::cerr << "????? -scihome ?? : Force SCIHOME to ." << std::endl; ??? std::cerr << "Developer Trace arguments:" << std::endl; ??? std::cerr << "????? --parse-trace??? : Display bison state machine evolution." << std::endl; ??? std::cerr << "????? --AST-trace????? : Display ASCII-art AST to be human readable." << std::endl; ??? std::cerr << "????? --pretty-print?? : Display pretty-printed code, standard Scilab syntax." << std::endl; ??? std::cerr << " " << std::endl; ??? std::cerr << "Developer Timer arguments:" << std::endl; ??? std::cerr << "????? --AST-timed????? : Time each AST node." << std::endl; ??? std::cerr << "????? --timed????????? : Time global execution." << std::endl; ??? std::cerr << " " << std::endl; ??? std::cerr << "Developer Debug arguments:" << std::endl; ??? std::cerr << "????? --no-exec??????? : Only do Lexing/parsing do not execute instructions." << std::endl; ??? std::cerr << "????? --context-dump?? : Display context status." << std::endl; ??? std::cerr << "????? --exec-verbose?? : Display command before running it." << std::endl; ??? std::cerr << "????? --timeout delay? : Kill the Scilab process after a delay." << std::endl; } -------------- next part -------------- An HTML attachment was scrubbed... URL: From cfuttrup at gmail.com Wed Oct 30 21:38:50 2019 From: cfuttrup at gmail.com (Claus Futtrup) Date: Wed, 30 Oct 2019 21:38:50 +0100 Subject: [Scilab-users] Accessing sound device using java api from scilab In-Reply-To: <65a51ffa-5707-65c5-f244-07cb864d6ca7@free.fr> References: <672a-5db95480-2f-23c7de40@192363629> <65a51ffa-5707-65c5-f244-07cb864d6ca7@free.fr> Message-ID: Hi Samuel >FYI : i am currently supervising a students project about this I? work in an industry with audio, and I'm very interested in this. Please let us know how it ends. If there's any output midways, please post links. :-) Best regards, Claus On 30.10.2019 13:18, Samuel Gougeon wrote: > Hello Antoine, > > Le 30/10/2019 ? 10:14, Antoine Monmayrant a ?crit?: >> Hi all, >> >> For a small demo project, I am trying to show both the temporal >> signal and the spectrum of the sound recorded by the microphone of my >> laptop. >> I managed to hack together a proof of principle that relies on the >> linux command "arecord" and uses "unix_g" scilab function. >> I would be happy to go for a more portable way of recording the sound >> from scilab. >> I know there is a java api for sound: As anyone here ever worked with >> it or tried to call it from scilab? >> >> I've never tried to call a java api from within scilab. >> If you have any ressource and/or tutorial on the sound java api or on >> calling a java api from scilab, it would be of great help. > > > FYI : i am currently supervising a students project about this, for > the whole academic year. > I submitted this project planning to enhance and extend Scilab sound > capabilities, and it > was actually assigned to a group of 5 students in School of engineering. > > Implementing a sound recorder through the standard microphone is one > of the addressed topics. > It is set as a priority for the mid-term evaluation of the project, in > january. > The priority is also to get a fully portable solution, and without > C/C++ code and compilation > using any Scilab API, that would require to be reviewed and recompiled > for each new Scilab 6.x release. > We know how this makes external modules quickly obsolete and unusable. > On this aspect, porting the portaudio and sndfile modules to Scilab 6 > has been considered. > But after being assessed, it looks too hard to do. BTW, it would not > remedy to the need to > recompile. So, it is not a priority of the project. > > Using Java in open source projects requires more care today than one > year ago, due to > major changes in Oracle Licenses policy since early 2019. But java is > still a first way to be > explored, indeed. > Scilab help pages of JIMS have nice examples to start using the JVM > from Scilab: > https://help.scilab.org/docs/6.0.2/en_US/section_158670c44b251b5b028c4e3178ff4ed0.html > > > Regards > Samuel > > > _______________________________________________ > 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 fmiyara at fceia.unr.edu.ar Wed Oct 30 21:51:49 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Wed, 30 Oct 2019 17:51:49 -0300 Subject: [Scilab-users] CLR design component is not clear in scilab 6.0.2 x64 W10 In-Reply-To: <8fefe77d-6d87-398f-dbdb-ab78bbcce384@free.fr> References: <8fefe77d-6d87-398f-dbdb-ab78bbcce384@free.fr> Message-ID: <7ef33bf3-8911-f379-1f83-f20c147b4d0c@fceia.unr.edu.ar> Dear all, I think a half-high (centered) dot "?" is a better (and more standard) multiplication sign, it does not take much space and it cannot be confused with the decimal separator ".", for instance 1 + Ts?s - A?s^2 1 + 2.?s - 0.27?s^2 However, I think the decimal dot shouldn't be used in a block diagram, its only use is to indicate they are real numbers, but block diagrams never refer to integers so the decimal dot is somewhat pedantic. By the way, the "?" can be typed using Alt-250 (on the num pad). Regards, Federico Miyara On 30/10/2019 16:32, Samuel Gougeon wrote: > Le 30/10/2019 ? 12:41, Perrichon a ?crit?: >> >> Hello Samuel, >> >> Thanks you for your positive response. It gives me hope >> >> For literal numbers, sign ??.?? is also acceptable instead of sign ??*?? >> > With a dot: > > With a wider space: > > With the original *: > > What's the best, in average situation ? > > My own preference goes to the wider space. > But i am not a Xcos user. > > > > _______________________________________________ > 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: ioihlcgbnmolpcmb.png Type: image/png Size: 2067 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pbkadjmdgchjcdbj.png Type: image/png Size: 1992 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: jlmeendhdokmdlli.png Type: image/png Size: 2429 bytes Desc: not available URL: From fmiyara at fceia.unr.edu.ar Wed Oct 30 22:11:22 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Wed, 30 Oct 2019 18:11:22 -0300 Subject: [Scilab-users] Accessing sound device using java api from scilab In-Reply-To: <65a51ffa-5707-65c5-f244-07cb864d6ca7@free.fr> References: <672a-5db95480-2f-23c7de40@192363629> <65a51ffa-5707-65c5-f244-07cb864d6ca7@free.fr> Message-ID: Samuel, I too would appreciate direct recording from Scilab and also offer myself to test it! I currently record using Audacity, perhaps some code from Audacity could be reused (it is GPL) Regards, Federico Miyara On 30/10/2019 09:18, Samuel Gougeon wrote: > Hello Antoine, > > Le 30/10/2019 ? 10:14, Antoine Monmayrant a ?crit?: >> Hi all, >> >> For a small demo project, I am trying to show both the temporal >> signal and the spectrum of the sound recorded by the microphone of my >> laptop. >> I managed to hack together a proof of principle that relies on the >> linux command "arecord" and uses "unix_g" scilab function. >> I would be happy to go for a more portable way of recording the sound >> from scilab. >> I know there is a java api for sound: As anyone here ever worked with >> it or tried to call it from scilab? >> >> I've never tried to call a java api from within scilab. >> If you have any ressource and/or tutorial on the sound java api or on >> calling a java api from scilab, it would be of great help. > > > FYI : i am currently supervising a students project about this, for > the whole academic year. > I submitted this project planning to enhance and extend Scilab sound > capabilities, and it > was actually assigned to a group of 5 students in School of engineering. > > Implementing a sound recorder through the standard microphone is one > of the addressed topics. > It is set as a priority for the mid-term evaluation of the project, in > january. > The priority is also to get a fully portable solution, and without > C/C++ code and compilation > using any Scilab API, that would require to be reviewed and recompiled > for each new Scilab 6.x release. > We know how this makes external modules quickly obsolete and unusable. > On this aspect, porting the portaudio and sndfile modules to Scilab 6 > has been considered. > But after being assessed, it looks too hard to do. BTW, it would not > remedy to the need to > recompile. So, it is not a priority of the project. > > Using Java in open source projects requires more care today than one > year ago, due to > major changes in Oracle Licenses policy since early 2019. But java is > still a first way to be > explored, indeed. > Scilab help pages of JIMS have nice examples to start using the JVM > from Scilab: > https://help.scilab.org/docs/6.0.2/en_US/section_158670c44b251b5b028c4e3178ff4ed0.html > > > Regards > 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 sgougeon at free.fr Wed Oct 30 22:43:03 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 30 Oct 2019 22:43:03 +0100 Subject: [Scilab-users] CLR design component is not clear in scilab 6.0.2 x64 W10 In-Reply-To: <7ef33bf3-8911-f379-1f83-f20c147b4d0c@fceia.unr.edu.ar> References: <8fefe77d-6d87-398f-dbdb-ab78bbcce384@free.fr> <7ef33bf3-8911-f379-1f83-f20c147b4d0c@fceia.unr.edu.ar> Message-ID: Le 30/10/2019 ? 21:51, Federico Miyara a ?crit?: > > Dear all, > > I think a half-high (centered) dot "?" is a better (and more standard) > multiplication sign, it does not take much space and it cannot be > confused with the decimal separator ".", for instance > > 1 + Ts?s - A?s^2 > > 1 + 2.?s - 0.27?s^2 > > However, I think the decimal dot shouldn't be used in a block diagram, > its only use is to indicate they are real numbers, but block diagrams > never refer to integers so the decimal dot is somewhat pedantic. ? When a decimal number is integer, the dot is not displayed. With your dot, it would give 1 + 2?s - 0.27?s^2 So the confusion could be only with cases like 1 + 2.55.s I was told that in formulae, the most standard is to use space between multiplied symbols. This is what looks the most widely used. Please see for example https://en.wikipedia.org/wiki/Autocorrelation or any other page using a lot of maths. Output with \cdot : vs wider space or still wider: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: lbkdephlebemkonb.png Type: image/png Size: 2116 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pbkadjmdgchjcdbj.png Type: image/png Size: 1992 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: hlgfocglnfppffgo.png Type: image/png Size: 2068 bytes Desc: not available URL: From sgougeon at free.fr Wed Oct 30 23:02:16 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 30 Oct 2019 23:02:16 +0100 Subject: [Scilab-users] CLR design component is not clear in scilab 6.0.2 x64 W10 In-Reply-To: References: Message-ID: <85cb1dbd-3b93-980a-1b36-24d67d9ca850@free.fr> Le 30/10/2019 ? 10:26, Perrichon a ?crit?: > > Hello > > CLR design component brings confusion by forgetting the * sign in operand > > of a polynomial representation in Laplace plan > > It makes schemes unreadeable > First, you know that la Laplace variable is always s. Second, in such specific cases, you can anyway use this: Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: cgfengfobcfgfjjb.png Type: image/png Size: 25279 bytes Desc: not available URL: From fmiyara at fceia.unr.edu.ar Wed Oct 30 23:25:47 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Wed, 30 Oct 2019 19:25:47 -0300 Subject: [Scilab-users] CLR design component is not clear in scilab 6.0.2 x64 W10 In-Reply-To: References: <8fefe77d-6d87-398f-dbdb-ab78bbcce384@free.fr> <7ef33bf3-8911-f379-1f83-f20c147b4d0c@fceia.unr.edu.ar> Message-ID: <3f0b1982-620f-af6c-9a6f-7bf1cf800a9c@fceia.unr.edu.ar> Samuel, In another e-mail that for some reason was not sent (and was completely deleted...) I mentioned this page https://en.wikipedia.org/wiki/List_of_mathematical_symbols and standard ISO 80000-2, which in its clause 9, item 2.9.5 says that symbol for multiplication is either ? or ?, and that they can be omitted if no misunderstanding is possible, and presents two examples of omission, one with space, such as /a/ /b/, and one without space, such as /ab/ (I suppose this is when one has been already using /a/ and /b/ or they are immediately explained). I like the space more, it is more general and the only situation where it would be ambiguous is between numbers, such as 1.234 58 (since the thousand separator is a short space according to the ISO-BIPM GUM), but between numbers ? is customary. Regards, Federico On 30/10/2019 18:43, Samuel Gougeon wrote: > Le 30/10/2019 ? 21:51, Federico Miyara a ?crit?: >> >> Dear all, >> >> I think a half-high (centered) dot "?" is a better (and more >> standard) multiplication sign, it does not take much space and it >> cannot be confused with the decimal separator ".", for instance >> >> 1 + Ts?s - A?s^2 >> >> 1 + 2.?s - 0.27?s^2 >> >> However, I think the decimal dot shouldn't be used in a block >> diagram, its only use is to indicate they are real numbers, but block >> diagrams never refer to integers so the decimal dot is somewhat pedantic. > > ? > When a decimal number is integer, the dot is not displayed. With your > dot, it would give > 1 + 2?s - 0.27?s^2 > So the confusion could be only with cases like 1 + 2.55.s > > I was told that in formulae, the most standard is to use space between > multiplied symbols. > This is what looks the most widely used. Please see for example > https://en.wikipedia.org/wiki/Autocorrelation or any other page using > a lot of maths. > > Output with \cdot : > > vs wider space > > or still wider: > > > > _______________________________________________ > 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: lbkdephlebemkonb.png Type: image/png Size: 2116 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pbkadjmdgchjcdbj.png Type: image/png Size: 1992 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: hlgfocglnfppffgo.png Type: image/png Size: 2068 bytes Desc: not available URL: From sgougeon at free.fr Thu Oct 31 00:15:55 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 31 Oct 2019 00:15:55 +0100 Subject: [Scilab-users] CLR design component is not clear in scilab 6.0.2 x64 W10 In-Reply-To: <3f0b1982-620f-af6c-9a6f-7bf1cf800a9c@fceia.unr.edu.ar> References: <8fefe77d-6d87-398f-dbdb-ab78bbcce384@free.fr> <7ef33bf3-8911-f379-1f83-f20c147b4d0c@fceia.unr.edu.ar> <3f0b1982-620f-af6c-9a6f-7bf1cf800a9c@fceia.unr.edu.ar> Message-ID: Le 30/10/2019 ? 23:25, Federico Miyara a ?crit?: > > Samuel, > > In another e-mail that for some reason was not sent (and was > completely deleted...) I mentioned this page > https://en.wikipedia.org/wiki/List_of_mathematical_symbols and > standard ISO 80000-2, which in its clause 9, item 2.9.5 I have well received it, but in private, and ending with this reference, that is not public (to buy) (not sure that i can access to it from my University. Will try later). > says that symbol for multiplication is either ? or ?, and that they > can be omitted if no misunderstanding is possible, and presents two > examples of omission, one with space, such as /a/ /b/, and one without > space, such as /ab/ (I suppose this is when one has been already using > /a/ and /b/ or they are immediately explained). Thanks for this explicitness. > > I like the space more, it is more general and the only situation where > it would be ambiguous is between numbers, such as 1.234 58 (since the > thousand separator is a short space according to the ISO-BIPM GUM), > but between numbers ? is customary. It would be /v//ery/ hard (and easily prone to errors, due to many specific cases, using parentheses, etc) to parse the input to detect all possible cases (1-char symbols, multiple-char symbols, literal numbers with or without exponential notations, real or complex, etc) and adapt the multiplication symbol accordingly. We might even define a "Ts.s=2" structure field in the context, and use it in the input. It works. ;-) A final possible gallery: Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: dlmmdcngfdfihifg.png Type: image/png Size: 2363 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pncihbjachplacfe.png Type: image/png Size: 2276 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pbkadjmdgchjcdbj.png Type: image/png Size: 1992 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: glkjbneeaomepfpm.png Type: image/png Size: 2318 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: jjfdofekmgmjmngi.png Type: image/png Size: 2249 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: lmleoihgjknnpihn.png Type: image/png Size: 2325 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: lbkdephlebemkonb.png Type: image/png Size: 2116 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: lodjlbmmajlnfcif.png Type: image/png Size: 2101 bytes Desc: not available URL: From chinluh.tan at bytecode-asia.com Thu Oct 31 01:53:06 2019 From: chinluh.tan at bytecode-asia.com (Chin Luh Tan) Date: Thu, 31 Oct 2019 08:53:06 +0800 Subject: [Scilab-users] unix_w(WSCI+"\bin\scilex --help") returns nothing In-Reply-To: References: <74562679-718f-13ba-7693-4186663f3a4e@free.fr> <16e1a4b8b6d.db9278cf662797.8870424365131974933@bytecode-asia.com> Message-ID: <16e1f4d3f71.10c5430f9862914.5923193869644190696@bytecode-asia.com> fantastic, thanks for pointing this out! rgds, Chin Luh ---- On Thu, 31 Oct 2019 04:16:04 +0800 Samuel Gougeon wrote ---- Le 30/10/2019 ? 02:33, Chin Luh Tan a ?crit?: Hi Samuel,? I think we could use this instead: unix_w("Scilex --help? 2>&1") As you mentioned, the "--help" is Scilab 6 dedicated "hardcoded" function, I am yet to look for where is it located from the source, if anyone find out, please share here :). For some reason, the output message seems? to have sent to stderr(2) instead of stdout(1), so we have to redirect it back to stdout for the unix_? to capture it. The whole thing is to know which reason. Clearly,? std::cerr is intentionally targeted, in the source file \scilab\modules\startup\src\cpp\scilab.cpp: static void usage(void) { ??? std::cerr << "Usage: Scilab " << std::endl; ??? std::cerr << "????? -e Instruction?? : execute the scilab instruction given in Instruction argument." << std::endl; ??? std::cerr << "???????????????????????? -e and -f arguments are mutually exclusive." << std::endl; ??? std::cerr << "????? -f File????????? : execute the scilab script given in File argument." << std::endl; ??? std::cerr << "???????????????????????? -e and -f arguments are mutually exclusive." << std::endl; ??? std::cerr << "????? -quit??????????? : force scilab exit after execution of script from -e or -f argument." << std::endl; ??? std::cerr << "???????????????????????? this flag is ignored if it is not used with -e or -f argument." << std::endl; ??? std::cerr << "????? -l lang????????? : Change the language of scilab ( default : en_US )." << std::endl; ??? std::cerr << "????? -nw????????????? : Enable console mode." << std::endl; ??? std::cerr << "????? -nwni??????????? : Enable terminal mode." << std::endl; ??? std::cerr << "????? -ns????????????? : Don't execute etc/scilab.start." << std::endl; ??? std::cerr << "????? --help?????????? : Display this help." << std::endl; ??? std::cerr << "????? -scihome ?? : Force SCIHOME to ." << std::endl; ??? std::cerr << "Developer Trace arguments:" << std::endl; ??? std::cerr << "????? --parse-trace??? : Display bison state machine evolution." << std::endl; ??? std::cerr << "????? --AST-trace????? : Display ASCII-art AST to be human readable." << std::endl; ??? std::cerr << "????? --pretty-print?? : Display pretty-printed code, standard Scilab syntax." << std::endl; ??? std::cerr << " " << std::endl; ??? std::cerr << "Developer Timer arguments:" << std::endl; ??? std::cerr << "????? --AST-timed????? : Time each AST node." << std::endl; ??? std::cerr << "????? --timed????????? : Time global execution." << std::endl; ??? std::cerr << " " << std::endl; ??? std::cerr << "Developer Debug arguments:" << std::endl; ??? std::cerr << "????? --no-exec??????? : Only do Lexing/parsing do not execute instructions." << std::endl; ??? std::cerr << "????? --context-dump?? : Display context status." << std::endl; ??? std::cerr << "????? --exec-verbose?? : Display command before running it." << std::endl; ??? std::cerr << "????? --timeout delay? : Kill the Scilab process after a delay." << std::endl; } _______________________________________________ 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 Oct 31 02:52:10 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 31 Oct 2019 02:52:10 +0100 Subject: [Scilab-users] Screenshot from Xcos In-Reply-To: References: Message-ID: Le 30/10/2019 ? 11:54, Becker, S?ren a ?crit?: > > Hey Guys, > > Currently I?m working on a project including code generation for > microcontrollers using Xcos. > > > For this I would like to have a screenshot of my Xcos model. I know > that I can do it manually with the export function in Xcos, but I want > to include it in my Scilab script so that it is automatically made > each time code is generated. > > Does anyone have an idea? > Only through java. I will try to add this feature to gui2bitmap () Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From perrichon.pierre at wanadoo.fr Thu Oct 31 10:57:52 2019 From: perrichon.pierre at wanadoo.fr (Pierre PERRICHON) Date: Thu, 31 Oct 2019 10:57:52 +0100 (CET) Subject: [Scilab-users] CLR design component is not clear in scilab 6.0.2 x64 W10 Message-ID: <1686262107.12076.1572515872601.JavaMail.www@wwinf1f12> ? Dear all, dear Samuel, ? Many thanks for your gallery For me the better d ? ? ? > Message du 31/10/19 00:16 > De : "Samuel Gougeon" > A : users at lists.scilab.org > Copie ? : > Objet : Re: [Scilab-users] CLR design component is not clear in scilab 6.0.2 x64 W10 > > Le 30/10/2019 ? 23:25, Federico Miyara a ?crit?: > > Samuel, > > In another e-mail that for some reason was not sent (and was completely deleted...) I mentioned this page https://en.wikipedia.org/wiki/List_of_mathematical_symbols and standard ISO 80000-2, which in its clause 9, item 2.9.5 > I have well received it, but in private, and ending with this reference, that is not public (to buy) > (not sure that i can access to it from my University. Will try later). > > says that symbol for multiplication is either ? or ?, and that they can be omitted if no misunderstanding is possible, and presents two examples of omission, one with space, such as a b, and one without space, such as ab (I suppose this is when one has been already using a and b or they are immediately explained). > > > > Thanks for this explicitness. > > I like the space more, it is more general and the only situation where it would be ambiguous is between numbers, such as 1.234 58 (since the thousand separator is a short space according to the ISO-BIPM GUM), but between numbers ? is customary. > > It would be very hard (and easily prone to errors, due to many specific cases, using parentheses, etc) to parse the input to detect all possible cases (1-char symbols, multiple-char symbols, literal numbers with or without exponential notations, real or complex, etc) and adapt the multiplication symbol accordingly. > > We might even define a "Ts.s=2" structure field in the context, and use it in the input. It works. > ;-) > > A final possible gallery: > >????? >?? ? >???? > > > Regards > > _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: lodjlbmmajlnfcif.png Type: image/png Size: 2101 bytes Desc: not available URL: From sgougeon at free.fr Thu Oct 31 12:15:51 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 31 Oct 2019 12:15:51 +0100 Subject: [Scilab-users] How to know which is the system's font? In-Reply-To: <16e1a73cd16.11a1ad31a664978.2997785307874790923@bytecode-asia.com> References: <1572312128342-0.post@n3.nabble.com> <16e1a73cd16.11a1ad31a664978.2997785307874790923@bytecode-asia.com> Message-ID: <8a60463d-8532-ec07-6295-ee5aa7d943e0@free.fr> Hello Chin Luh, Le 30/10/2019 ? 03:17, Chin Luh Tan a ?crit?: > Hi Samuel, > > I am not sure whether the information from the preference tab are the > one you need, if so, perhaps it could be retrieved by: > > --> my_font = xmlGetValues("//fonts/body/fonts", ["font-face", > "font-name", "font-size", "item", "latex", "system"]) > my_font? = > > !plain? Monospaced? 13? Console? 15? true? ! As far as i have understood (before opening this thread) how the XConfiguration file works wrt the preferences settings, when "system" is true, the system font is used as Desktop Font, instead of the given one. It's the case here, and? then the "plain Monospaced 13" is NOT used as Desktop font. In the Preferences GUI, it is greyed when "Use system font" is checked: But i don't know what the "item" stands for in this tag. It could set the preselected item Console|Scinotes of the "Custom font" section, but, after checking, it's not the case. Next tags are used for the Custom font section. If their "desktop" attribute was set to "true", then for instance the Console font would be the Desktop one (defined in the previous section) instead of the given one (then greyed in the GUI). All these settings are conditionally nested... Not really trivial. At the end, the system font is still implicit. XConfiguration does not provides its name, and it does not have to, since this would be only for information, in read-only mode, that is meaningless in a settings file. Regards Samuel > > --> my_font = xmlGetValues("//fonts/body/fonts/item", ["desktop", > "font-face", "font-name", "font-size", "name"]) > my_font? = > > !false? bold? Monospaced? 16? Console?? ! > !?????????????????????????????????????? ! > !false? bold? Monospaced? 16? Scinotes? ! > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pcdhofaadhaejifc.png Type: image/png Size: 41939 bytes Desc: not available URL: From sgougeon at free.fr Thu Oct 31 12:24:10 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 31 Oct 2019 12:24:10 +0100 Subject: [Scilab-users] How to know which is the system's font? In-Reply-To: <8a60463d-8532-ec07-6295-ee5aa7d943e0@free.fr> References: <1572312128342-0.post@n3.nabble.com> <16e1a73cd16.11a1ad31a664978.2997785307874790923@bytecode-asia.com> <8a60463d-8532-ec07-6295-ee5aa7d943e0@free.fr> Message-ID: <63309a28-8083-ea6a-df2a-1f80a6441712@free.fr> Le 31/10/2019 ? 12:15, Samuel Gougeon a ?crit?: > > Le 30/10/2019 ? 03:17, Chin Luh Tan a ?crit?: >> .../... >> --> my_font = xmlGetValues("//fonts/body/fonts", ["font-face", >> "font-name", "font-size", "item", "latex", "system"]) >> my_font? = >> >> !plain? Monospaced? 13? Console? 15? true? ! > .../... > But i don't know what the "item" stands for in this tag. It could set > the preselected item Console|Scinotes of the "Custom font" section, > but, after checking, it's not the case. Actually, it is the case (i might have forgotten doing something, saving the change?, when first testing): this attribute sets the preselected item of the /Custom font/ section, when opening the GUI. -------------- next part -------------- An HTML attachment was scrubbed... URL: From perrichon.pierre at wanadoo.fr Thu Oct 31 13:36:42 2019 From: perrichon.pierre at wanadoo.fr (Pierre PERRICHON) Date: Thu, 31 Oct 2019 13:36:42 +0100 (CET) Subject: [Scilab-users] Basic test Bode - Nyquist failed scilab 6.0.2 Message-ID: <1688335866.752.1572525402742.JavaMail.www@wwinf1h21> Hello ? BUG DESCRIPTION: ---------------- When entering "bode" then immediatly nyquist at the console, we get error at nyquist execution. ERROR LOG: ---------- Initialisation : Chargement de l'environnement de travail --> bode --> nyquist ? la ligne 162 de la fonction nyquist ( C:\Program Files\scilab-6.0.2\modules\cacsd\macros\nyquist.sci ligne 173 ) ? la ligne 13 de la fonction nyquist ( C:\Program Files\scilab-6.0.2\modules\cacsd\macros\nyquist.sci ligne 24 ) Erreur : les valeurs doivent ?tre strictement positives lorsque le mode logarithmique est activ? sur l'axe x. PS : this test doesn"t run with scilab 5.5.2 ===> error 21 HOW TO REPRODUCE THE BUG: ------------------------- OTHER INFORMATION: ------------------ This error seems due to the fact that figure n?0 is not killed. Solution : 1) Killing figure n?0 at the top of bode en nyquist sci file or 2) generate an aleatory n? for the scf window between 200000 and 300000 for example Regards ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From fujimoto2005 at gmail.com Thu Oct 31 14:46:01 2019 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Thu, 31 Oct 2019 06:46:01 -0700 (MST) Subject: [Scilab-users] ?==?utf-8?q? save the variables except the functions In-Reply-To: <62ad-5db6a880-f-2be674c0@185162427> References: <1572230692842-0.post@n3.nabble.com> <62ad-5db6a880-f-2be674c0@185162427> Message-ID: <1572529561587-0.post@n3.nabble.com> Dear Antoine, Thank you for your reply. I could fix the problem by your idea. Best regards, Masahiro Fujimoto -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From perrichon.pierre at wanadoo.fr Thu Oct 31 15:11:55 2019 From: perrichon.pierre at wanadoo.fr (Pierre PERRICHON) Date: Thu, 31 Oct 2019 15:11:55 +0100 (CET) Subject: [Scilab-users] tr: Re: CLR design component is not clear in scilab 6.0.2 x64 W10 Message-ID: <1869184219.3849.1572531115360.JavaMail.www@wwinf2213> Dear all ? I think this representation (Federico) is the best one and the most relevant. It is even better than the one proposed in Simulink. I sincerely and strongly hope it will be adopted Best regards Pierre ? Here is the last Samuel proposal, the top of the top Very very nice idea ! That's professional and the better I've never seen ! ? ? Regards > Message du 31/10/19 10:57 > De : "Pierre PERRICHON" > A : "UsersmailinglistforScilab" > Copie ? : > Objet : Re: [Scilab-users] CLR design component is not clear in scilab 6.0.2 x64 W10 > > > ? > Dear all, dear Samuel, > ? > Many thanks for your gallery > For me the better d > ? > ? >? > ? > Message du 31/10/19 00:16 > De : "Samuel Gougeon" > A : users at lists.scilab.org > Copie ? : > Objet : Re: [Scilab-users] CLR design component is not clear in scilab 6.0.2 x64 W10 > > Le 30/10/2019 ? 23:25, Federico Miyara a ?crit?: > > Samuel, > > In another e-mail that for some reason was not sent (and was completely deleted...) I mentioned this page https://en.wikipedia.org/wiki/List_of_mathematical_symbols and standard ISO 80000-2, which in its clause 9, item 2.9.5 > > I have well received it, but in private, and ending with this reference, that is not public (to buy) > (not sure that i can access to it from my University. Will try later). > > > says that symbol for multiplication is either ? or ?, and that they can be omitted if no misunderstanding is possible, and presents two examples of omission, one with space, such as a b, and one without space, such as ab (I suppose this is when one has been already using a and b or they are immediately explained). > > > > > > Thanks for this explicitness. > > I like the space more, it is more general and the only situation where it would be ambiguous is between numbers, such as 1.234 58 (since the thousand separator is a short space according to the ISO-BIPM GUM), but between numbers ? is customary. > > > It would be very hard (and easily prone to errors, due to many specific cases, using parentheses, etc) to parse the input to detect all possible cases (1-char symbols, multiple-char symbols, literal numbers with or without exponential notations, real or complex, etc) and adapt the multiplication symbol accordingly. > > We might even define a "Ts.s=2" structure field in the context, and use it in the input. It works. > ;-) > > A final possible gallery: > > >????? > >?? ? > >???? > > > > > Regards > > _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: lodjlbmmajlnfcif.png Type: image/png Size: 2101 bytes Desc: not available URL: From perrichon.pierre at wanadoo.fr Thu Oct 31 15:29:34 2019 From: perrichon.pierre at wanadoo.fr (Pierre PERRICHON) Date: Thu, 31 Oct 2019 15:29:34 +0100 (CET) Subject: [Scilab-users] k*Ts - tr: Re: CLR design component is not clear in scilab 6.0.2 x64 W10 Message-ID: <1166754285.1586.1572532174973.JavaMail.www@wwinf1f21> ? Dear Samuel, if we replace Ts by k*Ts, what does it give? (we hope the same symbol than for .s Sincerely ? ? ? > Message du 31/10/19 15:11 > De : "Pierre PERRICHON" > A : "UsersmailinglistforScilab" > Copie ? : > Objet : tr: Re: [Scilab-users] CLR design component is not clear in scilab 6.0.2 x64 W10 > > Dear all > ? I think this representation (Federico) is the best one and the most relevant. It is even better than the one proposed in Simulink. I sincerely and strongly hope it will be adopted > Best regards Pierre > ? > Here is the last Samuel proposal, the top of the top > Very very nice idea ! > That's professional and the better I've never seen ! > ? > > ? > Regards > Message du 31/10/19 10:57 > De : "Pierre PERRICHON" > A : "UsersmailinglistforScilab" > Copie ? : > Objet : Re: [Scilab-users] CLR design component is not clear in scilab 6.0.2 x64 W10 > > > > ? > > Dear all, dear Samuel, > > ? > > Many thanks for your gallery > > For me the better d > > ? > > ? > >? > > ? > Message du 31/10/19 00:16 > De : "Samuel Gougeon" > A : users at lists.scilab.org > Copie ? : > Objet : Re: [Scilab-users] CLR design component is not clear in scilab 6.0.2 x64 W10 > > Le 30/10/2019 ? 23:25, Federico Miyara a ?crit?: > > Samuel, > > In another e-mail that for some reason was not sent (and was completely deleted...) I mentioned this page https://en.wikipedia.org/wiki/List_of_mathematical_symbols and standard ISO 80000-2, which in its clause 9, item 2.9.5 > > > I have well received it, but in private, and ending with this reference, that is not public (to buy) > (not sure that i can access to it from my University. Will try later). > > > > says that symbol for multiplication is either ? or ?, and that they can be omitted if no misunderstanding is possible, and presents two examples of omission, one with space, such as a b, and one without space, such as ab (I suppose this is when one has been already using a and b or they are immediately explained). > > > > > > > > Thanks for this explicitness. > > I like the space more, it is more general and the only situation where it would be ambiguous is between numbers, such as 1.234 58 (since the thousand separator is a short space according to the ISO-BIPM GUM), but between numbers ? is customary. > > > > It would be very hard (and easily prone to errors, due to many specific cases, using parentheses, etc) to parse the input to detect all possible cases (1-char symbols, multiple-char symbols, literal numbers with or without exponential notations, real or complex, etc) and adapt the multiplication symbol accordingly. > > We might even define a "Ts.s=2" structure field in the context, and use it in the input. It works. > ;-) > > A final possible gallery: > > > >????? > > >?? ? > > >???? > > > > > > > Regards > > _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: lodjlbmmajlnfcif.png Type: image/png Size: 2101 bytes Desc: not available URL: From soeren.becker at ostfalia.de Thu Oct 31 15:47:41 2019 From: soeren.becker at ostfalia.de (=?iso-8859-1?Q?Becker=2C_S=F6ren?=) Date: Thu, 31 Oct 2019 14:47:41 +0000 Subject: [Scilab-users] Screenshot from Xcos In-Reply-To: References: Message-ID: <9e35f3b5ce2c4ef09ceaae590d8d75bf@ostfalia.de> That would be great. Let me know, when you have done that. Thank you. Von: users [mailto:users-bounces at lists.scilab.org] Im Auftrag von Samuel Gougeon Gesendet: Donnerstag, 31. Oktober 2019 02:52 An: users at lists.scilab.org Betreff: Re: [Scilab-users] Screenshot from Xcos Le 30/10/2019 ? 11:54, Becker, S?ren a ?crit : Hey Guys, Currently I'm working on a project including code generation for microcontrollers using Xcos. For this I would like to have a screenshot of my Xcos model. I know that I can do it manually with the export function in Xcos, but I want to include it in my Scilab script so that it is automatically made each time code is generated. Does anyone have an idea? Only through java. I will try to add this feature to gui2bitmap() Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Thu Oct 31 17:03:17 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 31 Oct 2019 17:03:17 +0100 Subject: [Scilab-users] k*Ts - tr: Re: CLR design component is not clear in scilab 6.0.2 x64 W10 In-Reply-To: <1166754285.1586.1572532174973.JavaMail.www@wwinf1f21> References: <1166754285.1586.1572532174973.JavaMail.www@wwinf1f21> Message-ID: <2c6465fe-88f8-7eb8-02f1-62f45596359e@free.fr> Le 31/10/2019 ? 15:29, Pierre PERRICHON a ?crit?: > > ?Dear Samuel, > > if we replace Ts by k*Ts, what does it give? (we hope the same symbol > than for .s > Pierre, As written yesterday, we can't use different symbols/separators for distinct kind of left and right operands. If we chose one, it will be the only and same one for all multiplications. So yes, it will be the same symbol. PS: could you please use "Reply to: users@"? when following-up a discussion? Otherwise, this breaks the thread and makes harder reading it, and duplicates threads. Thanks Samuel From perrichon.pierre at wanadoo.fr Thu Oct 31 18:19:56 2019 From: perrichon.pierre at wanadoo.fr (Pierre PERRICHON) Date: Thu, 31 Oct 2019 18:19:56 +0100 (CET) Subject: [Scilab-users] k*Ts - tr: Re: CLR design component is not clear in scilab 6.0.2 x64 W10 Message-ID: <809505318.5354.1572542396808.JavaMail.www@wwinf1d28> ? Dear Samuel and Xcosers-scilabers ? It's OK Sorry for the reply, my favorite outlook has broken today, and I have had to go on the orange plateform which is more difficult for me. ? OK only one separator of course. This is perfect the "*" was for the dialog box, not for the final rendering of the xcos? box screen of course. ? Regards ? I hope this message is correct fot the thread ? Pierre ? PS : in my neighborhood we go to fiber So intermittent communication right now ? ? > Message du 31/10/19 17:03 > De : "Samuel Gougeon" > A : users at lists.scilab.org > Copie ? : > Objet : Re: [Scilab-users] k*Ts - tr: Re: CLR design component is not clear in scilab 6.0.2 x64 W10 > > Le 31/10/2019 ? 15:29, Pierre PERRICHON a ?crit?: > > ?Dear Samuel, > > if we replace Ts by k*Ts, what does it give? (we hope the same symbol > than for .s > Pierre, As written yesterday, we can't use different symbols/separators for distinct kind of left and right operands. If we chose one, it will be the only and same one for all multiplications. So yes, it will be the same symbol. PS: could you please use "Reply to: users@"? when following-up a discussion? Otherwise, this breaks the thread and makes harder reading it, and duplicates threads. Thanks 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 perrichon.pierre at wanadoo.fr Thu Oct 31 18:34:44 2019 From: perrichon.pierre at wanadoo.fr (Pierre PERRICHON) Date: Thu, 31 Oct 2019 18:34:44 +0100 (CET) Subject: [Scilab-users] Nysquist instruction - fmin fmax parameters vectorized controlling Message-ID: <1077750428.4942.1572543284893.JavaMail.www@wwinf2234> Dear all, As said in the nyquist help instruction, it is possible to get a nyquist plan using this instruction nyquist( sl,[fmin,fmax] [,step] [,comments] [,symmetry]) ... and this example in the same doc : nyquist([Plant;Plant*PID],0.5,100,["Plant";"Plant and PID corrector"]); Here, we see that s1 can be a vectorized siso. Also, the legend is vectorized in the same size. Perfect. But 0.5 and 100 are not vectorize, and as to stay in final in a same quarter, as hope, I need to impose min and mas for h1, h2, h3 ...hn on the siso matrix. But this is not the case for fmin and fmax, even if it is described in the documentation: "The frequencies are given by the bounds fmin,fmax (in Hz) or by a row-vector (or a matrix for multi-output) frq" It doesn't work, I get error, and I'm not able to precise each min and max in that syntax, even if it is easy to get these one for each component in a loop with the vectorized siso, using the instruction : [fmin,fmax]=nyquistfrequencybounds(hi,bounds) Correct with only one transfer function. The aim is to plot the legend. That work here, but representation is bad due to the not vectorized fmin fmax Imagine an isoview (-1,-1, 1 ,1) I can control the min max in a quater if I plot each member one after one,in a loop but in this case I'm not enable to set any the relevant legend Is there a solution ? May be in scilab 6.1.0 ? I look for a syntax as : [nyquist([h1;h2], [[fminh1, fminh2);[fmaxh1, fmaxh2]],["h1";"h2"]) or, better : [nyquist([h1;h2], [fminh1, fminh2],[fmaxh1, fmaxh2],["h1";"h2"]) Best regard -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Thu Oct 31 18:53:10 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 31 Oct 2019 18:53:10 +0100 Subject: [Scilab-users] Nysquist instruction - fmin fmax parameters vectorized controlling In-Reply-To: <1077750428.4942.1572543284893.JavaMail.www@wwinf2234> References: <1077750428.4942.1572543284893.JavaMail.www@wwinf2234> Message-ID: <808092ff-9f5c-8c77-aaeb-bc9734def30a@free.fr> Le 31/10/2019 ? 18:34, Pierre PERRICHON a ?crit?: > > Dear all, > > As said in the nyquist help instruction, it is possible to get a > nyquist plan using this instruction > > nyquist( sl,[fmin,fmax] [,step] [,comments] [,symmetry]) > > ... and this example in the same doc : > > nyquist([Plant;Plant*PID],0.5,100,["Plant";"Plant and PID corrector"]); > > Here, we see that s1 can be a vectorized siso. Also, the legend is > vectorized in the same size. > > Perfect. > > But 0.5 and 100 are not vectorize, and as to stay in final in a same > quarter, as hope, I need to impose min > and mas for h1, h2, h3 ...hn on the siso matrix. > > But this is not the case for fmin and fmax, even if it is described in > the documentation: > > "The frequencies are given by the bounds fmin,fmax (in Hz) > or by a row-vector (or a matrix for multi-output) frq" > > It doesn't work, I get error, and I'm not able to precise each min and > max in that syntax, > Could you please provide an actual full and minimal example enabling to reproduce the error? Apparently, this frq input argument really aims to process vectorized cases. So, at last, it should work. Thanks From fmiyara at fceia.unr.edu.ar Thu Oct 31 19:51:51 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Thu, 31 Oct 2019 15:51:51 -0300 Subject: [Scilab-users] CLR design component is not clear in scilab 6.0.2 x64 W10 In-Reply-To: <85cb1dbd-3b93-980a-1b36-24d67d9ca850@free.fr> References: <85cb1dbd-3b93-980a-1b36-24d67d9ca850@free.fr> Message-ID: <9e97ffda-6de9-3791-6509-583a45818ed6@fceia.unr.edu.ar> Samuel, Just a detail: in some books the p variable is used as the Laplace variable, especially when working with normalized variables. For instance, a normalizad butterworth filter may pe presented as 1/(1 + 2*p + 2*p^2 + p^3) I recall Bildstein's book on Active filters. See also: https://books.google.com.ar/books?id=r5yjPuWQde0C&pg=PR20&lpg=PR20&dq=%22normalized+laplace+variable%22&source=bl&ots=L0hFQ4aA2a&sig=ACfU3U3DpwZTwRN1lMwtxf6RztQHFPj_6Q&hl=es-419&sa=X&ved=2ahUKEwi2hceJk8flAhUhD7kGHcLsBRUQ6AEwAXoECAkQAQ#v=onepage&q=%22normalized%20laplace%20variable%22&f=false But it is true that most references use s. Regards, Federico Miyara On 30/10/2019 19:02, Samuel Gougeon wrote: > Le 30/10/2019 ? 10:26, Perrichon a ?crit?: >> >> Hello >> >> CLR design component brings confusion by forgetting the * sign in >> operand >> >> of a polynomial representation in Laplace plan >> >> It makes schemes unreadeable >> > First, you know that la Laplace variable is always s. > Second, in such specific cases, you can anyway use this: > > 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: cgfengfobcfgfjjb.png Type: image/png Size: 25279 bytes Desc: not available URL: From perrichon.pierre at wanadoo.fr Thu Oct 31 20:39:01 2019 From: perrichon.pierre at wanadoo.fr (Pierre PERRICHON) Date: Thu, 31 Oct 2019 20:39:01 +0100 (CET) Subject: [Scilab-users] CLR design component is not clear in scilab 6.0.2 x64 W10 Message-ID: <636890224.8266.1572550741970.JavaMail.www@wwinf1k16> ? Dear, ? A new time, Federico is right. Monsieur Pierre-Simon de Lapalce is a French man ==> so the variable of Laplace is p American are not France, so they use s Like Grafcet in FRANCE, which is a french conception and SFC in US and their copies several years later. ? I've done my own componants library in certains case under scilab/xcos, without problem in? 5.5.2 and I use p and s in sheme For me not a problem. But I can take 5 minyes ti explain history during the rush with students. ? I hope that the last component with CLR will be accepted and retained, so it is so nice, as said by Federico ans Samuel pour the next 6.1 ? Regards ? ? ? ? > Message du 31/10/19 19:52 > De : "Federico Miyara" > A : users at lists.scilab.org > Copie ? : > Objet : Re: [Scilab-users] CLR design component is not clear in scilab 6.0.2 x64 W10 > > > Samuel, > > Just a detail: in some books the p variable is used as the Laplace variable, especially when working with normalized variables. For instance, a normalizad butterworth filter may pe presented as > > 1/(1 + 2*p + 2*p^2 + p^3) > > I recall Bildstein's book on Active filters. See also: > > https://books.google.com.ar/books?id=r5yjPuWQde0C&pg=PR20&lpg=PR20&dq=%22normalized+laplace+variable%22&source=bl&ots=L0hFQ4aA2a&sig=ACfU3U3DpwZTwRN1lMwtxf6RztQHFPj_6Q&hl=es-419&sa=X&ved=2ahUKEwi2hceJk8flAhUhD7kGHcLsBRUQ6AEwAXoECAkQAQ#v=onepage&q=%22normalized laplace variable%22&f=false > > But it is true that most references use s. > > Regards, > > Federico Miyara > ? > > On 30/10/2019 19:02, Samuel Gougeon wrote: > Le 30/10/2019 ? 10:26, Perrichon a ?crit?: > Hello CLR design component brings confusion by forgetting the * sign in operand of a polynomial representation in Laplace plan It makes schemes unreadeable > First, you know that la Laplace variable is always s. > Second, in such specific cases, you can anyway use this: >? > Samuel > > > _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users > ? Libre de virus. www.avast.com _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: