From chinluh at tritytech.com Thu May 2 11:01:34 2019 From: chinluh at tritytech.com (Tan Chin Luh) Date: Thu, 2 May 2019 17:01:34 +0800 Subject: [Scilab-users] IPCV - imrotate In-Reply-To: References: Message-ID: <7119a171-fe4b-f1d4-fd64-01de0d2dfa71@tritytech.com> Hi, noted the issue. this is due to some floating point error while computing the transformation matrix. Will fix in IPCV 4.1, in cooking. :) rgds, CL On 30/4/2019 4:04 PM, P M wrote: > One has to enter the angle in degrees. > > P. > > Am Di., 30. Apr. 2019 um 08:44?Uhr schrieb St?phane Mottelet > >: > > Le 29/04/2019 ? 10:06, P M a ?crit?: >> Dear developers of IPCV, >> using the function?? imrotate()?? seems to increse the image size. >> Please see following code: >> >> img = zeros(10,10); >> imshow(img); >> size(img) >> img = imrotate(img,90); >> imshow(img); >> size(img) >> I could imagine that the image size changes, when one uses >> rotation angles <> 90?. >> But for exactly 90? this is a strange behaviour. >> >> Best regards, >> Philipp >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users > > Is the angle in degrees or radians ? > > S. > > -- > St?phane Mottelet > Ing?nieur de recherche > EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable > D?partement G?nie des Proc?d?s Industriels > Sorbonne Universit?s - Universit? de Technologie de Compi?gne > CS 60319, 60203 Compi?gne cedex > Tel : +33(0)344234688 > http://www.utc.fr/~mottelet > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Tan Chin Luh Trity Technologies Sdn Bhd Tel : +603 80637737 HP : +6013 3691728 -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Fri May 3 14:34:30 2019 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Fri, 3 May 2019 14:34:30 +0200 Subject: [Scilab-users] [EXTERNAL] Re: feedback on removing 1 row and 1 column In-Reply-To: <3A6B7233274DB449A2A0053A47684F953FF91033@BGS-EX01.auxitrol.ad> References: <3A6B7233274DB449A2A0053A47684F953FF90F92@BGS-EX01.auxitrol.ad> <3A6B7233274DB449A2A0053A47684F953FF91033@BGS-EX01.auxitrol.ad> Message-ID: <55449703-229a-a336-fa8d-df13887450f6@utc.fr> Hello Paul, A fix is under review for master at https://codereview.scilab.org/#/c/20965/, I hope it will be reviewed and merged soon (timings are done on my machine, an old mid-2010 MacPro) : --> MAT=rand(2.3e6,6); --> tic;MAT(:,$)=[];toc ?ans? = ?? 0.051402 --> MAT=rand(2.3e6,6); --> tic;MAT(:,[1 3])=[];toc ans? = ?? 0.046928 S. Le 30/04/2019 ? 14:04, Carrico, Paul a ?crit?: > > Thanks all > > Indeed, getting the complete block works fine and it?s instantaneous > > Paul > > *De?:*users [mailto:users-bounces at lists.scilab.org] *De la part de* > St?phane Mottelet > *Envoy??:* mardi 30 avril 2019 12:41 > *??:* users at lists.scilab.org > *Objet?:* [EXTERNAL] Re: [Scilab-users] feedback on removing 1 row and > 1 column > > Le 30/04/2019 ? 08:44, Carrico, Paul a ?crit?: > > Dear All > > I?ve been using successfully Scilab for years, to develop my > projects; I do not remember if I?ve ever had to deal with huge > matrixes but that?s the case today. > > Using ?csvRead?, I got a matrix with 2.3 million of rows and 6 > columns (it took about 240 seconds to read it J); nevertheless > I?ve been surprised when I tried to remove the first row and the > last column using basically: > > MAT(1,:) = []; MAT(:,$) = []; > > in the meantime (before we fix this), you can do > > MAT = MAT(:,1:$-1); > > which will be way faster ! > > S. > > Indeed I needed to kill the process after about 10 minutes (same > result both under Windows 10 and Linux ? RAM not fully used). > > By comparison, the same process is instantaneous under Python > using Numpy (numpy.delete) using of course the same matrix. > > A feedback I wanted to share ?. > > PaulEXPORT 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 > > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users > > -- > St?phane Mottelet > Ing?nieur de recherche > EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable > D?partement G?nie des Proc?d?s Industriels > Sorbonne Universit?s - Universit? de Technologie de Compi?gne > CS 60319, 60203 Compi?gne cedex > Tel : +33(0)344234688 > http://www.utc.fr/~mottelet > > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at auxitrolweston.com Fri May 3 14:54:20 2019 From: paul.carrico at auxitrolweston.com (Carrico, Paul) Date: Fri, 3 May 2019 12:54:20 +0000 Subject: [Scilab-users] [EXTERNAL] Re: feedback on removing 1 row and 1 column In-Reply-To: <55449703-229a-a336-fa8d-df13887450f6@utc.fr> References: <3A6B7233274DB449A2A0053A47684F953FF90F92@BGS-EX01.auxitrol.ad> <3A6B7233274DB449A2A0053A47684F953FF91033@BGS-EX01.auxitrol.ad> <55449703-229a-a336-fa8d-df13887450f6@utc.fr> Message-ID: <3A6B7233274DB449A2A0053A47684F953FF913D4@BGS-EX01.auxitrol.ad> Thanks St?phane for your support Paul De : users [mailto:users-bounces at lists.scilab.org] De la part de St?phane Mottelet Envoy? : vendredi 3 mai 2019 14:35 ? : users at lists.scilab.org Objet : Re: [Scilab-users] [EXTERNAL] Re: feedback on removing 1 row and 1 column Hello Paul, A fix is under review for master at https://codereview.scilab.org/#/c/20965/, I hope it will be reviewed and merged soon (timings are done on my machine, an old mid-2010 MacPro) : --> MAT=rand(2.3e6,6); --> tic;MAT(:,$)=[];toc ans = 0.051402 --> MAT=rand(2.3e6,6); --> tic;MAT(:,[1 3])=[];toc ans = 0.046928 S. Le 30/04/2019 ? 14:04, Carrico, Paul a ?crit : Thanks all Indeed, getting the complete block works fine and it's instantaneous Paul De : users [mailto:users-bounces at lists.scilab.org] De la part de St?phane Mottelet Envoy? : mardi 30 avril 2019 12:41 ? : users at lists.scilab.org Objet : [EXTERNAL] Re: [Scilab-users] feedback on removing 1 row and 1 column Le 30/04/2019 ? 08:44, Carrico, Paul a ?crit : Dear All I've been using successfully Scilab for years, to develop my projects; I do not remember if I've ever had to deal with huge matrixes but that's the case today. Using "csvRead", I got a matrix with 2.3 million of rows and 6 columns (it took about 240 seconds to read it :)); nevertheless I've been surprised when I tried to remove the first row and the last column using basically: MAT(1,:) = []; MAT(:,$) = []; in the meantime (before we fix this), you can do MAT = MAT(:,1:$-1); which will be way faster ! S. Indeed I needed to kill the process after about 10 minutes (same result both under Windows 10 and Linux - RAM not fully used). By comparison, the same process is instantaneous under Python using Numpy (numpy.delete) using of course the same matrix. A feedback I wanted to share .... PaulEXPORT 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 https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet _______________________________________________ users mailing list users at lists.scilab.org https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet -------------- next part -------------- An HTML attachment was scrubbed... URL: From rouxph.22 at gmail.com Sun May 5 17:19:06 2019 From: rouxph.22 at gmail.com (philippe) Date: Sun, 5 May 2019 17:19:06 +0200 Subject: [Scilab-users] toolbox help page : no "calling sequence generated Message-ID: Hi, I made a toolbox for my personal macros, all macros are pure scilab function, the man pages are described as comments at the beginning of each macro (see below) and are proceeded with help_from_sci. The toolbox was designed with scilab5, running the builder.sce in scilab6 looks ok but the "Calling Sequence" part isn't proceeded? I suppose the tag has changed but I can't find it in the documentation (it may be "Syntax" but doesn't work?!?) any clue for this problem ? Philippe %%%%%% structure of macros in my toolbox %%%%%% function [str]=contribute_MyMath(varargin) // MyMath // // Calling Sequence // [str]=contribute_MyMath([x[,y]]) // // Parameters // x,y: scilab variables // str: string // // Description // a "function skeleton" to contribute to MyMath toolbox : // // Examples // contribute_MyMath() // basic usage // contribute_MyMath('example') // how to use optional parameters // contribute_MyMath(1,2) // // See also // MyMath // // Authors // Philippe Roux // From sgougeon at free.fr Mon May 6 03:49:04 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 6 May 2019 03:49:04 +0200 Subject: [Scilab-users] toolbox help page : no "calling sequence generated In-Reply-To: References: Message-ID: <8b1c31b5-4c1d-0b6d-c72b-c8693b1a3b1c@free.fr> Hello Philippe, Le 05/05/2019 ? 17:19, philippe a ?crit : > Hi, > > I made a toolbox for my personal macros, all macros are pure scilab > function, the man pages are described as comments at the beginning of > each macro (see below) and are proceeded with help_from_sci. The toolbox > was designed with scilab5, running the builder.sce in scilab6 looks ok > but the "Calling Sequence" part isn't proceeded? I suppose the tag has > changed but I can't find it in the documentation (it may be "Syntax" > but doesn't work?!?) Yes it's "Syntax" ; it is documented: https://help.scilab.org/docs/6.0.2/en_US/help_from_sci.html ; and for me it works for your sample function. Regards Samuel From vijeesh at nal.res.in Tue May 7 10:38:24 2019 From: vijeesh at nal.res.in (Vijeesh T) Date: Tue, 07 May 2019 14:08:24 +0530 Subject: [Scilab-users] xcos model compatibility with old version Message-ID: Hi I have a model created in scilab/xcos 6.0.2. I want use this model with x2c which is not available in 6.0.2. How can I save the model to xcos 5.5 format Thanks in advance -- ????? ?? / Vijeesh T ??????? ?????? ??????? - 1 / Sr.Technical Officer-1 ????????-????? / CSIR-NAL ???????? / Bengaluru -------------- next part -------------- An HTML attachment was scrubbed... URL: From rouxph.22 at gmail.com Tue May 7 12:11:11 2019 From: rouxph.22 at gmail.com (philippe) Date: Tue, 7 May 2019 12:11:11 +0200 Subject: [Scilab-users] toolbox help page : no "calling sequence generated In-Reply-To: <8b1c31b5-4c1d-0b6d-c72b-c8693b1a3b1c@free.fr> References: <8b1c31b5-4c1d-0b6d-c72b-c8693b1a3b1c@free.fr> Message-ID: Le 06/05/2019 ? 03:49, Samuel Gougeon a ?crit?: > > Yes it's "Syntax" ; it is documented: > https://help.scilab.org/docs/6.0.2/en_US/help_from_sci.html ; and for me > it works for your sample function. thanks Samuel, it works fine now (I don't what happened at first try). Philippe From samuel.enibe at unn.edu.ng Wed May 8 18:37:00 2019 From: samuel.enibe at unn.edu.ng (Samuel Enibe) Date: Wed, 8 May 2019 17:37:00 +0100 Subject: [Scilab-users] Finite Element Analysis Message-ID: May I request to know if there are specific tools in SCILAB for finite element analysis. Thank you very much. God bless you. Samuel Enibe University of Nigeria, Nsukka, Nigeria Tel: +2348063646798 -------------- next part -------------- An HTML attachment was scrubbed... URL: From yann.debray at scilab-enterprises.com Wed May 8 19:42:58 2019 From: yann.debray at scilab-enterprises.com (Yann Debray @ Scilab) Date: Wed, 8 May 2019 17:42:58 +0000 (UTC) Subject: [Scilab-users] Finite Element Analysis In-Reply-To: References: Message-ID: <87CF7FFF6542B9AA.2DE4AAE5-F8A6-4329-A576-13E36BADC404@mail.outlook.com> Hi Samuel, What kind of finite element analysis do you wish to conduct?If you are looking for Computational Fluid Dynamic, we can consider OpenFOAM, another open source code.For solid mechanics, you can investigate Salome Meca / Code aster.For both, you will find gateways to analyze simulation data in Scilab. --Yann DebrayScilab DirectorESI GroupCell: +33 6 88 20 67 01 Website: https://www.scilab.org On Wed, May 8, 2019 at 6:37 PM +0200, "Samuel Enibe" wrote: May I request to know if there are specific tools in SCILAB for finite element analysis. Thank you very much. God bless you.? Samuel? Enibe University of Nigeria, Nsukka, Nigeria Tel: +2348063646798 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Thu May 9 09:58:15 2019 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Thu, 9 May 2019 07:58:15 +0000 Subject: [Scilab-users] {EXT} Finite Element Analysis In-Reply-To: References: Message-ID: Hello Samuel, > De : Samuel Enibe > Envoy? : mercredi 8 mai 2019 18:37 > > May I request to know if there are specific tools in SCILAB for finite element analysis. Please have a look at: https://wiki.scilab.org/Finite%20Elements%20in%20Scilab Best regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer General This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From hibr-list at gmx.de Fri May 10 11:42:26 2019 From: hibr-list at gmx.de (Hani Andreas Ibrahim) Date: Fri, 10 May 2019 11:42:26 +0200 Subject: [Scilab-users] Make Variable visible in Scilab from a SCE-script in a toolbox Message-ID: An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Fri May 10 14:18:16 2019 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Fri, 10 May 2019 14:18:16 +0200 Subject: [Scilab-users] Make Variable visible in Scilab from a SCE-script in a toolbox In-Reply-To: References: Message-ID: <08d584ba-0a0a-5ed1-ee65-dd1d159adffe@utc.fr> Le 10/05/2019 ? 11:42, Hani Andreas Ibrahim a ?crit?: > I wrote a SCE-Script where you can read datafiles into a matrix and > specify the import parameter AND the name of matrix where the data is > stored in a GUI. Because variables in sce are visible to Scilab I > could work with the matrix which name was specified in the GUI in > Scilab's console. > Now I wrote a toolbox where I call this script from a menu item > (addmenu) with exec("myscrip.sce",-1). The toolbox works fine so far > and run the script properly but the matrix variable is not visible in > Scilab. Obviously Scilab handles variables in sce in a toolbox > differently? > The script itself works fine and provide the variable if I run the sce > directly outside the toolbox. The sce has no dependencies to external > SCIs. > Who can I make this variable visible for Scilab from a toolbox? > Thanks, Hani > PS: The toolbox should run on Scilab 5.5.x and 6.0.x. > > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users Hello, Please give us a small and reproductive example, under the form of two scripts (the one creating the menu and the one executed by selecting the menu item). S. -- 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 antoine.elias at scilab-enterprises.com Fri May 10 14:43:03 2019 From: antoine.elias at scilab-enterprises.com (Antoine ELIAS) Date: Fri, 10 May 2019 14:43:03 +0200 Subject: [Scilab-users] Make Variable visible in Scilab from a SCE-script in a toolbox In-Reply-To: <08d584ba-0a0a-5ed1-ee65-dd1d159adffe@utc.fr> References: <08d584ba-0a0a-5ed1-ee65-dd1d159adffe@utc.fr> Message-ID: Hello, You can use "resume" to return values in caller environment. In case of callbacks from gui interaction, caller is always "console" scope. In your callback do something like "data = resume(a);" That's create or overwrite "data" with the contents of "a" Example : xdel(winsid()); clear createGUI callbackFromGui; function createGUI() ??? f = figure(... ??????? "dockable", "off", ... ??????? "axes_size", [300 100], ... ??????? "infobar_visible", "off", ... ??????? "toolbar", "none", ... ??????? "menubar_visible", "on", ... ??????? "menubar", "none", ... ??????? "default_axes", "off", ... ??????? "background", color(255, 255, 255)); ??? uicontrol(f, ... ??????? "style", "pushbutton", ... ??????? "string", "Send variable in console context", ... ??????? "position", [(300 - 200)/2 (100 - 25)/2 200 25], ... ??????? "callback", "callbackFromGui"); endfunction function callbackFromGui() ??? a = rand(10, 10); ??? data = resume(a); endfunction createGUI(); After clicking on the button, you should have a "data" variable in the console. Regards, Antoine Le 10/05/2019 ? 14:18, St?phane Mottelet a ?crit?: > Le 10/05/2019 ? 11:42, Hani Andreas Ibrahim a ?crit?: >> I wrote a SCE-Script where you can read datafiles into a matrix and >> specify the import parameter AND the name of matrix where the data is >> stored in a GUI. Because variables in sce are visible to Scilab I >> could work with the matrix which name was specified in the GUI in >> Scilab's console. >> Now I wrote a toolbox where I call this script from a menu item >> (addmenu) with exec("myscrip.sce",-1). The toolbox works fine so far >> and run the script properly but the matrix variable is not visible in >> Scilab. Obviously Scilab handles variables in sce in a toolbox >> differently? >> The script itself works fine and provide the variable if I run the >> sce directly outside the toolbox. The sce has no dependencies to >> external SCIs. >> Who can I make this variable visible for Scilab from a toolbox? >> Thanks, Hani >> PS: The toolbox should run on Scilab 5.5.x and 6.0.x. >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users > > Hello, > > Please give us a small and reproductive example, under the form of two > scripts (the one creating the menu and the one executed by selecting > the menu item). > > S. > > -- > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From hibr-list at gmx.de Fri May 10 16:15:16 2019 From: hibr-list at gmx.de (Hani Andreas Ibrahim) Date: Fri, 10 May 2019 16:15:16 +0200 Subject: [Scilab-users] Make Variable visible in Scilab from a SCE-script in a toolbox In-Reply-To: References: <08d584ba-0a0a-5ed1-ee65-dd1d159adffe@utc.fr> Message-ID: An HTML attachment was scrubbed... URL: From paul.carrico at auxitrolweston.com Wed May 22 09:51:01 2019 From: paul.carrico at auxitrolweston.com (Carrico, Paul) Date: Wed, 22 May 2019 07:51:01 +0000 Subject: [Scilab-users] unexpected result Message-ID: <3A6B7233274DB449A2A0053A47684F953FF92523@BGS-EX01.auxitrol.ad> Hi All, In the following code, I was thinking that the provided index was the one on the "global" matrix, but I was wrong :) (I guess a copy is performed first in order to be more efficient and to speed-up the calculation) Paul n = 10; B = ones(n,1); i = 6; B(i,1)=0.55; a1 = find(B(:,1) < 1); disp(a1); a2 = find(B(i-1:$,1) < 1); disp(a2); -------------- next part -------------- An HTML attachment was scrubbed... URL: From fmiyara at fceia.unr.edu.ar Wed May 22 16:40:32 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Wed, 22 May 2019 11:40:32 -0300 Subject: [Scilab-users] non-symmetric windows Message-ID: Dear all, I need to implement a 4096 point non-symmetric Hann window. The function window provides several types of symetric windows, including Hann. I wonder if computing a 4097 point symmetric window and keeping the first 4096 yields what I'm looking for. Thanks. Federico Miyara -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Wed May 22 17:41:12 2019 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Wed, 22 May 2019 17:41:12 +0200 Subject: [Scilab-users] unexpected result In-Reply-To: <3A6B7233274DB449A2A0053A47684F953FF92523@BGS-EX01.auxitrol.ad> References: <3A6B7233274DB449A2A0053A47684F953FF92523@BGS-EX01.auxitrol.ad> Message-ID: <6bc53340-65e8-17d8-0796-9ec327463b84@utc.fr> Hello Paul, B(i-1:$,1) in a rhs is evaluated as a temporary 6x1 vector when passed as an argument to find() and any reference w.r.t. B is of course disgarded. The obtained result is the expected result. S. Le 22/05/2019 ? 09:51, Carrico, Paul a ?crit?: > > Hi All, > > In the following code, I was thinking that the provided index was the > one on the ?global? matrix, but I was wrong J > > (I guess a copy is performed first in order to be more efficient and > to speed-up the calculation) > > Paul > > n= 10; > > B= ones(n,1); > > i= 6; > > B(i,1)=0.55; > > a1= find(B(:,1) < 1); disp(a1); > > a2= find(B(i-1:$,1) < 1); disp(a2); > > > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed May 22 19:02:58 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 22 May 2019 19:02:58 +0200 Subject: [Scilab-users] non-symmetric windows In-Reply-To: References: Message-ID: <38635e19-12ff-84eb-eabe-30011d7f61e5@free.fr> Hello Federico, Le 22/05/2019 ? 16:40, Federico Miyara a ?crit : > > Dear all, > > I need to implement a 4096 point non-symmetric Hann window. The > function window provides several types of symetric windows, including > Hann. > > I wonder if computing a 4097 point symmetric window and keeping the > first 4096 yields what I'm looking for. It depends only on your criteria to make it asymetric. --> window("hn",4) ans = 0. 0.75 0.75 0. --> w = window("hn",5) w = 0. 0.5 1. 0.5 0. --> w(1:4) ans = 0. 0.5 1. 0.5 Is this OK ? window() normalizes the maximum height, not the area. So trimming the raw result less than its half width keeps its max to 1. And there is no correction factor to apply to the area to keep it to 1, since it's not its original value. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From fmiyara at fceia.unr.edu.ar Wed May 22 22:06:20 2019 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Wed, 22 May 2019 17:06:20 -0300 Subject: [Scilab-users] non-symmetric windows In-Reply-To: <38635e19-12ff-84eb-eabe-30011d7f61e5@free.fr> References: <38635e19-12ff-84eb-eabe-30011d7f61e5@free.fr> Message-ID: Samuel, Thank you. I need it to be periodic without repeating the 0, so I think it is OK. When seeing it with N=4 it looks rather rough (actually, both versions do), but it improves for instance with N=4096) Anyway, the motivation is to use it for overlap-add. For instance: N = 8 q = window("hn",N); q1 = [q, q, q, q]; q2 = [q(N/2+1:N), q, q, q, q(1:N/2)]; // 50 % offset Q = q1 + q2 Q should be identically 1, and it isn't. For N larger it is evident a slight oscilation, smaller as N grows. If we replace symmetric by periodic Hann: N = 8 q = window("hn",N+1); q = q(1:N); q1 = [q, q, q, q]; q2 = [q(N/2+1:N), q, q, q, q(1:N/2)]; Q = q1 + q2 Here Q = [1 1 1 1 ... 1 1 1] so the result is the expected one. Regards, Federico On 22/05/2019 14:02, Samuel Gougeon wrote: > Hello Federico, > > Le 22/05/2019 ? 16:40, Federico Miyara a ?crit : >> >> Dear all, >> >> I need to implement a 4096 point non-symmetric Hann window. The >> function window provides several types of symetric windows, including >> Hann. >> >> I wonder if computing a 4097 point symmetric window and keeping the >> first 4096 yields what I'm looking for. > > It depends only on your criteria to make it asymetric. > > --> window("hn",4) > ans = > 0. 0.75 0.75 0. > > > --> w = window("hn",5) > w = > 0. 0.5 1. 0.5 0. > > > --> w(1:4) > ans = > 0. 0.5 1. 0.5 > > Is this OK ? window() normalizes the maximum height, not the area. So > trimming the raw result less than its half width keeps its max to 1. > And there is no correction factor to apply to the area to keep it to > 1, since it's not its original value. > > Samuel > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Thu May 23 09:14:10 2019 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Thu, 23 May 2019 07:14:10 +0000 Subject: [Scilab-users] {EXT} unexpected result In-Reply-To: <3A6B7233274DB449A2A0053A47684F953FF92523@BGS-EX01.auxitrol.ad> References: <3A6B7233274DB449A2A0053A47684F953FF92523@BGS-EX01.auxitrol.ad> Message-ID: Hello Paul, > De : Carrico, Paul > Envoy? : mercredi 22 mai 2019 09:51 > > In the following code, > I was thinking that the provided index was the one on the ?global? > matrix, but I was wrong ? [?] > a2 = find(B(i-1:$,1) < 1); disp(a2); I would have made the same mistake (-: Now if we look at the documentation https://help.scilab.org/docs/6.0.2/en_US/extraction.html we read "r=x(i,j) builds the matrix r such as [?]" and https://help.scilab.org/docs/6.0.2/en_US/find.html "If x is a boolean matrix, ii=find(x) returns [?]" so the behaviour seems quite logical. But it might be a good idea to provide an example such as yours in the documentation, at least to preserve our injured self-esteem (we are not the only two who have been fooled). Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer General This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From paul.carrico at auxitrolweston.com Thu May 23 09:20:55 2019 From: paul.carrico at auxitrolweston.com (Carrico, Paul) Date: Thu, 23 May 2019 07:20:55 +0000 Subject: [Scilab-users] [EXTERNAL] Re: {EXT} unexpected result In-Reply-To: References: <3A6B7233274DB449A2A0053A47684F953FF92523@BGS-EX01.auxitrol.ad> Message-ID: <3A6B7233274DB449A2A0053A47684F953FF92828@BGS-EX01.auxitrol.ad> Hi all for the feedback Indeed it's logical afterward, and it has been made to be fast and efficient ... but I spent a lot of time in finding my mistake that it uses a "local/temporary" index than a "global" one. I share your suggestion in adding an example in the doc to prevent Scilab users, but the question is "where" ? Paul -----Message d'origine----- De?: users [mailto:users-bounces at lists.scilab.org] De la part de Dang Ngoc Chan, Christophe Envoy??: jeudi 23 mai 2019 09:14 ??: Users mailing list for Scilab Objet?: [EXTERNAL] Re: [Scilab-users] {EXT} unexpected result Hello Paul, > De : Carrico, Paul > Envoy? : mercredi 22 mai 2019 09:51 > > In the following code, > I was thinking that the provided index was the one on the ?global? > matrix, but I was wrong ? [?] > a2 = find(B(i-1:$,1) < 1); disp(a2); I would have made the same mistake (-: Now if we look at the documentation https://urldefense.proofpoint.com/v2/url?u=https-3A__help.scilab.org_docs_6.0.2_en-5FUS_extraction.html&d=DwIGaQ&c=0hKVUfnuoBozYN8UvxPA-w&r=2R_Eyw3woK4XVPnEug_8oZFQfCE8Ul6UYufxQizYx6k&m=h_9KPbMv5WwpOSsz29HjgLF8hOXdEKk2R2dkyVy334w&s=zrjH9zC_wmeR2sNsnm6LqAH5OhklVr2sn_50F2Z1Fjo&e= we read "r=x(i,j) builds the matrix r such as [?]" and https://urldefense.proofpoint.com/v2/url?u=https-3A__help.scilab.org_docs_6.0.2_en-5FUS_find.html&d=DwIGaQ&c=0hKVUfnuoBozYN8UvxPA-w&r=2R_Eyw3woK4XVPnEug_8oZFQfCE8Ul6UYufxQizYx6k&m=h_9KPbMv5WwpOSsz29HjgLF8hOXdEKk2R2dkyVy334w&s=OYg1le1-U4zV-uuw5ELo1kH_6ne9heq4jXFovUh3B0o&e= "If x is a boolean matrix, ii=find(x) returns [?]" so the behaviour seems quite logical. But it might be a good idea to provide an example such as yours in the documentation, at least to preserve our injured self-esteem (we are not the only two who have been fooled). Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer General This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. _______________________________________________ users mailing list users at lists.scilab.org https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.scilab.org_mailman_listinfo_users&d=DwIGaQ&c=0hKVUfnuoBozYN8UvxPA-w&r=2R_Eyw3woK4XVPnEug_8oZFQfCE8Ul6UYufxQizYx6k&m=h_9KPbMv5WwpOSsz29HjgLF8hOXdEKk2R2dkyVy334w&s=X2P0bkSUBEv9LsNxFZbxr_BvXqso_YMPWQxb7TWdNgw&e= From Christophe.Dang at sidel.com Thu May 23 09:34:48 2019 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Thu, 23 May 2019 07:34:48 +0000 Subject: [Scilab-users] [EXTERNAL] Re: {EXT} unexpected result In-Reply-To: <3A6B7233274DB449A2A0053A47684F953FF92828@BGS-EX01.auxitrol.ad> References: <3A6B7233274DB449A2A0053A47684F953FF92523@BGS-EX01.auxitrol.ad> <3A6B7233274DB449A2A0053A47684F953FF92828@BGS-EX01.auxitrol.ad> Message-ID: Hello, > De : Carrico, Paul > Envoy? : jeudi 23 mai 2019 09:21 > > I share your suggestion in adding an example in the doc to prevent Scilab > users, but the question is "where" ? I suggest the "Scilab Help >> Elementary Functions > extraction" page. Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer General This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From stephane.mottelet at utc.fr Thu May 23 10:59:28 2019 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Thu, 23 May 2019 10:59:28 +0200 Subject: [Scilab-users] [EXTERNAL] Re: {EXT} unexpected result In-Reply-To: References: <3A6B7233274DB449A2A0053A47684F953FF92523@BGS-EX01.auxitrol.ad> <3A6B7233274DB449A2A0053A47684F953FF92828@BGS-EX01.auxitrol.ad> Message-ID: <4cab8536-0486-875f-7dea-6f2bb8f2fd32@utc.fr> Le 23/05/2019 ? 09:34, Dang Ngoc Chan, Christophe a ?crit?: > Hello, > >> De : Carrico, Paul >> Envoy? : jeudi 23 mai 2019 09:21 >> >> I share your suggestion in adding an example in the doc to prevent Scilab >> users, but the question is "where" ? > I suggest the "Scilab Help >> Elementary Functions > extraction" page. I am not sure that is the right place. In fact our discussion is about the general concepts of *lvalue* and *rvalue* (in most languages, compiled or interpreted, see e.g. https://www.quora.com/What-is-lvalue-and-rvalue-in-C which starts with general stuff valuable for Scilab also) In this insertion expression: x(i) = y x(i) determines the identity of an object, and we need this because the evaluation of the expression will modify it . In this case "x(i)" is a *lvalue*. The "l" is to recall that such constructs are to the *left* of the assignment operator In this extraction expression: y = x(i) "x(i)" is a *rvalue*, i.e. a "result"? which is _temporary_ materialized, and identity of x is lost (because we don't need it). Here the "r" can be seen as "right" as well as "result" (I prefer "result"...) Hence, in the expressions x=rand(10,1); [v,k]=find(x(3:10)) find() just sees an anonymous/temporary 8x1 vector. It is the user's responsibility to do k=k+2 to compute the actual index in original vector. S. > > Regards > > -- > Christophe Dang Ngoc Chan > Mechanical calculation engineer > > General > This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. > _______________________________________________ > users mailing list > users at lists.scilab.org > 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 raymondvillain at gmail.com Fri May 24 17:44:08 2019 From: raymondvillain at gmail.com (cobnashine) Date: Fri, 24 May 2019 08:44:08 -0700 (MST) Subject: [Scilab-users] C compiler for use with xcos Message-ID: <1558712648026-0.post@n3.nabble.com> Scilab 6.0.2 64 bit, Windows 10 64 bit on AMD processor. Difficult to have Scilab 6.0.2 find my C compiler. Downloaded Visual Studio community version, it comes with 4 different versions of cl.exe. In the Scilab console, the command configure_msvc() returns TRUE. haveacompiler() returns FALSE. From the Scilab console window, is there a command that will allow me to set the path to the compiler manually? Are there not other C compilers besides Visual Studio that can be installed and utilized by Scilab? -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Fri May 24 21:40:33 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 24 May 2019 21:40:33 +0200 Subject: [Scilab-users] C compiler for use with xcos In-Reply-To: <1558712648026-0.post@n3.nabble.com> References: <1558712648026-0.post@n3.nabble.com> Message-ID: <3b8574b3-4a07-10f9-54f9-56f714c8c350@free.fr> Hello, Le 24/05/2019 ? 17:44, cobnashine a ?crit : > Scilab 6.0.2 64 bit, Windows 10 64 bit on AMD processor. > > Difficult to have Scilab 6.0.2 find my C compiler. Downloaded Visual Studio > community version, it comes with 4 different versions of cl.exe. > > In the Scilab console, the command configure_msvc() returns TRUE. > haveacompiler() returns FALSE. From the Scilab console window, is there a > command that will allow me to set the path to the compiler manually? > > Are there not other C compilers besides Visual Studio that can be installed and utilized by Scilab? You can install minGW and then the minGW ATOMS module. You may have a look to https://atoms.scilab.org/toolboxes/mingw Regards Samuel From raymondvillain at gmail.com Sun May 26 02:47:41 2019 From: raymondvillain at gmail.com (Hank Hall) Date: Sat, 25 May 2019 20:47:41 -0400 Subject: [Scilab-users] C compiler for use with xcos In-Reply-To: <3b8574b3-4a07-10f9-54f9-56f714c8c350@free.fr> References: <1558712648026-0.post@n3.nabble.com> <3b8574b3-4a07-10f9-54f9-56f714c8c350@free.fr> Message-ID: Thanks Samuel; installed minGW etc., now all is well. beOK=haveacompiler() returns TRUE. On Fri, May 24, 2019 at 3:41 PM Samuel Gougeon wrote: > Hello, > > Le 24/05/2019 ? 17:44, cobnashine a ?crit : > > Scilab 6.0.2 64 bit, Windows 10 64 bit on AMD processor. > > > > Difficult to have Scilab 6.0.2 find my C compiler. Downloaded Visual > Studio > > community version, it comes with 4 different versions of cl.exe. > > > > In the Scilab console, the command configure_msvc() returns TRUE. > > haveacompiler() returns FALSE. From the Scilab console window, is there > a > > command that will allow me to set the path to the compiler manually? > > > > Are there not other C compilers besides Visual Studio that can be > installed and utilized by Scilab? > > You can install minGW and then the minGW ATOMS module. > You may have a look to https://atoms.scilab.org/toolboxes/mingw > > 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 jrich at littleappletech.com Sun May 26 23:21:22 2019 From: jrich at littleappletech.com (marko) Date: Sun, 26 May 2019 14:21:22 -0700 (MST) Subject: [Scilab-users] Unclear How to create toolbox Message-ID: <1558905682494-0.post@n3.nabble.com> Hi; I've written some scripts that I want to load at startup. The documentation on how to do this is not clear, including "Build a Toolbox with Scilab.pdf". 1) There exists no 'cleaner.sce' in the 'contrib' (or any other) directory. 2) We are supposed to copy (??) files like ".start", but the only such files included are long and contain a lot of not relevant material. Yet without advanced knowledge it is not possible to know what to do - start over? build (somehow) from scratch? Note that the quoted images to use (?) are sometimes incomplete, several lines missing for the example 'cleaner.sce'. 3) Is one supposed to create his/her own 'builder.sce' file ? Again, not sure the image is complete in the example. I notice on one of these help pages Mr. Gudgeon (sorry if mispelled) suggests editing the file 'scilab.ini'. This file does not exist on my computer (Windows 7 with scilab 6.0.2). Maybe (?) I'm to create that on my own? Please realize that in many years I have discovered the danger to my computer(s) of ignorantly fooling around with startup files. I for one would sure appreciate knowing how to actually build a toolbox. Thanks for comments. marko -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From hibr-list at gmx.de Mon May 27 16:26:51 2019 From: hibr-list at gmx.de (Hani Andreas Ibrahim) Date: Mon, 27 May 2019 16:26:51 +0200 Subject: [Scilab-users] Unclear How to create toolbox In-Reply-To: <1558905682494-0.post@n3.nabble.com> References: <1558905682494-0.post@n3.nabble.com> Message-ID: An HTML attachment was scrubbed... URL: From hibr-list at gmx.de Mon May 27 16:35:31 2019 From: hibr-list at gmx.de (Hani Andreas Ibrahim) Date: Mon, 27 May 2019 16:35:31 +0200 Subject: [Scilab-users] Unclear How to create toolbox In-Reply-To: References: <1558905682494-0.post@n3.nabble.com> Message-ID: An HTML attachment was scrubbed... URL: From paul.carrico at auxitrolweston.com Tue May 28 09:10:37 2019 From: paul.carrico at auxitrolweston.com (Carrico, Paul) Date: Tue, 28 May 2019 07:10:37 +0000 Subject: [Scilab-users] issue with h5close? Message-ID: <3A6B7233274DB449A2A0053A47684F953FF92D8A@BGS-EX01.auxitrol.ad> Hi All I'm using the latest stable release (6.0.2) in conjunction with cgal add-on for Delaunay_2 tessellation, based on data previously recorded in a hdf5 file. I've been noticing that after a first tessellation, and while the h5 file is closed in the routine (h5close(name)), if I rerun a second one Scilab crashes; that's the case either under Windows 7 or 10. h5 = "toto.h5"; h5 = h5open(PATH_DATA + h5,"r"); h5close(h5); But I've noticed if I manually close the file directly in the console (i.e. a second time), then Scilab does not crash anymore. It is just an observation, and I'm not able to tell more about the issue, but it's systematic on my side. Hope it help Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Tue May 28 09:36:04 2019 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 28 May 2019 09:36:04 +0200 Subject: [Scilab-users] issue with h5close? In-Reply-To: <3A6B7233274DB449A2A0053A47684F953FF92D8A@BGS-EX01.auxitrol.ad> References: <3A6B7233274DB449A2A0053A47684F953FF92D8A@BGS-EX01.auxitrol.ad> Message-ID: Hello Paul, Two comments: 1) Could you provide us with a minimum crashing script + h5file to try and replicate the issue? 2) It might not be relevant, but in your script "h5" is first a string then a h5 handle (after the call to h5open). Did you try using two different variable names (h5fname and h5), just in case it is related to your crash? I remember having weird issues back in the days with graphic handles being reused for other kind of variables inside loops or function calls. Antoine Le 28/05/2019 ? 09:10, Carrico, Paul a ?crit?: > > Hi All > > I?m using the latest stable release (6.0.2) in conjunction with cgal > add-on for Delaunay_2 tessellation, based on data previously recorded > in a hdf5 file. > > I?ve been noticing that after a first tessellation, and while the h5 > file is closed in the routine (h5close(name)), if I rerun a second one > _Scilab crashes_; that?s the case either under Windows 7 or 10. > > h5= "toto.h5"; > > h5= h5open(PATH_DATA + h5,"r"); > > h5close(h5); > > But I?ve noticed if I _manually_ close the file directly in the > console (i.e. a second time), then Scilab does not crash anymore. > > It is just an observation, and I?m not able to tell more about the > issue, but it?s systematic on my side. > > Hope it help > > Paul > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche BP 54200 31031 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoine.monmayrant at laas.fr permanent email : antoine.monmayrant at polytechnique.org +++++++++++++++++++++++++++++++++++++++++++++++++++++++ -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at auxitrolweston.com Tue May 28 14:46:22 2019 From: paul.carrico at auxitrolweston.com (Carrico, Paul) Date: Tue, 28 May 2019 12:46:22 +0000 Subject: [Scilab-users] [EXTERNAL] Re: issue with h5close? In-Reply-To: References: <3A6B7233274DB449A2A0053A47684F953FF92D8A@BGS-EX01.auxitrol.ad> Message-ID: <3A6B7233274DB449A2A0053A47684F953FF92DF9@BGS-EX01.auxitrol.ad> Thanks Antoine, I ran the same code under Windows 10 and Scilab crashes, whereas I've no issue under Linux (Ubuntu 16.04); I cannot share the files as it stands, but let me working on an example to reproduce the issue Paul De : users [mailto:users-bounces at lists.scilab.org] De la part de Antoine Monmayrant Envoy? : mardi 28 mai 2019 09:36 ? : users at lists.scilab.org Objet : [EXTERNAL] Re: [Scilab-users] issue with h5close? Hello Paul, Two comments: 1) Could you provide us with a minimum crashing script + h5file to try and replicate the issue? 2) It might not be relevant, but in your script "h5" is first a string then a h5 handle (after the call to h5open). Did you try using two different variable names (h5fname and h5), just in case it is related to your crash? I remember having weird issues back in the days with graphic handles being reused for other kind of variables inside loops or function calls. Antoine Le 28/05/2019 ? 09:10, Carrico, Paul a ?crit : Hi All I'm using the latest stable release (6.0.2) in conjunction with cgal add-on for Delaunay_2 tessellation, based on data previously recorded in a hdf5 file. I've been noticing that after a first tessellation, and while the h5 file is closed in the routine (h5close(name)), if I rerun a second one Scilab crashes; that's the case either under Windows 7 or 10. h5 = "toto.h5"; h5 = h5open(PATH_DATA + h5,"r"); h5close(h5); But I've noticed if I manually close the file directly in the console (i.e. a second time), then Scilab does not crash anymore. It is just an observation, and I'm not able to tell more about the issue, but it's systematic on my side. Hope it help Paul _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche BP 54200 31031 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoine.monmayrant at laas.fr permanent email : antoine.monmayrant at polytechnique.org +++++++++++++++++++++++++++++++++++++++++++++++++++++++ -------------- next part -------------- An HTML attachment was scrubbed... URL: From gilles.delaygue at univ-grenoble-alpes.fr Wed May 29 11:35:19 2019 From: gilles.delaygue at univ-grenoble-alpes.fr (gilles) Date: Wed, 29 May 2019 02:35:19 -0700 (MST) Subject: [Scilab-users] SciNetCDF toolbox on Darwin/OSX? Message-ID: <1559122519717-0.post@n3.nabble.com> Dear all, has anyone successfully compiled the scinetcdf toolbox on a Darwin/OSX machine? I'm running Scilab 6.0.2 on a MBP with Mojave, facing some problems with Atoms (does not run), and trying to install the Scinetcdf toolbox manually. I'm following the explanations given in a previous post (*) by one maintainer (Ekin Akoglu), in order to compile the toolbox, since binaries are only provided for Linux and Windows distribs. I've adapted the package for OSX with some success, but i'm clueless with the last error message. I guess the problem lies with some library path but i cannot find which one is faulty. All the bets -gilles (*) http://mailinglists.scilab.org/Scilab-users-SciNetCDF-for-Scilab-6-x-td4038393.html -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From stephane.mottelet at utc.fr Wed May 29 11:43:09 2019 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Wed, 29 May 2019 11:43:09 +0200 Subject: [Scilab-users] SciNetCDF toolbox on Darwin/OSX? In-Reply-To: <1559122519717-0.post@n3.nabble.com> References: <1559122519717-0.post@n3.nabble.com> Message-ID: <9dbd9f0c-2cc7-cf58-c530-6ddeee044af0@utc.fr> Hello, Le 29/05/2019 ? 11:35, gilles a ?crit?: > Dear all, has anyone successfully compiled the scinetcdf toolbox on a > Darwin/OSX machine? > I'm running Scilab 6.0.2 on a MBP with Mojave, facing some problems with > Atoms (does not run), What do you mean by "does not run". Is it the Atoms GUI that does not run as expected or do you have problem during the installation of some module ? > and trying to install the Scinetcdf toolbox manually. > I'm following the explanations given in a previous post (*) by one > maintainer (Ekin Akoglu), in order to compile the toolbox, since binaries > are only provided for Linux and Windows distribs. > I've adapted the package for OSX with some success, but i'm clueless with > the last error message. Which message ? > I guess the problem lies with some library path but > i cannot find which one is faulty. > All the bets -gilles > > (*) > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/mailinglists.scilab.org/Scilab-users-SciNetCDF-for-Scilab-6-x-td4038393.html > > > > -- > Sent from: https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet From samuel.enibe at unn.edu.ng Wed May 29 12:25:15 2019 From: samuel.enibe at unn.edu.ng (Samuel Enibe) Date: Wed, 29 May 2019 11:25:15 +0100 Subject: [Scilab-users] SCILAB Equivalent of addpath function Message-ID: In MATLAB, the function addpath enables a user to add any desired path the MATLAB directories. Is there an equivalent ?n SCILAB? -------------- next part -------------- An HTML attachment was scrubbed... URL: From gilles.delaygue at univ-grenoble-alpes.fr Wed May 29 17:05:13 2019 From: gilles.delaygue at univ-grenoble-alpes.fr (gilles) Date: Wed, 29 May 2019 08:05:13 -0700 (MST) Subject: [Scilab-users] SciNetCDF toolbox on Darwin/OSX? In-Reply-To: <9dbd9f0c-2cc7-cf58-c530-6ddeee044af0@utc.fr> References: <1559122519717-0.post@n3.nabble.com> <9dbd9f0c-2cc7-cf58-c530-6ddeee044af0@utc.fr> Message-ID: <1559142313955-0.post@n3.nabble.com> mottelet wrote > Le 29/05/2019 ? 11:35, gilles a ?crit?: >> Dear all, has anyone successfully compiled the scinetcdf toolbox on a >> Darwin/OSX machine? >> I'm running Scilab 6.0.2 on a MBP with Mojave, facing some problems with >> Atoms (does not run), > > What do you mean by "does not run". Is it the Atoms GUI that does not > run as expected or do you have problem during the installation of some > module ? Dear St?phane, thanks for bothering. I cannot get anything to work with Atoms, but this is another problem: my present post is about the toolbox SciNetCDF, which is only compiled for Windows and Linux. So i'm trying to adapt the package to Darwin. Many thanks for your great help with Scilab, by the way! best -gilles -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Wed May 29 20:19:44 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 29 May 2019 20:19:44 +0200 Subject: [Scilab-users] SCILAB Equivalent of addpath function In-Reply-To: References: Message-ID: <633550b5-d57b-4c41-b050-289d7472b222@free.fr> Hello, Le 29/05/2019 ? 12:25, Samuel Enibe a ?crit : > In MATLAB, the function addpath enables a user to add any desired > path the MATLAB directories. > > Is there an equivalent ?n SCILAB? I am not sure to understand the question. Since the execution mechanism of a script is different in both languages, Scilab does not need any list of paths to be scanned to find the file of the script to be run. As you know, in Scilab, to execute a script.sci, its relative or absolute path must be provided. It's mandatory. Regards Samuel Gougeon From samuel.enibe at unn.edu.ng Thu May 30 11:19:51 2019 From: samuel.enibe at unn.edu.ng (Samuel Enibe) Date: Thu, 30 May 2019 10:19:51 +0100 Subject: [Scilab-users] SCILAB Equivalent of addpath function In-Reply-To: <633550b5-d57b-4c41-b050-289d7472b222@free.fr> References: <633550b5-d57b-4c41-b050-289d7472b222@free.fr> Message-ID: Thank you very much for your quick response. In using SCILAB, I create a folder for a given class of problems. The user-defined functions for the problem class are stored in the folder. I use the SCILAB function *genlib to* create a functions library for the user-defined functions in the folder.. On startup of SCILAB, I would have to run *genlib* again or* lib* to make those user-defined functions available for use. Is there a way of telling SCILAB to search a given folder or folders for user-defined functions? In this way, I would not have to run* lib *or *genlib* during each SCILAB session. Thank you very much. God bless you. Samuel Ogbonna Enibe On Wed, May 29, 2019 at 7:20 PM Samuel Gougeon wrote: > Hello, > > Le 29/05/2019 ? 12:25, Samuel Enibe a ?crit : > > In MATLAB, the function addpath enables a user to add any desired > > path the MATLAB directories. > > > > Is there an equivalent ?n SCILAB? > > I am not sure to understand the question. > Since the execution mechanism of a script is different in both > languages, Scilab does not need any list of paths to be scanned to find > the file of the script to be run. > As you know, in Scilab, to execute a script.sci, its relative or > absolute path must be provided. It's mandatory. > > Regards > Samuel Gougeon > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Thu May 30 12:18:11 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 30 May 2019 12:18:11 +0200 Subject: [Scilab-users] SCILAB Equivalent of addpath function In-Reply-To: References: <633550b5-d57b-4c41-b050-289d7472b222@free.fr> Message-ID: <78b6dce2-9a54-5e0d-715b-4755a51ad332@free.fr> Le 30/05/2019 ? 11:19, Samuel Enibe a ?crit : > Thank you very much for your quick response. > > In using SCILAB, I create a folder for a given class of problems. The > user-defined functions for the problem class are stored in the > folder. I use the SCILAB function *genlib to* create a functions > library for the user-defined functions in the folder.. > > On startup of SCILAB, I would have to run *genlib* again or*lib* to > make those user-defined functions available for use. > > Is there a way of telling SCILAB to search a given folder or folders > for user-defined functions? In this way, I would not have to run*lib > *or *genlib* during each SCILAB session. Why don't you load your custom libraries within your scilab.ini or .scilab startup file? load() can be used (more safely than lib()) to do so. However, this way won't prevent them from being cleared by the first "clear" (all) statement in the console (but this is the same for ATOMS modules loaded during the session). To answer your question: As far as i know, no, there is presently no native mechanism looking for libraries in a series of paths, to load on the fly, or looking for a series of function definitions.sci to execute on the fly. But it can be tentatively implemented by using the %onprompt mechanism. "--> uman %onpromt @ " will tell you more about it. Best regards Samuel Gougeon -------------- next part -------------- An HTML attachment was scrubbed... URL: From samuel.enibe at unn.edu.ng Thu May 30 13:42:54 2019 From: samuel.enibe at unn.edu.ng (Samuel Enibe) Date: Thu, 30 May 2019 12:42:54 +0100 Subject: [Scilab-users] SCILAB Equivalent of addpath function In-Reply-To: <78b6dce2-9a54-5e0d-715b-4755a51ad332@free.fr> References: <633550b5-d57b-4c41-b050-289d7472b222@free.fr> <78b6dce2-9a54-5e0d-715b-4755a51ad332@free.fr> Message-ID: Thank you very much, Samuel. I am using version 5.5.2 on Ubuntu 18.04. Could you please let me know how to locate the the scilab.ini and the startup files? Thank you very much. God bless you. Samuel Ogbonna Enibe On Thu, May 30, 2019 at 11:18 AM Samuel Gougeon wrote: > Le 30/05/2019 ? 11:19, Samuel Enibe a ?crit : > > Thank you very much for your quick response. > > In using SCILAB, I create a folder for a given class of problems. The > user-defined functions for the problem class are stored in the folder. I > use the SCILAB function *genlib to* create a functions library for the > user-defined functions in the folder.. > > On startup of SCILAB, I would have to run *genlib* again or* lib* to make > those user-defined functions available for use. > > Is there a way of telling SCILAB to search a given folder or folders for > user-defined functions? In this way, I would not have to run* lib *or > *genlib* during each SCILAB session. > > > Why don't you load your custom libraries within your scilab.ini or .scilab > startup file? load() can be used (more safely than lib()) to do so. > > However, this way won't prevent them from being cleared by the first > "clear" (all) statement in the console (but this is the same for ATOMS > modules loaded during the session). > > To answer your question: As far as i know, no, there is presently no > native mechanism looking for libraries in a series of paths, to load on the > fly, or looking for a series of function definitions.sci to execute on the > fly. > > But it can be tentatively implemented by using the %onprompt > > mechanism. "--> uman %onpromt @ > " will tell > you more about it. > > Best regards > Samuel Gougeon > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Thu May 30 13:56:50 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 30 May 2019 13:56:50 +0200 Subject: [Scilab-users] SCILAB Equivalent of addpath function In-Reply-To: References: <633550b5-d57b-4c41-b050-289d7472b222@free.fr> <78b6dce2-9a54-5e0d-715b-4755a51ad332@free.fr> Message-ID: Le 30/05/2019 ? 13:42, Samuel Enibe a ?crit : > Thank you very much, Samuel. > > I am using version 5.5.2 on Ubuntu 18.04. > > Could you please let me know how to locate the the scilab.ini and the > startup files? On Linux, you may create and fill the .scilab file in your SCIHOME directory: help startup => https://help.scilab.org/docs/current/en_US/startup.html From samuel.enibe at unn.edu.ng Thu May 30 14:25:46 2019 From: samuel.enibe at unn.edu.ng (Samuel Enibe) Date: Thu, 30 May 2019 13:25:46 +0100 Subject: [Scilab-users] SCILAB Equivalent of addpath function In-Reply-To: References: <633550b5-d57b-4c41-b050-289d7472b222@free.fr> <78b6dce2-9a54-5e0d-715b-4755a51ad332@free.fr> Message-ID: Thank you very much for your kind assistance. God bless you. Samuel Ogbonna Enibe On Thu, May 30, 2019 at 12:57 PM Samuel Gougeon wrote: > Le 30/05/2019 ? 13:42, Samuel Enibe a ?crit : > > Thank you very much, Samuel. > > > > I am using version 5.5.2 on Ubuntu 18.04. > > > > Could you please let me know how to locate the the scilab.ini and the > > startup files? > > On Linux, you may create and fill the .scilab file in your SCIHOME > directory: > help startup => https://help.scilab.org/docs/current/en_US/startup.html > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: