From dositheus41 at gmail.com Fri Feb 1 09:55:17 2019 From: dositheus41 at gmail.com (=?UTF-8?Q?Ren=C3=A9_Grognard?=) Date: Fri, 1 Feb 2019 19:55:17 +1100 Subject: [Scilab-users] A gateway example in the current scilab-6.0.1 source still remaining in the scilab 5.5.2 old Scilab C API version. Message-ID: Dear user or developer experienced in the new Scilab C API, All the sub-directory: scilab-6.0.1/share/scilab/modules/dynamic_link/examples/gateway, giving a nice, non-trivial example of a gateway, seems an identical copy of the same sub-directory in scilab-5.5.2. Is there somewhere a version converted for scilab-6.0.1 ? The conversion does not seem at all obvious to me. For example I cannot see how the simple instructions given by: Port to the Scilab 6 C API, in: Gateways: from Scilab 5 to Scilab 6, could ever make this gateway compatible with both the Scilab 5 and 6 APIs. (Is there a "mapping" somewhere between the functions, etc, of the old and new Scilab APIs as there is between Scilab and Matlab?) The conversion of that gateway example --- with matrix multiplication in C --- would be a far better example to: Getting started with API_Scilab, than the rather trivial one given. At any rate as it stands the sub-directory in question has no place within the current scilab-6.0.1. Thanks for any comment and maybe the location of an updated version of this particular gateway example. Ren? Grognard -------------- next part -------------- An HTML attachment was scrubbed... URL: From iwoj at il.pw.edu.pl Fri Feb 1 13:55:57 2019 From: iwoj at il.pw.edu.pl (=?UTF-8?Q?Izabela_W=C3=B3jcik-Grz=C4=85ba?=) Date: Fri, 01 Feb 2019 13:55:57 +0100 Subject: [Scilab-users] Different results inside a function and in the console In-Reply-To: <5C536B46.3070102@fceia.unr.edu.ar> References: <2c4f82fd22fb913acd2b1043e3d54084@il.pw.edu.pl> <5C536B46.3070102@fceia.unr.edu.ar> Message-ID: Thank you Federico. I did some tests to check what can be wrong but I failed and till this moment I don't know what was wrong. Fortunately I did some reorganisation in my code and now it works fine. Sorry for bothering but after many failures in tests I was really frustrated. Have a nice day, Iza W dniu 31.01.2019 22:40, Federico Miyara napisa?(a): > Izabela, > > It is difficult to tell what's happening without seeing the function > code. > > However, it appears as if variable p_x were cleared or redefined to > have only 5 components prior to the assignment of two of its elements > (those with indices 1 and 5) when executing the formula. > > What I would do is to create a new function removing all function code > not related to the problem, trying to track what happens to p_x before > applying the formula. > > Regards, > > Federico Miyara > > On 31/01/2019 15:06, Izabela W?jcik-Grz?ba wrote: > >> Hello, >> >> I have a strange problem with simple calculations which are done >> inside a function. I will put here exact data and formula: >> >> p_x= >> >> 0. >> 0. >> 0. >> 0. >> 0. >> 0. >> >> p_x_pocz= >> >> 0. >> 0. >> 0. >> 0. >> 0. >> 0. >> >> reakcje= >> >> 1. 1.03 2.1 -2.1 1. 2. >> 4. 0.92 2.45 -2.45 5. 2. >> >> luzne_nr= >> >> 1. >> 4. >> >> u= >> >> 4.6 >> 3.6 >> -2.4 >> -4.4 >> -1.4 >> >> l_poziom= >> >> 5.1 >> 4.56 >> >> > p_x(reakcje(:,5))=p_x_pocz(reakcje(:,5))+u(luzne_nr).*reakcje(:,2)./l_poziom; >> >> >> When it is calculated inside the function I get a result: >> >> p_x= >> >> 0.93 >> 0. >> 0. >> 0. >> -0.89 >> >> When I use the same data and formula in the Console I get a correct >> result: >> >> p_x = >> >> 0.93 >> 0. >> 0. >> 0. >> -0.89 >> 0. >> >> To check the input values I displayed the input data before the >> formula in the function with disp, and then I used these values for >> calculations in the Console. >> >> Has andybody any idea what can be wrong? Am I missing something? >> >> Thanks for any help. >> >> Kind regards, >> Iza >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > ------------------------- > > [1] > > El software de antivirus Avast ha analizado este correo electr?nico > en busca de virus. > www.avast.com [1] > > > > Links: > ------ > [1] https://www.avast.com/antivirus > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From antoine.elias at scilab-enterprises.com Fri Feb 1 14:48:47 2019 From: antoine.elias at scilab-enterprises.com (Antoine ELIAS) Date: Fri, 1 Feb 2019 14:48:47 +0100 Subject: [Scilab-users] A gateway example in the current scilab-6.0.1 source still remaining in the scilab 5.5.2 old Scilab C API version. In-Reply-To: References: Message-ID: Hello Ren?, With Scilab 5.3.0, late of 2010, we have introduce a new API that will be compatible with new Scilab 6 environment. The goal was to depreciate stackx.h interface too dependent on the format of the old data storage format. ( called "stack" ). This interface is defined in Scilab documentation : https://help.scilab.org/docs/6.0.0/en_US/section_57c66b650f71d7a7eaca3dfe608a4c08.html During development of Scilab 6, we worked on a more efficient API: https://help.scilab.org/docs/6.0.1/en_US/api_scilab.html If you want to write gateways and keep compatibility between 5 and 6, prefer https://help.scilab.org/docs/6.0.0/en_US/section_57c66b650f71d7a7eaca3dfe608a4c08.html If you want to write for Scilab 6 and more use https://help.scilab.org/docs/6.0.1/en_US/api_scilab.html You can find examples in documentation or in the demonstration toolbox 'toolbox skeleton' in your Scilab installation folder. (SCI/contrib/toolbox_skeleton) For example the same gateway writes in both API: --> edit("SCI/contrib/toolbox_skeleton/sci_gateway/c/sci_csum.c"); //compatible 5 and 6 version --> edit("SCI/contrib/toolbox_skeleton/sci_gateway/c/sci_csum6.c"); //scilab 6 and more Thank you for the report, we need to update or remove old examples. Regards, Antoine Le 01/02/2019 ? 09:55, Ren? Grognard a ?crit?: > Dear user or developer experienced in the new Scilab C API, > > All the sub-directory: > scilab-6.0.1/share/scilab/modules/dynamic_link/examples/gateway, > giving a nice, non-trivial example of a gateway, seems an identical > copy of the same sub-directory in scilab-5.5.2. > > Is there somewhere a version converted for scilab-6.0.1 ? > > The conversion does not seem at all obvious to me. For example I > cannot see how the simple instructions given by: Port to the Scilab 6 > C API, in: Gateways: from Scilab 5 to Scilab 6, could ever make this > gateway compatible with both the Scilab 5 and 6 APIs. (Is there a > "mapping" somewhere between the functions, etc, of the old and new > Scilab APIs as there is between Scilab and Matlab?) > > The conversion of that gateway example --- with matrix multiplication > in C --- would be a far better example to: Getting started with > API_Scilab, than the rather trivial one given. At any rate as it > stands the sub-directory in question has no place within the current > scilab-6.0.1. > > Thanks for any comment and maybe the location of an updated version of > this particular gateway example. > > Ren? Grognard > > > > > > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From fmiyara at fceia.unr.edu.ar Sat Feb 2 09:42:24 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Sat, 2 Feb 2019 05:42:24 -0300 Subject: [Scilab-users] Why plot doesn't work on integers Message-ID: <5C5557F0.8040007@fceia.unr.edu.ar> Dear all, I know it is better to use plot2d, but I wonder why plot works differently from plot2d when one of the variables is integer. Consider this code // Generate x axis with real (double) numbers x = (1:20)/20 // Generate y axis with random integers y = iconvert(100*rand(1,20),2) // Plot y vs x plot(x, y) The plot represents x vs its index, which is not the intended behavior. Replacing plot(x,y) with plot2d(x,y) we get the correct plot. The documentation of both plot and plot2d requires "real" matrix or vector. It seems that plot takes it a bit too literally (as a data type) while plot2d adheres to the mathematical meaning of "real" (considering integer numbers as a subset of real numbers). Is there a fundamental reason for this? The problem arises when one retrieves integers from a file without converting them to double (which requires much more memory). Regards, Federico Miyara --- El software de antivirus Avast ha analizado este correo electr?nico en busca de virus. https://www.avast.com/antivirus -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sat Feb 2 21:29:24 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 2 Feb 2019 21:29:24 +0100 Subject: [Scilab-users] Why plot doesn't work on integers In-Reply-To: <5C5557F0.8040007@fceia.unr.edu.ar> References: <5C5557F0.8040007@fceia.unr.edu.ar> Message-ID: <4f9c5ad4-0153-95ad-776e-003032a753fa@free.fr> Hello Federico, Thanks for pointing this issue. It is clearly a bug. It occurs since the earliest ages of Scilab. It will be fixed ASAP. Regards Samuel Le 02/02/2019 ? 09:42, Federico Miyara a ?crit : > > Dear all, > > I know it is better to use plot2d, but I wonder why plot works > differently from plot2d when one of the variables is integer. > > Consider this code > > // Generate x axis with real (double) numbers > x = (1:20)/20 > > // Generate y axis with random integers > y = iconvert(100*rand(1,20),2) > > // Plot y vs x > plot(x, y) > > The plot represents x vs its index, which is not the intended > behavior. Replacing plot(x,y) with plot2d(x,y) we get the correct plot. > > The documentation of both plot and plot2d requires "real" matrix or > vector. It seems that plot takes it a bit too literally (as a data > type) while plot2d adheres to the mathematical meaning of "real" > (considering integer numbers as a subset of real numbers). > > Is there a fundamental reason for this? > > The problem arises when one retrieves integers from a file without > converting them to double (which requires much more memory). > > Regards, > > Federico Miyara > > > > 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 fmiyara at fceia.unr.edu.ar Sat Feb 2 22:00:15 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Sat, 2 Feb 2019 18:00:15 -0300 Subject: [Scilab-users] Why plot doesn't work on integers In-Reply-To: <4f9c5ad4-0153-95ad-776e-003032a753fa@free.fr> References: <5C5557F0.8040007@fceia.unr.edu.ar> <4f9c5ad4-0153-95ad-776e-003032a753fa@free.fr> Message-ID: <5C5604DF.5040503@fceia.unr.edu.ar> Thank you, I'm glad to help a little bit improve this great software. Regards, Federico Miyara On 02/02/2019 17:29, Samuel Gougeon wrote: > Hello Federico, > > Thanks for pointing this issue. > It is clearly a bug. It occurs since the earliest ages of Scilab. > It will be fixed ASAP. > > Regards > Samuel > > Le 02/02/2019 ? 09:42, Federico Miyara a ?crit : >> >> Dear all, >> >> I know it is better to use plot2d, but I wonder why plot works >> differently from plot2d when one of the variables is integer. >> >> Consider this code >> >> // Generate x axis with real (double) numbers >> x = (1:20)/20 >> >> // Generate y axis with random integers >> y = iconvert(100*rand(1,20),2) >> >> // Plot y vs x >> plot(x, y) >> >> The plot represents x vs its index, which is not the intended >> behavior. Replacing plot(x,y) with plot2d(x,y) we get the correct plot. >> >> The documentation of both plot and plot2d requires "real" matrix or >> vector. It seems that plot takes it a bit too literally (as a data >> type) while plot2d adheres to the mathematical meaning of "real" >> (considering integer numbers as a subset of real numbers). >> >> Is there a fundamental reason for this? >> >> The problem arises when one retrieves integers from a file without >> converting them to double (which requires much more memory). >> >> Regards, >> >> Federico Miyara >> >> >> >> 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 > > > > > _______________________________________________ > 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 skiba.g at gmail.com Wed Feb 6 12:59:23 2019 From: skiba.g at gmail.com (Grzegorz) Date: Wed, 6 Feb 2019 04:59:23 -0700 (MST) Subject: [Scilab-users] scilab-branch-6.0 crashes when changing block parameters Message-ID: <1549454363503-0.post@n3.nabble.com> Hello, I see that we are close to new Scilab release:) Thanks for your great work! I've installed Scilab from 6.0 branch and having some problems with Xcos. It may be not an issue since 6.0 branch is still under development. Just letting you know :) Build #3904 of Revision f0a2a8124ad40c3d519fc5c8120bf5294fd38811 When I use Xcos and e.g CLSS block, open its parameters and simply confirm with OK Scilab crashes. After checking block code I've found that line with graphics object assignment crashes Scilab. // code from Xcos block ..... graphics.exprs = exprs; *x.graphics = graphics;* x.model = model; .... >From hs_err_pid11472.log I get EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000050dad1cc, pid=11472, tid=0x00000000000032ac Regards Grzegorz -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From Clement.David at esi-group.com Wed Feb 6 13:52:27 2019 From: Clement.David at esi-group.com (=?iso-8859-1?Q?Cl=E9ment_David?=) Date: Wed, 6 Feb 2019 12:52:27 +0000 Subject: [Scilab-users] scilab-branch-6.0 crashes when changing block parameters In-Reply-To: <1549454363503-0.post@n3.nabble.com> References: <1549454363503-0.post@n3.nabble.com> Message-ID: Hello Grzegorz, Correct! There is some invalid read/write and memory leaks while using Xcos. There were some fixes already applied but still some work to do (see [1] for example). I will check your reported issue (double click on CLSS on windows 64) to check what is wrong. Thanks for your investigation, hope we will fix it for the release. [1]: https://codereview.scilab.org/#/c/20796/ -- Cl?ment -----Original Message----- From: users On Behalf Of Grzegorz Sent: Wednesday, February 6, 2019 12:59 PM To: users at lists.scilab.org Subject: [Scilab-users] scilab-branch-6.0 crashes when changing block parameters Hello, I see that we are close to new Scilab release:) Thanks for your great work! I've installed Scilab from 6.0 branch and having some problems with Xcos. It may be not an issue since 6.0 branch is still under development. Just letting you know :) Build #3904 of Revision f0a2a8124ad40c3d519fc5c8120bf5294fd38811 When I use Xcos and e.g CLSS block, open its parameters and simply confirm with OK Scilab crashes. After checking block code I've found that line with graphics object assignment crashes Scilab. // code from Xcos block ..... graphics.exprs = exprs; *x.graphics = graphics;* x.model = model; .... >From hs_err_pid11472.log I get EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000050dad1cc, pid=11472, tid=0x00000000000032ac Regards Grzegorz -- 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 paul.carrico at esterline.com Mon Feb 11 15:43:04 2019 From: paul.carrico at esterline.com (Carrico, Paul) Date: Mon, 11 Feb 2019 14:43:04 +0000 Subject: [Scilab-users] Scilab crash on a Windows server Message-ID: <3A6B7233274DB449A2A0053A47684F953FF1FBC4@BGS-EX01.auxitrol.ad> Dear Scilab developers While my code works on my workstation, I've met the current issue when running it on a Windows server 2007 using the current Scilab stable release. In addition, the troubles come when I'm using h5 instructions (h5ls, h5read and so on) Does this issue have ever been fixed ? if so I guess that a nightly build release can be used Thanks Paul Nb: I absolutely need to run it on that server ! Problem signature: Problem Event Name: APPCRASH Application Name: wscilex.exe Application Version: 6.0.1.0 Application Timestamp: 5a8551b5 Fault Module Name: MSVCR120.dll Fault Module Version: 12.0.21005.1 Fault Module Timestamp: 524f83ff Exception Code: c000001d Exception Offset: 0000000000093143 OS Version: 6.0.6002.2.2.0.272.36 Locale ID: 2057 Additional Information 1: 6ada Additional Information 2: fca3fe733ee7ca1410f98f05e229e12c Additional Information 3: 8be5 Additional Information 4: d88bc67e3ca5f123dc5350e3d08104a7 Read our privacy statement: http://go.microsoft.com/fwlink/?linkid=50163&clcid=0x0409 EXPORT CONTROL : ? Cet email ne contient pas de donn?es techniques ? ? This email does not contain technical data ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From samuel.enibe at unn.edu.ng Wed Feb 13 11:00:19 2019 From: samuel.enibe at unn.edu.ng (Samuel Enibe) Date: Wed, 13 Feb 2019 11:00:19 +0100 Subject: [Scilab-users] Scilab 5.5.2 on Ubuntu 18.04LTS Message-ID: Dear SCILAB users, How do I make make SCILAB 5.5.2 to work on Ubuntu 18.04 LTS? I have downloaded the 64 bit binary version for Linux, unpacked it and called it using the recommended command ./bin/scilab The error I get is this Segmentation fault (core dumped) I tried the 32 bit binary version for Linux and get a different error message, namely scilab-bin: error while loading shared libraries: libjava.so: cannot open shared object file: No such file or directory The latest SCILAB 6.0.1 version works to some extent, but the ATOMS packages do not work on it yet. Any solutions would be appreciated. God bless you. Samuel Ogbonna Enibe University of Nigeria, Nsukka, Nigeria -------------- next part -------------- An HTML attachment was scrubbed... URL: From vilppu91 at hotmail.com Thu Feb 14 13:45:13 2019 From: vilppu91 at hotmail.com (Vilppu) Date: Thu, 14 Feb 2019 05:45:13 -0700 (MST) Subject: [Scilab-users] Small problem with Scilab 6.0.1 code generation Message-ID: <1550148313088-0.post@n3.nabble.com> Hello, I am using Windows 10 Enterprise, Scilab 6.0.1, MinGw toolbox 0.10.5 and gcc 6.2.0. All are 64 bit versions. When I try to use Xcos feature ?code generation? on any super block I get this warning three times: ?operation +: Warning adding a matrix with the empty matrix will give an empty matrix result?. Then the basic messages: generate loader file, ?, compilation, ?, Link done, and finally info about Scilab variable blk (type pointer). Scilab generates all the C codes and interfacing functions but for some reason the super block doesn?t change to C block. If I manually add Xcos block ?generic_block3? and change the parameters to match the automatically generated interfacing function the model will work. If I use on the same computer Scilab 5.5.2, MinGw toolbox 0.9.3 and gcc 4.6.3 (all 64 bit versions), I don?t get any messages in Scilab prompt from using code generation in Xcos. But the super block will automatically turn into C block. Any ideas what might be causing this? If something is unclear in my description please don?t hesitate to ask verification. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From yann.debray at scilab-enterprises.com Thu Feb 14 18:09:27 2019 From: yann.debray at scilab-enterprises.com (yann.debray at scilab-enterprises.com) Date: Thu, 14 Feb 2019 18:09:27 +0100 Subject: [Scilab-users] Scilab 6.0.2 is released! Message-ID: Dear Scilab users, First of all, Happy valentine's day ?? You might say that we are romantic... as we are releasing Scilab 6.0.2 at the anniversary date of the release of Scilab 6.0.1 (14th of February 2018). But we are french after all! This release was a joint effort between Scilab contributors and the Scilab team at ESI Group. Scilab 6.0.2 is the second revision of the 6.0 development branch. It fixes up to 305 bugs and implements missing features from the 5.5.2 version especially : * fix crashes and buggy behaviors on functions, displays and error reporting. * Xcos edition should no longer stop, block or crash Scilab. * Many help pages have been improved with new examples and rephrasing. For the complete list of changes and bugs fixed, please take a look at the CHANGES file. Download this brand new version at https://www.scilab.org/download/6.0.2 Openly Yours Yann for the Scilab Team From stephane.mottelet at utc.fr Thu Feb 14 18:36:33 2019 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Thu, 14 Feb 2019 18:36:33 +0100 Subject: [Scilab-users] Scilab 5.5.2 on Ubuntu 18.04LTS In-Reply-To: References: Message-ID: Hello Samuel, Le 13/02/2019 ? 11:00, Samuel Enibe a ?crit?: > Dear SCILAB users, > > How do I make make SCILAB 5.5.2 to work on Ubuntu 18.04 LTS? > > I have downloaded the 64 bit binary version for Linux, unpacked it you just have to remove the bundled libz : rm scilab-5.5.2/lib/thirdparty/libz* scilab should start then S. > and called it using the recommended command > ?./bin/scilab > > The error I get is this > > Segmentation fault (core dumped) > > I tried the 32 bit binary version for Linux and get a different error > message, namely > > scilab-bin: error while loading shared libraries: libjava.so: cannot > open shared object file: No such file or directory > > > The latest SCILAB 6.0.1 version works to some extent, but the ATOMS > packages do not work on it yet. > > Any solutions would be appreciated. > > God bless you. > Samuel Ogbonna Enibe > University of Nigeria, Nsukka, Nigeria > > > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Thu Feb 14 20:50:46 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 14 Feb 2019 20:50:46 +0100 Subject: [Scilab-users] Small problem with Scilab 6.0.1 code generation In-Reply-To: <1550148313088-0.post@n3.nabble.com> References: <1550148313088-0.post@n3.nabble.com> Message-ID: Hello, Le 14/02/2019 ? 13:45, Vilppu a ?crit : > Hello, > > I am using Windows 10 Enterprise, Scilab 6.0.1, MinGw toolbox 0.10.5 and gcc > 6.2.0. All are 64 bit versions. When I try to use Xcos feature ?code > generation? on any super block I get this warning three times: ?operation +: > Warning adding a matrix with the empty matrix will give an empty matrix > result?. Whenever you get this warning, then please set --> warning stop and then redo what yielded the warning. You should then get a proper error message where exactly the first warning has taken place. The error message is accurate and self-explicit, and shall be reported, together with the protocole enabling to reproduce the issue. This is the only way to get a diagnostic and then fix the issue. Thanks Best regards Samuel From heinznabielek at me.com Fri Feb 15 01:07:25 2019 From: heinznabielek at me.com (Heinz Nabielek) Date: Fri, 15 Feb 2019 01:07:25 +0100 Subject: [Scilab-users] Scilab 6.0.2 is released! In-Reply-To: References: Message-ID: <362C9423-C95C-4F81-B5F2-23DE7CF58A44@me.com> On 14.02.2019, at 18:09, yann.debray at scilab-enterprises.com wrote: > > Dear Scilab users, > > First of all, Happy valentine's day ?? You might say that we are romantic... as we are releasing Scilab 6.0.2 at the anniversary date of the release of Scilab 6.0.1 (14th of February 2018). But we are french after all! > This release was a joint effort between Scilab contributors and the Scilab team at ESI Group. > > Scilab 6.0.2 is the second revision of the 6.0 development branch. It fixes up to 305 bugs and implements missing features from the 5.5.2 version especially : Works like a snap... Heinz From stephane.mottelet at utc.fr Fri Feb 15 08:36:11 2019 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Fri, 15 Feb 2019 08:36:11 +0100 Subject: [Scilab-users] Scilab 6.0.2 is released! In-Reply-To: <362C9423-C95C-4F81-B5F2-23DE7CF58A44@me.com> References: <362C9423-C95C-4F81-B5F2-23DE7CF58A44@me.com> Message-ID: <134aabf1-dafb-d3bc-d002-414e15fbc6f5@utc.fr> Le 15/02/2019 ? 01:07, Heinz Nabielek a ?crit?: > On 14.02.2019, at 18:09, yann.debray at scilab-enterprises.com wrote: >> Dear Scilab users, >> >> First of all, Happy valentine's day ?? You might say that we are romantic... as we are releasing Scilab 6.0.2 at the anniversary date of the release of Scilab 6.0.1 (14th of February 2018). But we are french after all! >> This release was a joint effort between Scilab contributors and the Scilab team at ESI Group. >> >> Scilab 6.0.2 is the second revision of the 6.0 development branch. It fixes up to 305 bugs and implements missing features from the 5.5.2 version especially : > > Works like a snap... OSX Mojave I presume? ? > 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 vilppu91 at hotmail.com Fri Feb 15 08:36:53 2019 From: vilppu91 at hotmail.com (Vilppu) Date: Fri, 15 Feb 2019 00:36:53 -0700 (MST) Subject: [Scilab-users] Small problem with Scilab 6.0.1 code generation In-Reply-To: References: <1550148313088-0.post@n3.nabble.com> Message-ID: <1550216213364-0.post@n3.nabble.com> Hello, Thank you for the quick reply. Scilab6_step.zcos I have attached the Xcos model which I'm testing. It is just the step function example with CLR and mux blocks inside a super block. When I have the warning function set to stop and I try to generate code from the super block, I get this pop-up window titled Scilab Message: *** Execution stopped after a warning. *** Set warning("on") to continue execution after a warning. After I click ok. I get a new Scilab message: Generated block cannot be linked with Scilab. I have this text in Scilab console: operation +: Warning adding a matrix with the empty matrix will give an empty matrix result. blk = [] When I have the warning function set to on and I try to generate code from the super block, I get this text in Scilab console: operation +: Warning adding a matrix with the empty matrix will give an empty matrix result. operation +: Warning adding a matrix with the empty matrix will give an empty matrix result. operation +: Warning adding a matrix with the empty matrix will give an empty matrix result. Generate a loader file Generate a Makefile Running the Makefile Compilation of test.obj Compilation of test_void_io.obj Compilation of test_Cblocks.obj Building shared library (be patient) Generate a cleaner file Shared archive loaded. Link done. blk = GUI : test_c Graphics: orig = [190,110] sz = [100,90] exprs = [] pin = 0 pout = 0 pein = [] peout = [] gr_i = [] id = "" in_implicit = "E" out_implicit = "E" in_style = "ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0" out_style = "ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0" in_label = "" out_label = "" style = "SUPER_f" Model : test type: 4 in = 1 in2 = 1 intyp = 1 out = 2 out2 = 1 outtyp = 1 evtin = [] evtout = [] state = 0 dstate = [0;0;0;0] odstate = list(0,0,[0;0]) rpar : SuperBlock ipar = [2;1;1] opar = list() blocktype = "c" firing = [] dep_ut = [%t,%t] label = "" nzcross = 0 nmode = 0 equations = list() uid = "" -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From heinznabielek at me.com Fri Feb 15 09:02:56 2019 From: heinznabielek at me.com (Heinz Nabielek) Date: Fri, 15 Feb 2019 09:02:56 +0100 Subject: [Scilab-users] Scilab 6.0.2 is released! In-Reply-To: <134aabf1-dafb-d3bc-d002-414e15fbc6f5@utc.fr> References: <362C9423-C95C-4F81-B5F2-23DE7CF58A44@me.com> <134aabf1-dafb-d3bc-d002-414e15fbc6f5@utc.fr> Message-ID: <1DFBFF6D-FBC8-44E9-929F-F9BA15CB2548@me.com> macOS Mojave 10.14.4 Beta heinz > On 15.02.2019, at 08:36, St?phane Mottelet wrote: > > Le 15/02/2019 ? 01:07, Heinz Nabielek a ?crit : >> On 14.02.2019, at 18:09, yann.debray at scilab-enterprises.com wrote: >>> Dear Scilab users, >>> >>> First of all, Happy valentine's day ?? You might say that we are romantic... as we are releasing Scilab 6.0.2 at the anniversary date of the release of Scilab 6.0.1 (14th of February 2018). But we are french after all! >>> This release was a joint effort between Scilab contributors and the Scilab team at ESI Group. >>> >>> Scilab 6.0.2 is the second revision of the 6.0 development branch. It fixes up to 305 bugs and implements missing features from the 5.5.2 version especially : >> >> Works like a snap... > OSX Mojave I presume ? >> 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 > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From paul.carrico at esterline.com Fri Feb 15 11:00:26 2019 From: paul.carrico at esterline.com (Carrico, Paul) Date: Fri, 15 Feb 2019 10:00:26 +0000 Subject: [Scilab-users] delaunay_2 issue on windows (feedback) Message-ID: <3A6B7233274DB449A2A0053A47684F953FF20407@BGS-EX01.auxitrol.ad> Dear all First of all thanks to Scilab team for the new release. In the example at the end of this post, I'm wondering why Scilab crashes when using tessellation, but only on Windows 7 Professional service pack 1 OS ? It's not the first time I'm using it (with success), but here with these new data, it fails (it's the case with the previous release as well). NB: It's work on a previous "branch" release under Linux but now with the new 6.0.2 release I've a trouble when loading cgal: A feedback Paul ######################################################### Initialisation : Chargement de l'environnement de travail Start CG-lab Load macros Load thirdparties Load gateways atomsLoad : Une erreur est survenue au cours du chargement de 'cglab-2.3.2': exec: error on line #13: "link : La biblioth?que partag?e n'a pas ?t? charg?e: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /opt/scilab-6.0.2/share/scilab/contrib/cglab/2.3.2/sci_gateway/c//../../src/cpp/libcgal_cpp.so)" ######################################################### clc, clear, mode(0) data = [ 6.283185307179587 8.600000381469727 6.283185307179587 8.725000381469727 6.283185307179587 8.850000381469727 6.283185307179587 8.975000381469727 6.283185307179587 9.100000381469727 6.283185307179587 9.225000381469727 6.283185307179587 9.350000381469727 6.283185307179587 9.475000381469727 6.283185307179587 9.600000381469727 6.283185307179587 9.699999809265137 6.283185307179587 9.800000190734863 6.1766729953605575 8.600000381469727 6.1766729953605575 8.725000381469727 6.1766729953605575 8.850000381469727 6.1766729953605575 8.975000381469727 6.1766729953605575 9.100000381469727 6.1766729953605575 9.225000381469727 6.1766729953605575 9.350000381469727 6.1766729953605575 9.475000381469727 6.1766729953605575 9.600000381469727 ]; triangles_index = delaunay_2(data(:,1)', data(:,2)'); -------------- next part -------------- An HTML attachment was scrubbed... URL: From samuel.enibe at unn.edu.ng Fri Feb 15 16:11:21 2019 From: samuel.enibe at unn.edu.ng (Samuel Enibe) Date: Fri, 15 Feb 2019 16:11:21 +0100 Subject: [Scilab-users] Scilab 5.5.2 on Ubuntu 18.04LTS In-Reply-To: References: Message-ID: Thank you very much, Stephanie, for the suggestion. I have tried it and it worked very well. God bless you richly. Samuel Ogbonna Enibe University of Nigeria, Nsukka, Nigeria On Thu, Feb 14, 2019 at 6:37 PM St?phane Mottelet wrote: > Hello Samuel, > > Le 13/02/2019 ? 11:00, Samuel Enibe a ?crit : > > Dear SCILAB users, > > How do I make make SCILAB 5.5.2 to work on Ubuntu 18.04 LTS? > > I have downloaded the 64 bit binary version for Linux, unpacked it > > you just have to remove the bundled libz : > > rm scilab-5.5.2/lib/thirdparty/libz* > > scilab should start then > > S. > > and called it using the recommended command > ./bin/scilab > > The error I get is this > > Segmentation fault (core dumped) > > I tried the 32 bit binary version for Linux and get a different error > message, namely > > scilab-bin: error while loading shared libraries: libjava.so: cannot open > shared object file: No such file or directory > > > The latest SCILAB 6.0.1 version works to some extent, but the ATOMS > packages do not work on it yet. > > Any solutions would be appreciated. > > God bless you. > Samuel Ogbonna Enibe > University of Nigeria, Nsukka, Nigeria > > > _______________________________________________ > 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 sgougeon at free.fr Fri Feb 15 16:54:54 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 15 Feb 2019 16:54:54 +0100 Subject: [Scilab-users] delaunay_2 issue on windows (feedback) In-Reply-To: <3A6B7233274DB449A2A0053A47684F953FF20407@BGS-EX01.auxitrol.ad> References: <3A6B7233274DB449A2A0053A47684F953FF20407@BGS-EX01.auxitrol.ad> Message-ID: <772a3bc7-11b6-d54f-2781-e44bfa65ef4f@free.fr> Hello Paul, Le 15/02/2019 ? 11:00, Carrico, Paul a ?crit : > > Dear all > > First of all thanks to Scilab team for the new release. > > In the example at the end of this post, I?m wondering why Scilab > crashes when using tessellation, but only on *_Windows 7 Professional > service pack 1 OS_* ? It?s not the first time I?m using it (with > success), but here with these new data, it fails (it?s the case with > the previous release as well). > .../... > > data= [ > > 6.2831853071795878.600000381469727 > > 6.2831853071795878.725000381469727 > > 6.2831853071795878.850000381469727 > > 6.2831853071795878.975000381469727 > > 6.2831853071795879.100000381469727 > > 6.2831853071795879.225000381469727 > > 6.2831853071795879.350000381469727 > > 6.2831853071795879.475000381469727 > > 6.2831853071795879.600000381469727 > > 6.2831853071795879.699999809265137 > > 6.2831853071795879.800000190734863 > > 6.17667299536055758.600000381469727 > > 6.17667299536055758.725000381469727 > > 6.17667299536055758.850000381469727 > > 6.17667299536055758.975000381469727 > > 6.17667299536055759.100000381469727 > > 6.17667299536055759.225000381469727 > > 6.17667299536055759.350000381469727 > > 6.17667299536055759.475000381469727 > > 6.17667299536055759.600000381469727 > > ]; > > triangles_index= delaunay_2(data(:,1)', data(:,2)'); > No issue for me with Scilab 6.0.2 on Win7 Home Edition: --> triangles_index triangles_index = 2 3 14 1 2 13 3 4 15 4 5 16 5 6 17 6 7 18 7 8 19 8 9 20 9 10 20 10 11 20 1 13 12 2 14 13 3 15 14 4 16 15 5 17 16 6 18 17 7 19 18 8 20 19 Regards Samuel PS: However i did not run clc, clear, mode(0) and did not test with them. -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.muehlmann at gmail.com Fri Feb 15 21:46:04 2019 From: p.muehlmann at gmail.com (P M) Date: Fri, 15 Feb 2019 21:46:04 +0100 Subject: [Scilab-users] need a little help Message-ID: Hi experts, my problem is (I guess) a very common thing, but I somehow get stucked. I aim to find the nearest position of ANY value in array_1 to ANY position in array_2. e.g.: A = array of doubles with 1000 elements. B = array of doubles with 10'000 elements. for each element of A I want to know it's nearest value in B. Also I want to know the index of the nearest value in B. I could do it in a bunch of for-loops, but this is way to slow, since this loops 1000 values against 10'000 values of B. something like this: nearesVal = zeros(1000); distIndex = zeros(1000); for i=1:1000 d = 1000000; // just a rediculous big number that is much greater than max(A) & max(B) for j = 1:10000 act_dist = abs( A(i) - B(j) ); // actual minimal distance if act_dist <= d d = act_dist; nearestVal(i) = B(j); distIndex(i) = j; end end end I do not have Scilab at hand, while I am writing this, but it looks like it should work :-) Thanks Phil -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Fri Feb 15 22:55:09 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 15 Feb 2019 22:55:09 +0100 Subject: [Scilab-users] need a little help In-Reply-To: References: Message-ID: <715e41b9-0162-14d8-4589-08b62602c98e@free.fr> Sorry, instead of my previous message, please read --> [A,B] = ndgrid(rand(1,1000), rand(1,10000)); // test's data --> size(A) ans = 1000. 10000. --> [v, i] = min(abs(A-B), *"c"*); Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From shorne at energetiq.com Fri Feb 15 22:36:26 2019 From: shorne at energetiq.com (shorne at energetiq.com) Date: Fri, 15 Feb 2019 16:36:26 -0500 Subject: [Scilab-users] need a little help In-Reply-To: References: Message-ID: A simpler way -- outarr=zeros(1000) for i=1:1000 [m,k]=min(abs(B-A(i)); outarr(i)=k; end; This will produce a list in outarr such that outarr(n) is the index of the element in B closest to the n'th element in A . If you want to go faster, consider setting up a binary tree containing B. Then use the tree to search for nearest neighbor to A(i) and to -A(i). Then decide which neighbor is closer. (I think this works). Searching the tree goes as log of length of B at the expense of a linear time in setting it up. For some length of B this will win. S From: "P M" To: "International users mailing list for Scilab." Date: 02/15/2019 03:58 PM Subject: [Scilab-users] need a little help Sent by: "users" Hi experts, my problem is (I guess) a very common thing, but I somehow get stucked. I aim to find the nearest position of ANY value in array_1 to ANY position in array_2. e.g.: A = array of doubles with 1000 elements. B = array of doubles with 10'000 elements. for each element of A I want to know it's nearest value in B. Also I want to know the index of the nearest value in B. I could do it in a bunch of for-loops, but this is way to slow, since this loops 1000 values against 10'000 values of B. something like this: nearesVal ? = zeros(1000); distIndex??? = zeros(1000); for i=1:1000 ? d = 1000000; // just a rediculous big number that is much greater than max(A) & max(B) ? for j = 1:10000 ???? act_dist = abs( A(i) - B(j) ); ? ? // actual minimal distance ???? if act_dist <= d ??????? d = act_dist; ??????? nearestVal(i) = B(j); ??????? distIndex(i)? = j; ????? end ?? end end I do not have Scilab at hand, while I am writing this, but it looks like it should work :-) Thanks Phil _______________________________________________ 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: graycol.gif Type: image/gif Size: 105 bytes Desc: not available URL: From sgougeon at free.fr Fri Feb 15 22:49:48 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 15 Feb 2019 22:49:48 +0100 Subject: [Scilab-users] need a little help In-Reply-To: References: Message-ID: Hello Phil, This should work: --> [A,B] = ndgrid(rand(1,1000), rand(1,10000)); // test's data --> size(A) ans = 1000. 10000. --> [v, i] = min(abs(A-B)); The minimal distances are in v, the index of the closest in B are in i. Regards Samuel Le 15/02/2019 ? 21:46, P M a ?crit : > Hi experts, > > my problem is (I guess) a very common thing, but I somehow get stucked. > > I aim to find the nearest position of ANY value in array_1 to ANY > position in array_2. > > e.g.: > > A = array of doubles with 1000 elements. > B = array of doubles with 10'000 elements. > > for each element of A I want to know it's nearest value in B. > Also I want to know the index of the nearest value in B. > > I could do it in a bunch of for-loops, but this is way to slow, since > this loops 1000 values against 10'000 values of B. > > something like this: > > nearesVal = zeros(1000); > distIndex = zeros(1000); > > for i=1:1000 > d = 1000000; // just a rediculous big number that is much greater > than max(A) & max(B) > for j = 1:10000 > act_dist = abs( A(i) - B(j) ); // actual minimal distance > if act_dist <= d > d = act_dist; > nearestVal(i) = B(j); > distIndex(i) = j; > end > end > end > > I do not have Scilab at hand, while I am writing this, but it looks > like it should work :-) > > Thanks > Phil > > > > > > > > > > > _______________________________________________ > 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 Feb 15 23:22:16 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 15 Feb 2019 23:22:16 +0100 Subject: [Scilab-users] need a little help In-Reply-To: <715e41b9-0162-14d8-4589-08b62602c98e@free.fr> References: <715e41b9-0162-14d8-4589-08b62602c98e@free.fr> Message-ID: ... and even clearer, with respect to your own notations: --> A = rand(1,1000); // test's data --> B = rand(1,10000); --> [a, b] = ndgrid(A, B); --> size(a) // same for b ans = 1000. 10000. --> [v, i] = min(abs(a-b), *"c"*); -------------- next part -------------- An HTML attachment was scrubbed... URL: From heinznabielek at me.com Mon Feb 18 11:46:16 2019 From: heinznabielek at me.com (Heinz Nabielek) Date: Mon, 18 Feb 2019 11:46:16 +0100 Subject: [Scilab-users] wind speed analyses via fft power spectral density investigations Message-ID: Dear friends and colleagues: Yann Debray had put my first fragmentary attempt at wind speed analyses on the web: . Based on ca. 55.000 hub-level wind speed measurements at 10-min-intervals, I am investigating the power spectral density of wind speed - diagram and code below - with the help of the Scilab 'fft' function and that worked very well. One famous Japanese wind professor [he is now away for several months] had suggested "Using an arbitrary phase shift as random number into Inverse FFT, you can generate similar natural wind numerically, having the same spectrum". Now my question: HOW DO I DO THAT AND HOW I DO IT IN SCILAB? Best greetings Heinz [fd, SST, Sheetnames, Sheetpos] = xls_open('1.xls'); [v, TextInd] = xls_read(fd, Sheetpos(1)); clear SST Sheetnames Sheetpos TextInd fd n=length(v); x=(1:n)'; z=fft(v); plot2d(x,abs(z),logflag='ll',style=3); xx=(60:20000)'; xxx=log(xx); M=[ones(xxx) xxx]; y=log(abs(z(xx))); a=M\y 12.513971 -0.8530057 F=exp(a(1)+a(2)*xxx); plot(xx,F,'r--'); xtitle('Fourier analysis of wind speeds from station 1', ... 'f r e q u e n c y [ c y c l e / 1 0 min. ]','p o w e r s p e c t r a l d e n s i t y'); title('Fourier analysis of wind speeds from station 1','fontsize',3); legend('measured wind speed data','fit with slope -0.853',3); ______________ Dr Heinz Nabielek Sch?ttelstrasse 77A/11 A-1020 Wien, ?sterreich Tel +43 1 276 56 13 cell +43 677 616 349 22 heinznabielek at me.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PastedGraphic-1.tiff Type: image/tiff Size: 34006 bytes Desc: not available URL: From p.muehlmann at gmail.com Mon Feb 18 16:39:26 2019 From: p.muehlmann at gmail.com (P M) Date: Mon, 18 Feb 2019 16:39:26 +0100 Subject: [Scilab-users] need a little help In-Reply-To: References: <715e41b9-0162-14d8-4589-08b62602c98e@free.fr> Message-ID: Ok, thanks for your help.. Actually the sizes I gave where just for demonstation. If I use the real array sizes, I get a message: can not allocate 7469.60MB memory...which maybe is true. available RAM after starting Scilab is 3701 MB actual array sizes: A has 1076 elements B has 1'350'000 elements, with a lot of Nan's in it if I use thrownan(B) I can reduce the array size of B to 867751 elements but still get the Message above. (without thrownan() the memory scilab wants to allocate is even bigger) Am Fr., 15. Feb. 2019 um 23:25 Uhr schrieb Samuel Gougeon : > ... and even clearer, with respect to your own notations: > > --> A = rand(1,1000); // test's data > --> B = rand(1,10000); > --> [a, b] = ndgrid(A, B); > --> size(a) // same for b > ans = > 1000. 10000. > --> [v, i] = min(abs(a-b), *"c"*); > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From herozigle at gmail.com Mon Feb 18 17:28:52 2019 From: herozigle at gmail.com (Hermes) Date: Mon, 18 Feb 2019 09:28:52 -0700 (MST) Subject: [Scilab-users] the installation of scilab-6.0.2 Message-ID: <1550507332688-0.post@n3.nabble.com> good morning I am presenting problems with the installation of scilab-6.0.2 All the time I receive the following alert: I have uninstalled and installed several times and always with the same alert when trying to run the software. Gracias Hermes -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From p.muehlmann at gmail.com Mon Feb 18 18:08:47 2019 From: p.muehlmann at gmail.com (P M) Date: Mon, 18 Feb 2019 18:08:47 +0100 Subject: [Scilab-users] need a little help In-Reply-To: References: <715e41b9-0162-14d8-4589-08b62602c98e@free.fr> Message-ID: problem solved.....I had to think differently than before. Actually my goal was to compare point coordinates to map coordinates and find the points on the map which are closest to the given point coordinates. The map is of width: 900 // in reality the map is based on an image with 900x1500 pixels The map is of height: 1500 The points are building a line on the map...e.g: the line consists of 1076 points So from the map I have build: x = map(1,:); // contains all x coordinates of the map y = map(2,:); // contains all y coordinates of the map points = [ lineX, lineY]; // points contain the X-Y-coordinates of the line for i = 1:n actPoint = points(i,:); [nearestX xInd] = min(abs(actPoint(1)-x)); [nearestY yInd] = min(abs(actPoint(2)-y)); nearestPoint(i,:) = [x(xInd) y(yInd)]; end This is what works for now, though it is still slow. For searching 100 points of the line it needs about 10 seconds. For searching 200 points of the line it needs about 19 seconds. For searching 500 points of the line it needs about 45 seconds. For searching 1000 points of the line it needs about 98 seconds. Am Mo., 18. Feb. 2019 um 16:39 Uhr schrieb P M : > Ok, thanks for your help.. > > Actually the sizes I gave where just for demonstation. > > If I use the real array sizes, I get a message: can not allocate > 7469.60MB memory...which maybe is true. > available RAM after starting Scilab is 3701 MB > > actual array sizes: > > A has 1076 elements > B has 1'350'000 elements, with a lot of Nan's in it > > if I use thrownan(B) I can reduce the array size of B to 867751 elements > but still get the Message above. > > (without thrownan() the memory scilab wants to allocate is even bigger) > > > > > Am Fr., 15. Feb. 2019 um 23:25 Uhr schrieb Samuel Gougeon < > sgougeon at free.fr>: > >> ... and even clearer, with respect to your own notations: >> >> --> A = rand(1,1000); // test's data >> --> B = rand(1,10000); >> --> [a, b] = ndgrid(A, B); >> --> size(a) // same for b >> ans = >> 1000. 10000. >> --> [v, i] = min(abs(a-b), *"c"*); >> >> _______________________________________________ >> 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 Mon Feb 18 18:29:27 2019 From: p.muehlmann at gmail.com (P M) Date: Mon, 18 Feb 2019 18:29:27 +0100 Subject: [Scilab-users] need a little help In-Reply-To: References: <715e41b9-0162-14d8-4589-08b62602c98e@free.fr> Message-ID: ..update: removing all NaN's from the map it takes about 27seconds to find all nearest points... I think, I can live with that...unless somebody else has another brilliant idea. best regards, Philipp Am Mo., 18. Feb. 2019 um 18:08 Uhr schrieb P M : > problem solved.....I had to think differently than before. > > Actually my goal was to compare point coordinates to map coordinates and > find the points on the map which are closest to the given point coordinates. > > The map is of width: 900 // in reality the map is based on an image > with 900x1500 pixels > The map is of height: 1500 > > The points are building a line on the map...e.g: the line consists of 1076 > points > So from the map I have build: > > x = map(1,:); // contains all x coordinates of the map > y = map(2,:); // contains all y coordinates of the map > > points = [ lineX, lineY]; // points contain the X-Y-coordinates of > the line > > for i = 1:n > actPoint = points(i,:); > [nearestX xInd] = min(abs(actPoint(1)-x)); > [nearestY yInd] = min(abs(actPoint(2)-y)); > nearestPoint(i,:) = [x(xInd) y(yInd)]; > end > > > This is what works for now, though it is still slow. > > For searching 100 points of the line it needs about 10 seconds. > For searching 200 points of the line it needs about 19 seconds. > For searching 500 points of the line it needs about 45 seconds. > For searching 1000 points of the line it needs about 98 seconds. > > > > > > > > Am Mo., 18. Feb. 2019 um 16:39 Uhr schrieb P M : > >> Ok, thanks for your help.. >> >> Actually the sizes I gave where just for demonstation. >> >> If I use the real array sizes, I get a message: can not allocate >> 7469.60MB memory...which maybe is true. >> available RAM after starting Scilab is 3701 MB >> >> actual array sizes: >> >> A has 1076 elements >> B has 1'350'000 elements, with a lot of Nan's in it >> >> if I use thrownan(B) I can reduce the array size of B to 867751 elements >> but still get the Message above. >> >> (without thrownan() the memory scilab wants to allocate is even bigger) >> >> >> >> >> Am Fr., 15. Feb. 2019 um 23:25 Uhr schrieb Samuel Gougeon < >> sgougeon at free.fr>: >> >>> ... and even clearer, with respect to your own notations: >>> >>> --> A = rand(1,1000); // test's data >>> --> B = rand(1,10000); >>> --> [a, b] = ndgrid(A, B); >>> --> size(a) // same for b >>> ans = >>> 1000. 10000. >>> --> [v, i] = min(abs(a-b), *"c"*); >>> >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users >>> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From cfuttrup at gmail.com Mon Feb 18 18:32:07 2019 From: cfuttrup at gmail.com (Claus Futtrup) Date: Mon, 18 Feb 2019 18:32:07 +0100 Subject: [Scilab-users] need a little help In-Reply-To: References: <715e41b9-0162-14d8-4589-08b62602c98e@free.fr> Message-ID: <975543eb-af79-c616-ea53-cfa095c9f5f8@gmail.com> Hi Philipp >problem solved.....I had to think differently than before. Heh! It helps to know what you actually want to do (and also the size of the problem). Cheers, Claus On 18.02.2019 18:08, P M wrote: > problem solved.....I had to think differently than before. > > Actually my goal was to compare point coordinates to map coordinates > and find the points on the map which are closest to the given point > coordinates. > > The map is of width: ?? 900??? // in reality the map is based on an > image with 900x1500 pixels > The map is of height: 1500 > > The points are building a line on the map...e.g: the line consists of > 1076 points > So from the map I have build: > > x = map(1,:);?? // contains all x coordinates of the map > y = map(2,:);?? // contains all y coordinates of the map > > points = [ lineX, lineY];????? // points contain the X-Y-coordinates > of the line > > for i = 1:n > ? ? ?actPoint = points(i,:); > ? ? ?[nearestX xInd]?? = min(abs(actPoint(1)-x)); > ? ?? [nearestY yInd]? = min(abs(actPoint(2)-y)); > ? ?? nearestPoint(i,:) = [x(xInd) y(yInd)]; > end > > > This is what works for now, though it is still slow. > > For searching 100 points of the line it needs about 10 seconds. > For searching 200 points of the line it needs about 19 seconds. > For searching 500 points of the line it needs about 45 seconds. > For searching 1000 points of the line it needs about 98 seconds. > > > > > > > > Am Mo., 18. Feb. 2019 um 16:39?Uhr schrieb P M >: > > Ok, thanks for your help.. > > Actually the sizes I gave where just for demonstation. > > If I use the real array sizes, I get a message: can not allocate? > 7469.60MB memory...which maybe is true. > available RAM after starting Scilab is 3701 MB > > actual array sizes: > > A has 1076 elements > B has 1'350'000 elements, with a lot of Nan's in it > > if I use thrownan(B) I can reduce the array size of B to 867751 > elements but still get the Message above. > > (without thrownan() the memory scilab wants to allocate is even > bigger) > > > > > Am Fr., 15. Feb. 2019 um 23:25?Uhr schrieb Samuel Gougeon > >: > > ... and even clearer, with respect to your own notations: > > --> A = rand(1,1000);? // test's data > --> B = rand(1,10000); > --> [a, b] = ndgrid(A, B); > --> size(a)? // same for b > ?ans? = > ?? 1000.?? 10000. > --> [v, i] = min(abs(a-b), *"c"*); > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.muehlmann at gmail.com Mon Feb 18 20:38:10 2019 From: p.muehlmann at gmail.com (P M) Date: Mon, 18 Feb 2019 20:38:10 +0100 Subject: [Scilab-users] need a little help In-Reply-To: <975543eb-af79-c616-ea53-cfa095c9f5f8@gmail.com> References: <715e41b9-0162-14d8-4589-08b62602c98e@free.fr> <975543eb-af79-c616-ea53-cfa095c9f5f8@gmail.com> Message-ID: @ Claus: ...well actually I wanted to treat every coordinate separatly....so A would be my X coordinate of the map and B would be the x coordinate of the line. Afterwarsd I would do the same with the Y-coordinate.. So I think my question expressed what I wanted to do in the beginning. What I did not expect was, that the size of the arrays would matter (did not expect this memory issue). Anyways....of course you are right. Cheers, Philipp Am Mo., 18. Feb. 2019 um 18:32 Uhr schrieb Claus Futtrup : > Hi Philipp > > >problem solved.....I had to think differently than before. > > Heh! > > It helps to know what you actually want to do (and also the size of the > problem). > > Cheers, > Claus > > On 18.02.2019 18:08, P M wrote: > > problem solved.....I had to think differently than before. > > Actually my goal was to compare point coordinates to map coordinates and > find the points on the map which are closest to the given point coordinates. > > The map is of width: 900 // in reality the map is based on an image > with 900x1500 pixels > The map is of height: 1500 > > The points are building a line on the map...e.g: the line consists of 1076 > points > So from the map I have build: > > x = map(1,:); // contains all x coordinates of the map > y = map(2,:); // contains all y coordinates of the map > > points = [ lineX, lineY]; // points contain the X-Y-coordinates of > the line > > for i = 1:n > actPoint = points(i,:); > [nearestX xInd] = min(abs(actPoint(1)-x)); > [nearestY yInd] = min(abs(actPoint(2)-y)); > nearestPoint(i,:) = [x(xInd) y(yInd)]; > end > > > This is what works for now, though it is still slow. > > For searching 100 points of the line it needs about 10 seconds. > For searching 200 points of the line it needs about 19 seconds. > For searching 500 points of the line it needs about 45 seconds. > For searching 1000 points of the line it needs about 98 seconds. > > > > > > > > Am Mo., 18. Feb. 2019 um 16:39 Uhr schrieb P M : > >> Ok, thanks for your help.. >> >> Actually the sizes I gave where just for demonstation. >> >> If I use the real array sizes, I get a message: can not allocate >> 7469.60MB memory...which maybe is true. >> available RAM after starting Scilab is 3701 MB >> >> actual array sizes: >> >> A has 1076 elements >> B has 1'350'000 elements, with a lot of Nan's in it >> >> if I use thrownan(B) I can reduce the array size of B to 867751 elements >> but still get the Message above. >> >> (without thrownan() the memory scilab wants to allocate is even bigger) >> >> >> >> >> Am Fr., 15. Feb. 2019 um 23:25 Uhr schrieb Samuel Gougeon < >> sgougeon at free.fr>: >> >>> ... and even clearer, with respect to your own notations: >>> >>> --> A = rand(1,1000); // test's data >>> --> B = rand(1,10000); >>> --> [a, b] = ndgrid(A, B); >>> --> size(a) // same for b >>> ans = >>> 1000. 10000. >>> --> [v, i] = min(abs(a-b), *"c"*); >>> >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users >>> >> > _______________________________________________ > users mailing listusers at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users > > > > > Virus-free. > www.avast.com > > <#m_-8272210635697132897_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 Mon Feb 18 20:42:57 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 18 Feb 2019 20:42:57 +0100 Subject: [Scilab-users] the installation of scilab-6.0.2 In-Reply-To: <1550507332688-0.post@n3.nabble.com> References: <1550507332688-0.post@n3.nabble.com> Message-ID: <85c61953-a16c-48c6-e2cd-29c3aa2fd85e@free.fr> Le 18/02/2019 ? 17:28, Hermes a ?crit : > good morning > I am presenting problems with the installation of scilab-6.0.2 > All the time I receive the following alert: > > Was it really "as well" with the first run after the first installation, or did you succeed once, installed some atoms modules, and then got this error when restarting Scilab? By the way, do you get the same error in /Advanced Console/ mode or in /Console/ mode? Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From heinznabielek at me.com Tue Feb 19 00:38:40 2019 From: heinznabielek at me.com (Heinz Nabielek) Date: Tue, 19 Feb 2019 00:38:40 +0100 Subject: [Scilab-users] wind speed analyses via fft power spectral density investigations In-Reply-To: References: Message-ID: CORRECTION in horizontal axis.... > On 18.02.2019, at 11:46, Heinz Nabielek wrote: > > Dear friends and colleagues: > > Yann Debray had put my first fragmentary attempt at wind speed analyses on the web: . > > Based on ca. 55.000 hub-level wind speed measurements at 10-min-intervals, I am investigating the power spectral density of wind speed - diagram and code below - with the help of the Scilab 'fft' function and that worked very well. > > One famous Japanese wind professor [he is now away for several months] had suggested "Using an arbitrary phase shift as random number into Inverse FFT, you can generate similar natural wind numerically, having the same spectrum". > > Now my question: HOW DO I DO THAT AND HOW I DO IT IN SCILAB? > > Best greetings > Heinz > > > > > > > > [fd, SST, Sheetnames, Sheetpos] = xls_open('1.xls'); > [v, TextInd] = xls_read(fd, Sheetpos(1)); > clear SST Sheetnames Sheetpos TextInd fd > n=length(v); > x=(1:n)'; > z=fft(v); > plot2d(x,abs(z),logflag='ll',style=3); > xx=(60:20000)'; > xxx=log(xx); > M=[ones(xxx) xxx]; > y=log(abs(z(xx))); > a=M\y > 12.513971 > -0.8530057 > F=exp(a(1)+a(2)*xxx); > plot(xx,F,'r--'); > xtitle('Fourier analysis of wind speeds from station 1', ... > 'f r e q u e n c y [ c y c l e / 1 0 min. ]','p o w e r s p e c t r a l d e n s i t y'); > title('Fourier analysis of wind speeds from station 1','fontsize',3); > legend('measured wind speed data','fit with slope -0.853',3); > > > > ______________ > Dr Heinz Nabielek > Sch?ttelstrasse 77A/11 > A-1020 Wien, ?sterreich > Tel +43 1 276 56 13 > cell +43 677 616 349 22 > heinznabielek at me.com > > _______________________________________________ > 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: PastedGraphic-3.tiff Type: image/tiff Size: 42226 bytes Desc: not available URL: From Christophe.Dang at sidel.com Tue Feb 19 09:10:16 2019 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Tue, 19 Feb 2019 08:10:16 +0000 Subject: [Scilab-users] {EXT} Re: need a little help In-Reply-To: References: <715e41b9-0162-14d8-4589-08b62602c98e@free.fr> Message-ID: Hello, > De : users [mailto:users-bounces at lists.scilab.org] De la part de P M > Envoy? : lundi 18 f?vrier 2019 18:09 > > Actually my goal was to compare point coordinates to map coordinates > and find the points on the map which are closest to the given point coordinates. > [...] > The points are building a line on the map I'm not sure I understand your problem well but: If you want to find the points of the maps that are close to a line, You might considere the Cartesian equation of the line f(x, y) = 0 with f(x, y) = ax + by + c and search for the points of the map which abs(f(x, y)) value is low. From what I understand about your statement, you have a set of points = [ lineX, lineY] ; you might extract the (a, b, c) parameters of the line by linear regression, something like X = [x ; ones(x)]; A = y\X; (if the line is not vertical) then look at abs(A(1)*x - y + A(2)) < threshold or something like that. Otherwise, if you want to detect a line in a map, you might have a look at the Hough transform. Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer Public This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From herozigle at gmail.com Tue Feb 19 09:37:00 2019 From: herozigle at gmail.com (Hermes) Date: Tue, 19 Feb 2019 01:37:00 -0700 (MST) Subject: [Scilab-users] the installation of scilab-6.0.2 In-Reply-To: <85c61953-a16c-48c6-e2cd-29c3aa2fd85e@free.fr> References: <1550507332688-0.post@n3.nabble.com> <85c61953-a16c-48c6-e2cd-29c3aa2fd85e@free.fr> Message-ID: <1550565420539-0.post@n3.nabble.com> Was it reall with the first run after the first installation. Gracias -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From herozigle at gmail.com Tue Feb 19 09:39:14 2019 From: herozigle at gmail.com (Hermes) Date: Tue, 19 Feb 2019 01:39:14 -0700 (MST) Subject: [Scilab-users] the installation of scilab-6.0.2 In-Reply-To: <85c61953-a16c-48c6-e2cd-29c3aa2fd85e@free.fr> References: <1550507332688-0.post@n3.nabble.com> <85c61953-a16c-48c6-e2cd-29c3aa2fd85e@free.fr> Message-ID: <1550565554338-0.post@n3.nabble.com> Was it reall with the first run after the first installation. Gracias -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From herozigle at gmail.com Tue Feb 19 09:43:33 2019 From: herozigle at gmail.com (Hermes) Date: Tue, 19 Feb 2019 01:43:33 -0700 (MST) Subject: [Scilab-users] the installation of scilab-6.0.2 In-Reply-To: <85c61953-a16c-48c6-e2cd-29c3aa2fd85e@free.fr> References: <1550507332688-0.post@n3.nabble.com> <85c61953-a16c-48c6-e2cd-29c3aa2fd85e@free.fr> Message-ID: <1550565813368-0.post@n3.nabble.com> this happened during the installation -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From christoph.knappe at gmail.com Tue Feb 19 12:55:38 2019 From: christoph.knappe at gmail.com (christophk) Date: Tue, 19 Feb 2019 04:55:38 -0700 (MST) Subject: [Scilab-users] adding a %nan entry to an xlssheet(Mlist) type of variable Message-ID: <1550577338143-0.post@n3.nabble.com> Hi, I have A, a 344x1 size xlssheet(Mlist). A(1:100) consists of double entries A(101:$) consists of string entries. I want to add a new line to that mlist that contains the "%nan" entry for the first row: When I do the following: A.text = ["";A.text]; A.value =[%nan;A.value]; then A(1) returns an empty string instead of the desired %nan element. I get that because all rows i of A.text where A(i) contains double elements have a "" string entry. And all rows j of A.value where A(j) contain string entries have a "NaN" entry. But this raises the question, how does an entry k of A look like in A.text and A.value vectors, that would produce A(k) = NaN for the mlist? Any help would be highly appreciated! P.S.: Sorry for any duplicate posts that await the moderator's approval - I tried to post this question twice before I found out wether I was or wasn't signed up for the subscribers list. X-) -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Tue Feb 19 20:15:09 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 19 Feb 2019 20:15:09 +0100 Subject: [Scilab-users] the installation of scilab-6.0.2 In-Reply-To: <1550565420539-0.post@n3.nabble.com> References: <1550507332688-0.post@n3.nabble.com> <85c61953-a16c-48c6-e2cd-29c3aa2fd85e@free.fr> <1550565420539-0.post@n3.nabble.com> Message-ID: Sorry Hermes, i did not pay attention to the alert's screenshot. This one looks quite self explicit. Have you checked that Java is installed on your computer? From fmiyara at fceia.unr.edu.ar Wed Feb 20 03:46:00 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Tue, 19 Feb 2019 23:46:00 -0300 Subject: [Scilab-users] Coexistence of different versions Message-ID: <5C6CBF68.3020108@fceia.unr.edu.ar> Dear all, I'm currently using Scilab 6.0.1 on Windows 7 with several projects in progress that I don't want to put at risk. But I'm anxious to give 6.0.2 a try. Is it safe to install it in other folder? I mean, can both versions coexist or it is necessary to uninstall 6.0.1 to prevent trouble? 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 grocer.toolbox at gmail.com Wed Feb 20 07:55:21 2019 From: grocer.toolbox at gmail.com (=?utf-8?Q?=C3=89ric_Dubois?=) Date: Wed, 20 Feb 2019 07:55:21 +0100 Subject: [Scilab-users] Coexistence of different versions In-Reply-To: <5C6CBF68.3020108@fceia.unr.edu.ar> References: <5C6CBF68.3020108@fceia.unr.edu.ar> Message-ID: <503ED37B-EFD8-4D71-B789-DCD39A2C20D7@gmail.com> Dear Federico You can install and even run several different Scilab versions: I have been practicing it regularly for a Long Time. ?ric Envoy? de mon iPhone > Le 20 f?vr. 2019 ? 03:46, Federico Miyara a ?crit : > > > Dear all, > > I'm currently using Scilab 6.0.1 on Windows 7 with several projects in progress that I don't want to put at risk. But I'm anxious to give 6.0.2 a try. Is it safe to install it in other folder? I mean, can both versions coexist or it is necessary to uninstall 6.0.1 to prevent trouble? > > Regards, > > Federico Miyara > > 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: From herozigle at gmail.com Wed Feb 20 10:42:22 2019 From: herozigle at gmail.com (Hermes) Date: Wed, 20 Feb 2019 02:42:22 -0700 (MST) Subject: [Scilab-users] the installation of scilab-6.0.2 In-Reply-To: References: <1550507332688-0.post@n3.nabble.com> <85c61953-a16c-48c6-e2cd-29c3aa2fd85e@free.fr> <1550565420539-0.post@n3.nabble.com> Message-ID: <1550655742192-0.post@n3.nabble.com> Hi Samuel, I thought that checking the installation box of JavaRunTime 1.8, as requested by the installer, was enough. What version of Java should I install? regards Hermes -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Wed Feb 20 12:56:16 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 20 Feb 2019 12:56:16 +0100 Subject: [Scilab-users] Coexistence of different versions In-Reply-To: <5C6CBF68.3020108@fceia.unr.edu.ar> References: <5C6CBF68.3020108@fceia.unr.edu.ar> Message-ID: <1b5d7312-7299-e10a-c2d8-aa73684b8dc5@free.fr> Hello Federico, Le 20/02/2019 ? 03:46, Federico Miyara a ?crit : > > Dear all, > > I'm currently using Scilab 6.0.1 on Windows 7 with several projects in > progress that I don't want to put at risk. But I'm anxious to give > 6.0.2 a try. Is it safe to install it in other folder? I mean, can > both versions coexist or it is necessary to uninstall 6.0.1 to prevent > trouble? Yes, as written by Eric, you can install as many versions as you want, official ones and development ones as well (to give them a try and contribute to prevent bugs before official releases) without any issues. This is a strong -- too little known -- asset of Scilab. For all official releases, by default there is one specific SCIHOME directory per version. This means that each version has its own configuration and preferences files (for the desktop, scinotes, general, etc), history of commands file, etc, stored in the related SCIHOME directory. You can simultaneously run different versions as well. But then you have the history of commands for each version, not mixed. You have to copy your scilab.ini or .scilab user init file in each SCIHOME directory ; etc. It is possible to share the same SCIHOME directory, but it might then cause some troubles. * Launching scilab with the -scihome option is possible since Scilab 6.0.1, to set SCIHOME by hand. * Different development versions of a given branch (current, master,..) always share (by default) the same SCIHOME directory. But this can be worked around by using the -scihome option. Do not hesitate to use development versions. They are often better (or even much better) than official releases. It takes 3 to 5 mn to instal a version (and set its launching shortcuts with -scihome if required, and its preferences). So it is worth to do it. And if for 20% of dev versions temporarily it does not work better, then you have lost only 5 mn... Not so much ;-) For "old versions", some incompatibilities may appear. For instance, i can run all scilab versions from 5.3.3 to 6.0.2 without any issue. But when i run 5.0.0 <= versions <= 5.3.0, making graphics always crash the session (while it worked well before). It could be due to some Java runtime library incompatibilities, not necessarily due to recently Scilab installations, but possibly to automatic Java updates. This is unclear. When i run Scilab 4.1.2, graphics are OK and stable. HTH Regards Samuel > > Regards, > > Federico Miyara > > > 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 Wed Feb 20 13:23:16 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 20 Feb 2019 13:23:16 +0100 Subject: [Scilab-users] the installation of scilab-6.0.2 In-Reply-To: <1550655742192-0.post@n3.nabble.com> References: <1550507332688-0.post@n3.nabble.com> <85c61953-a16c-48c6-e2cd-29c3aa2fd85e@free.fr> <1550565420539-0.post@n3.nabble.com> <1550655742192-0.post@n3.nabble.com> Message-ID: Le 20/02/2019 ? 10:42, Hermes a ?crit : > Hi Samuel, > I thought that checking the installation box of JavaRunTime 1.8, as > requested by the installer, was enough. Indeed, it should. May be the installer needs Java that it proposes to instal :-)) Anyway, it looks to be a bug, not yet reported . As a workaround, you may try to install the required Java version /by hand/, and then retry to instal Scilab. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Feb 20 13:42:37 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 20 Feb 2019 13:42:37 +0100 Subject: [Scilab-users] Coexistence of different versions In-Reply-To: <1b5d7312-7299-e10a-c2d8-aa73684b8dc5@free.fr> References: <5C6CBF68.3020108@fceia.unr.edu.ar> <1b5d7312-7299-e10a-c2d8-aa73684b8dc5@free.fr> Message-ID: Le 20/02/2019 ? 12:56, Samuel Gougeon a ?crit : > Hello Federico, > > Le 20/02/2019 ? 03:46, Federico Miyara a ?crit : >> >> Dear all, >> >> I'm currently using Scilab 6.0.1 on Windows 7 with several projects >> in progress that I don't want to put at risk. But I'm anxious to give >> 6.0.2 a try. Is it safe to install it in other folder? I mean, can >> both versions coexist or it is necessary to uninstall 6.0.1 to >> prevent trouble? > > Yes, as written by Eric, you can install as many versions as you want, > official ones and development ones as well (to give them a try and > contribute to prevent bugs before official releases) without any issues. > This is a strong -- too little known -- asset of Scilab. Important indication: All this is about Scilab /*on Windows*/. For other OS, Linux distributions, etc, does it depend on packaging systems, that may -- or not -- require and/or perform -- the removal of former versions? Feedbacks from other users would be welcome! -------------- next part -------------- An HTML attachment was scrubbed... URL: From fmiyara at fceia.unr.edu.ar Wed Feb 20 14:16:57 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Wed, 20 Feb 2019 10:16:57 -0300 Subject: [Scilab-users] Coexistence of different versions In-Reply-To: <1b5d7312-7299-e10a-c2d8-aa73684b8dc5@free.fr> References: <5C6CBF68.3020108@fceia.unr.edu.ar> <1b5d7312-7299-e10a-c2d8-aa73684b8dc5@free.fr> Message-ID: <5C6D5349.6040009@fceia.unr.edu.ar> Samuel, Thank you very much vor this very complete answer! Regards, Federico On 20/02/2019 08:56, Samuel Gougeon wrote: > Hello Federico, > > Le 20/02/2019 ? 03:46, Federico Miyara a ?crit : >> >> Dear all, >> >> I'm currently using Scilab 6.0.1 on Windows 7 with several projects >> in progress that I don't want to put at risk. But I'm anxious to give >> 6.0.2 a try. Is it safe to install it in other folder? I mean, can >> both versions coexist or it is necessary to uninstall 6.0.1 to >> prevent trouble? > > Yes, as written by Eric, you can install as many versions as you want, > official ones and development ones as well (to give them a try and > contribute to prevent bugs before official releases) without any issues. > This is a strong -- too little known -- asset of Scilab. > > For all official releases, by default there is one specific SCIHOME > directory per version. This means that each version has its own > configuration and preferences files (for the desktop, scinotes, > general, etc), history of commands file, etc, stored in the related > SCIHOME directory. > You can simultaneously run different versions as well. But then you > have the history of commands for each version, not mixed. You have to > copy your scilab.ini or .scilab user init file in each SCIHOME > directory ; etc. > > It is possible to share the same SCIHOME directory, but it might then > cause some troubles. > > * Launching scilab with the -scihome option is possible since Scilab > 6.0.1, to set SCIHOME by hand. > > * Different development versions > of a given > branch (current, master,..) always share (by default) the same > SCIHOME directory. But this can be worked around by using the > -scihome option. Do not hesitate to use development versions. They > are often better (or even much better) than official releases. It > takes 3 to 5 mn to instal a version (and set its launching > shortcuts with -scihome if required, and its preferences). So it > is worth to do it. And if for 20% of dev versions temporarily it > does not work better, then you have lost only 5 mn... Not so much ;-) > > For "old versions", some incompatibilities may appear. For instance, i > can run all scilab versions from 5.3.3 to 6.0.2 without any issue. But > when i run 5.0.0 <= versions <= 5.3.0, making graphics always crash > the session (while it worked well before). It could be due to some > Java runtime library incompatibilities, not necessarily due to > recently Scilab installations, but possibly to automatic Java updates. > This is unclear. When i run Scilab 4.1.2, graphics are OK and stable. > > HTH > Regards > Samuel > > > > >> >> Regards, >> >> Federico Miyara >> >> >> 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 > > > > > _______________________________________________ > 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 fmiyara at fceia.unr.edu.ar Wed Feb 20 17:01:35 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Wed, 20 Feb 2019 13:01:35 -0300 Subject: [Scilab-users] Coexistence of different versions In-Reply-To: <503ED37B-EFD8-4D71-B789-DCD39A2C20D7@gmail.com> References: <5C6CBF68.3020108@fceia.unr.edu.ar> <503ED37B-EFD8-4D71-B789-DCD39A2C20D7@gmail.com> Message-ID: <5C6D79DF.1050209@fceia.unr.edu.ar> Dear ?ric, Thank you! Regards, Federico On 20/02/2019 03:55, ?ric Dubois wrote: > Dear Federico > > You can install and even run several different Scilab versions: I have > been practicing it regularly for a Long Time. > > ?ric > > Envoy? de mon iPhone > > Le 20 f?vr. 2019 ? 03:46, Federico Miyara > a ?crit : > >> >> Dear all, >> >> I'm currently using Scilab 6.0.1 on Windows 7 with several projects >> in progress that I don't want to put at risk. But I'm anxious to give >> 6.0.2 a try. Is it safe to install it in other folder? I mean, can >> both versions coexist or it is necessary to uninstall 6.0.1 to >> prevent trouble? >> >> Regards, >> >> Federico Miyara >> >> >> 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 > > > _______________________________________________ > 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 vilppu91 at hotmail.com Thu Feb 21 11:14:24 2019 From: vilppu91 at hotmail.com (Vilppu) Date: Thu, 21 Feb 2019 03:14:24 -0700 (MST) Subject: [Scilab-users] Small problem with Scilab 6.0.1 code generation In-Reply-To: <1550216213364-0.post@n3.nabble.com> References: <1550148313088-0.post@n3.nabble.com> <1550216213364-0.post@n3.nabble.com> Message-ID: <1550744064376-0.post@n3.nabble.com> Hello, Has anyone tried using code generation on my example model? I installed the new Scilab 6.0.2 and with that I get even less far with code generation. When trying code generation I get this Scilab pop-up window message: Undefined operation for the given operands. check or define function %c_a for overloading. After clicking ok: Generated block cannot be linked with Scilab. I also installed Microsoft Visual Studio 2013 Express and Scilab recognizes that compiler with findmsvccompiler() command. I can run Xcos Modelica demos with no problems. Still, I get same errors when trying code generation. So the problem isn?t with compiler. I even tried installing Scilab 6.0.1 and 6.0.2 on different PC with Windows 8.1. I get same errors there. I have also uninstalled and reinstalled Scilabs on this Windows 10 computer with different install settings. Every time before installing I have also deleted Scilab folder from C:\Users\...\AppData\Roaming folder. To recap, Scilab 6.0.1 warns about adding empty matrix but compiles and links the generated code without problems. The problem is that the super block doesn?t turn into C block. Scilab 6.0.2 warns about undefined operation where %c_a refers to adding. Scilab 5.5.2 works without problems. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From iwoj at il.pw.edu.pl Thu Feb 21 11:43:05 2019 From: iwoj at il.pw.edu.pl (=?UTF-8?Q?Izabela_W=C3=B3jcik-Grz=C4=85ba?=) Date: Thu, 21 Feb 2019 11:43:05 +0100 Subject: [Scilab-users] Prettify function - few questions Message-ID: Hello, I have just found this wonderful function by Pierre and I am testing it with some of my examples. It is really great, but I have a few problems. Here is my example code: delta_z=[-0.227039004 -0.185352532 -0.090222505 -0.048541026 -0.709541661 -0.449264874 -0.400240851 -0.137193379 -1.535445685 -0.833433297 -1.023699148 -0.307291415 -2.728796828 -1.374973092 -1.989880189 -0.595703454 -4.282713475 -2.100641351 -3.296290987 -1.029694398 -6.174546374 -3.02623229 -4.92376907 -1.626225009 -8.376462642 -4.160562133 -6.847085402 -2.395578004]; f_l=[0.20030479 0.29234647 0.36879976 0.43788566 0.50263554 0.56453135 0.62441298]; L_0=[11:1:17]'; f_l_labels=[string(f_l)+' ('+string(L_0)+')']; format(5); plot(f_l,[delta_z(:,1),delta_z(:,2),delta_z(:,3),delta_z(:,4)]); f=gcf();a1=f.children; f.axes_size=[1400,900]; a1.margins=[0.1 0.04 0.07 0.15]; a1.grid=[-1,1]; a1.title.text='Blad wzgledny rzednej,h=0 m'; a1.x_label.text='f/l $(L_0)$'; a1.y_label.text='${\delta}_z$ [%]'; a1.x_ticks = tlist(["ticks","locations","labels"],f_l,f_l_labels); a1.sub_ticks=[0 0]; a1.fractional_font='on'; a1.auto_scale='off'; a1.data_bounds=[min(f_l)-0.01,min(delta_z);max(f_l),max(delta_z)+0.1]; a1.children.children.line_mode='off'; a1.children.children.mark_mode='on'; a1.children.children.mark_style=[1;2;9;11]; a1.children.children.mark_foreground=[2;5;13;22]; a1.children.children.mark_background=[0;0;0;0]; a1.children.children.mark_size_unit='point'; a1.children.children.mark_size=17; legend([a1.children.children(1);a1.children.children(2);a1.children.children(3);.. a1.children.children(4);],[" 16 el. 3 iteracje ";" 16 el. 2 iteracje ";.. " 8 el. 3 iteracje ";" 8 el. 2 iteracje "],marks_count=1,.. legend_location='in_lower_left'); opt.title_font_size=6; opt.labels_font_size=6; opt.thicks_font_size=6; opt.line_thickness=4; opt.legend_font_size=6; prettify(f, opt) And here are my problems: 1. Title and labels seem to not be "latexified" 2. Legend_font_size is not changing the font size 3. I've tried to add an option of changing font in a loop in a "latexify" function as below: str(i) = '$ \mathds{' + wrap_in_text(str(i)) + '}$' but it doesn't work 4. And different kind of problem: why the green circles on the plot are "trimmed" on sides, top and bottom? Could anyone help me with these problems? Any ideas? Pierre, thanks a lot for the function. Regards, Iza p.s. I don't know how to continue an old topic about this function - is it possible? From iwoj at il.pw.edu.pl Thu Feb 21 17:38:00 2019 From: iwoj at il.pw.edu.pl (=?UTF-8?Q?Izabela_W=C3=B3jcik-Grz=C4=85ba?=) Date: Thu, 21 Feb 2019 17:38:00 +0100 Subject: [Scilab-users] Ticks labels in form of number above number Message-ID: <6c8bc8ba74326566f299b52241df38b4@il.pw.edu.pl> Hello, In my plot every tick_label in the x-axis is made of two numbers (the second is in the parenthesis). Now they are printed next to each other like for example: 0.2 (11) See the code below: f_l=[0.20030479 0.29234647 0.36879976 0.43788566 0.50263554 0.56453135 0.62441298]; L_0=[11:1:17]'; f_l_labels=[msprintf('%3.1f\n',f_l)+' ('+string(L_0)+')']; In this form they take a lot of place along the x-axis, so I would like to print the numbers one over another. I've tried different options but none of them works. Particularly I was testing a Latex option \atop but with no success. Maybe someone could help? Kind regards, Iza From sgougeon at free.fr Thu Feb 21 17:48:16 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 21 Feb 2019 17:48:16 +0100 Subject: [Scilab-users] Ticks labels in form of number above number In-Reply-To: <6c8bc8ba74326566f299b52241df38b4@il.pw.edu.pl> References: <6c8bc8ba74326566f299b52241df38b4@il.pw.edu.pl> Message-ID: Hello Izabela, Le 21/02/2019 ? 17:38, Izabela W?jcik-Grz?ba a ?crit : > Hello, > > In my plot every tick_label in the x-axis is made of two numbers (the > second is in the parenthesis). Now they are printed next to each other > like for example: > 0.2 (11) > > See the code below: > > f_l=[0.20030479 > 0.29234647 > 0.36879976 > 0.43788566 > 0.50263554 > 0.56453135 > 0.62441298]; > > L_0=[11:1:17]'; > > f_l_labels=[msprintf('%3.1f\n',f_l)+' ('+string(L_0)+')']; > > In this form they take a lot of place along the x-axis, so I would > like to print the numbers one over another. I've tried different > options but none of them works. Particularly I was testing a Latex > option \atop but with no success. You must double "\": --> f_l_labels=[msprintf('*$*%3.1f*\\**atop*\n',f_l)+' ('+string(L_0)+')*$*'] f_l_labels = !$0.2\atop (11)$ ! !$0.3\atop (12)$ ! !$0.4\atop (13)$ ! !$0.4\atop (14)$ ! !$0.5\atop (15)$ ! !$0.6\atop (16)$ ! !$0.6\atop (17)$ ! then it should work: Best regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: iebencjgcaamojng.png Type: image/png Size: 998 bytes Desc: not available URL: From iwoj at il.pw.edu.pl Thu Feb 21 18:08:00 2019 From: iwoj at il.pw.edu.pl (=?UTF-8?Q?Izabela_W=C3=B3jcik-Grz=C4=85ba?=) Date: Thu, 21 Feb 2019 18:08:00 +0100 Subject: [Scilab-users] Ticks labels in form of number above number In-Reply-To: References: <6c8bc8ba74326566f299b52241df38b4@il.pw.edu.pl> Message-ID: <822ee56392c3ef2a60f526b68b348247@il.pw.edu.pl> Thank you very much Samuel. Now the solution is obvious. Sometimes these are the hardest to find :-) Iza W dniu 21.02.2019 17:48, Samuel Gougeon napisa?(a): > Hello Izabela, > > Le 21/02/2019 ? 17:38, Izabela W?jcik-Grz?ba a ?crit : > >> Hello, >> >> In my plot every tick_label in the x-axis is made of two numbers >> (the second is in the parenthesis). Now they are printed next to >> each other like for example: >> 0.2 (11) >> >> See the code below: >> >> f_l=[0.20030479 >> 0.29234647 >> 0.36879976 >> 0.43788566 >> 0.50263554 >> 0.56453135 >> 0.62441298]; >> >> L_0=[11:1:17]'; >> >> f_l_labels=[msprintf('%3.1f\n',f_l)+' ('+string(L_0)+')']; >> >> In this form they take a lot of place along the x-axis, so I would >> like to print the numbers one over another. I've tried different >> options but none of them works. Particularly I was testing a Latex >> option \atop but with no success. > > You must double "\": > > --> f_l_labels=[msprintf('$%3.1f\\ATOP\n',f_l)+' ('+string(L_0)+')$'] > f_l_labels = > !$0.2\atop (11)$ ! > !$0.3\atop (12)$ ! > !$0.4\atop (13)$ ! > !$0.4\atop (14)$ ! > !$0.5\atop (15)$ ! > !$0.6\atop (16)$ ! > !$0.6\atop (17)$ ! > > then it should work: > > Best regards > Samuel > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From iwoj at il.pw.edu.pl Thu Feb 21 19:50:08 2019 From: iwoj at il.pw.edu.pl (=?UTF-8?Q?Izabela_W=C3=B3jcik-Grz=C4=85ba?=) Date: Thu, 21 Feb 2019 19:50:08 +0100 Subject: [Scilab-users] Scilab crash on a Windows server In-Reply-To: <3A6B7233274DB449A2A0053A47684F953FF1FBC4@BGS-EX01.auxitrol.ad> References: <3A6B7233274DB449A2A0053A47684F953FF1FBC4@BGS-EX01.auxitrol.ad> Message-ID: <60137826a12b5f3410b8170b92e99519@il.pw.edu.pl> Hallo, Unfortunately I have a similar situation but on my workstation with Windows 7 (not server). Sorry, but I have no idea what could be a problem. My code works fine on version 6.0.1 (luckily). Also I did some other simple calculations on version 6.0.2 without any problem. My problem report is quite similar as Paul's (I don't know why the version is pointed as 6.0.1, as I used 6.0.2): PROBLEM SIGNATURE: Problem Event Name: APPCRASH Application Name: WScilex.exe Application Version: 6.0.1.0 Application Timestamp: 5c65379a Fault Module Name: MSVCR120.dll Fault Module Version: 12.0.21005.1 Fault Module Timestamp: 524f83ff Exception Code: 40000015 Exception Offset: 0000000000074a46 OS Version: 6.1.7601.2.1.0.256.48 Locale ID: 1045 Additional Information 1: a85c Additional Information 2: a85c1838a17ec60d7baab87a8a50aed8 Additional Information 3: 401b Additional Information 4: 401b7783e480232968940a06ab86c2c1 For the time being I wil use the previous version but I wanted to report the problem. Kind regards, Iza W dniu 11.02.2019 15:43, Carrico, Paul napisa?(a): > Dear Scilab developers > > While my code works on my workstation, I've met the current issue when > running it on a Windows server 2007 using the current Scilab stable > release. > > In addition, the troubles come when I'm using h5 instructions (h5ls, > h5read and so on) > > Does this issue have ever been fixed ? if so I guess that a nightly > build release can be used > > Thanks > > Paul > > Nb: I absolutely need to run it on that server ! > > PROBLEM SIGNATURE: > > Problem Event Name: APPCRASH > > Application Name: wscilex.exe > > Application Version: 6.0.1.0 > > Application Timestamp: 5a8551b5 > > Fault Module Name: MSVCR120.dll > > Fault Module Version: 12.0.21005.1 > > Fault Module Timestamp: 524f83ff > > Exception Code: c000001d > > Exception Offset: 0000000000093143 > > OS Version: > 6.0.6002.2.2.0.272.36 > > Locale ID: 2057 > > Additional Information 1: 6ada > > Additional Information 2: > fca3fe733ee7ca1410f98f05e229e12c > > Additional Information 3: 8be5 > > Additional Information 4: > d88bc67e3ca5f123dc5350e3d08104a7 > > READ OUR PRIVACY STATEMENT: > > http://go.microsoft.com/fwlink/?linkid=50163&clcid=0x0409 > > EXPORT CONTROL : > > ? Cet email ne contient pas de donn?es techniques ? > > ? This email does not contain technical data ? > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From sgougeon at free.fr Thu Feb 21 22:56:16 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 21 Feb 2019 22:56:16 +0100 Subject: [Scilab-users] Small problem with Scilab 6.0.1 code generation In-Reply-To: <1550744064376-0.post@n3.nabble.com> References: <1550148313088-0.post@n3.nabble.com> <1550216213364-0.post@n3.nabble.com> <1550744064376-0.post@n3.nabble.com> Message-ID: <30f63894-3b5a-f10d-e54e-0d0f82d7addc@free.fr> Hello Vilppu, Le 21/02/2019 ? 11:14, Vilppu a ?crit : > Hello, > > Has anyone tried using code generation on my example model? > > I installed the new Scilab 6.0.2 and with that I get even less far with code > generation. When trying code generation I get this Scilab pop-up window > message: > Undefined operation for the given operands. check or define function %c_a > for overloading. The reason *why* this error now occurs is known. But the point is that we need to know *where* exactly this occurs in the code. So, in the message, wasn't there any indication about the /location/ of the error, the function, and the line number, the stack of nested calls? Was "Undefined operation for the given operands. check or define function %c_a for overloading. " the whole message? As for the "operation +" warning or error after "warning stop", not having more detail about where exactly the error occurs is rather blocking to debug the code. For my part, i have no compiler on my computer ; so i can't reproduce the issue. We can't be surprised that the next steps fail. Issues must be fixed step by step, in the order they appear. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Thu Feb 21 23:21:04 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 21 Feb 2019 23:21:04 +0100 Subject: [Scilab-users] Text in LaTeX mode <= Re: Prettify function - few questions In-Reply-To: References: Message-ID: Izabela, The green circles i get are not trimmed. And i don't know about prettify(): i did not instal it. But... Le 21/02/2019 ? 11:43, Izabela W?jcik-Grz?ba a ?crit : > .../... > a1.x_label.text='f/l $(L_0)$'; > a1.y_label.text='${\delta}_z$ [%]'; you can't do that on a label: either it is completely in LaTeX, and so delimited with "$....$", or it is completely in normal mode. It is not possible to mix both modes in a label. In LaTeX mode, it's possible to open a "normal text mode" with \text{your text}. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: abfjdpeoegonlgga.png Type: image/png Size: 2914 bytes Desc: not available URL: From iwoj at il.pw.edu.pl Fri Feb 22 09:09:51 2019 From: iwoj at il.pw.edu.pl (=?UTF-8?Q?Izabela_W=C3=B3jcik-Grz=C4=85ba?=) Date: Fri, 22 Feb 2019 09:09:51 +0100 Subject: [Scilab-users] Text in LaTeX mode <= Re: Prettify function - few questions In-Reply-To: References: Message-ID: Thanks Samuel once more, I've already deleted my post because I managed to solve most of the problems (although circles are not exactly circles but I think it is a matter of resolution). In a prettify function there is a short example where normal text is mixed with LaTex: xlabel('$x$ (rad)') That's why I used this method and it works. Greetings, Iza W dniu 21.02.2019 23:21, Samuel Gougeon napisa?(a): > Izabela, > > The green circles i get are not trimmed. And i don't know about > prettify(): i did not instal it. > But... > > Le 21/02/2019 ? 11:43, Izabela W?jcik-Grz?ba a ?crit : > >> .../... >> a1.x_label.text='f/l $(L_0)$'; >> a1.y_label.text='${\delta}_z$ [%]'; > > you can't do that on a label: either it is completely in LaTeX, > and so delimited with "$....$", or it is completely in normal mode. > It is not possible to mix both modes in a label. > In LaTeX mode, it's possible to open a "normal text mode" > with \text{your text}. > > Samuel > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From iwoj at il.pw.edu.pl Fri Feb 22 11:14:05 2019 From: iwoj at il.pw.edu.pl (=?UTF-8?Q?Izabela_W=C3=B3jcik-Grz=C4=85ba?=) Date: Fri, 22 Feb 2019 11:14:05 +0100 Subject: [Scilab-users] Scilab crash on a Windows server In-Reply-To: <60137826a12b5f3410b8170b92e99519@il.pw.edu.pl> References: <3A6B7233274DB449A2A0053A47684F953FF1FBC4@BGS-EX01.auxitrol.ad> <60137826a12b5f3410b8170b92e99519@il.pw.edu.pl> Message-ID: <1a4f6c2a223ef93b19749e8c0008855f@il.pw.edu.pl> Hallo, Unfortunately I have a similar situation but on my workstation with Windows 7 (not server). Sorry, but I have no idea what could be a problem. My code works fine on version 6.0.1 (luckily). Also I did some other simple calculations on version 6.0.2 without any problem. My problem report is quite similar as Paul's (I don't know why the version is pointed as 6.0.1, as I used 6.0.2): PROBLEM SIGNATURE: Problem Event Name: APPCRASH Application Name: WScilex.exe Application Version: 6.0.1.0 Application Timestamp: 5c65379a Fault Module Name: MSVCR120.dll Fault Module Version: 12.0.21005.1 Fault Module Timestamp: 524f83ff Exception Code: 40000015 Exception Offset: 0000000000074a46 OS Version: 6.1.7601.2.1.0.256.48 Locale ID: 1045 Additional Information 1: a85c Additional Information 2: a85c1838a17ec60d7baab87a8a50aed8 Additional Information 3: 401b Additional Information 4: 401b7783e480232968940a06ab86c2c1 For the time being I wil use the previous version but I wanted to report the problem. Kind regards, Iza W dniu 11.02.2019 15:43, Carrico, Paul napisa?(a): > Dear Scilab developers > > While my code works on my workstation, I've met the current issue when > running it on a Windows server 2007 using the current Scilab stable > release. > > In addition, the troubles come when I'm using h5 instructions (h5ls, > h5read and so on) > > Does this issue have ever been fixed ? if so I guess that a nightly > build release can be used > > Thanks > > Paul > > Nb: I absolutely need to run it on that server ! > > PROBLEM SIGNATURE: > > Problem Event Name: APPCRASH > > Application Name: wscilex.exe > > Application Version: 6.0.1.0 > > Application Timestamp: 5a8551b5 > > Fault Module Name: MSVCR120.dll > > Fault Module Version: 12.0.21005.1 > > Fault Module Timestamp: 524f83ff > > Exception Code: c000001d > > Exception Offset: 0000000000093143 > > OS Version: > 6.0.6002.2.2.0.272.36 > > Locale ID: 2057 > > Additional Information 1: 6ada > > Additional Information 2: > fca3fe733ee7ca1410f98f05e229e12c > > Additional Information 3: 8be5 > > Additional Information 4: > d88bc67e3ca5f123dc5350e3d08104a7 > > READ OUR PRIVACY STATEMENT: > > http://go.microsoft.com/fwlink/?linkid=50163&clcid=0x0409 > > EXPORT CONTROL : > > ? Cet email ne contient pas de donn?es techniques ? > > ? This email does not contain technical data ? > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From sgougeon at free.fr Fri Feb 22 13:15:10 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 22 Feb 2019 13:15:10 +0100 Subject: [Scilab-users] Text in LaTeX mode <= Re: Prettify function - few questions In-Reply-To: References: Message-ID: <4287b6a7-34a1-f7c2-be3b-ac0de1f1617a@free.fr> Le 22/02/2019 ? 09:09, Izabela W?jcik-Grz?ba a ?crit : > Thanks Samuel once more, > > I've already deleted my post because I managed to solve most of the > problems (although circles are not exactly circles but I think it is a > matter of resolution). > In a prettify function there is a short example where normal text is > mixed with LaTex: > > xlabel('$x$ (rad)') > > That's why I used this method and it works. So ok, it's a pre-prettify statement, just aimed to be post-processed by prettify(). A bit misleading.. Regards Samuel From rouxph.22 at gmail.com Sat Feb 23 12:55:33 2019 From: rouxph.22 at gmail.com (philippe) Date: Sat, 23 Feb 2019 12:55:33 +0100 Subject: [Scilab-users] scilab crash after bad line descriptor in plot Message-ID: Hi, scilab freezes when I execute the plot command : plot(x,y,'---k') with the obviously wrong third argument(line descriptor). After killing scilab process I get this message in the console : scilab-bin: malloc.c:4023: _int_malloc: Assertion `(unsigned long) (size) >= (unsigned long) (nb)' failed. # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007f205e4debd1, pid=30870, tid=0x00007f200f1f5700 # # JRE version: OpenJDK Runtime Environment (8.0_191-b12) (build 1.8.0_191-8u191-b12-2ubuntu0.18.04.1-b12) # Java VM: OpenJDK 64-Bit Server VM (25.191-b12 mixed mode linux-amd64 compressed oops) # Problematic frame: # V [libjvm.so+0x693bd1] # # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again # # An error report file with more information is saved as: # /home/roux/Documents/ENSSAT/cours/signal/interro/DS/hs_err_pid30870.log # # If you would like to submit a bug report, please visit: # http://bugreport.java.com/bugreport/crash.jsp # It looks bad that a simple typo error crash scilab like this! Should I make a bug report ?This happened with scilab 6.0.1 and ubuntu 18.04 : Version de Scilab : 6.0.1.1518683525 Syst?me d'exploitation : Linux 4.15.0-45-generic Version Java : 1.8.0_191 Informations sur l'environnement d'ex?cution Java : OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-2ubuntu0.18.04.1-b12) Informations sur la machine virtuelle Java : OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode) Sp?cifications du fabricant : Oracle Corporation sincerely yours, Philippe From sgougeon at free.fr Sat Feb 23 14:42:43 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 23 Feb 2019 14:42:43 +0100 Subject: [Scilab-users] scilab crash after bad line descriptor in plot In-Reply-To: References: Message-ID: <51ac46e6-5ef8-039a-1eb2-59dbb084670f@free.fr> Hello Philippe, Le 23/02/2019 ? 12:55, philippe a ?crit : > Hi, > > scilab freezes when I execute the plot command : > > plot(x,y,'---k') > > with the obviously wrong third argument(line descriptor). After killing > scilab process I get this message in the console : > > .../... > It looks bad that a simple typo error crash scilab like this! Definitely. > Should I make a bug report ?This happened with scilab 6.0.1 and ubuntu 18.04 : On Windows7 as well. The analysis shows that the crash occurs in getLineSpec(), due to a strsubst() bug: strsubst("---k","--","") // crash This is the bug 14501 , reported 34 months ago. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From f.s.farimani at gmail.com Tue Feb 19 16:56:55 2019 From: f.s.farimani at gmail.com (farimani) Date: Tue, 19 Feb 2019 08:56:55 -0700 (MST) Subject: [Scilab-users] xcos summation block doesn't work properly Message-ID: <1550591815845-0.post@n3.nabble.com> I'm trying to use the summation block but it does not work properly: no matter if the port is -1 or +1 it just adds +1s! -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From christoph.knappe at gmail.com Tue Feb 19 09:47:01 2019 From: christoph.knappe at gmail.com (christophk) Date: Tue, 19 Feb 2019 01:47:01 -0700 (MST) Subject: [Scilab-users] adding a %nan entry to an xlssheet(Mlist) type of variable Message-ID: <1550566021250-0.post@n3.nabble.com> I have A, a 344x1 size xlssheet(Mlist). A(1:100) consists of double entries A(101:$) consists of string entries. I want to add a new line to that mlist that contains the "%nan" entry for the first row: When I do the following: A.text = ["";A.text]; A.value =[%nan;A.value]; then A(1) returns an empty string instead of the desired %nan element. I get that because all rows i of A.text where A(i) contains double elements have a "" string entry. And all rows j of A.value where A(j) contain string entries have a "NaN" entry. But this raises the question, how does an entry k of A look like in A.text(k) and A.value(k) vectors, that would produce A(k) = NaN for the mlist? Any help would be highly appreciated! -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From f.s.farimani at gmail.com Tue Feb 19 10:47:42 2019 From: f.s.farimani at gmail.com (farimani) Date: Tue, 19 Feb 2019 02:47:42 -0700 (MST) Subject: [Scilab-users] =?utf-8?q?expression_block_in_xcos_gives_=E2=80=9C?= =?utf-8?q?answer_given_for_scilab_expression_is_wrong=E2=80=9D_error?= Message-ID: <1550569662980-0.post@n3.nabble.com> As I have originally explained in this post I'm trying to put the SciLab expression: sign(u2 ? u1) * (2 * ((Fm + M) * abs(u2 ? u1) + k * (u2^2 ? u1^2) / 2) / m)^0.5 but I get this error message: answer given for scilab expression is incorrect... I would appreciate if you could help me know what is the problem and how I can solve it. Maybe I should use a different block? -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From lvser at dhhftb.loan Thu Feb 21 05:08:35 2019 From: lvser at dhhftb.loan (LV SALE) Date: Thu, 21 Feb 2019 04:08:35 +0000 Subject: [Scilab-users] 2019 Spring SALE 85% OFF - Louis Vuitton Luxury Bags SALE Message-ID: An HTML attachment was scrubbed... URL: From f.s.farimani at gmail.com Fri Feb 22 09:51:49 2019 From: f.s.farimani at gmail.com (farimani) Date: Fri, 22 Feb 2019 01:51:49 -0700 (MST) Subject: [Scilab-users] Where is the best place for Scilab - xcos / ScicosLab - scicos questions and bug report? Message-ID: <1550825509208-0.post@n3.nabble.com> Lately I have been using SciLab - xcos / ScicosLab - scicos and have had several bugs and questions. Have tried the relevant StackOverFlow tag: * SciLab * ScicosLab * scicos * xcos but it seems deserted, ended up answering my own questions. :) Also the twitter account is not responsive. The forums I have found here and here are also not working properly. I have posted several questions, none published/answered. This subreddit is also almost empty :( the IRC channel is also empty. I was wondering if you could help me know where is the best place to ask questions and also report bugs? maybe you have a Slack/Discord/Gitter chat rooms? -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Sat Feb 23 16:53:10 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 23 Feb 2019 16:53:10 +0100 Subject: [Scilab-users] xcos summation block doesn't work properly In-Reply-To: <1550591815845-0.post@n3.nabble.com> References: <1550591815845-0.post@n3.nabble.com> Message-ID: <983069f3-618c-75da-af3e-26368102aa25@free.fr> Hello, Le 19/02/2019 ? 16:56, farimani a ?crit : > I'm trying to use the summation block but it does not work properly: > > > > no matter if the port is -1 or +1 it just adds +1s! Which Scilab version are you using? This bug is fixed in Scilab 6.0.1 and 6.0.2. Please try with the latest 6.0.2 release. Regards Samuel From sgougeon at free.fr Sat Feb 23 16:55:53 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 23 Feb 2019 16:55:53 +0100 Subject: [Scilab-users] xcos summation block doesn't work properly In-Reply-To: <1550591815845-0.post@n3.nabble.com> References: <1550591815845-0.post@n3.nabble.com> Message-ID: <99bf6cd5-dc47-244f-e912-e14bd52fcabd@free.fr> Le 19/02/2019 ? 16:56, farimani a ?crit : > I'm trying to use the summation block but it does not work properly: > > > > no matter if the port is -1 or +1 it just adds +1s! By the way, i have received this/your mail to users@ only today, so 4 days after posting... From sgougeon at free.fr Sat Feb 23 17:22:33 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 23 Feb 2019 17:22:33 +0100 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: <50009395-1043-10ba-f897-72a2bb134dac@free.fr> Hello Farimani, Le 22/02/2019 ? 09:51, farimani a ?crit : > Lately I have been using SciLab - xcos / ScicosLab - scicos and have had > several bugs and questions. Have tried the relevant StackOverFlow tag: > > * SciLab > * ScicosLab > * scicos > * xcos > > but it seems deserted, ended up answering my own questions. :) Also the > twitter account is not responsive. The forums > I have found here and here > are > also not working properly. This usenet forum was my first place to post about Scilab 20 years ago, before Google came with its groups. Groups have complicated things, the traffic decreased, the ratio spam/signal dramatically increased, and now... this forum is almost dead, i guess. But its archives survive ;-) > I have posted several questions, none published/answered. Indeed, some of your messages have been published only today, from 1 to 3 days after posting... Great to see that you are not discouraged by such an abnormal delay...! > This subreddit is > also almost empty :( the IRC channel > is also empty. I was wondering if you could help me know where is the best > place to ask questions and also report bugs? maybe you have a > Slack/Discord/Gitter chat rooms? The official mailing lists listed @https://www.scilab.org/about/community/mailing-lists are the best places to post your questions and answers. So if they do not work properly, it's a big issue, indeed. It's always possible to post questions directly on the archives web interface. They are should be published online immediately (i guess), but not sent to the list The official bug tracker http://bugzilla.scilab.org is the only place to search for a bug's anteriority and history, and to report new native Scilab bugs. For external modules, for modules having a forge with a tickets system, the forge is the best place to report their bugs, as for the SIMM module https://atoms.scilab.org/toolboxes/SIMM Its description ends with a "Report a bug" link to its forge: http://forge.scilab.org/index.php/p/SIMM/issues/ This is the best and only place for this module. For external ATOMS modules not having any forge, comments on their ATOMS pages are the best way to report their bugs. HTH Samuel From sgougeon at free.fr Sat Feb 23 17:37:56 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 23 Feb 2019 17:37:56 +0100 Subject: [Scilab-users] Text in LaTeX mode <= Re: Prettify function - few questions In-Reply-To: References: Message-ID: Le 22/02/2019 ? 09:09, Izabela W?jcik-Grz?ba a ?crit : > Thanks Samuel once more, > > I've already deleted my post because I managed to solve most of the > problems (although circles are not exactly circles but I think it is a > matter of resolution). > In a prettify function there is a short example where normal text is > mixed with LaTex: > > xlabel('$x$ (rad)') > > That's why I used this method and it works. This was in the version 0.1 of slr. When i managed to actually package the module to make it actually published and installable through the ATOMS manager, i saw this error. prettify() does not handle mixed mode more than Scilab does. So i fixed the example. Now it works in the slr 0.2 release, the only one you can see in the ATOMS GUI (the first one had no binaries). The full CHANGES log is on https://atoms.scilab.org/toolboxes/slr/0.2 including this "$..$" error. Regards Samuel From cfuttrup at gmail.com Sat Feb 23 17:49:52 2019 From: cfuttrup at gmail.com (Claus Futtrup) Date: Sat, 23 Feb 2019 17:49:52 +0100 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: <7383627f-2640-4335-66f0-f0ace64ca24b@gmail.com> Hi Farimani You've found it - this mailing list seems to be the best place. Best regards, Claus On 22.02.2019 09:51, farimani wrote: > Lately I have been using SciLab - xcos / ScicosLab - scicos and have had > several bugs and questions. Have tried the relevant StackOverFlow tag: > > * SciLab > * ScicosLab > * scicos > * xcos > > but it seems deserted, ended up answering my own questions. :) Also the > twitter account is not responsive. The forums > I have found here and here > are > also not working properly. I have posted several questions, none > published/answered. This subreddit is > also almost empty :( the IRC channel > is also empty. I was wondering if you could help me know where is the best > place to ask questions and also report bugs? maybe you have a > Slack/Discord/Gitter chat rooms? > > > > > -- > 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 > --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From cfuttrup at gmail.com Sat Feb 23 17:57:14 2019 From: cfuttrup at gmail.com (Claus Futtrup) Date: Sat, 23 Feb 2019 17:57:14 +0100 Subject: [Scilab-users] xcos summation block doesn't work properly In-Reply-To: <1550591815845-0.post@n3.nabble.com> References: <1550591815845-0.post@n3.nabble.com> Message-ID: <7bafb15d-e20f-7973-3d5d-21d8b2c83837@gmail.com> Hi Farimani It works here at my end. I just opened up XCOS on a Scilab 6.0.1 system and added the summation module. I can specify the modules and I can decide the order of appearance (++ -- or +-+-) etc. Which OS and which version of Scilab are you using? Best regards, Claus On 19.02.2019 16:56, farimani wrote: > I'm trying to use the summation block but it does not work properly: > > > > no matter if the port is -1 or +1 it just adds +1s! > > > > -- > 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 > --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From fmiyara at fceia.unr.edu.ar Sun Feb 24 07:11:49 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Sun, 24 Feb 2019 03:11:49 -0300 Subject: [Scilab-users] Possible bug in wavread Message-ID: <5C7235A5.8060909@fceia.unr.edu.ar> Dear all, When opening a wav file with wavread, even with the option 'info', seemingly it does not recognize the file as a valid wav file if it is encoded with a category different from PCM. For instance, I've created a simple wave file, opened it with Audacity (a free open-source audio editor) and exported it with mu-law encoding, getting the attached file. Wavread with the option 'info' behaves like this: --> H = wavread('c:\test mu-law.wav', 'info') at line 16 of function read_wavefmt ( C:\Program Files\scilab-6.0.2\modules\sound\macros\wavread.sci line 186 ) at line 113 of function wavread ( C:\Program Files\scilab-6.0.2\modules\sound\macros\wavread.sci line 128 ) find_cktype: An error occurred: Invalid wav format. I think this behavior is not correct, since my file is indeed a valid wav file (I successfully opened it with other audio editor). From this and other similar experiments I conclude that the only encoding category Scilab supports is PCM (no compression). This may be OK to keep the function simple (there are literally dozens of formats that can be contained in a wav file), but the documentation should warn about that and the error message should be more accurate, informing that it is an unsupported format, instead of providing a misleading report telling that the format is invalid. 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: test mu-law.wav Type: audio/x-wav Size: 8880 bytes Desc: not available URL: From cfuttrup at gmail.com Sun Feb 24 10:18:14 2019 From: cfuttrup at gmail.com (Claus Futtrup) Date: Sun, 24 Feb 2019 10:18:14 +0100 Subject: [Scilab-users] Phishing attempt? Message-ID: <975dda6c-7baf-1dbc-7b11-5ae628fe7212@gmail.com> Dear Scilab mailing list Today I received an email with a link, recommending me to sign up for the Scilab mailing list, presumably this one (?) - for which I'm already a member. This makes me suspicious. Is this a phishing attempt? Scilab - please confirm this is a valid request - or not? Title of the email: *Scilab users - Mailing Lists Archives* Sent from: no-reply at nabble.com ... Very suspicious, and without any previous "flagging" that such an email is coming from anybody credible (credible = from anyone inside the Scilab team). Best regards, Claus --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus -------------- next part -------------- An HTML attachment was scrubbed... URL: From grocer.toolbox at gmail.com Sun Feb 24 13:08:11 2019 From: grocer.toolbox at gmail.com (=?UTF-8?B?w4lyaWMgRHVib2lz?=) Date: Sun, 24 Feb 2019 13:08:11 +0100 Subject: [Scilab-users] Small problem with Scilab 6.0.1 code generation In-Reply-To: <30f63894-3b5a-f10d-e54e-0d0f82d7addc@free.fr> References: <1550148313088-0.post@n3.nabble.com> <1550216213364-0.post@n3.nabble.com> <1550744064376-0.post@n3.nabble.com> <30f63894-3b5a-f10d-e54e-0d0f82d7addc@free.fr> Message-ID: Hello everybody I have noticed the same nehaviour with old code that containded +string(something) the '+' having no left hand side bit of string. I think that this an example of a more general approach by recent Scilab team: make coding more restrictive for the -laudable- goal of making it more rigourous, This comes however at the price of less flexibility (I have for example in mind the impossibility with the 6.0 family to have string on several lines ending with '...' to signal that the string contrinues on next line) and ascending compatibility for old code (with the risk of losing old users). As we say in French 'le mieux est l'ennemi du bien" (better is the enemy of what is good). Regards ?ric Garanti sans virus. www.avast.com <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> Le jeu. 21 f?vr. 2019 ? 22:56, Samuel Gougeon a ?crit : > Hello Vilppu, > > Le 21/02/2019 ? 11:14, Vilppu a ?crit : > > Hello, > > Has anyone tried using code generation on my example model? > > I installed the new Scilab 6.0.2 and with that I get even less far with code > generation. When trying code generation I get this Scilab pop-up window > message: > Undefined operation for the given operands. check or define function %c_a > for overloading. > > > The reason *why* this error now occurs is known. But the point is that we > need > to know *where* exactly this occurs in the code. So, in the message, > wasn't there > any indication about the *location* of the error, the function, and the > line number, > the stack of nested calls? > Was "Undefined operation for the given operands. check or define function > %c_a for overloading. " > the whole message? > As for the "operation +" warning or error after "warning stop", not having > more detail > about where exactly the error occurs is rather blocking to debug the code. > > For my part, i have no compiler on my computer ; so i can't reproduce the > issue. > > We can't be surprised that the next steps fail. Issues must be fixed step > by step, > in the order they appear. > > 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 yann.debray at scilab-enterprises.com Sun Feb 24 13:31:43 2019 From: yann.debray at scilab-enterprises.com (yann.debray at scilab-enterprises.com) Date: Sun, 24 Feb 2019 13:31:43 +0100 Subject: [Scilab-users] =?utf-8?q?Phishing_attempt=3F?= In-Reply-To: <975dda6c-7baf-1dbc-7b11-5ae628fe7212@gmail.com> References: <975dda6c-7baf-1dbc-7b11-5ae628fe7212@gmail.com> Message-ID: Dear Claus, This is weird indeed. I haven't received this email from Nabble. And it definitely does not come from the Scilab team. We might consider another platform for community exchanges. Yours Yann On 2019-02-24 10:18, Claus Futtrup wrote: > Dear Scilab mailing list > > Today I received an email with a link, recommending me to sign up for > the Scilab mailing list, presumably this one (?) - for which I'm > already a member. This makes me suspicious. Is this a phishing > attempt? > > Scilab - please confirm this is a valid request - or not? > > Title of the email: SCILAB USERS - MAILING LISTS ARCHIVES > > Sent from: no-reply at nabble.com > > ... Very suspicious, and without any previous "flagging" that such an > email is coming from anybody credible (credible = from anyone inside > the Scilab team). > > Best regards, > > Claus > > ------------------------- > > [1] > > This email has been checked for viruses by Avast antivirus software. > www.avast.com [1] > > > > Links: > ------ > [1] https://www.avast.com/antivirus > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From yann.debray at scilab-enterprises.com Sun Feb 24 13:46:21 2019 From: yann.debray at scilab-enterprises.com (yann.debray at scilab-enterprises.com) Date: Sun, 24 Feb 2019 13:46:21 +0100 Subject: [Scilab-users] Group function bug Message-ID: <2a3e4a25413848104de06fe283e016e2@scilab-enterprises.com> For the signal specialists, There seems to be a problem with the function group: //Group function [h w]=wfir('lp',7,[.2,0],'hm',[0.01,-1]); [tg,fr]=group(100,h); plot2d(fr',tg',-1,'011',' ',[0,2,0.5,4.]) --> [tg,fr]=group(100,h); ? la ligne 97 de la fonction group ( C:\Program Files\scilab-6.0.2\modules\signal_processing\macros\group.sci ligne 109 ) This example appears at page 40 of this pdf: https://www.scilab.org/sites/default/files/signal_processing_with_scilab.pdf (It might be hold and outdated). I found another registered bug, which is not necesserally linked: http://bugzilla.scilab.org/show_bug.cgi?id=6982 Could someone with some experience in the domain share a light on this? Yours Yann From sgougeon at free.fr Sun Feb 24 19:00:08 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 24 Feb 2019 19:00:08 +0100 Subject: [Scilab-users] unary +"string" removed <= Re: Small problem with Scilab 6.0.1 code generation In-Reply-To: References: <1550148313088-0.post@n3.nabble.com> <1550216213364-0.post@n3.nabble.com> <1550744064376-0.post@n3.nabble.com> <30f63894-3b5a-f10d-e54e-0d0f82d7addc@free.fr> Message-ID: Hello Eric, Le 24/02/2019 ? 13:08, ?ric Dubois a ?crit : > Hello everybody > > I have noticed the same nehaviour with old code that > containded +string(something) the '+' having no left hand side bit of > string. > > I think that this an example of a more general approach by recent > Scilab team: make coding more restrictive for the -laudable- goal of > making it more rigourous, This comes however at the price of less > flexibility (I have for example in mind the impossibility with the 6.0 > family to have string on several lines ending with '...' to signal > that the string contrinues on next line) and ascending compatibility > for old code (with the risk of losing old users). As we say in French > 'le mieux est l'ennemi du bien" (better is the enemy of what is good). Both aspects are independent. The implicit support of the unary "plus" /+object/ has been removed for non-numerical inputs, then routing to the %c_a() overload or inputs like --> +"abc" because this support, that on strings did nothing, caused actual issues : please see the bug 18850 , observing that ['x' +'x'] and ['x'+ 'x'] yield ['x' 'x'] , while ['x'+'x'] and ['x' + 'x'] yield ['xx']. To be silent with such a space sensitivity was not a good think and generated bugs. The bug has been discussed and fixed mainly by /contributors/, not by the Scilab team. But we are too few. Please join us. After fixing the bug, the ATOMS GUI was KO. We discovered that this was due to : + "
" .. + authorHTML + "
"; From the early ages of the ATOMS GUI, missing dots after authorHTMLwere not detected, leaving /+ "
"/ just as an orphelin, and the built string was silently incomplete and stayed opened. To what consequences? Then we scanned the /whole/ native Scilab code against this feature. Only one another occurrence was found and fixed. Now, removing suppport to the unary /+string/ does not prevent re-implementing multiline string continuation. Both considerations are independent. There are actual recent cases that more rigor, purism, is really with no added value and counter-productive. But not for this case. Anyway, when some decisions have to taken to fix and improve things, mostly daily, critical constructive, balanced and argued inputs from users as us are always welcome. We miss them. Best regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sun Feb 24 19:14:35 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 24 Feb 2019 19:14:35 +0100 Subject: [Scilab-users] Phishing attempt? In-Reply-To: <975dda6c-7baf-1dbc-7b11-5ae628fe7212@gmail.com> References: <975dda6c-7baf-1dbc-7b11-5ae628fe7212@gmail.com> Message-ID: <3f20733a-9fe9-2ca9-40af-6a5e218ac6bf@free.fr> Hello Clauss, Le 24/02/2019 ? 10:18, Claus Futtrup a ?crit : > > Dear Scilab mailing list > > Today I received an email with a link, recommending me to sign up for > the Scilab mailing list, presumably this one (?) - for which I'm > already a member. This makes me suspicious. Is this a phishing attempt? > > Scilab - please confirm this is a valid request - or not? > > Title of the email: *Scilab users - Mailing Lists Archives* > > Sent from: no-reply at nabble.com > > ... Very suspicious, and without any previous "flagging" that such an > email is coming from anybody credible (credible = from anyone inside > the Scilab team). > It looks like a regular administrative notification from the nable plateform homing mailing lists. I guess that it can occur while some operations are done on the web interface. Phishing is when in a mail some link leads to a target completely different from the supposed one "readable as the link text". It does not look to be the case. If someone tried to use your loggin on the online plateform but failed due to a bad login, then a good plateform will notify the actual recipient to confirm the login. This is rather a sign for security, not the opposite. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sun Feb 24 19:16:48 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 24 Feb 2019 19:16:48 +0100 Subject: [Scilab-users] Phishing attempt? In-Reply-To: <3f20733a-9fe9-2ca9-40af-6a5e218ac6bf@free.fr> References: <975dda6c-7baf-1dbc-7b11-5ae628fe7212@gmail.com> <3f20733a-9fe9-2ca9-40af-6a5e218ac6bf@free.fr> Message-ID: Le 24/02/2019 ? 19:14, Samuel Gougeon a ?crit : > Hello Clauss, > .../... > > It looks like a regular administrative notification from the nable > plateform homing mailing lists. > I guess that it can occur while some operations are done on the web > interface. > Phishing is when in a mail some link leads to a target completely > different from > the supposed one "readable as the link text". It does not look to be > the case. > > If someone tried to use your loggin on the online plateform but failed > due to a bad login, .. to a bad /password/.. > then a good plateform will notify the actual recipient to confirm the > login. > This is rather a sign for security, not the opposite. > > Regards > Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Mon Feb 25 00:01:05 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 25 Feb 2019 00:01:05 +0100 Subject: [Scilab-users] =?utf-8?q?expression_block_in_xcos_gives_=E2=80=9C?= =?utf-8?q?answer_given_for_scilab_expression_is_wrong=E2=80=9D_error?= In-Reply-To: <1550569662980-0.post@n3.nabble.com> References: <1550569662980-0.post@n3.nabble.com> Message-ID: <0f3fe5f3-b53c-5334-78af-82d754d41003@free.fr> Hello Farimani, Le 19/02/2019 ? 10:47, farimani a ?crit : > As I have originally explained in this post > > I'm trying to put the SciLab expression: > > sign(u2 ? u1) * (2 * ((Fm + M) * abs(u2 ? u1) + k * (u2^2 ? u1^2) / 2) / > m)^0.5 > > but I get this error message: > > > > answer given for scilab expression is incorrect... > > I would appreciate if you could help me know what is the problem and how I > can solve it. Maybe I should use a different block? Copy/pasting your formula in the console: [Fm, M, m, k] = (1,1,1,1); [u1, u2] = (1,2); r = sign(u2 ? u1) * (2 * ((Fm + M) * abs(u2 ? u1) + k * (u2^2 ? u1^2) / 2) /m)^0.5; --> r = sign(u2 ? u1) * (2 * ((Fm + M) * abs(u2 ? u1) + k * (u2^2 ? u1^2) / 2) /m)^0.5;r = sign(u2 ? u1) * (2 * ((Fm + M) * abs(u2 ? u1) + k * (u2^2 ? u1^2) / 2) /m)^0.5;^~~^Error: syntax error, unexpected identifier, expecting "," or ) Puzzling... Hard to find why, but finally: You have likely copy/pasted this formula from a "formatted" document, maybe a web site, etc. Then, the included "?" character is not the mathematical minus, that is "-". This puzzles the Scilab's parser. If you input the same formula, just replacing the hyphens with the true minus, it works, in the console as well as in Xcos. --> r = sign(u2 - u1) * (2 * ((Fm + M) * abs(u2 - u1) + k * (u2^2 - u1^2) / 2) /m)^0.5 r = 2.6457513 HTH Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Mon Feb 25 00:19:35 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 25 Feb 2019 00:19:35 +0100 Subject: [Scilab-users] Small problem with Scilab 6.0.1 code generation In-Reply-To: <1550744064376-0.post@n3.nabble.com> References: <1550148313088-0.post@n3.nabble.com> <1550216213364-0.post@n3.nabble.com> <1550744064376-0.post@n3.nabble.com> Message-ID: <06c56d78-e935-7b74-a052-d0e5c7c4fb6c@free.fr> Hello Vilppu, Le 21/02/2019 ? 11:14, Vilppu a ?crit : > Hello, > > Has anyone tried using code generation on my example model? > > I installed the new Scilab 6.0.2 and with that I get even less far with code > generation. When trying code generation I get this Scilab pop-up window > message: > Undefined operation for the given operands. check or define function %c_a > for overloading. > > After clicking ok: > Generated block cannot be linked with Scilab. I finally got the same. No need to have a compiler, since these issues occur before compiling. The fact that the error message in the message box does not provide any information about where the error occurs is very unhandy. I will have a look to that. Regards Samuel From fmiyara at fceia.unr.edu.ar Mon Feb 25 01:06:35 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Sun, 24 Feb 2019 21:06:35 -0300 Subject: [Scilab-users] Possible bug in wavread In-Reply-To: <5C7235A5.8060909@fceia.unr.edu.ar> References: <5C7235A5.8060909@fceia.unr.edu.ar> Message-ID: <5C73318B.1010100@fceia.unr.edu.ar> Dear all, I'm reviewing the wavread function code which I could find (on Windows 7) at the following path: C:\Program Files\scilab-6.0.2\modules\sound\macros\wavread.sci There is a code segment at the beginninig intended to detect if the wavfile has or not the .wav extension: // Append .wav extension if necessary if ( strindex(wavfile, ".") == [] ) then wavfile = wavfile + ".wav"; end This contains a bug, since the wavfile name might contain a dot different from the one between the name and the extension. The normal case would be sound.wav and in this case the code works fine if the trailing .wav is absent. But in a case such as sound_v1.1.wav the code will detect a dot within the abbreviated name 'sound_v1.1' and will not append the .wav extension, hence the function will fail to find and open the file. Fortunately the issue is solved quite easily: // Append .wav extension if necessary if (~(max(strindex(wavfile,'.wav')) == length(wavfile)-3)) then wavfile = wavfile + '.wav'; end The proposed patch tests whether '.wav' is the last sub-string of the file name. Note: '.wav' might appear more than once or might even appear only once but in the middle of the name. In such cases it is not a valid wav extension. This case might appear unlikely, but it is a possibility. For instance, some educator might present an example called: 'example_of_.wav_file.wav' Regards, Federico Miyara --- El software de antivirus Avast ha analizado este correo electr?nico en busca de virus. https://www.avast.com/antivirus -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Mon Feb 25 01:40:56 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 25 Feb 2019 01:40:56 +0100 Subject: [Scilab-users] Possible bug in wavread In-Reply-To: <5C73318B.1010100@fceia.unr.edu.ar> References: <5C7235A5.8060909@fceia.unr.edu.ar> <5C73318B.1010100@fceia.unr.edu.ar> Message-ID: <5164bd13-0053-d59e-0b2b-b6cb330bf739@free.fr> Hello Federico, Le 25/02/2019 ? 01:06, Federico Miyara a ?crit : > > Dear all, > > I'm reviewing the wavread function code which I could find (on Windows > 7) at the following path: > > C:\Program Files\scilab-6.0.2\modules\sound\macros\wavread.sci > > There is a code segment at the beginninig intended to detect if the > wavfile has or not the .wav extension: > > // Append .wav extension if necessary > if ( strindex(wavfile, ".") == [] ) then > wavfile = wavfile + ".wav"; > end > > This contains a bug, since the wavfile name might contain a dot > different from the one between the name and the extension. The normal > case would be > > sound.wav > > and in this case the code works fine if the trailing .wav is absent. > But in a case such as > > sound_v1.1.wav > > the code will detect a dot within the abbreviated name 'sound_v1.1' > and will not append the .wav extension, hence the function will fail > to find and open the file. > > Fortunately the issue is solved quite easily: > > // Append .wav extension if necessary > if (~(max(strindex(wavfile,'.wav')) == length(wavfile)-3)) then > wavfile = wavfile + '.wav'; > end You are right. The current test is very fragile. The regular way would rather be if fileparts(wavfile,"extension")<>"wav", wavfile = wavfile+ ".wav" end Maybe fileparts() did not yet exist when the code was written. Please do not hesitate to open another bug report to gather all this in a trackable place. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From fmiyara at fceia.unr.edu.ar Mon Feb 25 07:02:55 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Mon, 25 Feb 2019 03:02:55 -0300 Subject: [Scilab-users] Possible bug in wavread In-Reply-To: <5164bd13-0053-d59e-0b2b-b6cb330bf739@free.fr> References: <5C7235A5.8060909@fceia.unr.edu.ar> <5C73318B.1010100@fceia.unr.edu.ar> <5164bd13-0053-d59e-0b2b-b6cb330bf739@free.fr> Message-ID: <5C73850F.3000403@fceia.unr.edu.ar> Samuel, > You are right. The current test is very fragile. > The regular way would rather be > > if fileparts(wavfile,"extension")<>"wav", > wavfile = wavfile+ ".wav" > end > > Maybe fileparts() did not yet exist when the code was written. I wasn't aware of fileparts, thank you. > Please do not hesitate to open another bug report to gather all this > in a trackable place. OK, I've submitted it as bug 15981: http://bugzilla.scilab.org/show_bug.cgi?id=15981 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 vilppu91 at hotmail.com Mon Feb 25 08:08:18 2019 From: vilppu91 at hotmail.com (Vilppu) Date: Mon, 25 Feb 2019 00:08:18 -0700 (MST) Subject: [Scilab-users] Small problem with Scilab 6.0.1 code generation In-Reply-To: <06c56d78-e935-7b74-a052-d0e5c7c4fb6c@free.fr> References: <1550148313088-0.post@n3.nabble.com> <1550216213364-0.post@n3.nabble.com> <1550744064376-0.post@n3.nabble.com> <06c56d78-e935-7b74-a052-d0e5c7c4fb6c@free.fr> Message-ID: <1551078498038-0.post@n3.nabble.com> Hello Samuel, Samuel GOUGEON wrote > Was "Undefined operation for the given operands. check or define function > %c_a for overloading. " > the whole message? Yes, that was the whole message. Samuel GOUGEON wrote > I finally got the same. No need to have a compiler, since these issues > occur before compiling. > The fact that the error message in the message box does not provide any > information > about where the error occurs is very unhandy. > I will have a look to that. I was about to say that you don't even need a compiler to test this error. I have tried this code generation without having MinGw toolbox loaded and I get the same error messages referring to adding. After that I get warning about having no compiler. Thank you for taking a look. I'm not an expert but maybe the problem lies within Xcos GUI not recognizing the super block properly. I have also tried with different super blocks and the error is always the same. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From p.muehlmann at gmail.com Mon Feb 25 17:10:44 2019 From: p.muehlmann at gmail.com (P M) Date: Mon, 25 Feb 2019 17:10:44 +0100 Subject: [Scilab-users] issue with xs2png Message-ID: Dear all, I am building a figure with 4 subplots. Now since I want to have a title in the figure I can use several options to set a title on the figure. Currently I use subplot(221); plot(...) a1 = gca(); a1.title.Text = "my title"; However so far I understand, the title position is somehow bound to the axis settings. such as: if xmin xMax yMin yMax are changing the position of the title also changes. Now: I need to have the title position independend of the axis settings. A way of doing this is using a uicontrol in the "text"-format style. Drawback: xs2png does not seem to save the uicontrol to the image....at least the title build with uicontrol does not appear in the PNG-file. Any hint? Thank you, Phil -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Mon Feb 25 17:25:29 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 25 Feb 2019 17:25:29 +0100 Subject: [Scilab-users] issue with xs2png In-Reply-To: References: Message-ID: <6ebbfd2a-6982-9f7a-97d5-fa55c115a167@free.fr> Hello P M (Prime Minister ?) Le 25/02/2019 ? 17:10, P M a ?crit : > Dear all, > > I am building a figure with 4 subplots. > > Now since I want to have a title in the figure I can use several > options to set a title on the figure. > > Currently I use > > subplot(221); > plot(...) > a1 = gca(); > a1.title.Text = "my title"; > > However so far I understand, the title position is somehow bound to > the axis settings.such as: if xmin xMax yMin yMax are changing the > position of the title also changes. > Now: I need to have the title position independend of the axis settings. What do you mean? The position of the title can be explicitly set with title("My title", "position",[xtitle, ytitle]) where the coordinates [xtitle, ytitle] are given in data scale. Using this, a1.title.auto_position is turned "off", and the position that you set should remain independent of any changes of data bounds. Isn't it the case? HTH Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Mon Feb 25 18:08:31 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 25 Feb 2019 18:08:31 +0100 Subject: [Scilab-users] Small problem with Scilab 6.0.1 code generation In-Reply-To: <1550744064376-0.post@n3.nabble.com> References: <1550148313088-0.post@n3.nabble.com> <1550216213364-0.post@n3.nabble.com> <1550744064376-0.post@n3.nabble.com> Message-ID: <993a4d2c-0e77-526d-e762-640003ff8858@free.fr> Le 21/02/2019 ? 11:14, Vilppu a ?crit : > Hello, > > Has anyone tried using code generation on my example model? > > I installed the new Scilab 6.0.2 and with that I get even less far with code > generation. When trying code generation I get this Scilab pop-up window > message: > Undefined operation for the given operands. check or define function %c_a > for overloading. To once and for all fix this issue in your Scilab 6.0.2 sessions, /provided that you have// //write permissions on the Scilab installation directory/, please do the following: edit do_compile_superblock42 // CTRL+F: search the [++"] pattern (without []) and replace ++" => +" // Save the file predef clear Dir = SCI+"/modules/scicos/macros/scicos_scicos"; genlib("scicos_scicoslib", Dir) That's all. Restart Scilab. In Scilab 6.0.2, "operation +" issues do not occur, at least no before compiling. I get: Generate a loader file Generate a Makefile Running the Makefile !sorry compiling problem ! !A Fortran or C compiler is required. ! blk = [] This %c_a() issue is being fixed in the next Scilab release. On your side, do you still get "operation +" warnings with 6.0.2? Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From fmiyara at fceia.unr.edu.ar Mon Feb 25 19:30:21 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Mon, 25 Feb 2019 15:30:21 -0300 Subject: [Scilab-users] Efficiency of drive usage Message-ID: <5C74343D.6010903@fceia.unr.edu.ar> Dear all, I've observed that the function wavread, which needs to retrieve some specific header data apart from the real audio data, uses an mget call for each of them. For instance, it is necessary to detect several string ID's each one followed by 4 byte integers. I wonder if this is an efficient way to use the drive. I mean, each mget requires reading the disk content which means mechanically positioning the read-write head and picking the information. However, it is known that on each read the head retrieves typically a 4096 byte sector and the operating system may read at once several sectors into a cluster. Do operating systems or Scilab, at a low level, ensure that if one performs several mget calls to retrieve closely packed data, the information will be retrieved from some buffer secured during the first physical read, instead of reading again the disk? Thank you. Regards, Federico Miyara --- El software de antivirus Avast ha analizado este correo electr?nico en busca de virus. https://www.avast.com/antivirus -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.muehlmann at gmail.com Mon Feb 25 20:37:44 2019 From: p.muehlmann at gmail.com (P M) Date: Mon, 25 Feb 2019 20:37:44 +0100 Subject: [Scilab-users] issue with xs2png In-Reply-To: <6ebbfd2a-6982-9f7a-97d5-fa55c115a167@free.fr> References: <6ebbfd2a-6982-9f7a-97d5-fa55c115a167@free.fr> Message-ID: no...I'm not (yet) prime minister :-)) What do I mean? Please, check this small example: clear();clc;xdel();x = linspace(1,10);y = x .* x;f1 = figure();f1.background = 8;title ('my title','position',[10 100]);subplot(221);plot(x,y);a1 = gca();a1.data_bounds = [0,0;10,100];a1.tight_limits = ["on","on","off"]; so far so good. change to: a1.data_bounds = [0,0;10,200]; You see that the title position changes. I need to play with a1.data_bounds. This is because my diagram representes data from a file and each file content may change the Y-axis...so I can not have a fixed value for a1.data_bound. I probably could figure out how to set the Y-position of the title with respect to max(y). I just thought it is quite nice, if the position of the title would be depending on just the figure size and not on the axis scale. Cheers, Philipp Am Mo., 25. Feb. 2019 um 17:26 Uhr schrieb Samuel Gougeon : > Hello P M > (Prime Minister ?) > > Le 25/02/2019 ? 17:10, P M a ?crit : > > Dear all, > > I am building a figure with 4 subplots. > > Now since I want to have a title in the figure I can use several options > to set a title on the figure. > > Currently I use > > subplot(221); > plot(...) > a1 = gca(); > a1.title.Text = "my title"; > > However so far I understand, the title position is somehow bound to the axis settings. > such as: if xmin xMax yMin yMax are changing the position of the title also changes. > > Now: I need to have the title position independend of the axis settings. > > > What do you mean? The position of the title can be explicitly set with > > title("My title", "position",[xtitle, ytitle]) > > where the coordinates [xtitle, ytitle] are given in data scale. > > Using this, a1.title.auto_position is turned "off", and the position > that you set should remain independent of any changes of data bounds. > Isn't it the case? > > HTH > Samuel > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.muehlmann at gmail.com Mon Feb 25 20:45:13 2019 From: p.muehlmann at gmail.com (P M) Date: Mon, 25 Feb 2019 20:45:13 +0100 Subject: [Scilab-users] issue with xs2png In-Reply-To: References: <6ebbfd2a-6982-9f7a-97d5-fa55c115a167@free.fr> Message-ID: ...just checked: even with adding: a1.title.auto_position = 'off'; ...same thing Am Mo., 25. Feb. 2019 um 20:37 Uhr schrieb P M : > no...I'm not (yet) prime minister :-)) > > What do I mean? Please, check this small example: > > clear();clc;xdel();x = linspace(1,10);y = x .* x;f1 = figure();f1.background = 8;title ('my title','position',[10 100]);subplot(221);plot(x,y);a1 = gca();a1.data_bounds = [0,0;10,100];a1.tight_limits = ["on","on","off"]; > > so far so good. > > change to: a1.data_bounds = [0,0;10,200]; > > You see that the title position changes. > > I need to play with a1.data_bounds. > > This is because my diagram representes data from a file and each file content may change the Y-axis...so I can not have a fixed value for a1.data_bound. > > I probably could figure out how to set the Y-position of the title with respect to max(y). > > I just thought it is quite nice, if the position of the title would be depending on just the figure size and not on the axis scale. > > Cheers, Philipp > > > > > > > > > > Am Mo., 25. Feb. 2019 um 17:26 Uhr schrieb Samuel Gougeon < > sgougeon at free.fr>: > >> Hello P M >> (Prime Minister ?) >> >> Le 25/02/2019 ? 17:10, P M a ?crit : >> >> Dear all, >> >> I am building a figure with 4 subplots. >> >> Now since I want to have a title in the figure I can use several options >> to set a title on the figure. >> >> Currently I use >> >> subplot(221); >> plot(...) >> a1 = gca(); >> a1.title.Text = "my title"; >> >> However so far I understand, the title position is somehow bound to the axis settings. >> such as: if xmin xMax yMin yMax are changing the position of the title also changes. >> >> Now: I need to have the title position independend of the axis settings. >> >> >> What do you mean? The position of the title can be explicitly set with >> >> title("My title", "position",[xtitle, ytitle]) >> >> where the coordinates [xtitle, ytitle] are given in data scale. >> >> Using this, a1.title.auto_position is turned "off", and the position >> that you set should remain independent of any changes of data bounds. >> Isn't it the case? >> >> HTH >> Samuel >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Mon Feb 25 21:14:06 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 25 Feb 2019 21:14:06 +0100 Subject: [Scilab-users] Title in normalized coordinates <= Re: issue with xs2png In-Reply-To: References: <6ebbfd2a-6982-9f7a-97d5-fa55c115a167@free.fr> Message-ID: Le 25/02/2019 ? 20:37, P M a ?crit : > no...I'm not (yet) prime minister :-)) > > What do I mean? Please, check this small example: > > clear(); > clc; > xdel(); > x = linspace(1,10); > y = x .* x; > f1 = figure(); > f1.background = 8; > title ('my title','position',[10 100]); > subplot(221); > plot(x,y); > a1 = gca(); > a1.data_bounds = [0,0;10,100]; > a1.tight_limits = ["on","on","off"]; so far so good. > change to: a1.data_bounds = [0,0;10,200]; > You see that the title position changes. > I need to play with a1.data_bounds. > This is because my diagram representes data from a file and each file > content may change the Y-axis...so I can not have a fixed value for > a1.data_bound. > I probably could figure out how to set the Y-position of the title > with respect to max(y). > I just thought it is quite nice, if the position of the title would be > depending on just the figure size and not on the axis scale. Thanks for the context. It often helps. Here is a suggestion: clf subplot(1,2,2) ax1 = gca(); x = linspace(-2,7,100); plot(x, sin) axt = newaxes(); axt.axes_bounds = ax1.axes_bounds; plotframe([0 0 1 1]); set(axt, "box", "off", "margins",[0 0 0 0],"axes_visible","off","filled","off") title("My title in normalized coodinates", "position",[0.2 0.9],"fontsize",4) sca(ax1); Here, it's possible to control the normalization reference. This example uses the entry area as the reference area. So it can be a subarea, not the whole figure. But you can set it to the whole figure (or uicontrol frame) if you think it more handy. HTH Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Mon Feb 25 21:23:54 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 25 Feb 2019 21:23:54 +0100 Subject: [Scilab-users] Title in normalized coordinates <= Re: issue with xs2png In-Reply-To: References: <6ebbfd2a-6982-9f7a-97d5-fa55c115a167@free.fr> Message-ID: <95011731-eb66-f723-2a12-fd2b7c964555@free.fr> Le 25/02/2019 ? 21:14, Samuel Gougeon a ?crit : > Le 25/02/2019 ? 20:37, P M a ?crit : >> no...I'm not (yet) prime minister :-)) >> >> What do I mean? Please, check this small example: >> >> clear(); >> clc; >> xdel(); >> x = linspace(1,10); >> y = x .* x; >> f1 = figure(); >> f1.background = 8; >> title ('my title','position',[10 100]); >> subplot(221); >> plot(x,y); >> a1 = gca(); >> a1.data_bounds = [0,0;10,100]; >> a1.tight_limits = ["on","on","off"]; so far so good. >> change to: a1.data_bounds = [0,0;10,200]; >> You see that the title position changes. >> I need to play with a1.data_bounds. >> This is because my diagram representes data from a file and each file >> content may change the Y-axis...so I can not have a fixed value for >> a1.data_bound. >> I probably could figure out how to set the Y-position of the title >> with respect to max(y). >> I just thought it is quite nice, if the position of the title would >> be depending on just the figure size and not on the axis scale. > > Thanks for the context. It often helps. > Here is a suggestion: > clf > subplot(1,2,2) > ax1 = gca(); > x = linspace(-2,7,100); > plot(x, sin) > > axt = newaxes(); > axt.axes_bounds = ax1.axes_bounds; > plotframe([0 0 1 1]); > set(axt, "box", "off", "margins",[0 0 0 0],"axes_visible","off","filled","off") > title("My title in normalized coodinates", "position",[0.2 0.9],"fontsize",4) > > sca(ax1); > Using title() instead of xstring() does not allow to center the title on its middle. Then, the title is badly shifted when resizing the windows. A better solution follows: clf subplot(1,2,2) ax1 = gca(); x = linspace(-2,7,100); plot(x, sin) axt = newaxes(); axt.axes_bounds = ax1.axes_bounds; plotframe([0 0 1 1]); set(axt, "box", "off", "margins",[0 0 0 0],"axes_visible","off","filled","off") xstring(0.5,0.93, "My title in normalized coordinates") t = gce(); set(t,"text_box_mode","centered","font_size",4); sca(ax1); Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pmcldanffaolgfbc.png Type: image/png Size: 21991 bytes Desc: not available URL: From p.muehlmann at gmail.com Mon Feb 25 23:28:43 2019 From: p.muehlmann at gmail.com (P M) Date: Mon, 25 Feb 2019 23:28:43 +0100 Subject: [Scilab-users] Title in normalized coordinates <= Re: issue with xs2png In-Reply-To: <95011731-eb66-f723-2a12-fd2b7c964555@free.fr> References: <6ebbfd2a-6982-9f7a-97d5-fa55c115a167@free.fr> <95011731-eb66-f723-2a12-fd2b7c964555@free.fr> Message-ID: That should do. Thank you. Am Mo., 25. Feb. 2019 um 21:24 Uhr schrieb Samuel Gougeon : > Le 25/02/2019 ? 21:14, Samuel Gougeon a ?crit : > > Le 25/02/2019 ? 20:37, P M a ?crit : > > no...I'm not (yet) prime minister :-)) > > What do I mean? Please, check this small example: > > clear();clc;xdel();x = linspace(1,10);y = x .* x;f1 = figure();f1.background = 8;title ('my title','position',[10 100]);subplot(221);plot(x,y);a1 = gca();a1.data_bounds = [0,0;10,100];a1.tight_limits = ["on","on","off"]; > > so far so good. > > change to: a1.data_bounds = [0,0;10,200]; > > You see that the title position changes. > > > I need to play with a1.data_bounds. > > This is because my diagram representes data from a file and each file content may change the Y-axis...so I can not have a fixed value for a1.data_bound. > > > I probably could figure out how to set the Y-position of the title with respect to max(y). > > I just thought it is quite nice, if the position of the title would be depending on just the figure size and not on the axis scale. > > > Thanks for the context. It often helps. > Here is a suggestion: > > clfsubplot(1,2,2)ax1 = gca();x = linspace(-2,7,100);plot(x, sin) > axt = newaxes();axt.axes_bounds = ax1.axes_bounds;plotframe([0 0 1 1]);set(axt, "box", "off", "margins",[0 0 0 0],"axes_visible","off","filled","off")title("My title in normalized coodinates", "position",[0.2 0.9],"fontsize",4) > sca(ax1); > > > > Using title() instead of xstring() does not allow to center the title on > its middle. > Then, the title is badly shifted when resizing the windows. > A better solution follows: > > clfsubplot(1,2,2)ax1 = gca();x = linspace(-2,7,100);plot(x, sin) > axt = newaxes();axt.axes_bounds = ax1.axes_bounds;plotframe([0 0 1 1]);set(axt, "box", "off", "margins",[0 0 0 0],"axes_visible","off","filled","off")xstring(0.5,0.93, "My title in normalized coordinates")t = gce();set(t,"text_box_mode","centered","font_size",4); > sca(ax1); > > > > > Samuel > > > _______________________________________________ > 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: pmcldanffaolgfbc.png Type: image/png Size: 21991 bytes Desc: not available URL: From sgougeon at free.fr Mon Feb 25 23:49:12 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 25 Feb 2019 23:49:12 +0100 Subject: [Scilab-users] Problems with graphics format In-Reply-To: <5C22A336.7070609@fceia.unr.edu.ar> References: <5C22A336.7070609@fceia.unr.edu.ar> Message-ID: <0aa96912-a8f1-2007-198e-7940aa8288bd@free.fr> Le 25/12/2018 ? 22:37, Federico Miyara a ?crit : > > After creating a figure and plot I need to change the thickness of > border around the plot. What property should I change? clf subplot(1,2,1), plot2d() subplot(1,2,2), plot2d(), gca().thickness = 3; Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: hbjnnbcbennecgih.png Type: image/png Size: 13679 bytes Desc: not available URL: From sgougeon at free.fr Tue Feb 26 01:44:23 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 26 Feb 2019 01:44:23 +0100 Subject: [Scilab-users] Group function bug In-Reply-To: <2a3e4a25413848104de06fe283e016e2@scilab-enterprises.com> References: <2a3e4a25413848104de06fe283e016e2@scilab-enterprises.com> Message-ID: <75baffb1-c693-af3c-e302-a3081cf8e45e@free.fr> Hello Yann, Le 24/02/2019 ? 13:46, yann.debray at scilab-enterprises.com a ?crit : > For the signal specialists, > > There seems to be a problem with the function group: > //Group function > [h w]=wfir('lp',7,[.2,0],'hm',[0.01,-1]); > [tg,fr]=group(100,h); > plot2d(fr',tg',-1,'011',' ',[0,2,0.5,4.]) > > --> [tg,fr]=group(100,h); > ? la ligne 97 de la fonction group ( C:\Program > Files\scilab-6.0.2\modules\signal_processing\macros\group.sci ligne 109 ) For the record (and the report): Scilab 5.5.1 was still OK. The bug appeared in Scilab 5.5.2. Regards Samuel From vilppu91 at hotmail.com Tue Feb 26 14:23:46 2019 From: vilppu91 at hotmail.com (Vilppu) Date: Tue, 26 Feb 2019 06:23:46 -0700 (MST) Subject: [Scilab-users] Small problem with Scilab 6.0.1 code generation In-Reply-To: <993a4d2c-0e77-526d-e762-640003ff8858@free.fr> References: <1550148313088-0.post@n3.nabble.com> <1550216213364-0.post@n3.nabble.com> <1550744064376-0.post@n3.nabble.com> <993a4d2c-0e77-526d-e762-640003ff8858@free.fr> Message-ID: <1551187426415-0.post@n3.nabble.com> Hello Samuel, Samuel GOUGEON wrote > To once and for all fix this issue in your Scilab 6.0.2 sessions, > /provided that you have// > //write permissions on the Scilab installation directory/, please do the > following: > > edit do_compile_superblock42 > // CTRL+F: search the [++"] pattern (without []) and replace ++" => +" > // Save the file > predef clear > Dir = SCI+"/modules/scicos/macros/scicos_scicos"; > genlib("scicos_scicoslib", Dir) I did as you told with Scilab 6.0.2. I?m using Microsoft Visual Studio 2013 Express as a compiler. Now when I try code generation I don?t get any error message. From Scilab console: Generate a loader file Generate a Makefile Running the Makefile Compilation of Test.c Compilation of Test_void_io.c Compilation of Test_Cblocks.c Building shared library (be patient) Generate a cleaner file Shared archive loaded. Link done. blk = GUI : Test_c Graphics: orig = [190,110] sz = [100,90] exprs = [] pin = 6 pout = 7 pein = [] peout = [] gr_i = [] id = "" in_implicit = "E" out_implicit = "E" in_style = "ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0" out_style = "ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0" in_label = "" out_label = "" style = "SUPER_f" Model : Test type: 4 in = 1 in2 = 1 intyp = 1 out = 2 out2 = 1 outtyp = 1 evtin = [] evtout = [] state = 0 dstate = [0;0;0;0] odstate = list(0,0,[0;0]) rpar : SuperBlock ipar = [2;1;1] opar = list() blocktype = "c" firing = [] dep_ut = [%t,%t] label = "" nzcross = 0 nmode = 0 equations = list() uid = "" But still the super block doesn?t turn into C block. I also tried with MinGw toolbox and gcc compiler. Same thing happened. I also tried this fix with Scilab 6.0.1. Nothing changed there. I still get the ?operation +: Warning adding a matrix with the empty matrix will give an empty matrix result.? warning three times. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Tue Feb 26 15:15:07 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 26 Feb 2019 15:15:07 +0100 Subject: [Scilab-users] Small problem with Scilab 6.0.1 code generation In-Reply-To: <1551187426415-0.post@n3.nabble.com> References: <1550148313088-0.post@n3.nabble.com> <1550216213364-0.post@n3.nabble.com> <1550744064376-0.post@n3.nabble.com> <993a4d2c-0e77-526d-e762-640003ff8858@free.fr> <1551187426415-0.post@n3.nabble.com> Message-ID: Le 26/02/2019 ? 14:23, Vilppu a ?crit : > .../... > I also tried this fix with Scilab 6.0.1. Nothing changed there. I still get > the ?operation +: Warning adding a matrix with the empty matrix will give an > empty matrix result.? warning three times. These "operation +" bugs have been detected/after /the 6.0.1 release. So they still appear in 6.0.1. No Scilab version is maintained /after/ its release. Newly detected bugs are fixed in /next/ versions, never in the already released ones. -------------- next part -------------- An HTML attachment was scrubbed... URL: From iwoj at il.pw.edu.pl Tue Feb 26 15:15:26 2019 From: iwoj at il.pw.edu.pl (=?UTF-8?Q?Izabela_W=C3=B3jcik-Grz=C4=85ba?=) Date: Tue, 26 Feb 2019 15:15:26 +0100 Subject: [Scilab-users] Export plot from figure with uicontrols Message-ID: <65a9b64fce8c80690edfc5cdb7e6e453@il.pw.edu.pl> Hello, I know that there's no official method to export a figure containing uicontrols but I need to export only my plot which is in the frame of the figure. Ordinary print screen is not enough because I may need a bigger size of a picture and also an .eps file. Do you have any other method to do this? Kind regards, Iza From sgougeon at free.fr Tue Feb 26 17:07:21 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 26 Feb 2019 17:07:21 +0100 Subject: [Scilab-users] Export plot from figure with uicontrols In-Reply-To: <65a9b64fce8c80690edfc5cdb7e6e453@il.pw.edu.pl> References: <65a9b64fce8c80690edfc5cdb7e6e453@il.pw.edu.pl> Message-ID: <78ebed42-d7fc-76a5-06c0-6582044ad9d6@free.fr> Le 26/02/2019 ? 15:15, Izabela W?jcik-Grz?ba a ?crit : > Hello, > > I know that there's no official method to export a figure containing > uicontrols but I need to export only my plot which is in the frame of > the figure. Ordinary print screen is not enough because I may need a > bigger size of a picture The saved screenshot has the size of the figure when you save it. So: plot2d() set(gcf(), "visible","off","axes_size",[2440,1840]); // for instance xs2png(0, "bigfig.png") // winopen("bigfig.png") should do what you expect. > and also an .eps file. PostScript is a vectorial format. So the rendering from it should be scalable according to your requirements. Samuel From iwoj at il.pw.edu.pl Tue Feb 26 17:13:16 2019 From: iwoj at il.pw.edu.pl (=?UTF-8?Q?Izabela_W=C3=B3jcik-Grz=C4=85ba?=) Date: Tue, 26 Feb 2019 17:13:16 +0100 Subject: [Scilab-users] Export plot from figure with uicontrols In-Reply-To: <78ebed42-d7fc-76a5-06c0-6582044ad9d6@free.fr> References: <65a9b64fce8c80690edfc5cdb7e6e453@il.pw.edu.pl> <78ebed42-d7fc-76a5-06c0-6582044ad9d6@free.fr> Message-ID: <447f5bb3475bbff29deba2379884443a@il.pw.edu.pl> But my problem is that in my figure appart from my plot I have different uicontrols, so when I use one of the xs2... commands it gives me a blank picture. Iza W dniu 26.02.2019 17:07, Samuel Gougeon napisa?(a): > Le 26/02/2019 ? 15:15, Izabela W?jcik-Grz?ba a ?crit : >> Hello, >> >> I know that there's no official method to export a figure containing >> uicontrols but I need to export only my plot which is in the frame of >> the figure. Ordinary print screen is not enough because I may need a >> bigger size of a picture > > The saved screenshot has the size of the figure when you save it. So: > > plot2d() > set(gcf(), "visible","off","axes_size",[2440,1840]); // for instance > xs2png(0, "bigfig.png") > > // winopen("bigfig.png") > > should do what you expect. > >> and also an .eps file. > > PostScript is a vectorial format. So the rendering from it should be > scalable according to your requirements. > > Samuel > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From sgougeon at free.fr Tue Feb 26 17:26:12 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 26 Feb 2019 17:26:12 +0100 Subject: [Scilab-users] Export plot from figure with uicontrols In-Reply-To: <447f5bb3475bbff29deba2379884443a@il.pw.edu.pl> References: <65a9b64fce8c80690edfc5cdb7e6e453@il.pw.edu.pl> <78ebed42-d7fc-76a5-06c0-6582044ad9d6@free.fr> <447f5bb3475bbff29deba2379884443a@il.pw.edu.pl> Message-ID: Le 26/02/2019 ? 17:13, Izabela W?jcik-Grz?ba a ?crit : > But my problem is that in my figure appart from my plot I have > different uicontrols, so when I use one of the xs2... commands it > gives me a blank picture. Aa. I would try to turn all uicontrols.visible="off", and then try xs2##(). However, I am pretty sure that it will fail. Otherwise, you may destroy them just for saving the remaining figure. From fmiyara at fceia.unr.edu.ar Tue Feb 26 17:34:39 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Tue, 26 Feb 2019 13:34:39 -0300 Subject: [Scilab-users] Export plot from figure with uicontrols In-Reply-To: <78ebed42-d7fc-76a5-06c0-6582044ad9d6@free.fr> References: <65a9b64fce8c80690edfc5cdb7e6e453@il.pw.edu.pl> <78ebed42-d7fc-76a5-06c0-6582044ad9d6@free.fr> Message-ID: <5C756A9F.6070700@fceia.unr.edu.ar> Izabela, I've had the same problem. Saving as eps is theoretically the solution but I couldn't manage to make it compatible with, for instance, Word. My solution has been to save the figure as svg (a vectorized format), then open it with GIMP, a free open source image editor, then select an appropriate size (large enough so that when inserted in a word processing software has a very high, printable resolution) and save as high quality jpg. If the export contains things you don't want, you simple trim out those parts. Regards, Federico Miyara On 26/02/2019 13:07, Samuel Gougeon wrote: > Le 26/02/2019 ? 15:15, Izabela W?jcik-Grz?ba a ?crit : >> Hello, >> >> I know that there's no official method to export a figure containing >> uicontrols but I need to export only my plot which is in the frame of >> the figure. Ordinary print screen is not enough because I may need a >> bigger size of a picture > > The saved screenshot has the size of the figure when you save it. So: > > plot2d() > set(gcf(), "visible","off","axes_size",[2440,1840]); // for instance > xs2png(0, "bigfig.png") > > // winopen("bigfig.png") > > should do what you expect. > >> and also an .eps file. > > PostScript is a vectorial format. So the rendering from it should be > scalable according to your requirements. > > 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 From iwoj at il.pw.edu.pl Tue Feb 26 17:37:55 2019 From: iwoj at il.pw.edu.pl (=?UTF-8?Q?Izabela_W=C3=B3jcik-Grz=C4=85ba?=) Date: Tue, 26 Feb 2019 17:37:55 +0100 Subject: [Scilab-users] Export plot from figure with uicontrols In-Reply-To: References: <65a9b64fce8c80690edfc5cdb7e6e453@il.pw.edu.pl> <78ebed42-d7fc-76a5-06c0-6582044ad9d6@free.fr> <447f5bb3475bbff29deba2379884443a@il.pw.edu.pl> Message-ID: > Otherwise, you may destroy them just for saving the remaining figure. It is an idea, but how to do it properly? My figure contains to frames. In one of them there are some checkboxes which change the visibility of some parts of the plot. The plot is in the second frame. I would like to keep the changes made by checkboxes in the exported version of the plot. From iwoj at il.pw.edu.pl Tue Feb 26 17:41:41 2019 From: iwoj at il.pw.edu.pl (=?UTF-8?Q?Izabela_W=C3=B3jcik-Grz=C4=85ba?=) Date: Tue, 26 Feb 2019 17:41:41 +0100 Subject: [Scilab-users] Export plot from figure with uicontrols In-Reply-To: <5C756A9F.6070700@fceia.unr.edu.ar> References: <65a9b64fce8c80690edfc5cdb7e6e453@il.pw.edu.pl> <78ebed42-d7fc-76a5-06c0-6582044ad9d6@free.fr> <5C756A9F.6070700@fceia.unr.edu.ar> Message-ID: <0b709390e2eb90d040b0e7bb2ffb9ed3@il.pw.edu.pl> Thanks Federico, but as I wrote in an answer to Samuel, the problem is that you can't export a figure with uicontrols because you get a blank picture. W dniu 26.02.2019 17:34, Federico Miyara napisa?(a): > Izabela, > > I've had the same problem. Saving as eps is theoretically the solution > but I couldn't manage to make it compatible with, for instance, Word. > My solution has been to save the figure as svg (a vectorized format), > then open it with GIMP, a free open source image editor, then select > an appropriate size (large enough so that when inserted in a word > processing software has a very high, printable resolution) and save as > high quality jpg. If the export contains things you don't want, you > simple trim out those parts. > > Regards, > > Federico Miyara > > > On 26/02/2019 13:07, Samuel Gougeon wrote: >> Le 26/02/2019 ? 15:15, Izabela W?jcik-Grz?ba a ?crit : >>> Hello, >>> >>> I know that there's no official method to export a figure containing >>> uicontrols but I need to export only my plot which is in the frame of >>> the figure. Ordinary print screen is not enough because I may need a >>> bigger size of a picture >> >> The saved screenshot has the size of the figure when you save it. So: >> >> plot2d() >> set(gcf(), "visible","off","axes_size",[2440,1840]); // for instance >> xs2png(0, "bigfig.png") >> >> // winopen("bigfig.png") >> >> should do what you expect. >> >>> and also an .eps file. >> >> PostScript is a vectorial format. So the rendering from it should be >> scalable according to your requirements. >> >> 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 > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From sgougeon at free.fr Tue Feb 26 18:01:24 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 26 Feb 2019 18:01:24 +0100 Subject: [Scilab-users] Export plot from figure with uicontrols In-Reply-To: References: <65a9b64fce8c80690edfc5cdb7e6e453@il.pw.edu.pl> <78ebed42-d7fc-76a5-06c0-6582044ad9d6@free.fr> <447f5bb3475bbff29deba2379884443a@il.pw.edu.pl> Message-ID: <2c28818c-5ddd-0916-995a-79fb3ff7b837@free.fr> Le 26/02/2019 ? 17:37, Izabela W?jcik-Grz?ba a ?crit : > >> Otherwise, you may destroy them just for saving the remaining figure. > > It is an idea, but how to do it properly? > My figure contains to frames. In one of them there are some checkboxes > which change the visibility of some parts of the plot. The plot is in > the second frame. I would like to keep the changes made by checkboxes > in the exported version of the plot. What do you mean by "frames"? made with uicontrol(), or with subplot() (or xsetech())? The graphical effect of a uicontrol's callback remains after deleting the uicontrol. But to change it, you will have to regenerate the figure, choose another action, delete all uicontrols, and save the new version of your figure. If all uicontrol are set as direct children of the figure, deleting all of them in a once could be done with something like c = gcf().children; delete(c(c.type=="uicontrol")) Samuel From fmiyara at fceia.unr.edu.ar Tue Feb 26 18:13:24 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Tue, 26 Feb 2019 14:13:24 -0300 Subject: [Scilab-users] Export plot from figure with uicontrols In-Reply-To: <0b709390e2eb90d040b0e7bb2ffb9ed3@il.pw.edu.pl> References: <65a9b64fce8c80690edfc5cdb7e6e453@il.pw.edu.pl> <78ebed42-d7fc-76a5-06c0-6582044ad9d6@free.fr> <5C756A9F.6070700@fceia.unr.edu.ar> <0b709390e2eb90d040b0e7bb2ffb9ed3@il.pw.edu.pl> Message-ID: <5C7573B4.8050302@fceia.unr.edu.ar> Izabela, Oh, I see... no idea for now... Federico On 26/02/2019 13:41, Izabela W?jcik-Grz?ba wrote: > Thanks Federico, but as I wrote in an answer to Samuel, the problem is > that you can't export a figure with uicontrols because you get a blank > picture. > > > > W dniu 26.02.2019 17:34, Federico Miyara napisa?(a): >> Izabela, >> >> I've had the same problem. Saving as eps is theoretically the solution >> but I couldn't manage to make it compatible with, for instance, Word. >> My solution has been to save the figure as svg (a vectorized format), >> then open it with GIMP, a free open source image editor, then select >> an appropriate size (large enough so that when inserted in a word >> processing software has a very high, printable resolution) and save as >> high quality jpg. If the export contains things you don't want, you >> simple trim out those parts. >> >> Regards, >> >> Federico Miyara >> >> >> On 26/02/2019 13:07, Samuel Gougeon wrote: >>> Le 26/02/2019 ? 15:15, Izabela W?jcik-Grz?ba a ?crit : >>>> Hello, >>>> >>>> I know that there's no official method to export a figure >>>> containing uicontrols but I need to export only my plot which is in >>>> the frame of the figure. Ordinary print screen is not enough >>>> because I may need a bigger size of a picture >>> >>> The saved screenshot has the size of the figure when you save it. So: >>> >>> plot2d() >>> set(gcf(), "visible","off","axes_size",[2440,1840]); // for instance >>> xs2png(0, "bigfig.png") >>> >>> // winopen("bigfig.png") >>> >>> should do what you expect. >>> >>>> and also an .eps file. >>> >>> PostScript is a vectorial format. So the rendering from it should be >>> scalable according to your requirements. >>> >>> 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 >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > --- 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 iwoj at il.pw.edu.pl Tue Feb 26 18:32:44 2019 From: iwoj at il.pw.edu.pl (=?UTF-8?Q?Izabela_W=C3=B3jcik-Grz=C4=85ba?=) Date: Tue, 26 Feb 2019 18:32:44 +0100 Subject: [Scilab-users] Export plot from figure with uicontrols In-Reply-To: <2c28818c-5ddd-0916-995a-79fb3ff7b837@free.fr> References: <65a9b64fce8c80690edfc5cdb7e6e453@il.pw.edu.pl> <78ebed42-d7fc-76a5-06c0-6582044ad9d6@free.fr> <447f5bb3475bbff29deba2379884443a@il.pw.edu.pl> <2c28818c-5ddd-0916-995a-79fb3ff7b837@free.fr> Message-ID: <30750e0afe0c4aeba3f340c098aa3119@il.pw.edu.pl> > What do you mean by "frames"? made with uicontrol(), or with subplot() > (or xsetech())? They are made with uicontrol(). > The graphical effect of a uicontrol's callback remains after deleting > the uicontrol. Ok, it is good. > If all uicontrol are set as direct children of the figure, deleting > all of them in a once could be done with something like > c = gcf().children; > delete(c(c.type=="uicontrol")) But in my case I would also delete my plot which is in one of the two frames. The structure is like that: Figure has two uicontrols Frame; first Frame has Axes (my plot, which I would like to export),second Frame has another uicontrol Frame which has 7 uicontrols Checkbox I hope it's clear :-) Iza From sgougeon at free.fr Tue Feb 26 18:58:35 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 26 Feb 2019 18:58:35 +0100 Subject: [Scilab-users] Export plot from figure with uicontrols In-Reply-To: <30750e0afe0c4aeba3f340c098aa3119@il.pw.edu.pl> References: <65a9b64fce8c80690edfc5cdb7e6e453@il.pw.edu.pl> <78ebed42-d7fc-76a5-06c0-6582044ad9d6@free.fr> <447f5bb3475bbff29deba2379884443a@il.pw.edu.pl> <2c28818c-5ddd-0916-995a-79fb3ff7b837@free.fr> <30750e0afe0c4aeba3f340c098aa3119@il.pw.edu.pl> Message-ID: <8ed4345d-4ccd-49c7-4f2d-2be5a419cbc2@free.fr> Le 26/02/2019 ? 18:32, Izabela W?jcik-Grz?ba a ?crit : >> What do you mean by "frames"? made with uicontrol(), or with subplot() >> (or xsetech())? > > They are made with uicontrol(). > >> The graphical effect of a uicontrol's callback remains after deleting >> the uicontrol. > > Ok, it is good. > >> If all uicontrol are set as direct children of the figure, deleting >> all of them in a once could be done with something like >> c = gcf().children; >> delete(c(c.type=="uicontrol")) > > But in my case I would also delete my plot which is in one of the two > frames. > The structure is like that: > Figure has two uicontrols Frame; first Frame has Axes (my plot, which > I would like to export),second Frame has another uicontrol Frame which > has 7 uicontrols Checkbox > I hope it's clear :-) As the exportation result, it is /too/ /clear/, unfortunately. When exporting, you get a blank figure because the exportation removes all uicontrol. Since your plot in on one of them (the frame), it is removed with its "substrate". I don't think it will be possible to save your plots on uicontrol frames with Scilab. But you may use subplot() and/or xsetech() to set the layout of the figure. Why are you using a uicontrol frame? -------------- next part -------------- An HTML attachment was scrubbed... URL: From fmiyara at fceia.unr.edu.ar Tue Feb 26 19:41:39 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Tue, 26 Feb 2019 15:41:39 -0300 Subject: [Scilab-users] Export plot from figure with uicontrols In-Reply-To: <0b709390e2eb90d040b0e7bb2ffb9ed3@il.pw.edu.pl> References: <65a9b64fce8c80690edfc5cdb7e6e453@il.pw.edu.pl> <78ebed42-d7fc-76a5-06c0-6582044ad9d6@free.fr> <5C756A9F.6070700@fceia.unr.edu.ar> <0b709390e2eb90d040b0e7bb2ffb9ed3@il.pw.edu.pl> Message-ID: <5C758863.3010505@fceia.unr.edu.ar> Izabela, I've just tried what I suggested and obtained a good figure. Steps: 1) Run the following example(or any other) t = 0:0.01:2*%pi; x = sin(t); figure(1, 'BackgroundColor', [1,1,1]); scf(1) clf plot(t,x) h=uicontrol("style","pushbutton","string","$x^2$"); This is the Scilab oputput Note the button at the bottom left 2) On the figure window: File / Export to... / SVG Image / Save 3) Run GIMP 2.8 (I guess any version works, I use a portable one from PortableApps, no need to install) File / Open Locate the path and file name Open A rendering dialog appears. Select the desired X and Y size (by default they are linked to preserve aspect ratio). You can also apply a multiplier (I first used 5x to get high resolution, but the example below is with 1x to avoid email bouncing) The image apears Export Apply a .jpg extension Choose a folder Export This is what I get Note the UI button is gone. The image above is not high resolution because there is a limit of 100 kb for this list, but with 5x the image occupies onli 227 kb and is truly high resolution. If you like I can send privately the 5x version so you can check. There is no limit to the attainable rtesolution (other than memory issues, I guess). Federico On 26/02/2019 13:41, Izabela W?jcik-Grz?ba wrote: > Thanks Federico, but as I wrote in an answer to Samuel, the problem is > that you can't export a figure with uicontrols because you get a blank > picture. > > > > W dniu 26.02.2019 17:34, Federico Miyara napisa?(a): >> Izabela, >> >> I've had the same problem. Saving as eps is theoretically the solution >> but I couldn't manage to make it compatible with, for instance, Word. >> My solution has been to save the figure as svg (a vectorized format), >> then open it with GIMP, a free open source image editor, then select >> an appropriate size (large enough so that when inserted in a word >> processing software has a very high, printable resolution) and save as >> high quality jpg. If the export contains things you don't want, you >> simple trim out those parts. >> >> Regards, >> >> Federico Miyara >> >> >> On 26/02/2019 13:07, Samuel Gougeon wrote: >>> Le 26/02/2019 ? 15:15, Izabela W?jcik-Grz?ba a ?crit : >>>> Hello, >>>> >>>> I know that there's no official method to export a figure >>>> containing uicontrols but I need to export only my plot which is in >>>> the frame of the figure. Ordinary print screen is not enough >>>> because I may need a bigger size of a picture >>> >>> The saved screenshot has the size of the figure when you save it. So: >>> >>> plot2d() >>> set(gcf(), "visible","off","axes_size",[2440,1840]); // for instance >>> xs2png(0, "bigfig.png") >>> >>> // winopen("bigfig.png") >>> >>> should do what you expect. >>> >>>> and also an .eps file. >>> >>> PostScript is a vectorial format. So the rendering from it should be >>> scalable according to your requirements. >>> >>> 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 >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > --- 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: not available Type: image/jpeg Size: 15074 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: iehadcag.jpg Type: image/jpeg Size: 20539 bytes Desc: not available URL: From oleksiy.bond at gmail.com Wed Feb 27 08:52:45 2019 From: oleksiy.bond at gmail.com (ol.bond) Date: Wed, 27 Feb 2019 00:52:45 -0700 (MST) Subject: [Scilab-users] Export plot from figure with uicontrols In-Reply-To: <65a9b64fce8c80690edfc5cdb7e6e453@il.pw.edu.pl> References: <65a9b64fce8c80690edfc5cdb7e6e453@il.pw.edu.pl> Message-ID: <1551253965036-0.post@n3.nabble.com> Dear Izabela, I had the same problem when working with GUI containing various control and plot frame. Eventually, I found the solution. The solution consists in copying of the axes handle from the frame to a newly created figure. For example, in my case, I have the following GUI Next, I get the handle to this graphics axes: //It should be an axes entity pl = findobj("Tag", "plot_1"); // It is a good idea to assign tag to your axes when you create a GUI and copy it to a new figure: fig = scf(); copy(pl, fig.children); which result in the same separate figure, which can easily be converted to a graphics file: -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From iwoj at il.pw.edu.pl Wed Feb 27 15:05:31 2019 From: iwoj at il.pw.edu.pl (=?UTF-8?Q?Izabela_W=C3=B3jcik-Grz=C4=85ba?=) Date: Wed, 27 Feb 2019 15:05:31 +0100 Subject: [Scilab-users] Export plot from figure with uicontrols In-Reply-To: <1551253965036-0.post@n3.nabble.com> References: <65a9b64fce8c80690edfc5cdb7e6e453@il.pw.edu.pl> <1551253965036-0.post@n3.nabble.com> Message-ID: <60986f8db89a33c5d15078627e4f79e8@il.pw.edu.pl> Samuel, Federico, Oleksiy, Thank you a lot for your feedback. I will check your ideas and find out which will be the best for me. > Why are you using a uicontrol frame? Samuel, the reason is simple. When I created the code for this figure about a year ago I was a real beginner in Scilab so I utilized one of the examples from Scilab.org. Iza From Christophe.Dang at sidel.com Thu Feb 28 09:26:33 2019 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Thu, 28 Feb 2019 08:26:33 +0000 Subject: [Scilab-users] {EXT} Re: Export plot from figure with uicontrols In-Reply-To: <5C756A9F.6070700@fceia.unr.edu.ar> References: <65a9b64fce8c80690edfc5cdb7e6e453@il.pw.edu.pl> <78ebed42-d7fc-76a5-06c0-6582044ad9d6@free.fr> <5C756A9F.6070700@fceia.unr.edu.ar> Message-ID: Hello, Concerning the following point (which is not related to Scilab): > I couldn't manage to make it compatible with, for instance, Word. > My solution has been to save the figure as svg (a vectorized format), > then open it with GIMP You'd better open the SVG with Inkscape (also free) then save as .emf. EMF (enhanced metafile) is a Microsoft Windows vector graphic format, you can thus have the vector graphic quality inside Microsoft Word. There are some limitations to EMF but as long as you only have curves, colour surfaces and texts it should be OK. Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer Public This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From iwoj at il.pw.edu.pl Thu Feb 28 18:57:32 2019 From: iwoj at il.pw.edu.pl (=?UTF-8?Q?Izabela_W=C3=B3jcik-Grz=C4=85ba?=) Date: Thu, 28 Feb 2019 18:57:32 +0100 Subject: [Scilab-users] Gridbag options Message-ID: <1d647945b39d9957d2925df210e313e9@il.pw.edu.pl> Hello, Some of the options of gridbag aren't clear for me. Maybe someone could explain my doubts. Here is an example code: f=figure("dockable","off","infobar_visible","off","toolbar_visible","off",.. "toolbar","none","menubar_visible","on","default_axes",.. "off","layout","border","background",-2); r_lewa=uicontrol(f,"style","frame","constraints",createConstraints("border",.. "left",[200,0]),"border",createBorder("titled",.. createBorder("line","lightGray",1),("Kontrola rysunku"),.. "center","top"),"backgroundcolor",[1 1 1],"layout","gridbag"); przel=uicontrol(r_lewa,"style","frame","constraints",.. createConstraints("gridbag",[1 1 1 1],[1,0],"horizontal","upper"),"border",.. createBorder("titled",createBorder("line","lightGray",1),.. ("Widocznosc"),"center","top"),"backgroundcolor",[1 1 1]); przyciski=uicontrol(r_lewa,"style","frame","constraints",.. createConstraints("gridbag",[1 2 1 1],[1,0],"horizontal","lower"),"border",.. createBorder("titled",createBorder("line","lightGray",1),.. ("Inne"),"center","top"),"backgroundcolor",[1 1 1]); 1. Is it possible to set the frame przel on the top of frame r_lewa and a frame przyciski at the bottom of r_lewa with use of gridbag? What does the options "upper" and "lower" do in this situation? 2. What is the meaning of "weight" option? Help page is not clear for me in this case. 3. Why the option "fill" works only when "weight" is not zero? Thanks and regards, Iza From p.muehlmann at gmail.com Thu Feb 28 20:06:11 2019 From: p.muehlmann at gmail.com (P M) Date: Thu, 28 Feb 2019 20:06:11 +0100 Subject: [Scilab-users] creating nice svg-files Message-ID: Dear all, I try to create some svg-files using xs2svg. In the plot I use xfpoly to draw regions of interest in different colours. // plot the ROI 1xfpoly(roi1_X, roi1_Y ,color_roi1); e=gce(); e.foreground = color_roi1; e.line_mode = "off"; // plot the ROI 2xfpoly(roi2_X, roi2_Y ,color_roi2); e=gce(); e.foreground = color_roi2; e.line_mode = "off"; The code itself is running, and the plot in Scilab looks as expected...even when I zoom into the graph it's all nice. However: When I export the plot with xs2svg some thin black lines appear within the regions. This can be seen when I open the svg with inkscape. Yes: I could use xs2png, but I'ld prefer xs2svg. Any idea how to avoid these black lines..see example below? Thank you, Philipp [image: grafik.png] example of xs2svg export [image: grafik.png] example of xs2png export -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: grafik.png Type: image/png Size: 2263 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: grafik.png Type: image/png Size: 617 bytes Desc: not available URL: From sgougeon at free.fr Thu Feb 28 20:45:12 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 28 Feb 2019 20:45:12 +0100 Subject: [Scilab-users] Export plot from figure with uicontrols In-Reply-To: References: <65a9b64fce8c80690edfc5cdb7e6e453@il.pw.edu.pl> <78ebed42-d7fc-76a5-06c0-6582044ad9d6@free.fr> <5C756A9F.6070700@fceia.unr.edu.ar> Message-ID: Hello, Le 28/02/2019 ? 09:26, Dang Ngoc Chan, Christophe a ?crit : > Hello, > > Concerning the following point (which is not related to Scilab): > >> I couldn't manage to make it compatible with, for instance, Word. >> My solution has been to save the figure as svg (a vectorized format), >> then open it with GIMP > You'd better open the SVG with Inkscape (also free) > then save as .emf. > > EMF (enhanced metafile) is a Microsoft Windows vector graphic format, > you can thus have the vector graphic quality inside Microsoft Word. > > There are some limitations to EMF > but as long as you only have curves, colour surfaces and texts > it should be OK. It's possible to export Scilab graphics directly in EMF format with xs2emf() since Scilab 5.5.0. I have never used it, but it's available. Regards Samuel From sgougeon at free.fr Thu Feb 28 21:22:27 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 28 Feb 2019 21:22:27 +0100 Subject: [Scilab-users] Export plot from figure with uicontrols In-Reply-To: References: <65a9b64fce8c80690edfc5cdb7e6e453@il.pw.edu.pl> <78ebed42-d7fc-76a5-06c0-6582044ad9d6@free.fr> <5C756A9F.6070700@fceia.unr.edu.ar> Message-ID: Le 28/02/2019 ? 20:45, Samuel Gougeon a ?crit : > Hello, > > .../... > It's possible to export Scilab graphics directly in EMF format with > xs2emf() since Scilab 5.5.0. > I have never used it, but it's available. When using xs2emf() with Scilab 6.0.2 on Windows7, a (modal) error occurs (*) --> xs2emf(0,"Figure_0.emf") xs2emf: Unable to create export file, permission denied. but anyway, the file is well created and can be actually imported in a document. It works! Samuel (*) we saw this error when preparing the 6.0.2 release, but forgot to report it. It's being done. -------------- next part -------------- An HTML attachment was scrubbed... URL: