From martin.marmsoler at gmail.com Wed Feb 1 17:03:13 2017 From: martin.marmsoler at gmail.com (Martin Marmsoler) Date: Wed, 1 Feb 2017 17:03:13 +0100 Subject: [Scilab-users] Defining own blocks, labeling super blocks Message-ID: Hello, I searched about labeling superblocks and I found this post in the mailing list: http://mailinglists.scilab.org/Scilab-users-Xcos-names-labels-for-subsystems-and-ports-td4033970.html, but I didn't find a tutorial which shows how I can create own blocks, so I would ask if somebody has a good tutorial? Do I have to create my own block by code or is there a possibility to label the inputs and outputs in xcos? https://www.scilab.org/community/scilabtec/2011/User-defined-blocks-in-Xcos In this link I found a description with skeleton. But there is less description in it how they customized the superblock ( by code or in xcos?). Best regards, Martin -------------- next part -------------- An HTML attachment was scrubbed... URL: From Pablo_F_7 at hotmail.com Thu Feb 2 14:35:29 2017 From: Pablo_F_7 at hotmail.com (Pablo Fonovich) Date: Thu, 2 Feb 2017 13:35:29 +0000 Subject: [Scilab-users] Defining own blocks, labeling super blocks In-Reply-To: References: Message-ID: Hi: Have you tried this? http://scilab.io/tutorial-customizing-xcos-with-new-blocks-and-palette/ Tutorial - Customizing Xcos with new Blocks and Palette ... scilab.io In this tutorial, we show how to create and customize Xcos blocks and palettes. Moreover, we use the "Xcos toolbox skeleton" for a better result. ________________________________ De: users en nombre de Martin Marmsoler Enviado: mi?rcoles, 01 de febrero de 2017 01:03 p.m. Para: users at lists.scilab.org Asunto: [Scilab-users] Defining own blocks, labeling super blocks Hello, I searched about labeling superblocks and I found this post in the mailing list: http://mailinglists.scilab.org/Scilab-users-Xcos-names-labels-for-subsystems-and-ports-td4033970.html, but I didn't find a tutorial which shows how I can create own blocks, so I would ask if somebody has a good tutorial? Do I have to create my own block by code or is there a possibility to label the inputs and outputs in xcos? [Scilab-users] Xcos - names/labels for subsystems and ports? mailinglists.scilab.org [Scilab-users] Xcos - names/labels for subsystems and ports?. I've done quite a lot of work with Matlab and Simulink in previous jobs. At my new place, I'm checking ... https://www.scilab.org/community/scilabtec/2011/User-defined-blocks-in-Xcos User-defined blocks in Xcos / 2011 / ScilabTEC / Community ... www.scilab.org By Cl?ment DAVID and Bruno JOFRET, The Scilab Consortium. Xcos now offers new features aiming at creating user blocks and palettes and making them available through ... In this link I found a description with skeleton. But there is less description in it how they customized the superblock ( by code or in xcos?). Best regards, Martin -------------- next part -------------- An HTML attachment was scrubbed... URL: From jean.rubagenga at gmail.com Thu Feb 2 09:49:45 2017 From: jean.rubagenga at gmail.com (Jean Rubagenga) Date: Thu, 2 Feb 2017 10:49:45 +0200 Subject: [Scilab-users] Question about expm function Message-ID: Hi, I am trying to use expm() and do not get what I am expecting. I enter A = [1,0.5,0.7;0.3,0.7,1;1,0,1] and B = expm(A) and get as result B = 4.1672519 1.3854159 2.8881517 2.1672628 2.4007931 3.0513947 3.1716359 0.6680066 3.96685. I expected the matrix B elements to be exponents of corresponding elements of matrix A. For example B(1,1) = B(2,3) = B(3,1) = B(3,3) = 2.7182818 Could you please explain to me what is going on? Thanks Jean -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Fri Feb 3 08:36:03 2017 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Fri, 3 Feb 2017 08:36:03 +0100 Subject: [Scilab-users] Question about expm function In-Reply-To: References: Message-ID: <14e3cd47-636d-6285-1ce1-236dd2cdec74@utc.fr> Hello, The matrix exponential is defined as expm(A)=I+A+1/2*A^2+...+1/k!*A^k+... where the "*" denotes the matrix product. You can obtain what you wanted with exp(A) i.e. element-wise exponential of A S. Le 02/02/2017 ? 09:49, Jean Rubagenga a ?crit : > Hi, > > I am trying to use expm() and do not get what I am expecting. > > I enter A = [1,0.5,0.7;0.3,0.7,1;1,0,1] > and B = expm(A) > and get as result > > B = > > 4.1672519 1.3854159 2.8881517 > > 2.1672628 2.4007931 3.0513947 > > 3.17163590.66800663.96685. > > I expected the matrix B elements to be exponents of corresponding > elements of matrix A. For example > B(1,1) = B(2,3) = B(3,1) = B(3,3) = 2.7182818 > > Could you please explain to me what is going on? > > Thanks > > Jean > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From brantosaurus at hotmail.com Fri Feb 3 13:53:34 2017 From: brantosaurus at hotmail.com (David Brant) Date: Fri, 3 Feb 2017 12:53:34 +0000 Subject: [Scilab-users] Help with leastsq Message-ID: Hi, i am having problems with the below code (file attached). The function call appears to return the correct differences(Z), but falls over at the leastsq call to optimize const. I understand what the error is implying and have solved similar instances many times before, but not this one! Any help or advice would be very much appreciated. Regards, Dave Code: function [z]=fun1(const) q=4*const(1)*const(3)-const(2)^2 sqrtq=sqrt(q) e1=const(1)*vs.^2+const(2)*vs+const(3) e2=const(1)*vr.^2+const(2)*vr+const(3) e3=2*const(1)*vs+const(2) e4=2*const(1)*vr+const(2) var0=e3./sqrtq var1=e4./sqrtq t = 2/sqrtq*( atan(var0) - atan(var1) ) var2=e1./e2 x1=x*ones(vs) z = (log(var2) - const(2)*t)/2/const(1) - x1 disp(z,'z',x1,'x1',var2,'var2',t,'t',var1,'var1',var0,'var0',e4,'e4',e3,'e3',e2,'e2',e1,'e1',sqrtq,'sqrtq',q,'q',const,'const') endfunction vsr=[ 250 90; 500 180; 750 275; 1000 365; 1250 450; 1500 550; 1750 640; 2000 730] vs=vsr(:,1) vr=vsr(:,2) x=0.2 a0=5 b0=1 c0=0.2 const0=[a0 b0 c0]; [Z]=fun1(const0) disp(Z,'Z') [f,ans] = leastsq(fun1,const0) disp(f,'f',ans,'ans') Response: Z 0.0040458 0.0041880 0.0005683 0.0015020 0.0042734 0.0006144 0.0011409 0.0015368 !--error 10 Inconsistent multiplication. -------------- next part -------------- A non-text attachment was scrubbed... Name: problem.sce Type: application/x-scilab Size: 786 bytes Desc: problem.sce URL: From Serge.Steer at laposte.net Fri Feb 3 14:48:55 2017 From: Serge.Steer at laposte.net (Steer Serge) Date: Fri, 3 Feb 2017 14:48:55 +0100 Subject: [Scilab-users] Help with leastsq In-Reply-To: References: Message-ID: They are several problem in your code - First of all as you pass vr,vs and x by the context, x is redefined some where in the leastsq function to avoid the problem you must define fun1 as follow function [z]=fun1(const,vr,vs,x) ... endfunction and call leastsq with [f,ans] = leastsq(list(fun1,vr,vs,x),const0) - second for some value of const the value returned by fun1 is complex (it seems tht the imaginary parts are zeros so adding z=real(z) at the end of fun1 solves the problem. Regards Serge Steer On 03/02/2017 13:53, David Brant wrote: > Hi, i am having problems with the below code (file attached). > > The function call appears to return the correct differences(Z), but > falls over at the leastsq call to optimize const. > I understand what the error is implying and have solved similar > instances many times before, but not this one! > > Any help or advice would be very much appreciated. > Regards, Dave > > > Code: > function [z]=fun1(const) > q=4*const(1)*const(3)-const(2)^2 > sqrtq=sqrt(q) > e1=const(1)*vs.^2+const(2)*vs+const(3) > e2=const(1)*vr.^2+const(2)*vr+const(3) > e3=2*const(1)*vs+const(2) > e4=2*const(1)*vr+const(2) > var0=e3./sqrtq > var1=e4./sqrtq > t = 2/sqrtq*( atan(var0) - atan(var1) ) > var2=e1./e2 > x1=x*ones(vs) > z = (log(var2) - const(2)*t)/2/const(1) - x1 > disp(z,'z',x1,'x1',var2,'var2',t,'t',var1,'var1',var0,'var0',e4,'e4',e3,'e3',e2,'e2',e1,'e1',sqrtq,'sqrtq',q,'q',const,'const') > > endfunction > > vsr=[ 250 90; > 500 180; > 750 275; > 1000 365; > 1250 450; > 1500 550; > 1750 640; > 2000 730] > vs=vsr(:,1) > vr=vsr(:,2) > x=0.2 > a0=5 > b0=1 > c0=0.2 > const0=[a0 b0 c0]; > > [Z]=fun1(const0) > disp(Z,'Z') > [f,ans] = leastsq(fun1,const0) > disp(f,'f',ans,'ans') > > > Response: > Z > > 0.0040458 > 0.0041880 > 0.0005683 > 0.0015020 > 0.0042734 > 0.0006144 > 0.0011409 > 0.0015368 > !--error 10 > Inconsistent multiplication. > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From perrichon.pierre at wanadoo.fr Sat Feb 4 19:29:17 2017 From: perrichon.pierre at wanadoo.fr (Perrichon) Date: Sat, 4 Feb 2017 19:29:17 +0100 Subject: [Scilab-users] Question about javasci V2 In-Reply-To: References: Message-ID: Hello Daniel I?ve already met your problem one year ago, and for me it is really a bug. I work with scilab x64 5.5.2, netbeans 7.01, on W7 or W10 platform. I?ve sovled it in my application, so I?m just able to propose parts of code. I?ve delay the 2 instructions Scilab sci = new Scilab(true) and if (sci.open()) {, by creating a ScilabManager class, ? and a thread class named Idle Part of ScilabManager (also note the public static void OpenScilab()) public class ScilabManager { public static Scilab sci; //Driver Scilab public static boolean bScilabOpen; public static boolean InitScilab; public static Fifo FifoScilab; private static TListeFifo SciJob; static ScilabError TErrorScilab; public static File ScilabFile; private static int dim = 500; public static String [] Script; private static int iScript; public static Configuration AppConfiguration; public static Log LogScilab; public static int NumGraph=0; ScilabManager() { try { sci = new Scilab(true); InitScilab=true; } catch (JavasciException.InitializationException ex) { Logger.getLogger(ScilabManager.class.getName()).log(Level.SEVERE, null, ex); } } @SuppressWarnings("CallToThreadDumpStack") public static void OpenScilab() { try { bScilabOpen=sci.open(); } catch (JavasciException ex) { ex.printStackTrace(); } if (bScilabOpen) System.out.println("\nScilab est ouvert\n"); else System.out.println("\nErreur ouverture Scilab\n"); ScilabError.ClearScilabError(); try { // Initialisation et chargements des fonctions Scilab //--------------------------------------------------- AppConfiguration = new Configuration(); } catch (FileNotFoundException ex) { Logger.getLogger(ScilabManager.class.getName()).log(Level.SEVERE, null, ex); } catch (IOException ex) { Logger.getLogger(ScilabManager.class.getName()).log(Level.SEVERE, null, ex); } catch (JavasciException ex) { Logger.getLogger(ScilabManager.class.getName()).log(Level.SEVERE, null, ex); } try { // Initialisation du fichier de log out (Traces commandes Scilab) //-------------------------------------------------------------- LogScilab = new Log(); OptsimView.SetLogFile(); } catch (FileNotFoundException ex) { ex.printStackTrace(); } catch (IOException ex) { ex.printStackTrace(); } Script = new String[dim]; Now note part of Idle task : public class Idle extends Thread { protected volatile boolean IdleRunning = true; public static boolean bCloseIdle=false; private static int Count=1; private static int setGraphe=0; private static JTextField TF=null; private static Timer bTimer; private static JLabel AnimationLabel; private static Icon idleicone; private int ThreadNumber; Idle (JTextField TFi, Timer busyIconTimer, JLabel statusAnimationLabel, Icon icone) { TF=TFi; bTimer=busyIconTimer; AnimationLabel=statusAnimationLabel; idleicone=icone; this.ThreadNumber=Count++; } @Override public synchronized void run() { boolean bTest; if (ScilabManager.InitScilab) { ScilabManager.OpenScilab(); } ScilabManager.sci.exec("aPPeScilabJavasciv2=1;"); while (IdleRunning) { ?etc So instructions Scilab sci = new Scilab(true) and if (sci.open are delayed. This is the only solution I?ve found. After that Scilab well run with Java netbeans and javasci2. Also well note that my program doesn?t work with Scilab 6.0.0 b2 at compile time and see : http://bugzilla.scilab.org/show_bug.cgi?id=14626 Hope it helps you Sincerely Pierre De : users [mailto:users-bounces at lists.scilab.org] De la part de Daniel Neutzler Envoy? : mardi 31 janvier 2017 13:15 ? : users at lists.scilab.org Objet : [Scilab-users] Question about javasci V2 Hi, I am using Scilab 5.5.2 and trying to open a Scilab script from Java. Therfore I followed the documentation: Compute and run with javasci v2. I use Eclipse to compile and run. It works, but I want now to open it in "advanced mode" to get grahpics (Scilab sci = new Scilab(true);). If i do it, I get a compile Error. What's wrong ? Code and Error Plot out see below. Thank You for your Help, Daniel Neutzler ####Error#### java.lang.ExceptionInInitializerError at org.scilab.modules.commons.xml.XConfiguration.(Unknown Source) at org.scilab.modules.core.Scilab.(Unknown Source) at org.scilab.modules.javasci.Call_ScilabJNI.Call_ScilabOpen(Native Method) at org.scilab.modules.javasci.Call_Scilab.Call_ScilabOpen(Unknown Source) at org.scilab.modules.javasci.Scilab.open(Unknown Source) at StartUp.main.main(main.java:17) Caused by: java.lang.NullPointerException at java.io.File.(Unknown Source) at org.scilab.modules.commons.ScilabConstants.(Unknown Source) ... 6 more Exception in thread "main" #### JAVA Code#### package StartUp; import org.scilab.modules.javasci.Scilab; import org.scilab.modules.types.ScilabType; import java.io.File; import java.io.FileNotFoundException; public class main { public static void main(String[] args) throws FileNotFoundException{ System.out.println("Starte Programm Pin-Positionsanalyse-Tool V1.0..."); try { Scilab sci = new Scilab(true); // Starts in advanced mode if (sci.open()) { sci.execException(new File("C:/Users/Daniel/Desktop/test.sce")); sci.close(); } else { System.out.println("Could not start Scilab "); } /* Can be improved by other exceptions: AlreadyRunningException, * InitializationException, UndefinedVariableException, * UnknownTypeException, etc */ } catch (org.scilab.modules.javasci.JavasciException e) { System.err.println("An exception occurred: " + e.getLocalizedMessage()); } } } -------------- next part -------------- An HTML attachment was scrubbed... URL: From George.Rasko at microchip.com Tue Feb 7 00:20:14 2017 From: George.Rasko at microchip.com (George.Rasko at microchip.com) Date: Mon, 6 Feb 2017 23:20:14 +0000 Subject: [Scilab-users] ffilt Description Message-ID: <6F5A9736AF0F75478BDC0405E26493249FD14A@CHN-SV-EXMX02.mchp-main.com> Hi. Is there someone out there with more details/understanding about the filter design done by the ffilt command? Specifically, for example, if one does x=ffilt("lp",5,0.1) n the five coefficients are obviously not for a simple "boxcar" filter. Is this a butterworth design? Is there a reference for what this command is actually implementing? n What is the definition of the cutoff frequency for ffilt? If you take the above example and [a,b] = frmag(x,500); plot (a) the first zero of amplitude is around 222 Hz, but the 0.1 cutoff frequency would be at 100 Hz for 1000Hz sampling. Is the cutoff frequency defined as ln(2) of the DC response? n Why are the coefficients not normalized to give a DC response amplitude of 1? Isn't that the standard approach for filter design? Thanks in advance. G -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Wed Feb 8 11:20:20 2017 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Wed, 8 Feb 2017 10:20:20 +0000 Subject: [Scilab-users] Search for a subvector in a vector Message-ID: Hello, I probably missed something obvious but here is my trouble : I have a vector a = 1:6 and want to locate b = [2 3 4] inside a (the result being 2). So I know members() which locate any of the elements of b inside a and vectorfind() which can search a vector inside a matrix. I searched the archive of the list and found topics about Matlab ismember() and locating a phrase in a text. But none of these are convenient. As my vector is rather small, I can do aa = [a(1:$-2) ; a(2:$-1) ; a-3:$)] vectorfind(aa, b, "c") but I wonder if there is a better (vectorised) solution? Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer Sidel Group Sidel Blowing & Services Avenue de la Patrouille de France CS 60627, Octeville-sur-Mer 76059 Le Havre cedex, France Tel: 33(0)2 32 85 89 32 Fax: 33(0)2 32 85 91 17 This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From sgougeon at free.fr Wed Feb 8 14:05:35 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 8 Feb 2017 14:05:35 +0100 Subject: [Scilab-users] Search for a subvector in a vector In-Reply-To: References: Message-ID: <221d22d4-f871-07aa-985f-c3cefe08adc1@free.fr> Hello Christophe, Having the same need, i have recently implemented a vectorized solution, by the way truly extended to hypermatrices (up to now only the first page of hypermatrix was considered and searched in). I am posting it on the CodeReview. I still need a bit of time to update the help page. It shall be available in 6.1, but you can download and use it from the codeReview (will post the URL here just after commiting). Cheers Samuel Le 08/02/2017 ? 11:20, Dang Ngoc Chan, Christophe a ?crit : > Hello, > > I probably missed something obvious but here is my trouble : > I have a vector a = 1:6 > and want to locate b = [2 3 4] inside a (the result being 2). > > So I know members() which locate any of the elements of b inside a > and vectorfind() which can search a vector inside a matrix. > > I searched the archive of the list and found topics about Matlab ismember() > and locating a phrase in a text. > > But none of these are convenient. > > As my vector is rather small, I can do > > aa = [a(1:$-2) ; a(2:$-1) ; a-3:$)] > > vectorfind(aa, b, "c") > > but I wonder if there is a better (vectorised) solution? > > Regards > > -- > Christophe Dang Ngoc Chan > Mechanical calculation engineer > > Sidel Group > Sidel Blowing & Services > Avenue de la Patrouille de France > CS 60627, Octeville-sur-Mer > 76059 Le Havre cedex, France > > > Tel: 33(0)2 32 85 89 32 > Fax: 33(0)2 32 85 91 17 > > > > > This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From sgougeon at free.fr Wed Feb 8 14:28:01 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 8 Feb 2017 14:28:01 +0100 Subject: [Scilab-users] vectorfind() upgrade to search partial matches and in hypermatrices In-Reply-To: References: Message-ID: Here it is: https://codereview.scilab.org/#/c/19055/ Here is a sample with a matrix, and its results. I ended up with hypermatrices. You can test it. m = [ 1 0 0 0 1 0 1 0 1 0 0 1 1 1 1 0 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 1 1 1 0 0 1 1 1 0 1 1 0 0 1 0 0 1 0 1 0 1 0 1 0 0 0 0 0 1 ]; vectorfind(m, [0 0 0 0]) vectorfind(m, [1 0 0 0]) vectorfind(m, [0 1 1 1 0 0 1 1 1 0 1 1 0 0 1]) // With short v vectorfind(m, [1 0 1],"c") vectorfind(m, [1 1 0 0],"r") // With %nan (never match) m(2,2) = %nan; vectorfind(m, [0 %nan 1 0]) // With %inf m(2,2) = %inf; vectorfind(m, [0 %inf 1 0]) --> m = [ > 1 0 0 0 1 0 1 0 1 0 0 1 1 1 1 > 0 0 1 0 0 1 0 1 0 0 0 0 0 0 0 > 0 1 1 1 0 0 1 1 1 0 1 1 0 0 1 > 0 0 1 0 1 0 1 0 1 0 0 0 0 0 1 > ]; --> vectorfind(m, [0 0 0 0]) ans = 10. --> vectorfind(m, [1 0 0 0]) ans = 1. 13. 14. --> vectorfind(m, [0 1 1 1 0 0 1 1 1 0 1 1 0 0 1]) ans = 3. --> // With short v --> vectorfind(m, [1 0 1],"c") ans = 25. 33. 45. 57. --> vectorfind(m,[1 1 0 0],"r") ans = 11. 43. --> // With %nan (never match) --> m(2,2) = %nan; --> vectorfind(m, [0 %nan 1 0]) ans = [] --> // With %inf --> m(2,2) = %inf; --> vectorfind(m, [0 %inf 1 0]) ans = 2. This is a SEP :) Any comments are welcome. Cheers Samuel Le 08/02/2017 ? 11:20, Dang Ngoc Chan, Christophe a ?crit : > Hello, > > I probably missed something obvious but here is my trouble : > I have a vector a = 1:6 > and want to locate b = [2 3 4] inside a (the result being 2). > > So I know members() which locate any of the elements of b inside a > and vectorfind() which can search a vector inside a matrix. > > I searched the archive of the list and found topics about Matlab ismember() > and locating a phrase in a text. > > But none of these are convenient. > > As my vector is rather small, I can do > > aa = [a(1:$-2) ; a(2:$-1) ; a-3:$)] > > vectorfind(aa, b, "c") > > but I wonder if there is a better (vectorised) solution? > > Regards > > -- > Christophe Dang Ngoc Chan > Mechanical calculation engineer > > Sidel Group > Sidel Blowing & Services > Avenue de la Patrouille de France > CS 60627, Octeville-sur-Mer > 76059 Le Havre cedex, France > > > Tel: 33(0)2 32 85 89 32 > Fax: 33(0)2 32 85 91 17 > > > > > This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From Christophe.Dang at sidel.com Wed Feb 8 14:27:09 2017 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Wed, 8 Feb 2017 13:27:09 +0000 Subject: [Scilab-users] {EXT} Re: Search for a subvector in a vector In-Reply-To: <221d22d4-f871-07aa-985f-c3cefe08adc1@free.fr> References: <221d22d4-f871-07aa-985f-c3cefe08adc1@free.fr> Message-ID: Hello, > De : users [mailto:users-bounces at lists.scilab.org] De la part de Samuel Gougeon > Envoy? : mercredi 8 f?vrier 2017 14:06 > > I have recently implemented a vectorized solution > [...] > I am posting it on the CodeReview. > [...] > It shall be available in 6.1, but you can download and use it from the codeReview OK, so I didn't miss anything (-: Thanks for sharing your code, I'll have a look at it. Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer Sidel Group Sidel Blowing & Services Avenue de la Patrouille de France CS 60627, Octeville-sur-Mer 76059 Le Havre cedex, France Tel: 33(0)2 32 85 89 32 Fax: 33(0)2 32 85 91 17 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 lean.navarro at gmail.com Thu Feb 9 10:05:37 2017 From: lean.navarro at gmail.com (leandrognavarro) Date: Thu, 9 Feb 2017 02:05:37 -0700 (MST) Subject: [Scilab-users] problems installing modules Message-ID: <1486631137210-4035457.post@n3.nabble.com> Hello! I have a problem and I don't know how to solve it. When I executed Scilab this message appears. I have just installed the 5.5.2 version for OSX. atomsLoad: The file '/Applications/scilab-5.5.2.app/Contents/MacOS/share/scilab/contrib/quapro/1.1.1/loader.sce' from (quapro - 1.1.1) does not exist or is not read accessible. And the problem is that I cannot execute some commands that I need (I installed the modules 'stixbox' and 'grocer' using the command atomsInstall('stixbox') and the same with the other one. Does anyone know how to solve this problem? Thanks! -- View this message in context: http://mailinglists.scilab.org/problems-installing-modules-tp4035457.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From erhard.glueck.austria at gmail.com Fri Feb 10 15:48:02 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Fri, 10 Feb 2017 07:48:02 -0700 (MST) Subject: [Scilab-users] function with public variables possible? Message-ID: <1486738082885-4035458.post@n3.nabble.com> Hello! In may first exercises with SCILab functions I was disappointed that I cannot see the variables declared and used in the function with Variable Browser. I tried the global statement, but I cannot browse the global variables in the usual way. Is there a way to have all variables public? Thank you Erhy -- View this message in context: http://mailinglists.scilab.org/function-with-public-variables-possible-tp4035458.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From contact at pierre-vuillemin.fr Fri Feb 10 18:09:56 2017 From: contact at pierre-vuillemin.fr (Pierre Vuillemin) Date: Fri, 10 Feb 2017 18:09:56 +0100 Subject: [Scilab-users] Examples of linear optimisation Message-ID: Hi all, I'm developing a 'modeling tool' for easing optimisation in Scilab: the Sopi toolbox At the moment, it supports (dense) linear optimisation problems and I have added the examples from https://wiki.scilab.org/Linear%20Programming%20Examples%20in%20Scilab in the demos. I am quite interested in some feedbacks if you have any. Best regards, Pierre Vuillemin -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim at wescottdesign.com Fri Feb 10 19:01:30 2017 From: tim at wescottdesign.com (Tim Wescott) Date: Fri, 10 Feb 2017 10:01:30 -0800 Subject: [Scilab-users] function with public variables possible? In-Reply-To: <1486738082885-4035458.post@n3.nabble.com> References: <1486738082885-4035458.post@n3.nabble.com> Message-ID: <1486749690.4555.145.camel@wescottdesign.com> What exactly do you want? Are you trying to modify global variables from within a function? Are you trying to pass values from the function to the outside world? Are you trying to use (but not modify) global variables from within a function? Or do you disagree with the way that the variable browser displays variables? On Fri, 2017-02-10 at 07:48 -0700, Erhy wrote: > Hello! > In may first exercises with SCILab functions I was disappointed that > I cannot see the variables declared and used in the function with > Variable > Browser. > > I tried the global statement, but I cannot browse the global > variables in > the usual way. > > Is there a way to have all variables public? > > Thank you > Erhy > > > > > > -- > View this message in context: http://mailinglists.scilab.org/function > -with-public-variables-possible-tp4035458.html > Sent from the Scilab users - Mailing Lists Archives mailing list > archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From tim at wescottdesign.com Fri Feb 10 19:40:43 2017 From: tim at wescottdesign.com (Tim Wescott) Date: Fri, 10 Feb 2017 10:40:43 -0800 Subject: [Scilab-users] function with public variables possible? In-Reply-To: <1486738082885-4035458.post@n3.nabble.com> References: <1486738082885-4035458.post@n3.nabble.com> Message-ID: <1486752043.4555.147.camel@wescottdesign.com> Sorry -- just re-read your question and realized what you actually meant. I just double-checked this -- if you hit a breakpoint inside a function, the variable browser shows that functions variables. ?Once you exit the function, the variables that only exist within the function disappear. On Fri, 2017-02-10 at 07:48 -0700, Erhy wrote: > Hello! > In may first exercises with SCILab functions I was disappointed that > I cannot see the variables declared and used in the function with > Variable > Browser. > > I tried the global statement, but I cannot browse the global > variables in > the usual way. > > Is there a way to have all variables public? > > Thank you > Erhy > > > > > > -- > View this message in context: http://mailinglists.scilab.org/function > -with-public-variables-possible-tp4035458.html > Sent from the Scilab users - Mailing Lists Archives mailing list > archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From Christophe.Dang at sidel.com Fri Feb 10 16:35:05 2017 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Fri, 10 Feb 2017 15:35:05 +0000 Subject: [Scilab-users] {EXT} function with public variables possible? In-Reply-To: <1486738082885-4035458.post@n3.nabble.com> References: <1486738082885-4035458.post@n3.nabble.com> Message-ID: Hello, > De : Erhy > Envoy? : vendredi 10 f?vrier 2017 15:48 > > Is there a way to have all variables public? Do you mean something like who() ? https://help.scilab.org/docs/6.0.0/en_US/who.html Hope this helps Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From erhard.glueck.austria at gmail.com Fri Feb 10 22:30:46 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Fri, 10 Feb 2017 14:30:46 -0700 (MST) Subject: [Scilab-users] function with public variables possible? In-Reply-To: <1486752043.4555.147.camel@wescottdesign.com> References: <1486738082885-4035458.post@n3.nabble.com> <1486752043.4555.147.camel@wescottdesign.com> Message-ID: <1486762246374-4035465.post@n3.nabble.com> Tim Wescott wrote > if you hit a breakpoint inside a > function, the variable browser shows that functions variables. ?Once > you exit the function, the variables that only exist within the > function disappear. Thank you, I thinks this helps. Erhy -- View this message in context: http://mailinglists.scilab.org/function-with-public-variables-possible-tp4035458p4035465.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From pagoulid at uth.gr Sat Feb 11 21:49:39 2017 From: pagoulid at uth.gr (pagoulid) Date: Sat, 11 Feb 2017 13:49:39 -0700 (MST) Subject: [Scilab-users] scilab doesn't recognize function Message-ID: <1486846179464-4035466.post@n3.nabble.com> I work with scilab on xubuntu and i have a little problem...Although i had worked with scilab before ,I'm a little inexperienced with signal processing coding but i'm trying.The problem is that scilab doesn't recognize dft() function while other functions like fft() or convol() or syslin() are recognized .I had searched everywhere for that but everywhere i look it says that dft() is a given function and i don't know what to do!!! Any help?? -- View this message in context: http://mailinglists.scilab.org/scilab-doesn-t-recognize-function-tp4035466.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Sat Feb 11 21:58:30 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 11 Feb 2017 21:58:30 +0100 Subject: [Scilab-users] scilab doesn't recognize function In-Reply-To: <1486846179464-4035466.post@n3.nabble.com> References: <1486846179464-4035466.post@n3.nabble.com> Message-ID: Hello Pagoulid, Le 11/02/2017 ? 21:49, pagoulid a ?crit : > I work with scilab on xubuntu and i have a little problem...Although i had > worked with scilab before ,I'm a little inexperienced with signal processing > coding but i'm trying.The problem is that scilab doesn't recognize dft() > function while other functions like fft() or convol() or syslin() are > recognized .I had searched everywhere for that but everywhere i look it says > that dft() is a given function and i don't know what to do!!! Any help?? Scilab 5.4.1 was the last Scilab function including dft(). This function was removed from Scilab 5.5. fft() does the same. Please see the last example of the fft() help page. BR Samuel Gougeon From erhard.glueck.austria at gmail.com Sun Feb 12 23:34:17 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Sun, 12 Feb 2017 15:34:17 -0700 (MST) Subject: [Scilab-users] function with more result variables, how? Message-ID: <1486938857336-4035470.post@n3.nabble.com> Hello! I declared a function e.g. function [ DifT, FByReal, FR ] = MyXYZ(koeff) DifT = 33.0; FByReal = [ 1.0 , 55.7 ]; FR = [ 1 2 3; 4 5 6; 7 8 9; 10 -11 -12 ]; endfunction but only the first result is delivered. In help: stands for the output argument list. How to have more result variables with different type*?* Thank you Erhy -- View this message in context: http://mailinglists.scilab.org/function-with-more-result-variables-how-tp4035470.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Sun Feb 12 23:42:48 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 12 Feb 2017 23:42:48 +0100 Subject: [Scilab-users] function with more result variables, how? In-Reply-To: <1486938857336-4035470.post@n3.nabble.com> References: <1486938857336-4035470.post@n3.nabble.com> Message-ID: Le 12/02/2017 ? 23:34, Erhy a ?crit : > Hello! > I declared a function > e.g. > function [ DifT, FByReal, FR ] = MyXYZ(koeff) > DifT = 33.0; FByReal = [ 1.0 , 55.7 ]; FR = [ 1 2 3; 4 5 6; 7 8 9; 10 -11 > -12 ]; > endfunction > > but only the first result is delivered. > > In help: stands for the output argument list. > > How to have more result variables with different type*?* > > Thank you > Erhy I get: --> function [ DifT, FByReal, FR ] = MyXYZ(koeff) > DifT = 33.0; > FByReal = [ 1.0 , 55.7 ]; > FR = [ 1 2 3; 4 5 6; 7 8 9; 10 -11 -12 ]; > endfunction --> [a,b,c] = MyXYZ(1) c = 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. -11. -12. b = 1. 55.7 a = 33. All is right. From paul.bignier at scilab-enterprises.com Mon Feb 13 09:05:47 2017 From: paul.bignier at scilab-enterprises.com (Paul Bignier) Date: Mon, 13 Feb 2017 09:05:47 +0100 Subject: [Scilab-users] Examples of linear optimisation In-Reply-To: References: Message-ID: Hello Pierre, Just a remark: you may want to make Sopi available for Scilab 6.0 (you can download a nightly build ). "-->exec builder.sce" yielded an error on function save() as it takes strings as arguments now. Best regards, Paul On 02/10/2017 06:09 PM, Pierre Vuillemin wrote: > > Hi all, > > I'm developing a 'modeling tool' for easing optimisation in Scilab: > the Sopi toolbox > > At the moment, it supports (dense) linear optimisation problems and I > have added the examples from > > https://wiki.scilab.org/Linear%20Programming%20Examples%20in%20Scilab > > in the demos. > > I am quite interested in some feedbacks if you have any. > > > Best regards, > > Pierre Vuillemin > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Paul BIGNIER Development engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.68 http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From contact at pierre-vuillemin.fr Mon Feb 13 11:38:42 2017 From: contact at pierre-vuillemin.fr (Pierre Vuillemin) Date: Mon, 13 Feb 2017 11:38:42 +0100 Subject: [Scilab-users] Examples of linear optimisation In-Reply-To: References: Message-ID: Hi Paul, You are right, given the timing, this seems to be a good idea to make it work on Scilab 6.0. I'll do that. Thank you, Best regards, Pierre Le 13.02.2017 09:05, Paul Bignier a ?crit : > Hello Pierre, > > Just a remark: you may want to make Sopi available for Scilab 6.0 (you can download a nightly build [2]). > "-->exec builder.sce" yielded an error on function save() as it takes strings as arguments now. > > Best regards, > Paul > > On 02/10/2017 06:09 PM, Pierre Vuillemin wrote: > >> Hi all, >> >> I'm developing a 'modeling tool' for easing optimisation in Scilab: the Sopi toolbox [1] >> >> At the moment, it supports (dense) linear optimisation problems and I have added the examples from >> >> https://wiki.scilab.org/Linear%20Programming%20Examples%20in%20Scilab >> >> in the demos. >> >> I am quite interested in some feedbacks if you have any. >> >> Best regards, >> >> Pierre Vuillemin >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > -- > Paul BIGNIER > Development engineer > ----------------------------------------------------------- > Scilab Enterprises > 143bis rue Yves Le Coz - 78000 Versailles, France > Phone: +33.1.80.77.04.68 > http://www.scilab-enterprises.com > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users Links: ------ [1] https://atoms.scilab.org/toolboxes/sopi/0.1.2 [2] http://www.scilab.org/en/development/nightly_builds/branch60 -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniel.neutzler at haw-hamburg.de Mon Feb 13 13:06:33 2017 From: daniel.neutzler at haw-hamburg.de (Daniel Neutzler) Date: Mon, 13 Feb 2017 13:06:33 +0100 Subject: [Scilab-users] Question about javasci V2 In-Reply-To: References: Message-ID: <00be2b3f-fce6-db80-ad63-ce6b202128ff@haw-hamburg.de> Hello Pierre, thank you for your answer. It is nice to hear that my Problem is probably a Bug. I'm not sure how to use your example. Which Libs do I need for it or may you have a simple example to use it? I'm sorry, my Java knowlegde is restricted (Beginner). Thank You for your Help, Daniel Neutzler Am 04.02.2017 um 19:29 schrieb Perrichon: > > Hello Daniel > > I?ve already met your problem one year ago, and for me it is really a bug. > > I work with scilab x64 5.5.2, netbeans 7.01, on W7 or W10 platform. > > I?ve sovled it in my application, so I?m just able to propose parts of > code. > > I?ve delay the 2 instructions *Scilab sci = new Scilab(true)* and if > (sci.open()) {, by creating a ScilabManager class, ? and a thread > class named Idle > > Part of ScilabManager (also note the public static void OpenScilab()) > > public class ScilabManager { > > public static Scilab sci; //Driver Scilab > > public static boolean bScilabOpen; > > public static boolean InitScilab; > > public static Fifo FifoScilab; > > private static TListeFifo SciJob; > > static ScilabError TErrorScilab; > > public static File ScilabFile; > > private static int dim = 500; > > public static String [] Script; > > private static int iScript; > > public static Configuration AppConfiguration; > > public static Log LogScilab; > > public static int NumGraph=0; > > ScilabManager() { > > try { > > sci = new Scilab(true); > > InitScilab=true; > > } catch (JavasciException.InitializationException ex) { > > Logger.getLogger(ScilabManager.class.getName()).log(Level.SEVERE, > null, ex); > > } > > } > > @SuppressWarnings("CallToThreadDumpStack") > > public static void OpenScilab() { > > try { > > bScilabOpen=sci.open(); > > } catch (JavasciException ex) { > > ex.printStackTrace(); > > } > > if (bScilabOpen) System.out.println("\nScilab est ouvert\n"); > > else System.out.println("\nErreur ouverture Scilab\n"); > > ScilabError.ClearScilabError(); > > try { > > // Initialisation et chargements des fonctions Scilab > > //--------------------------------------------------- > > AppConfiguration = new Configuration(); > > } catch (FileNotFoundException ex) { > > Logger.getLogger(ScilabManager.class.getName()).log(Level.SEVERE, > null, ex); > > } catch (IOException ex) { > > Logger.getLogger(ScilabManager.class.getName()).log(Level.SEVERE, > null, ex); > > } catch (JavasciException ex) { > > Logger.getLogger(ScilabManager.class.getName()).log(Level.SEVERE, > null, ex); > > } > > try { > > // Initialisation du fichier de log out (Traces commandes Scilab) > > //-------------------------------------------------------------- > > LogScilab = new Log(); > > OptsimView.SetLogFile(); > > } catch (FileNotFoundException ex) { > > ex.printStackTrace(); > > } catch (IOException ex) { > > ex.printStackTrace(); > > } > > Script = new String[dim]; > > Now note part of Idle task : > > public class Idle extends Thread { > > protected volatile boolean IdleRunning = true; > > public static boolean bCloseIdle=false; > > private static int Count=1; > > private static int setGraphe=0; > > private static JTextField TF=null; > > private static Timer bTimer; > > private static JLabel AnimationLabel; > > private static Icon idleicone; > > private int ThreadNumber; > > Idle (JTextField TFi, Timer busyIconTimer, > > JLabel statusAnimationLabel, Icon icone) { > > TF=TFi; > > bTimer=busyIconTimer; > > AnimationLabel=statusAnimationLabel; > > idleicone=icone; > > this.ThreadNumber=Count++; > > } > > @Override > > public synchronized void run() { > > boolean bTest; > > if (ScilabManager.InitScilab) { > > ScilabManager.OpenScilab(); > > } > > ScilabManager.sci.exec("aPPeScilabJavasciv2=1;"); > > while (IdleRunning) { ?etc > > So instructions *Scilab sci = new Scilab(true)* and if (sci.open are > delayed. > > This is the only solution I?ve found. After that Scilab well run with > Java netbeans and javasci2. > > Also well note that my program doesn?t work with Scilab 6.0.0 b2 at > compile time and see : > > http://bugzilla.scilab.org/show_bug.cgi?id=14626 > > Hope it helps you > > Sincerely > > Pierre > > *De :*users [mailto:users-bounces at lists.scilab.org] *De la part de* > Daniel Neutzler > *Envoy? :* mardi 31 janvier 2017 13:15 > *? :* users at lists.scilab.org > *Objet :* [Scilab-users] Question about javasci V2 > > Hi, I am using Scilab 5.5.2 and trying to open a Scilab script from > Java. Therfore I followed the documentation: Compute and run with > javasci v2. > > I use Eclipse to compile and run. It works, but I want now to open it > in "advanced mode" to get grahpics > (*Scilab sci = new Scilab(true);*). If i do it, I get a compile Error. > What's wrong ? > Code and Error Plot out see below. > > Thank You for your Help, > Daniel Neutzler > > ####Error#### > java.lang.ExceptionInInitializerError > at org.scilab.modules.commons.xml.XConfiguration.(Unknown > Source) > at org.scilab.modules.core.Scilab.(Unknown Source) > at > org.scilab.modules.javasci.Call_ScilabJNI.Call_ScilabOpen(Native Method) > at org.scilab.modules.javasci.Call_Scilab.Call_ScilabOpen(Unknown > Source) > at org.scilab.modules.javasci.Scilab.open(Unknown Source) > at StartUp.main.main(main.java:17) > Caused by: java.lang.NullPointerException > at java.io.File.(Unknown Source) > at org.scilab.modules.commons.ScilabConstants.(Unknown Source) > ... 6 more > Exception in thread "main" > > #### JAVA Code#### > > package StartUp; > *import org.scilab.modules.javasci.Scilab; > import org.scilab.modules.types.ScilabType;* > import java.io.File; > import java.io.FileNotFoundException; > > public class main { > > public static void main(String[] args) throws FileNotFoundException{ > System.out.println("Starte Programm Pin-Positionsanalyse-Tool > V1.0..."); > > try { > *Scilab sci = new Scilab(true); // Starts in advanced mode * > if (sci.open()) { > sci.execException(new > File("C:/Users/Daniel/Desktop/test.sce")); > sci.close(); > } else { > System.out.println("Could not start Scilab "); > } > /* Can be improved by other exceptions: AlreadyRunningException, > * InitializationException, UndefinedVariableException, > * UnknownTypeException, etc > */ > } catch (org.scilab.modules.javasci.JavasciException e) { > System.err.println("An exception occurred: " + > e.getLocalizedMessage()); > } > } > } > -------------- next part -------------- An HTML attachment was scrubbed... URL: From erhard.glueck.austria at gmail.com Mon Feb 13 14:25:30 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Mon, 13 Feb 2017 06:25:30 -0700 (MST) Subject: [Scilab-users] function with more result variables, how? In-Reply-To: References: <1486938857336-4035470.post@n3.nabble.com> Message-ID: <1486992330526-4035476.post@n3.nabble.com> Thank you Samuel! Erhy -- View this message in context: http://mailinglists.scilab.org/function-with-more-result-variables-how-tp4035470p4035476.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From rei.listas at yahoo.com Mon Feb 13 19:46:10 2017 From: rei.listas at yahoo.com (Reinaldo Golmia Dante) Date: Mon, 13 Feb 2017 18:46:10 +0000 (UTC) Subject: [Scilab-users] C/C++ compiler for Mac OS Sierra References: <1250060948.3619555.1487011570813.ref@mail.yahoo.com> Message-ID: <1250060948.3619555.1487011570813@mail.yahoo.com> Hi Scilab users, I would like to install only a C/C++ compiler for Mac OS Sierra. I had installed Xcode, but it was very heavy (about 4.5GB) for the SMD disk in my MacBook Air. I'd like to install Eclipse IDE C++ to program C/C++, but I think it requires a C/C++ compiler, doesn't it? Thank you in advance. Best,Reinaldo. -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.bignier at scilab-enterprises.com Tue Feb 14 09:03:49 2017 From: paul.bignier at scilab-enterprises.com (Paul Bignier) Date: Tue, 14 Feb 2017 09:03:49 +0100 Subject: [Scilab-users] C/C++ compiler for Mac OS Sierra In-Reply-To: <1250060948.3619555.1487011570813@mail.yahoo.com> References: <1250060948.3619555.1487011570813.ref@mail.yahoo.com> <1250060948.3619555.1487011570813@mail.yahoo.com> Message-ID: <781bd288-44fd-866f-2804-3733c4aa78b3@scilab-enterprises.com> Hello Reinaldo, You don't have to install the whole Xcode to have gcc (pointing to clang) available, you can simply install the command-line tools . Regards, Paul On 02/13/2017 07:46 PM, Reinaldo Golmia Dante wrote: > Hi Scilab users, > > I would like to install only a C/C++ compiler for Mac OS Sierra. I had > installed Xcode, but it was very heavy (about 4.5GB) for the SMD disk > in my MacBook Air. I'd like to install Eclipse IDE C++ to program > C/C++, but I think it requires a C/C++ compiler, doesn't it? > > Thank you in advance. > > Best, > Reinaldo. > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Paul BIGNIER Development engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.68 http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From erhard.glueck.austria at gmail.com Tue Feb 14 13:05:56 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Tue, 14 Feb 2017 05:05:56 -0700 (MST) Subject: [Scilab-users] plot with redimensiond X axis, how? Message-ID: <1487073956548-4035485.post@n3.nabble.com> e.g. course = [ 1 0.5 2 3 0.75 0.3 0.4 0.9 0.4 0.5 ]'; y = 2 : size(course,'r') - 1; // find indices of minimums in course Ixs = 1 + find( course( y - 1 ) > course( y ) & course( y + 1 ) > course( y ) ); I want to plot course(Ixs) with X axis redimensioned to 1 : size(course,'r') Thank you for help Erhy -- View this message in context: http://mailinglists.scilab.org/plot-with-redimensiond-X-axis-how-tp4035485.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Christophe.Dang at sidel.com Tue Feb 14 13:16:21 2017 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Tue, 14 Feb 2017 12:16:21 +0000 Subject: [Scilab-users] {EXT} plot with redimensiond X axis, how? In-Reply-To: <1487073956548-4035485.post@n3.nabble.com> References: <1487073956548-4035485.post@n3.nabble.com> Message-ID: Hello, > De : Erhy > Envoy? : mardi 14 f?vrier 2017 13:06 > >I want to plot course(Ixs) with X axis redimensioned to 1 : size(course,'r') Something like plot(course(Ixs)) axis = gca(); axis.data_bounds(1, 1) = 1; axis.data_bounds(2, 1) = size(course, "r"); ? -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From sgougeon at free.fr Tue Feb 14 14:07:03 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 14 Feb 2017 14:07:03 +0100 Subject: [Scilab-users] plot with redimensiond X axis, how? In-Reply-To: <1487073956548-4035485.post@n3.nabble.com> References: <1487073956548-4035485.post@n3.nabble.com> Message-ID: Le 14/02/2017 ? 13:05, Erhy a ?crit : > e.g. > course = [ 1 0.5 2 3 0.75 0.3 0.4 0.9 0.4 0.5 ]'; > y = 2 : size(course,'r') - 1; > // find indices of minimums in course > Ixs = 1 + find( course( y - 1 ) > course( y ) & course( y + 1 ) > course( y > ) ); > > I want to plot course(Ixs) with X axis redimensioned to 1 : size(course,'r') "X axis redimensioned to 1": Do you mean: ranging from 0 to 1, or plotting a single component (=> which kind of plot? With a marker?), or..? From erhard.glueck.austria at gmail.com Tue Feb 14 16:06:06 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Tue, 14 Feb 2017 08:06:06 -0700 (MST) Subject: [Scilab-users] plot with redimensiond X axis, how? In-Reply-To: References: <1487073956548-4035485.post@n3.nabble.com> Message-ID: <1487084766939-4035488.post@n3.nabble.com> Hello Samuel, Christophe's method is nearly acceptabel for me, so you see what I mean. But I miss the value with index 9 in the plot modified by Christophe's method. Erhy -- View this message in context: http://mailinglists.scilab.org/plot-with-redimensiond-X-axis-how-tp4035485p4035488.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Tue Feb 14 16:16:44 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 14 Feb 2017 16:16:44 +0100 Subject: [Scilab-users] plot with redimensiond X axis, how? In-Reply-To: <1487084766939-4035488.post@n3.nabble.com> References: <1487073956548-4035485.post@n3.nabble.com> <1487084766939-4035488.post@n3.nabble.com> Message-ID: <37f7eefb-405e-7379-dd29-04fba50bc726@free.fr> Le 14/02/2017 ? 16:06, Erhy a ?crit : > Hello Samuel, > Christophe's method is nearly acceptabel for me, > so you see what I mean. I caught it: you meant "X axis redimensioned to (1:size(course,'r')) ! Why not simply plot(course) ?? It ranges from 1 to 10. From sgougeon at free.fr Tue Feb 14 16:27:48 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 14 Feb 2017 16:27:48 +0100 Subject: [Scilab-users] plot with redimensiond X axis, how? In-Reply-To: <37f7eefb-405e-7379-dd29-04fba50bc726@free.fr> References: <1487073956548-4035485.post@n3.nabble.com> <1487084766939-4035488.post@n3.nabble.com> <37f7eefb-405e-7379-dd29-04fba50bc726@free.fr> Message-ID: <28dbeb17-907a-846f-2c2c-2afb97e85d9a@free.fr> Le 14/02/2017 ? 16:16, Samuel Gougeon a ?crit : > > I caught it: you meant "X axis redimensioned to (1:size(course,'r')) ! > Why not simply > plot(course) > ?? > It ranges from 1 to 10. Please ignore this. You wish plot(course(Ixs)) not plot(course). Le 14/02/2017 ? 16:06, Erhy a ?crit : > But I miss the value with index 9 in the plot modified by Christophe's method. And with clf plot(Ixs,course(Ixs)) ax = gca(); ax.data_bounds(1:2) = [1 length(course)]; ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From erhard.glueck.austria at gmail.com Tue Feb 14 17:38:26 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Tue, 14 Feb 2017 09:38:26 -0700 (MST) Subject: [Scilab-users] plot with redimensiond X axis, how? In-Reply-To: <28dbeb17-907a-846f-2c2c-2afb97e85d9a@free.fr> References: <1487073956548-4035485.post@n3.nabble.com> <1487084766939-4035488.post@n3.nabble.com> <37f7eefb-405e-7379-dd29-04fba50bc726@free.fr> <28dbeb17-907a-846f-2c2c-2afb97e85d9a@free.fr> Message-ID: <1487090306897-4035491.post@n3.nabble.com> Samuel GOUGEON wrote > clf > plot(Ixs,course(Ixs)) > ax = gca(); > ax.data_bounds(1:2) = [1 length(course)]; Thank you Christophe ans Samuel*!* it works! Between my experiment*:* coursePn = ones( course ) .* %nan ; coursePn( Ixs ) = course( Ixs ) ; plot( coursePn , 'r*') // but without lines between the points -- View this message in context: http://mailinglists.scilab.org/plot-with-redimensiond-X-axis-how-tp4035485p4035491.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From clement.david at scilab-enterprises.com Wed Feb 15 09:57:12 2017 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Wed, 15 Feb 2017 09:57:12 +0100 Subject: [Scilab-users] C/C++ compiler for Mac OS Sierra In-Reply-To: <781bd288-44fd-866f-2804-3733c4aa78b3@scilab-enterprises.com> References: <1250060948.3619555.1487011570813.ref@mail.yahoo.com> <1250060948.3619555.1487011570813@mail.yahoo.com> <781bd288-44fd-866f-2804-3733c4aa78b3@scilab-enterprises.com> Message-ID: <1487149032.2114.2.camel@scilab-enterprises.com> Hi Reinaldo and welcome, Yes Paul is right and just for completness (and CC-ing dev) : We currently do not require an IDE to build Scilab ; you can program using vim / emacs / notepad++, gcc / clang / msbuild. As common IDEs provide a way to import an exiting code base as a new project, we also do not provide project files (other than the VisualStudio ones required by msbuild). PS: I personally use Netbeans and/or Eclipse JDT for Java programming. Eclipse CDT and/or Vim (with YouCompleteMe) for C/C++ programming. -- Cl?ment Le mardi 14 f?vrier 2017 ? 09:03 +0100, Paul Bignier a ?crit?: > > Hello Reinaldo, > > You don't have to install the whole Xcode to have gcc (pointing to clang) available, you can > simply install the command-line tools. > > Regards, > Paul > > On 02/13/2017 07:46 PM, Reinaldo Golmia Dante wrote: > > Hi Scilab users, > > > > I would like to install only a C/C++ compiler for Mac OS Sierra. I had installed Xcode, but it > > was very heavy (about 4.5GB) for the SMD disk in my MacBook Air. I'd like to install Eclipse IDE > > C++ to program C/C++, but I think it requires a C/C++ compiler, doesn't it? > > > > Thank you in advance. > > > > Best, > > Reinaldo. > > > > > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > ? > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From perrichon.pierre at wanadoo.fr Wed Feb 15 11:21:47 2017 From: perrichon.pierre at wanadoo.fr (Perrichon) Date: Wed, 15 Feb 2017 11:21:47 +0100 Subject: [Scilab-users] Question about javasci V2 In-Reply-To: <00be2b3f-fce6-db80-ad63-ce6b202128ff@haw-hamburg.de> References: <00be2b3f-fce6-db80-ad63-ce6b202128ff@haw-hamburg.de> Message-ID: Hello Daniel, Here is a basic program I?ve realized under netbeans 7.01 It works with scilab x64 windows 7 or 10, scilab 5.5.2 ; not with 6.0.0 b2 Also here are the libraries to incilude in your java project (eclipse if i well understood) : org.scilab.modules.jvm.jar org.scilab.modules.javasci.jar org.scilab.modules.core.jar org.scilab.modules.types.jar JDK1.8 It works with jdk1.8.0_40 //---------------------------------------------------------------------------------------------------------------------------------------------------- // Java program and main program /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package testscilabv2; import org.scilab.modules.javasci.Scilab; import org.scilab.modules.types.ScilabType; import org.scilab.modules.types.ScilabDouble; /** * * @author pierre */ public class TestScilabV2 { static boolean bgraph; /** * @param args the command line arguments */ public static void main(String[] args) { try { Scilab sci = new Scilab(true); if (sci.open()) { /* Send a Scilab instruction */ sci.exec("foo = [ 2, 4, 6; 4, 0, 10; 6, 10, 12 ];"); /* Retrieve the variable foo */ ScilabType foo = sci.get("foo"); /* Display the variable */ System.out.println("Representation of : " + foo); /* Get the data and retrieve the 2,2 value */ double[][] aReal = ((ScilabDouble)foo).getRealPart(); System.out.println("foo[1,1] = " + aReal[1][1]); /* Change the value of 2,2 */ aReal[1][1] = Math.PI; /* Create a new variable */ ScilabDouble bar = new ScilabDouble(aReal); /* Send it to Scilab */ sci.put("bar", bar); /* Display it through Scilab */ sci.exec("disp(bar)"); sci.exec("about();"); sci.exec("plot3d();"); System.out.println("\nFermer le grahique pour terminer le programme de test..."); do { // Boucle tant que le graphique n'a pas ?t? referm? //------------------------------------------------- bgraph=sci.isGraphicOpened(); sci.exec("aPPeScilabJavasciv2=1;"); }while (bgraph); sci.close(); System.out.println("...Fin du programme de test"); } else { System.out.println("Could not start Scilab "); } /* Can be improved by other exceptions: AlreadyRunningException, * InitializationException, UndefinedVariableException, * UnknownTypeException, etc */ } catch (org.scilab.modules.javasci.JavasciException e) { System.err.println("An exception occurred: " + e.getLocalizedMessage()); } } } De : Daniel Neutzler [mailto:daniel.neutzler at haw-hamburg.de] Envoy? : lundi 13 f?vrier 2017 13:07 ? : Perrichon ; 'Users mailing list for Scilab' Objet : Re: [Scilab-users] Question about javasci V2 Hello Pierre, thank you for your answer. It is nice to hear that my Problem is probably a Bug. I'm not sure how to use your example. Which Libs do I need for it or may you have a simple example to use it? I'm sorry, my Java knowlegde is restricted (Beginner). Thank You for your Help, Daniel Neutzler Am 04.02.2017 um 19:29 schrieb Perrichon: Hello Daniel I?ve already met your problem one year ago, and for me it is really a bug. I work with scilab x64 5.5.2, netbeans 7.01, on W7 or W10 platform. I?ve sovled it in my application, so I?m just able to propose parts of code. I?ve delay the 2 instructions Scilab sci = new Scilab(true) and if (sci.open()) {, by creating a ScilabManager class, ? and a thread class named Idle Part of ScilabManager (also note the public static void OpenScilab()) public class ScilabManager { public static Scilab sci; //Driver Scilab public static boolean bScilabOpen; public static boolean InitScilab; public static Fifo FifoScilab; private static TListeFifo SciJob; static ScilabError TErrorScilab; public static File ScilabFile; private static int dim = 500; public static String [] Script; private static int iScript; public static Configuration AppConfiguration; public static Log LogScilab; public static int NumGraph=0; ScilabManager() { try { sci = new Scilab(true); InitScilab=true; } catch (JavasciException.InitializationException ex) { Logger.getLogger(ScilabManager.class.getName()).log(Level.SEVERE, null, ex); } } @SuppressWarnings("CallToThreadDumpStack") public static void OpenScilab() { try { bScilabOpen=sci.open(); } catch (JavasciException ex) { ex.printStackTrace(); } if (bScilabOpen) System.out.println("\nScilab est ouvert\n"); else System.out.println("\nErreur ouverture Scilab\n"); ScilabError.ClearScilabError(); try { // Initialisation et chargements des fonctions Scilab //--------------------------------------------------- AppConfiguration = new Configuration(); } catch (FileNotFoundException ex) { Logger.getLogger(ScilabManager.class.getName()).log(Level.SEVERE, null, ex); } catch (IOException ex) { Logger.getLogger(ScilabManager.class.getName()).log(Level.SEVERE, null, ex); } catch (JavasciException ex) { Logger.getLogger(ScilabManager.class.getName()).log(Level.SEVERE, null, ex); } try { // Initialisation du fichier de log out (Traces commandes Scilab) //-------------------------------------------------------------- LogScilab = new Log(); OptsimView.SetLogFile(); } catch (FileNotFoundException ex) { ex.printStackTrace(); } catch (IOException ex) { ex.printStackTrace(); } Script = new String[dim]; Now note part of Idle task : public class Idle extends Thread { protected volatile boolean IdleRunning = true; public static boolean bCloseIdle=false; private static int Count=1; private static int setGraphe=0; private static JTextField TF=null; private static Timer bTimer; private static JLabel AnimationLabel; private static Icon idleicone; private int ThreadNumber; Idle (JTextField TFi, Timer busyIconTimer, JLabel statusAnimationLabel, Icon icone) { TF=TFi; bTimer=busyIconTimer; AnimationLabel=statusAnimationLabel; idleicone=icone; this.ThreadNumber=Count++; } @Override public synchronized void run() { boolean bTest; if (ScilabManager.InitScilab) { ScilabManager.OpenScilab(); } ScilabManager.sci.exec("aPPeScilabJavasciv2=1;"); while (IdleRunning) { ?etc So instructions Scilab sci = new Scilab(true) and if (sci.open are delayed. This is the only solution I?ve found. After that Scilab well run with Java netbeans and javasci2. Also well note that my program doesn?t work with Scilab 6.0.0 b2 at compile time and see : http://bugzilla.scilab.org/show_bug.cgi?id=14626 Hope it helps you Sincerely Pierre De : users [mailto:users-bounces at lists.scilab.org] De la part de Daniel Neutzler Envoy? : mardi 31 janvier 2017 13:15 ? : users at lists.scilab.org Objet : [Scilab-users] Question about javasci V2 Hi, I am using Scilab 5.5.2 and trying to open a Scilab script from Java. Therfore I followed the documentation: Compute and run with javasci v2. I use Eclipse to compile and run. It works, but I want now to open it in "advanced mode" to get grahpics (Scilab sci = new Scilab(true);). If i do it, I get a compile Error. What's wrong ? Code and Error Plot out see below. Thank You for your Help, Daniel Neutzler ####Error#### java.lang.ExceptionInInitializerError at org.scilab.modules.commons.xml.XConfiguration.(Unknown Source) at org.scilab.modules.core.Scilab.(Unknown Source) at org.scilab.modules.javasci.Call_ScilabJNI.Call_ScilabOpen(Native Method) at org.scilab.modules.javasci.Call_Scilab.Call_ScilabOpen(Unknown Source) at org.scilab.modules.javasci.Scilab.open(Unknown Source) at StartUp.main.main(main.java:17) Caused by: java.lang.NullPointerException at java.io.File.(Unknown Source) at org.scilab.modules.commons.ScilabConstants.(Unknown Source) ... 6 more Exception in thread "main" #### JAVA Code#### package StartUp; import org.scilab.modules.javasci.Scilab; import org.scilab.modules.types.ScilabType; import java.io.File; import java.io.FileNotFoundException; public class main { public static void main(String[] args) throws FileNotFoundException{ System.out.println("Starte Programm Pin-Positionsanalyse-Tool V1.0..."); try { Scilab sci = new Scilab(true); // Starts in advanced mode if (sci.open()) { sci.execException(new File("C:/Users/Daniel/Desktop/test.sce")); sci.close(); } else { System.out.println("Could not start Scilab "); } /* Can be improved by other exceptions: AlreadyRunningException, * InitializationException, UndefinedVariableException, * UnknownTypeException, etc */ } catch (org.scilab.modules.javasci.JavasciException e) { System.err.println("An exception occurred: " + e.getLocalizedMessage()); } } } -------------- next part -------------- An HTML attachment was scrubbed... URL: From yann.debray at scilab-enterprises.com Wed Feb 15 16:19:11 2017 From: yann.debray at scilab-enterprises.com (Scilab Team) Date: Wed, 15 Feb 2017 16:19:11 +0100 Subject: [Scilab-users] Scilab 6 Release Message-ID: <58A4716F.9070506@scilab-enterprises.com> Dear Scilab users, We are very happy to announce the release of Scilab 6.0.0. The Scilab Team invested significant development efforts for the past years in order to release Scilab 6. The goal with Scilab 6 is to address technological evolutions and new needs in terms of modeling and simulation from the scientific & engineering community. This led our team to completely redevelop the computation core of Scilab in order to build a solid base combining performance and evolutivity. The new aspects of Scilab 6 worth notifying are the following: * New language parser & new core, * New utilities for development productivity, * Xcos block diagram improvement, * Newsfeed - a communication channel with the users Download it on Scilab.org Scientifically yours -- The Scilab Team -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniel.neutzler at haw-hamburg.de Thu Feb 16 08:03:27 2017 From: daniel.neutzler at haw-hamburg.de (Daniel Neutzler) Date: Thu, 16 Feb 2017 08:03:27 +0100 Subject: [Scilab-users] Question about javasci V2 In-Reply-To: References: <00be2b3f-fce6-db80-ad63-ce6b202128ff@haw-hamburg.de> Message-ID: <63ec49fa-ad8f-d4af-cb44-563eb902d29e@haw-hamburg.de> Hello Pierre, I understand your Example. I can run it if I change it to Scilab sci=new Scilab(false) without graphics. How do I use the thread class Idle and the ScilabManager Class with the Example to make it run ? Like that ? ... public class Main { static boolean bgraph; public static void main(String[] args){ *Idle newThread= new Idle(???); Idle.run(); * ...further with your Example Moreover my compiler dosen't know types /classes in Idle and Scilab Manager. Which imports/librarys do I need ? Thank You So Much, Daniel Am 15.02.2017 um 11:21 schrieb Perrichon: > > Hello Daniel, > > Here is a basic program I?ve realized under netbeans 7.01 > > It works with scilab x64 windows 7 or 10, scilab 5.5.2 ; not with 6.0.0 b2 > > Also here are the libraries to incilude in your java project (eclipse > if i well understood) : > > org.scilab.modules.jvm.jar > > org.scilab.modules.javasci.jar > > org.scilab.modules.core.jar > > org.scilab.modules.types.jar > > JDK1.8 > > It works with jdk1.8.0_40 > > //---------------------------------------------------------------------------------------------------------------------------------------------------- > > // Java program and main program > > /* > > * To change this template, choose Tools | Templates > > * and open the template in the editor. > > */ > > package testscilabv2; > > import org.scilab.modules.javasci.Scilab; > > import org.scilab.modules.types.ScilabType; > > import org.scilab.modules.types.ScilabDouble; > > /** > > * > > * @author pierre > > */ > > public class TestScilabV2 { > > static boolean bgraph; > > /** > > * @param args the command line arguments > > */ > > public static void main(String[] args) { > > try { > > Scilab sci = new Scilab(true); > > if (sci.open()) { > > /* Send a Scilab instruction */ > > sci.exec("foo = [ 2, 4, 6; 4, 0, 10; 6, 10, 12 ];"); > > /* Retrieve the variable foo */ > > ScilabType foo = sci.get("foo"); > > /* Display the variable */ > > System.out.println("Representation of : " + foo); > > /* Get the data and retrieve the 2,2 value */ > > double[][] aReal = ((ScilabDouble)foo).getRealPart(); > > System.out.println("foo[1,1] = " + aReal[1][1]); > > /* Change the value of 2,2 */ > > aReal[1][1] = Math.PI; > > /* Create a new variable */ > > ScilabDouble bar = new ScilabDouble(aReal); > > /* Send it to Scilab */ > > sci.put("bar", bar); > > /* Display it through Scilab */ > > sci.exec("disp(bar)"); > > sci.exec("about();"); > > sci.exec("plot3d();"); > > System.out.println("\nFermer le grahique pour terminer le programme de > test..."); > > do { > > // Boucle tant que le graphique n'a pas ?t? referm? > > //------------------------------------------------- > > bgraph=sci.isGraphicOpened(); > > sci.exec("aPPeScilabJavasciv2=1;"); > > }while (bgraph); > > sci.close(); > > System.out.println("...Fin du programme de test"); > > } else { > > System.out.println("Could not start Scilab "); > > } > > /* Can be improved by other exceptions: AlreadyRunningException, > > * InitializationException, UndefinedVariableException, > > * UnknownTypeException, etc > > */ > > } catch (org.scilab.modules.javasci.JavasciException e) { > > System.err.println("An exception occurred: " + e.getLocalizedMessage()); > > } > > } > > } > > *De :*Daniel Neutzler [mailto:daniel.neutzler at haw-hamburg.de] > *Envoy? :* lundi 13 f?vrier 2017 13:07 > *? :* Perrichon ; 'Users mailing list for > Scilab' > *Objet :* Re: [Scilab-users] Question about javasci V2 > > Hello Pierre, > thank you for your answer. It is nice to hear that my Problem is > probably a Bug. > I'm not sure how to use your example. Which Libs do I need for it or > may you have a simple example to use it? > I'm sorry, my Java knowlegde is restricted (Beginner). > > Thank You for your Help, > Daniel Neutzler > > Am 04.02.2017 um 19:29 schrieb Perrichon: > > Hello Daniel > > I?ve already met your problem one year ago, and for me it is > really a bug. > > I work with scilab x64 5.5.2, netbeans 7.01, on W7 or W10 platform. > > I?ve sovled it in my application, so I?m just able to propose > parts of code. > > I?ve delay the 2 instructions *Scilab sci = new Scilab(true)* and > if (sci.open()) {, by creating a ScilabManager class, ? and a > thread class named Idle > > Part of ScilabManager (also note the public static void > OpenScilab()) > > public class ScilabManager { > > public static Scilab sci; //Driver Scilab > > public static boolean bScilabOpen; > > public static boolean InitScilab; > > public static Fifo FifoScilab; > > private static TListeFifo SciJob; > > static ScilabError TErrorScilab; > > public static File ScilabFile; > > private static int dim = 500; > > public static String [] Script; > > private static int iScript; > > public static Configuration AppConfiguration; > > public static Log LogScilab; > > public static int NumGraph=0; > > ScilabManager() { > > try { > > sci = new Scilab(true); > > InitScilab=true; > > } catch (JavasciException.InitializationException ex) { > > Logger.getLogger(ScilabManager.class.getName()).log(Level.SEVERE, > null, ex); > > } > > } > > @SuppressWarnings("CallToThreadDumpStack") > > public static void OpenScilab() { > > try { > > bScilabOpen=sci.open(); > > } catch (JavasciException ex) { > > ex.printStackTrace(); > > } > > if (bScilabOpen) System.out.println("\nScilab est ouvert\n"); > > else System.out.println("\nErreur ouverture Scilab\n"); > > ScilabError.ClearScilabError(); > > try { > > // Initialisation et chargements des fonctions Scilab > > //--------------------------------------------------- > > AppConfiguration = new Configuration(); > > } catch (FileNotFoundException ex) { > > Logger.getLogger(ScilabManager.class.getName()).log(Level.SEVERE, > null, ex); > > } catch (IOException ex) { > > Logger.getLogger(ScilabManager.class.getName()).log(Level.SEVERE, > null, ex); > > } catch (JavasciException ex) { > > Logger.getLogger(ScilabManager.class.getName()).log(Level.SEVERE, > null, ex); > > } > > try { > > // Initialisation du fichier de log out (Traces commandes Scilab) > > //-------------------------------------------------------------- > > LogScilab = new Log(); > > OptsimView.SetLogFile(); > > } catch (FileNotFoundException ex) { > > ex.printStackTrace(); > > } catch (IOException ex) { > > ex.printStackTrace(); > > } > > Script = new String[dim]; > > Now note part of Idle task : > > public class Idle extends Thread { > > protected volatile boolean IdleRunning = true; > > public static boolean bCloseIdle=false; > > private static int Count=1; > > private static int setGraphe=0; > > private static JTextField TF=null; > > private static Timer bTimer; > > private static JLabel AnimationLabel; > > private static Icon idleicone; > > private int ThreadNumber; > > Idle (JTextField TFi, Timer busyIconTimer, > > JLabel statusAnimationLabel, Icon icone) { > > TF=TFi; > > bTimer=busyIconTimer; > > AnimationLabel=statusAnimationLabel; > > idleicone=icone; > > this.ThreadNumber=Count++; > > } > > @Override > > public synchronized void run() { > > boolean bTest; > > if (ScilabManager.InitScilab) { > > ScilabManager.OpenScilab(); > > } > > ScilabManager.sci.exec("aPPeScilabJavasciv2=1;"); > > while (IdleRunning) { ?etc > > So instructions *Scilab sci = new Scilab(true)* and if (sci.open > are delayed. > > This is the only solution I?ve found. After that Scilab well run > with Java netbeans and javasci2. > > Also well note that my program doesn?t work with Scilab 6.0.0 b2 > at compile time and see : > > http://bugzilla.scilab.org/show_bug.cgi?id=14626 > > Hope it helps you > > Sincerely > > Pierre > > *De :*users [mailto:users-bounces at lists.scilab.org] *De la part > de* Daniel Neutzler > *Envoy? :* mardi 31 janvier 2017 13:15 > *? :* users at lists.scilab.org > *Objet :* [Scilab-users] Question about javasci V2 > > Hi, I am using Scilab 5.5.2 and trying to open a Scilab script from > Java. Therfore I followed the documentation: Compute and run with > javasci v2. > > I use Eclipse to compile and run. It works, but I want now to open > it in "advanced mode" to get grahpics > (*Scilab sci = new Scilab(true);*). If i do it, I get a compile > Error. What's wrong ? > Code and Error Plot out see below. > > Thank You for your Help, > Daniel Neutzler > > ####Error#### > java.lang.ExceptionInInitializerError > at > org.scilab.modules.commons.xml.XConfiguration.(Unknown Source) > at org.scilab.modules.core.Scilab.(Unknown Source) > at > org.scilab.modules.javasci.Call_ScilabJNI.Call_ScilabOpen(Native > Method) > at > org.scilab.modules.javasci.Call_Scilab.Call_ScilabOpen(Unknown Source) > at org.scilab.modules.javasci.Scilab.open(Unknown Source) > at StartUp.main.main(main.java:17) > Caused by: java.lang.NullPointerException > at java.io.File.(Unknown Source) > at org.scilab.modules.commons.ScilabConstants.(Unknown > Source) > ... 6 more > Exception in thread "main" > > #### JAVA Code#### > > package StartUp; > *import org.scilab.modules.javasci.Scilab; > import org.scilab.modules.types.ScilabType;* > import java.io.File; > import java.io.FileNotFoundException; > > public class main { > > public static void main(String[] args) throws > FileNotFoundException{ > System.out.println("Starte Programm > Pin-Positionsanalyse-Tool V1.0..."); > > try { > *Scilab sci = new Scilab(true); // Starts in advanced mode * > if (sci.open()) { > sci.execException(new > File("C:/Users/Daniel/Desktop/test.sce")); > sci.close(); > } else { > System.out.println("Could not start Scilab "); > } > /* Can be improved by other exceptions: AlreadyRunningException, > * InitializationException, UndefinedVariableException, > * UnknownTypeException, etc > */ > } catch (org.scilab.modules.javasci.JavasciException e) { > System.err.println("An exception occurred: " + > e.getLocalizedMessage()); > } > } > } > -------------- next part -------------- An HTML attachment was scrubbed... URL: From contact at pierre-vuillemin.fr Thu Feb 16 18:37:40 2017 From: contact at pierre-vuillemin.fr (Pierre Vuillemin) Date: Thu, 16 Feb 2017 18:37:40 +0100 Subject: [Scilab-users] About some changes in Scilab 6 Message-ID: <4da87406-ca3a-f371-2e3b-d71e0d7d5e96@pierre-vuillemin.fr> Hi all, Congratulations to Scilab team for the release, it looks very promising! I have begun to test the compatibility of some of my tools with Scilab 6 and I have some questions: - the way libraries are handled seems to have changed with Scilab 6, and the example provided in 'help lib' does not work anymore, //define some functions function z=myplus(x, y) z = x + y endfunction function z=yourplus(x, y) x = x - y endfunction //create the *.bin files in libdir libdir = TMPDIR; save(libdir + '/myplus.bin', 'myplus'); save(libdir + '/yourplus.bin', 'yourplus'); //create the name file mputl(['myplus';'yourplus'],TMPDIR+'/names'); //build the library containing myplus and yourplus mylibfoo = lib(libdir+'/'); The above code says that the path is not a path to a valid library. Could someone explain what 'lib' is expecting? (I would like to avoid using 'genlib' as it does not recursively goes through subdirectories). - when 'error' is called within a function that overload the behaviour for some object, then the error message is not displayed, e.g. a = mlist(['myType']); function %myType_e(varargin) error('My error msg') endfunction a(1) only says that the operation is not defined for this type without displaying 'My error msg'. - I'm not sure that this is specific to Scilab 6, but I've noticed a large difference in performance for solving linear systems A*x = b in comparison to Octave and Matlab. For instance, n = 100; N = 1000; T = 0; for i = 1:n A = rand(N,N); b = rand(N,1); tic(); x = A\b; T = T + toc(); end disp(T/n) is (significantly) slower with Scilab (binaries for linux 64bits) than with Octave. Is it due to the way the underlying lapack library is compiled? - In Scilab 5, given a variable 'x', the expression x = clear('x') was allowed and would clean the variable 'x'. Used together with 'resume' in a function, that allowed to clean variables from the above environment. While it might not be a very safe coding practice, is there a way to reproduce this behaviour in Scilab 6 ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Thu Feb 16 22:20:40 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 16 Feb 2017 22:20:40 +0100 Subject: [Scilab-users] About some changes in Scilab 6 In-Reply-To: <4da87406-ca3a-f371-2e3b-d71e0d7d5e96@pierre-vuillemin.fr> References: <4da87406-ca3a-f371-2e3b-d71e0d7d5e96@pierre-vuillemin.fr> Message-ID: Hello Pierre, That's right. The changes about the library generation was emphasized on the forum on 2015 summer (please see here for instance). By the way, even before these changes, the example shown in the lib page is awful. The only proper way to build a library is using genlib(). This example is clearly outdated. > I would like to avoid using 'genlib' as it does not recursively goes > through subdirectories So, it is time to try using tbx_make() with proper flags. > --> a = mlist(['myType']); > > --> function %myType_e(varargin) > > error('My error msg') > > endfunction > > --> a(1) > at line 2 of function %myType_e > > Function not defined for given argument type(s), > check arguments or define function %l_e for overloading. This is because the prototype of a extraction overload for A(i1,i2,..,iN) is function R = %typeOfA_e(i1,i2,...,iN,A) The last input argument is the object from which you want to extract some component. If you specify varargin, varargin is a list(), and so you get the given error message. Le 16/02/2017 ? 18:37, Pierre Vuillemin a ?crit : > > - I'm not sure that this is specific to Scilab 6, but I've noticed > a large difference in performance for solving linear systems A*x = > b in comparison to Octave and Matlab. For instance, > > n = 100; > N = 1000; > T = 0; > for i = 1:n > A = rand(N,N); > b = rand(N,1); > tic(); > x = A\b; > T = T + toc(); > end > disp(T/n) > > > is (significantly) slower with Scilab (binaries for linux 64bits) > than with Octave. Is it due to the way the underlying lapack > library is compiled? > Did you benchmark and compare Scilab 5.5.2 an Scilab 6.0.0 performance for this example? > > > - In Scilab 5, given a variable 'x', the expression > > x = clear('x') > > > was allowed and would clean the variable 'x'. Used together with > 'resume' in a function, that allowed to clean variables from the > above environment. While it might not be a very safe coding > practice, is there a way to reproduce this behaviour in Scilab 6 ? > Actually, it was formerly possible to delete a variable by assigning a null variable to it. And primitives without output arguments -- like clear -- returned such an object of type==0. But the definition and the management of objects of type==0 have actually changed. In my opinion, the new management is not yet mature. I am updating the type() help page , and i think that discussions are not over about this question :) AFAIK, in Scilab 6, a null object can only be an undefined component of a list: L = list("abc", , %z); type(L(2)) x = L(2) // should do the same than x = clear("x") (that actually looks like a hack :/) Regards Samuel PS : one single topic per thread is always better for mailing lists archives -------------- next part -------------- An HTML attachment was scrubbed... URL: From contact at pierre-vuillemin.fr Fri Feb 17 12:03:14 2017 From: contact at pierre-vuillemin.fr (Pierre Vuillemin) Date: Fri, 17 Feb 2017 12:03:14 +0100 Subject: [Scilab-users] About some changes in Scilab 6 In-Reply-To: References: <4da87406-ca3a-f371-2e3b-d71e0d7d5e96@pierre-vuillemin.fr> Message-ID: <5ac995a0-2f40-c1f2-99c9-4fd672e9314c@pierre-vuillemin.fr> Hello Samuel, Thank you for your answers. - *Building toolboxes*: I did not know that tbx_make() was functional, it seems the way to go in the future indeed. At the moment, it seems to be a bit unstable though and produced a segfault in my case, terminate called after throwing an instance of 'GiwsException::JniCallMethodException' what(): Exception when calling Java method : Segmentation fault (core dumped) - *Using 'error()' in overloading functions*: I'm not sure to understand what you mean? To overload the extraction for both 1 and multiple indexes (as matrices), e.g. a(1), a(1,2), I used, function out = %myType_e(varargin) // the object is always varargin($), // the indexes are varargin(1:$-1) endfunction to cover all the cases in one function. This actually works, but using error(' ') within this function does no longer display the error message, instead, it says that the overloading is not defined. - *Performances for solving A*x = b*: On Scilab 5, the code n = 100; A = rand(n,n);b = rand(n,1);x = A\b; leads to a segfault for n >= 18 (maybe a problem with the package in ubuntu?). Hence I did not really test the performances. - *Equivalent to x = clear('x') in Scilab 6*: I see., I 'll stick with empty variables for the moment. Best regards, Pierre PS: I understand. I just did not want to spam the list with multiple questions. Le 16/02/2017 ? 22:20, Samuel Gougeon a ?crit : > Hello Pierre, > > That's right. The changes about the library generation was emphasized > on the forum on 2015 summer (please see here > > for instance). > By the way, even before these changes, the example shown in the lib > page is awful. The only proper way to build a library is using > genlib(). This example is clearly outdated. > >> I would like to avoid using 'genlib' as it does not recursively goes >> through subdirectories > > So, it is time to try using tbx_make() with proper flags. > >> --> a = mlist(['myType']); >> >> --> function %myType_e(varargin) >> > error('My error msg') >> > endfunction >> >> --> a(1) >> at line 2 of function %myType_e >> >> Function not defined for given argument type(s), >> check arguments or define function %l_e for overloading. > > This is because the prototype of a extraction overload for > A(i1,i2,..,iN) is > function R = %typeOfA_e(i1,i2,...,iN,A) > The last input argument is the object from which you want to extract > some component. > If you specify varargin, varargin is a list(), and so you get the > given error message. > > > > Le 16/02/2017 ? 18:37, Pierre Vuillemin a ?crit : >> >> - I'm not sure that this is specific to Scilab 6, but I've >> noticed a large difference in performance for solving linear >> systems A*x = b in comparison to Octave and Matlab. For instance, >> >> n = 100; >> N = 1000; >> T = 0; >> for i = 1:n >> A = rand(N,N); >> b = rand(N,1); >> tic(); >> x = A\b; >> T = T + toc(); >> end >> disp(T/n) >> >> >> is (significantly) slower with Scilab (binaries for linux 64bits) >> than with Octave. Is it due to the way the underlying lapack >> library is compiled? >> > > Did you benchmark and compare Scilab 5.5.2 an Scilab 6.0.0 performance > for this example? > >> >> >> - In Scilab 5, given a variable 'x', the expression >> >> x = clear('x') >> >> >> was allowed and would clean the variable 'x'. Used together with >> 'resume' in a function, that allowed to clean variables from the >> above environment. While it might not be a very safe coding >> practice, is there a way to reproduce this behaviour in Scilab 6 ? >> > > Actually, it was formerly possible to delete a variable by assigning a > null variable to it. > And primitives without output arguments -- like clear -- returned such > an object of type==0. > But the definition and the management of objects of type==0 have > actually changed. In my opinion, the new management is not yet mature. > I am updating the type() help page > , and i think that > discussions are not over about this question :) > > AFAIK, in Scilab 6, a null object can only be an undefined component > of a list: > L = list("abc", , %z); > type(L(2)) > x = L(2) // should do the same than x = clear("x") (that actually > looks like a hack :/) > > > Regards > Samuel > > PS : one single topic per thread is always better for mailing lists > archives > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From vittorio.comino at gmail.com Fri Feb 17 22:27:01 2017 From: vittorio.comino at gmail.com (Vittorio Comino) Date: Fri, 17 Feb 2017 15:27:01 -0600 Subject: [Scilab-users] How to get a C compiler for Scilab 6.0.0 Message-ID: What is the up to date procedure to install a C compiler (preferably Microsoft) for the new Scilab 6.00 on Windows10? Thanks. Vic -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.elias at scilab-enterprises.com Fri Feb 17 23:01:48 2017 From: antoine.elias at scilab-enterprises.com (antoine.elias at scilab-enterprises.com) Date: Fri, 17 Feb 2017 23:01:48 +0100 Subject: [Scilab-users] How to get a C compiler for Scilab 6.0.0 In-Reply-To: References: Message-ID: Hello Vic, For compilation of Scilab, we provide Visual Studio 2013 solution. For compilation of toolbox/code, you can use VS2010, VS2012, VS2013 and VS2015. Scilab 6 on Windows provides Visual C++ redistributable 2013. So for better compatibility/portability, I suggest you use VS2013 ( Pro or Express[1] ) Hope that helps, Antoine [1] https://www.microsoft.com/en-us/download/details.aspx?id=44914 Le 2017-02-17 22:27, Vittorio Comino a ?crit?: > What is the up to date procedure to install a C compiler (preferably > Microsoft) for the new Scilab 6.00 on Windows10? > Thanks. > > Vic > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From akhorshidi at live.com Sat Feb 18 06:24:04 2017 From: akhorshidi at live.com (A Khorshidi) Date: Fri, 17 Feb 2017 22:24:04 -0700 (MST) Subject: [Scilab-users] Scilab 6 Release In-Reply-To: <58A4716F.9070506@scilab-enterprises.com> References: <58A4716F.9070506@scilab-enterprises.com> Message-ID: <1487395444256-4035513.post@n3.nabble.com> yanndebray wrote > Dear Scilab users, > > We are very happy to announce the release of Scilab 6.0.0. > > The Scilab Team invested significant development efforts for the past > years in order to release Scilab 6. > The goal with Scilab 6 is to address technological evolutions and new > needs in terms of modeling and simulation from the scientific & > engineering community. > This led our team to completely redevelop the computation core of Scilab > in order to build a solid base combining performance and evolutivity. > The new aspects of Scilab 6 worth notifying are the following: > > * New language parser & new core, > * New utilities for development productivity, > * Xcos block diagram improvement, > * Newsfeed - a communication channel with the users > > Download it on Scilab.org <http://www.scilab.org/> > > Scientifically yours > > -- > > The Scilab Team > > > _______________________________________________ > users mailing list > users at .scilab > http://lists.scilab.org/mailman/listinfo/users Hello all. Month after month we expected to hear the release of the 6th version. But now, we had gone from no news to good news. We all know it wasn't as easy as it looked. So my warmest thanks to all the folks who engaged to make Scilab fresher and stronger. I wanna take my hat off to them all right here. :-) I was wondering what happened to the object-oriented programming paradigm which has been promised for Scilab 6? Will our wish really be fulfilled? Merci Mehran -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Scilab-6-Release-tp4035497p4035513.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From n.strelkov at gmail.com Sat Feb 18 18:55:18 2017 From: n.strelkov at gmail.com (Nikolay Strelkov) Date: Sat, 18 Feb 2017 20:55:18 +0300 Subject: [Scilab-users] MinGw toolbox 0.10.0 is not compatible with Scilab 6.0 Message-ID: Dear Scilab users and developers! I have installed Scilab 6.0 x86 and x86_64 on my Windows 8.1 x86_64 laptop. Also I have downloaded and installed gcc-6.2.0 for x86 and x86_64 as prerequisites of MingGw toolbox . Then I installed MinGw toolbox in Scilabs with atomsInstall('mingw'). This process was successful. Then I restarted Scilab and tried to test MinGw toolbox with atomsTest('mingw'). The results are not good - on both x86 and x86_64 - 13 tests of 15 are failed. Only *G_make* and *dllinfo* are passed. I do not attach logs - the error is always the same "failed: Slave Scilab exited with error code 1 ". If I launch these unit-tests manually (with cd SCIHOME\atoms\x64\mingw\0.10. 0\tests\unit_tests\ and corresponding exec *.tst ) I got messages such as WARNING: C:\Users\nikolay\AppData\Roaming\Scilab\SCILAB~2.0\ atoms\x64\mingw\010~1.0\macros\scripts\TEMPLATE_MAKEFILE.MINGWnot found. make: *** No rule to make target 'all'. Stop. at line 25 of function dlwCompile ( C:\Users\nikolay\AppData\ Roaming\Scilab\SCILAB~2.0\atoms\x64\mingw\010~1.0\macros\windows\dlwCompile.sci line 34 ) at line 70 of function ilib_compile ( C:\Program Files\scilab-6.0.0\modules\dynamic_link\macros\ilib_compile.sci line 86 ) at line 129 of function ilib_build ( C:\Program Files\scilab-6.0.0\modules\dynamic_link\macros\ilib_build.sci line 142 ) at line 17 of executed file C:\Users\nikolay\AppData\ Roaming\Scilab\scilab-6.0.0\atoms\x64\mingw\0.10.0\tests\ unit_tests\addinter.tst ilib_compile: Error while executing Makelib. Also I tried to launch Xcos model with Modelica blocks with xcos("SCI/modules/xcos/demos/Electrical/Bridge_Rectifier.zcos"); then with Simulation->Start got error in console --> xcos("SCI/modules/xcos/demos/Electrical/Bridge_Rectifier.zcos"); --------------------------------------------\ Main Modelica : C:\Users\nikolay\AppData\Local\Temp\SCI_TMP_6052_26419\ Bridge_Rectifier_im.mo Flat Modelica : C:\Users\nikolay\AppData\Local\Temp\SCI_TMP_6052_26419\ Bridge_Rectifier_imf.mo Simulation C code :C:\Users\nikolay\AppData\Local\Temp\SCI_TMP_6052_26419\ Bridge_Rectifier_im.c Generate a loader file Generate a Makefile WARNING: C:\Users\nikolay\AppData\Roaming\Scilab\SCILAB~2.0\ atoms\mingw\010~1.0\macros\scripts\TEMPLATE_MAKEFILE.MINGWnot found. Running the Makefile Compilation of Bridge_Rectifier_im.obj Building shared library (be patient) make: *** No rule to make target 'clean'. Stop. !sorry compiling problem ! ! ! !ilib_compile: Error while executing Makelib. ! c_pass1: build the modelica meta-block failed xcos_simulate: Error during block parameters update. After manual move of 'scripts/TEMPLATE_MAKEFILE.MINGW' to 'macros/scripts/TEMPLATE_MAKEFILE.MINGW' atomsTest('mingw') reports 10 passed tests (failed are: *addinter, ilib_build, ilib_build_2, ilib_build_cpp, links*). But Xcos models with Modelica blocks can be simulated except 2 crashes (*Ball on a Platform* and *Chaos Modelica*) Scilab 5.5.2 (x86 and x86_64) works normally on the same machine with mingw-0.9.3 (and gcc-4.6.3). Where is an error - in Scilab or in MinGw toolbox? Should I report bug? -- *With best regards,Ph.D., assistant professor at MPEI ,IEEE member,maintainer of Mathieu functions toolbox for Scilab ,Nikolay Strelkov.* -------------- next part -------------- An HTML attachment was scrubbed... URL: From perrichon.pierre at wanadoo.fr Sat Feb 18 19:13:43 2017 From: perrichon.pierre at wanadoo.fr (Perrichon) Date: Sat, 18 Feb 2017 19:13:43 +0100 Subject: [Scilab-users] Transcient error in VARIABLE DELAY during initialization Message-ID: <001201d28a12$bdb95590$392c00b0$@wanadoo.fr> Hello, Looking at the example provide in its documentation, and initializing at 1 the initial input, VARIABLE DELAY box shows a real problem in the transcient phase of that function This bug explains a ; unexpected transcient error in my project (hydraulic transcients). See for attached file ; http://bugzilla.scilab.org/show_bug.cgi?id=15004 Sincerely Pierre -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 906 bytes Desc: not available URL: From sdr at durietz.se Sun Feb 19 11:09:04 2017 From: sdr at durietz.se (Stefan Du Rietz) Date: Sun, 19 Feb 2017 11:09:04 +0100 Subject: [Scilab-users] Scilab 6.0.0 cannot start Message-ID: <1402226a-6b25-1339-7358-a391c42df443@durietz.se> Dear Scilab team, thank you very much for the new version! But when I try to start "Scilab 6.0.0" from the Windows 7 Start menu I get this message: "Scilab cannot create Scilab Java Main-Class (we have not been able to find the main Scilab class. Check if the Scilab and third-party packages are available)." Only "Java 8 Update 121" is installed. "Scilab Console" or "Run as Administrator" with "Scilab 6.0.0" does work. Regards Stefan From germanandre at gmx.es Sun Feb 19 20:02:34 2017 From: germanandre at gmx.es (=?ISO-8859-1?Q?Germ=E1n?= Arias) Date: Sun, 19 Feb 2017 13:02:34 -0600 Subject: [Scilab-users] Font size at SciNotes Message-ID: <1487530954.2487.2.camel@gmx.es> Hi, I newbie with SciLab. And just want know if there is a way to change the font size at SciNotes. At preferences there is an entry for font options but not for SciNotes just for the console. Thanks in advance. Germ?n From rei.listas at yahoo.com Sun Feb 19 22:45:23 2017 From: rei.listas at yahoo.com (Reinaldo) Date: Sun, 19 Feb 2017 14:45:23 -0700 (MST) Subject: [Scilab-users] C/C++ compiler for Mac OS Sierra In-Reply-To: <1487149032.2114.2.camel@scilab-enterprises.com> References: <1250060948.3619555.1487011570813@mail.yahoo.com> <781bd288-44fd-866f-2804-3733c4aa78b3@scilab-enterprises.com> <1487149032.2114.2.camel@scilab-enterprises.com> Message-ID: <1202314111.569737.1487540695798@mail.yahoo.com> Hi Cl?ment, Thank you for your mail. I downloaded the Command Line Tool as suggested by Paul in my Mac. It works! I found out that "gcc" and "g++" are symlinks and they are not "real" compiler because there is no entry for "man gcc" in Mac OSX. The real name is Clang and Clang++... Please correct me if I told something wrong about this issue. However, I suppose that the Clang and Clang++ work like gcc and g++ in Linux, respectively, don't they? So, I gave up to use Eclipse IDE for C++ because I cannot adapt myself to the project-based philosophy. Therefore, I would like to program using another software, perhaps, Gedit or something else like that for Mac OSX.? What do you suggest, please? And how could I install it in the Mac OSX Sierra? Thank you very much. All the best,Reinaldo. PS: Is this Xcode Command Line Tool enough to run Scilab 6.0? Thanks. De: Cl?ment David-2 [via Scilab / Xcos - Mailing Lists Archives] Para: Reinaldo Enviadas: Quarta-feira, 15 de Fevereiro de 2017 6:57 Assunto: Re: C/C++ compiler for Mac OS Sierra Hi Reinaldo and welcome, Yes Paul is right and just for completness (and CC-ing dev) : We ?currently do not require an IDE to build Scilab ; you can program using vim / emacs / notepad++, gcc / clang / msbuild. As common IDEs provide a way to import an exiting code base as a new project, we also do not provide project files (other than the VisualStudio ones required by msbuild). PS: I personally use Netbeans and/or Eclipse JDT for Java programming. Eclipse CDT and/or Vim (with YouCompleteMe) for C/C++ programming. -- Cl?ment Le mardi 14 f?vrier 2017 ? 09:03 +0100, Paul Bignier a ?crit?: > > Hello Reinaldo, > > You don't have to install the whole Xcode to have gcc (pointing to clang) available, you can > simply install the command-line tools. > > Regards, > Paul > > On 02/13/2017 07:46 PM, Reinaldo Golmia Dante wrote: > > Hi Scilab users, > > > > I would like to install only a C/C++ compiler for Mac OS Sierra. I had installed Xcode, but it > > was very heavy (about 4.5GB) for the SMD disk in my MacBook Air. I'd like to install Eclipse IDE > > C++ to program C/C++, but I think it requires a C/C++ compiler, doesn't it? > > > > Thank you in advance. > > > > Best, > > Reinaldo. > > > > > > _______________________________________________ > > users mailing list > > [hidden email] > > http://lists.scilab.org/mailman/listinfo/users > ? > _______________________________________________ > users mailing list > [hidden email] > http://lists.scilab.org/mailman/listinfo/users_______________________________________________ users mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/users If you reply to this email, your message will be added to the discussion below: http://mailinglists.scilab.org/Scilab-users-C-C-compiler-for-Mac-OS-Sierra-tp4035482p4035494.html To start a new topic under Scilab users - Mailing Lists Archives, email ml-node+s994242n2602246h53 at n3.nabble.com To unsubscribe from Scilab users - Mailing Lists Archives, click here. NAML -- View this message in context: http://mailinglists.scilab.org/Scilab-users-C-C-compiler-for-Mac-OS-Sierra-tp4035482p4035523.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Mon Feb 20 01:26:34 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 20 Feb 2017 01:26:34 +0100 Subject: [Scilab-users] Font size at SciNotes In-Reply-To: <1487530954.2487.2.camel@gmx.es> References: <1487530954.2487.2.camel@gmx.es> Message-ID: <7c870de5-6985-b81c-62e2-21c3a8c44753@free.fr> Le 19/02/2017 ? 20:02, Germ?n Arias a ?crit : > Hi, I newbie with SciLab. And just want know if there is a way to > change the font size at SciNotes. At preferences there is an entry for > font options but not for SciNotes just for the console. Really? Don't you see that: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: iomojmmaagccpodd.png Type: image/png Size: 42660 bytes Desc: not available URL: From sgougeon at free.fr Mon Feb 20 01:36:53 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 20 Feb 2017 01:36:53 +0100 Subject: [Scilab-users] CRITICAL BUG on fileExchange <= Re: Changes on ATOMS to post toolboxes for Scilab 6 In-Reply-To: <583733B2.7000805@free.fr> References: <576D5467.9010005@scilab-enterprises.com> <5816224C.30903@free.fr> <581E1DE2.9000002@free.fr> <1478466390186-4034924.post@n3.nabble.com> <582501AD.1050202@free.fr> <1479126421915-4034975.post@n3.nabble.com> <58362BDD.3000001@free.fr> <583733B2.7000805@free.fr> Message-ID: Le 24/11/2016 ? 19:38, Samuel Gougeon a ?crit : > Le 24/11/2016 00:53, Samuel Gougeon a ?crit : >> Le 14/11/2016 13:27, farialima a ?crit : >>> .../... >>> Hope to soon get FileExchange working again. >>> Please tell me if anything more is broken in that area... >> . >> WARNING: When updating the description of version 2.0 of >> https://fileexchange.scilab.org/toolboxes/451000 >> it changed the version 2.0 --> 1.0 (*), and actually set a 1.0 >> duplicate and lost the 2.0 description (and may be the fileset: not >> checked) ! >> >> (*) the notification email tells it: version : 2.0 --> 1.0 >> >> This is a critical bug, since filesets are corrupted/erased just by >> an update. > > So now i get: > .../... > > The same -- and even worse can be seen on other filesets recently updated: > https://fileexchange.scilab.org/toolboxes/350001 > This is now repaired, fortunately. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 13263 bytes Desc: not available URL: From germanandre at gmx.es Mon Feb 20 01:38:55 2017 From: germanandre at gmx.es (=?ISO-8859-1?Q?Germ=E1n?= Arias) Date: Sun, 19 Feb 2017 18:38:55 -0600 Subject: [Scilab-users] Font size at SciNotes In-Reply-To: <7c870de5-6985-b81c-62e2-21c3a8c44753@free.fr> References: <1487530954.2487.2.camel@gmx.es> <7c870de5-6985-b81c-62e2-21c3a8c44753@free.fr> Message-ID: <1487551135.1892.1.camel@gmx.es> El lun, 20-02-2017 a las 01:26 +0100, Samuel Gougeon escribi?: > Le 19/02/2017 ? 20:02, Germ?n Arias a ?crit : > > Hi, I newbie with SciLab. And just want know if there is a way to > > change the font size at SciNotes. At preferences there is an entry > > for > > font options but not for SciNotes just for the console. > Really? Don't you see that: > > > I was looking at left tree, expecting the Font option under the Scinotes node. So, I don't notice it. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: iomojmmaagccpodd.png Type: image/png Size: 42660 bytes Desc: not available URL: From clement.david at scilab-enterprises.com Mon Feb 20 09:27:46 2017 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 20 Feb 2017 09:27:46 +0100 Subject: [Scilab-users] Scilab 6.0.0 cannot start In-Reply-To: <1402226a-6b25-1339-7358-a391c42df443@durietz.se> References: <1402226a-6b25-1339-7358-a391c42df443@durietz.se> Message-ID: <1487579266.2130.1.camel@scilab-enterprises.com> Hi Stefan, Could you open a bug with all your system information please ? As you might known, we not only build scilab but also pass the tests on the binary version using a set of different machines before releasing. This is likely a bug in your local configuration (either graphical card or software setup); please describe what's specific in your setup and post the result of `[s,d]=getdebuginfo()` using Scilab 5.5.2. Thanks, -- Cl?ment Le dimanche 19 f?vrier 2017 ? 11:09 +0100, Stefan Du Rietz a ?crit?: > Dear Scilab team, > thank you very much for the new version! > > But when I try to start "Scilab 6.0.0" from the Windows 7 Start menu I? > get this message: > > "Scilab cannot create Scilab Java Main-Class (we have not been able to? > find the main Scilab class. Check if the Scilab and third-party? > packages are available)." > > Only "Java 8 Update 121" is installed. > > "Scilab Console" or "Run as Administrator" with "Scilab 6.0.0" does work. > > Regards > Stefan > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From clement.david at scilab-enterprises.com Mon Feb 20 10:27:48 2017 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 20 Feb 2017 10:27:48 +0100 Subject: [Scilab-users] Scilab 6 Release In-Reply-To: <1487395444256-4035513.post@n3.nabble.com> References: <58A4716F.9070506@scilab-enterprises.com> <1487395444256-4035513.post@n3.nabble.com> Message-ID: <1487582868.2130.3.camel@scilab-enterprises.com> Hi Mehran, > We all know it wasn't as easy as it looked. So my warmest thanks to all the > folks who engaged to make Scilab fresher and stronger. > I wanna take my hat off to them all right here. :-)? Thanks for clarifying things :), indeed it was not easy to replicate behaviors implemented 20 (and more) years ago ! Hopefully the interpreter code is much more understandable right now and newcomers can get into it in less than a week (as GSoC students does) ! > I was wondering what happened to the object-oriented programming paradigm > which has been promised for Scilab 6? Well, the 6.0 family target a Scilab 5 compatibility without "visible" language improvements ; the object-oriented paradigm hasn't been added yet and we still need more concrete advantages for the Scilab language to define it ! Especially, function visibility (in modules and function scopes) is IMHO more needed than class definition. We wrapped successfully Java objects without syntax addition and any user can add javascript or python object-like implementation where `this` would be an `mlist("myclass" ...)` value [1]. If you have some specific need on it, do not hesitate to describe it on dev at lists.scilab. org and we can start/iterate on the implementation. Thanks, [1]: https://wiki.scilab.org/Emulate%20Object%20Oriented%20in%20Scilab -- Cl?ment From Alain.Lamy at cnes.fr Mon Feb 20 10:36:19 2017 From: Alain.Lamy at cnes.fr (Lamy Alain) Date: Mon, 20 Feb 2017 09:36:19 +0000 Subject: [Scilab-users] MinGw toolbox 0.10.0 is not compatible with Scilab 6.0 In-Reply-To: References: Message-ID: <8F232902ADB4E14EB16789FB7006FC8459E8A9E0@TW-MBX-P01.cnesnet.ad.cnes.fr> Hello ! I had the same problem. The work-around is to copy the ?scripts? directory (in MinGW home directory) in ?macros?. I already opened a ticket about this point. Alain De : users [mailto:users-bounces at lists.scilab.org] De la part de Nikolay Strelkov Envoy? : samedi 18 f?vrier 2017 18:55 ? : International users mailing list for Scilab.; dev at lists.scilab.org Objet : [Scilab-users] MinGw toolbox 0.10.0 is not compatible with Scilab 6.0 Dear Scilab users and developers! I have installed Scilab 6.0 x86 and x86_64 on my Windows 8.1 x86_64 laptop. Also I have downloaded and installed gcc-6.2.0 for x86 and x86_64 as prerequisites of MingGw toolbox. Then I installed MinGw toolbox in Scilabs with atomsInstall('mingw'). This process was successful. Then I restarted Scilab and tried to test MinGw toolbox with atomsTest('mingw'). The results are not good - on both x86 and x86_64 - 13 tests of 15 are failed. Only G_make and dllinfo are passed. I do not attach logs - the error is always the same "failed: Slave Scilab exited with error code 1 ". If I launch these unit-tests manually (with cd SCIHOME\atoms\x64\mingw\0.10.0\tests\unit_tests\ and corresponding exec *.tst ) I got messages such as WARNING: C:\Users\nikolay\AppData\Roaming\Scilab\SCILAB~2.0\atoms\x64\mingw\010~1.0\macros\scripts\TEMPLATE_MAKEFILE.MINGWnot found. make: *** No rule to make target 'all'. Stop. at line 25 of function dlwCompile ( C:\Users\nikolay\AppData\Roaming\Scilab\SCILAB~2.0\atoms\x64\mingw\010~1.0\macros\windows\dlwCompile.sci line 34 ) at line 70 of function ilib_compile ( C:\Program Files\scilab-6.0.0\modules\dynamic_link\macros\ilib_compile.sci line 86 ) at line 129 of function ilib_build ( C:\Program Files\scilab-6.0.0\modules\dynamic_link\macros\ilib_build.sci line 142 ) at line 17 of executed file C:\Users\nikolay\AppData\Roaming\Scilab\scilab-6.0.0\atoms\x64\mingw\0.10.0\tests\unit_tests\addinter.tst ilib_compile: Error while executing Makelib. Also I tried to launch Xcos model with Modelica blocks with xcos("SCI/modules/xcos/demos/Electrical/Bridge_Rectifier.zcos"); then with Simulation->Start got error in console --> xcos("SCI/modules/xcos/demos/Electrical/Bridge_Rectifier.zcos"); --------------------------------------------\ Main Modelica : C:\Users\nikolay\AppData\Local\Temp\SCI_TMP_6052_26419\Bridge_Rectifier_im.mo Flat Modelica : C:\Users\nikolay\AppData\Local\Temp\SCI_TMP_6052_26419\Bridge_Rectifier_imf.mo Simulation C code :C:\Users\nikolay\AppData\Local\Temp\SCI_TMP_6052_26419\Bridge_Rectifier_im.c Generate a loader file Generate a Makefile WARNING: C:\Users\nikolay\AppData\Roaming\Scilab\SCILAB~2.0\atoms\mingw\010~1.0\macros\scripts\TEMPLATE_MAKEFILE.MINGWnot found. Running the Makefile Compilation of Bridge_Rectifier_im.obj Building shared library (be patient) make: *** No rule to make target 'clean'. Stop. !sorry compiling problem ! ! ! !ilib_compile: Error while executing Makelib. ! c_pass1: build the modelica meta-block failed xcos_simulate: Error during block parameters update. After manual move of 'scripts/TEMPLATE_MAKEFILE.MINGW' to 'macros/scripts/TEMPLATE_MAKEFILE.MINGW' atomsTest('mingw') reports 10 passed tests (failed are: addinter, ilib_build, ilib_build_2, ilib_build_cpp, links). But Xcos models with Modelica blocks can be simulated except 2 crashes (Ball on a Platform and Chaos Modelica) Scilab 5.5.2 (x86 and x86_64) works normally on the same machine with mingw-0.9.3 (and gcc-4.6.3). Where is an error - in Scilab or in MinGw toolbox? Should I report bug? -- With best regards, Ph.D., assistant professor at MPEI, IEEE member, maintainer of Mathieu functions toolbox for Scilab, Nikolay Strelkov. -------------- next part -------------- An HTML attachment was scrubbed... URL: From theodoros.diagoupis at bmz-group.com Mon Feb 20 10:55:43 2017 From: theodoros.diagoupis at bmz-group.com (Theo D.) Date: Mon, 20 Feb 2017 02:55:43 -0700 (MST) Subject: [Scilab-users] Variable Capacitor Message-ID: <1487584543142-4035533.post@n3.nabble.com> Hallo Community, I need in my model a Variable Capacitor. But in Xcos-Paletten-Browser there is not one. There is only a variable resistor block. How can I manually create a variable capacitor block for my simulations in Xcos ? Thank you in advance! Theo D. -- View this message in context: http://mailinglists.scilab.org/Variable-Capacitor-tp4035533.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Mon Feb 20 11:10:04 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 20 Feb 2017 11:10:04 +0100 Subject: [Scilab-users] Variable Capacitor In-Reply-To: <1487584543142-4035533.post@n3.nabble.com> References: <1487584543142-4035533.post@n3.nabble.com> Message-ID: <99c7c333-f541-565f-0d2e-e7067bba9b03@free.fr> Hello Theodoros In Scilab 5, you shall install the Coselica module! |--> atomsInstall("coselica") |Then --> help you will find the /MEAB_VariableCapacitor / in the Electrical palette /Coselica/ is not yet available in Scilab 6 IMO, it shall be the top1 priority of External Xcos modules to port it to Scilab 6. Regards Samuel Le 20/02/2017 ? 10:55, Theo D. a ?crit : > Hallo Community, > > I need in my model a Variable Capacitor. But in Xcos-Paletten-Browser there > is not one. There is only a variable resistor block. > > How can I manually create a variable capacitor block for my simulations in > Xcos ? > > Thank you in advance! > > Theo D. > > > > > > -- > View this message in context: http://mailinglists.scilab.org/Variable-Capacitor-tp4035533.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From eha at hs-furtwangen.de Mon Feb 20 12:31:45 2017 From: eha at hs-furtwangen.de (eha) Date: Mon, 20 Feb 2017 04:31:45 -0700 (MST) Subject: [Scilab-users] How to use Genetic Algorithms to optimize a function with multiple parameters? Message-ID: <1487590305242-4035535.post@n3.nabble.com> Dear Scilab community, I am completely new to Scilab. Since I would like to get used to Genetic Algorithms, I experimented a bit using the documentation's examples. Until now, I am quite happy. My first steps went well, but I have got a question regarding functions with multiple input parameters: I experimented with optim_ga examples I could find in the documentation. All of these examples had only one varying parameter, i.e. f(x). Now, I would like optim_ga to find the minimum of e.g. Rosenbrock function or Ackley's function, i.e. f(x,y). What do I have to do to find the minimum of such a function with two (or more) parameters with optim_ga? Even though I know that the following code does not work since it passes only one parameter to function 'rosenbockC', it demonstrates my approach (and surely why I fail, too). clear; clc; // Rosenbock function f=rosenbrockC(x1, x2) x = [x1 x2]; f = 100.0 *(x(2)-x(1)^2)^2 + (1-x(1))^2; endfunction // Optimization parameters PopSize = 100; Proba_cross = 0.7; Proba_mut = 0.1; NbGen = 10; NbCouples = 110; Log = %T; ga_params = init_param(); // Parameters to control the initial population. ga_params = add_param(ga_params,"dimension",2); // Optimize [pop_opt, fobj_pop_opt] = optim_ga(rosenbrockC, PopSize, NbGen, Proba_mut, Proba_cross, Log, ga_params); Thank you in advance for your help. Hans -- View this message in context: http://mailinglists.scilab.org/How-to-use-Genetic-Algorithms-to-optimize-a-function-with-multiple-parameters-tp4035535.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From theodoros.diagoupis at bmz-group.com Mon Feb 20 17:10:31 2017 From: theodoros.diagoupis at bmz-group.com (Theo D.) Date: Mon, 20 Feb 2017 09:10:31 -0700 (MST) Subject: [Scilab-users] Variable Capacitor In-Reply-To: <99c7c333-f541-565f-0d2e-e7067bba9b03@free.fr> References: <1487584543142-4035533.post@n3.nabble.com> <99c7c333-f541-565f-0d2e-e7067bba9b03@free.fr> Message-ID: <1487607031385-4035536.post@n3.nabble.com> Thank you very much Samuel ! -- View this message in context: http://mailinglists.scilab.org/Variable-Capacitor-tp4035533p4035536.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From mjmccann at ieee.org Mon Feb 20 18:29:26 2017 From: mjmccann at ieee.org (Michael J McCann) Date: Mon, 20 Feb 2017 17:29:26 +0000 Subject: [Scilab-users] Variable Capacitor In-Reply-To: <1487607031385-4035536.post@n3.nabble.com> References: <1487584543142-4035533.post@n3.nabble.com> <99c7c333-f541-565f-0d2e-e7067bba9b03@free.fr> <1487607031385-4035536.post@n3.nabble.com> Message-ID: <5a401413-c2ea-34e5-f318-33e1a6b90bec@ieee.org> Just a thought... I don't know about the model component you are using but if you change the value of a capacitor while it is charged the voltage changes. So choosing the value for a component in a circuit is one thing. Dealing with a charged capacitor which changes can produce some interesting effects. Conservation of charge and energy balance must be considered. Mike. ======= On 20/02/2017 16:10, Theo D. wrote: > Thank you very much Samuel ! > > > > -- > View this message in context: http://mailinglists.scilab.org/Variable-Capacitor-tp4035533p4035536.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -- Dr.M.J.McCann,MJMcCann-Consulting -------------- next part -------------- An HTML attachment was scrubbed... URL: From eha at hs-furtwangen.de Tue Feb 21 11:39:14 2017 From: eha at hs-furtwangen.de (eha) Date: Tue, 21 Feb 2017 03:39:14 -0700 (MST) Subject: [Scilab-users] How to use Genetic Algorithms to optimize a function with multiple parameters? In-Reply-To: <1487590305242-4035535.post@n3.nabble.com> References: <1487590305242-4035535.post@n3.nabble.com> Message-ID: <1487673554304-4035540.post@n3.nabble.com> Hello, I think I found something that helps: Datasheet 'Optimization in Scilab' contains an example on pages 5/6 that uses Rastrigin function with parameters x1 and x2. In the example, these parameters are binarily encoded first. I just copy/pasted the example and it works. Now I'll try to use this as a starting point. Kind Regards, Hans -- View this message in context: http://mailinglists.scilab.org/How-to-use-Genetic-Algorithms-to-optimize-a-function-with-multiple-parameters-tp4035535p4035540.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From thibault.de.nodrest at gmail.com Sat Feb 18 19:06:01 2017 From: thibault.de.nodrest at gmail.com (Thibault de Nodrest) Date: Sat, 18 Feb 2017 11:06:01 -0700 (MST) Subject: [Scilab-users] scilab 5.4.0 lcc In-Reply-To: <1447898237899-4033105.post@n3.nabble.com> References: <1356967076947-4025599.post@n3.nabble.com> <1447898237899-4033105.post@n3.nabble.com> Message-ID: <1487441161965-4035517.post@n3.nabble.com> HI, Di you find a solution to your problem. Ihave the same problem with Scilab 5.5.2. Thanks -- View this message in context: http://mailinglists.scilab.org/scilab-5-4-0-lcc-tp4025599p4035517.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From clement.david at scilab-enterprises.com Tue Feb 21 16:27:51 2017 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Tue, 21 Feb 2017 16:27:51 +0100 Subject: [Scilab-users] C/C++ compiler for Mac OS Sierra In-Reply-To: <1202314111.569737.1487540695798@mail.yahoo.com> References: <1250060948.3619555.1487011570813@mail.yahoo.com> <781bd288-44fd-866f-2804-3733c4aa78b3@scilab-enterprises.com> <1487149032.2114.2.camel@scilab-enterprises.com> <1202314111.569737.1487540695798@mail.yahoo.com> Message-ID: <1487690871.2090.3.camel@scilab-enterprises.com> Hi Reinaldo, > Thank you for your mail. I downloaded the Command Line Tool as suggested by Paul in my Mac. It > works! I found out that "gcc" and "g++" are symlinks and they are not "real" compiler because > there is no entry for "man gcc" in Mac OSX. The real name is Clang and Clang++... Please correct > me if I told something wrong about this issue. However, I suppose that the Clang and Clang++ work > like gcc and g++ in Linux, respectively, don't they? Yep they are also supported as compilers in our ./configure script and Makefiles. > So, I gave up to use Eclipse IDE for C++ because I cannot adapt myself to the project-based > philosophy. Therefore, I would like to program using another software, perhaps, Gedit or something > else like that for Mac OSX.? > > What do you suggest, please? And how could I install it in the Mac OSX Sierra? I have no experiences on a specific editor for MacOS X, maybe Xcode (without the IDE features) or simpler things like Atom. Vim has a better taste for me (cross-platform) with its quick Cut Paste Sed features and LLVM based code-completion (provided by YouCompleteMe). > PS: Is this Xcode Command Line Tool enough to run Scilab 6.0? Thanks. I have no experience with it, but probably yes :). MacOS X is a platform we target but we do not have developers working on it from day to day. -- Cl?ment From sgougeon at free.fr Tue Feb 21 20:36:20 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 21 Feb 2017 20:36:20 +0100 Subject: [Scilab-users] Variable Capacitor In-Reply-To: <99c7c333-f541-565f-0d2e-e7067bba9b03@free.fr> References: <1487584543142-4035533.post@n3.nabble.com> <99c7c333-f541-565f-0d2e-e7067bba9b03@free.fr> Message-ID: <3e299b1c-a227-e023-cfc0-580bc8a6c413@free.fr> Le 20/02/2017 ? 11:10, Samuel Gougeon a ?crit : > .../... > > /Coselica/ is not yet available in Scilab 6 > IMO, it shall be the top1 priority of External Xcos modules to port it > to Scilab 6. Thank you, Paul, for having made Coselica available in Scilab 6 so quickly! Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim at wescottdesign.com Tue Feb 21 20:46:58 2017 From: tim at wescottdesign.com (Tim Wescott) Date: Tue, 21 Feb 2017 11:46:58 -0800 Subject: [Scilab-users] Variable Capacitor In-Reply-To: <5a401413-c2ea-34e5-f318-33e1a6b90bec@ieee.org> References: <1487584543142-4035533.post@n3.nabble.com> <99c7c333-f541-565f-0d2e-e7067bba9b03@free.fr> <1487607031385-4035536.post@n3.nabble.com> <5a401413-c2ea-34e5-f318-33e1a6b90bec@ieee.org> Message-ID: <1487706418.6079.59.camel@wescottdesign.com> It depends on what you're simulating -- if it's an RLC circuit and the cap value is changing slowly with respect to the resonant frequency, for example, then that's not so big a deal. ?Ditto if you're using a variable cap block to model a Varicap diode (which isn't going to act like a mechanical capacitor whose plates are moving in and out). But yes, if you're modeling a real live phenomenon with conductors moving in relation to each other, and if it's in a broadband circuit, then you at least need to worry about conservation of charge. On Mon, 2017-02-20 at 17:29 +0000, Michael J McCann wrote: > Just a thought... I don't know about the model component you are > using but if you change the value of a capacitor while it is charged > the voltage changes. So choosing the value for a component in a > circuit is one thing. Dealing with a charged capacitor which changes > can produce some interesting effects. Conservation of charge and > energy balance must be considered. > Mike. > ======= > > On 20/02/2017 16:10, Theo D. wrote: > > Thank you very much Samuel ! > > > > > > > > -- > > View this message in context: http://mailinglists.scilab.org/Variab > > le-Capacitor-tp4035533p4035536.html > > Sent from the Scilab users - Mailing Lists Archives mailing list > > archive at Nabble.com. > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > > > ? > --? > Dr.M.J.McCann,MJMcCann-Consulting > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From sdr at durietz.se Wed Feb 22 11:15:05 2017 From: sdr at durietz.se (Stefan Du Rietz) Date: Wed, 22 Feb 2017 11:15:05 +0100 Subject: [Scilab-users] Scilab 6.0.0, read() Message-ID: <4cf69b09-2a89-fbe2-9ab1-9ebcebf75fa9@durietz.se> Hello, I got Scilab 6 to work in a Windows 10 laptop. However, my loading of data with read() took almost half an hour. From toc() and mprintf(): Loading of data took 26 min 23 sec In Scilab 5.5.2 it took just over a second. From toc() and mprintf(): Loading of data took 1.219 sec. What happened? Regards Stefan From arctica1963 at gmail.com Wed Feb 22 11:41:15 2017 From: arctica1963 at gmail.com (Lester Anderson) Date: Wed, 22 Feb 2017 10:41:15 +0000 Subject: [Scilab-users] Scilab 6.0.0 Message-ID: Hi all, Just a general query, but has anyone noticed that it takes a lot longer to load Scilab 6 on Windows compared to v5.5.2 (64-bit)? Only installed a little while ago, but 5.5.2 loads really promptly on a laptop with 4 Gb of RAM and a selection of modules starting, whereas version 6 takes a while to get going (with no modules). Cheers Lester From arctica1963 at gmail.com Wed Feb 22 11:43:48 2017 From: arctica1963 at gmail.com (Lester Anderson) Date: Wed, 22 Feb 2017 10:43:48 +0000 Subject: [Scilab-users] Scilab 6.0.0, read() In-Reply-To: <4cf69b09-2a89-fbe2-9ab1-9ebcebf75fa9@durietz.se> References: <4cf69b09-2a89-fbe2-9ab1-9ebcebf75fa9@durietz.se> Message-ID: Haven't got as far as testing the functions, but just starting version 6 compared to 5.5.2 is slower; not sure what is going on. Testing on Windows 8.1 (4 Gb RAM). Do you have a test script to try, see if the issue can be reproduced? Cheers Lester On 22 February 2017 at 10:15, Stefan Du Rietz wrote: > Hello, > I got Scilab 6 to work in a Windows 10 laptop. However, my loading of data > with read() took almost half an hour. > From toc() and mprintf(): > Loading of data took 26 min 23 sec > > In Scilab 5.5.2 it took just over a second. > From toc() and mprintf(): > Loading of data took 1.219 sec. > > What happened? > > Regards > Stefan > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From sdr at durietz.se Wed Feb 22 11:47:50 2017 From: sdr at durietz.se (Stefan Du Rietz) Date: Wed, 22 Feb 2017 11:47:50 +0100 Subject: [Scilab-users] Scilab 6.0.0 In-Reply-To: References: Message-ID: <0763cca0-c28d-aaff-4b2e-5c11531659f5@durietz.se> I agree! Regards Stefan On 2017-02-22 11:41, Lester Anderson wrote: > Hi all, > > Just a general query, but has anyone noticed that it takes a lot > longer to load Scilab 6 on Windows compared to v5.5.2 (64-bit)? > > Only installed a little while ago, but 5.5.2 loads really promptly on > a laptop with 4 Gb of RAM and a selection of modules starting, whereas > version 6 takes a while to get going (with no modules). > > Cheers > > Lester > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From sdr at durietz.se Wed Feb 22 11:51:24 2017 From: sdr at durietz.se (Stefan Du Rietz) Date: Wed, 22 Feb 2017 11:51:24 +0100 Subject: [Scilab-users] Scilab 6.0.0 In-Reply-To: <0763cca0-c28d-aaff-4b2e-5c11531659f5@durietz.se> References: <0763cca0-c28d-aaff-4b2e-5c11531659f5@durietz.se> Message-ID: <1ce13c77-2f90-787f-ad2b-08e525c8df85@durietz.se> I have 32-bit versions. Stefan On 2017-02-22 11:47, Stefan Du Rietz wrote: > I agree! > > Regards > Stefan > > On 2017-02-22 11:41, Lester Anderson wrote: >> Hi all, >> >> Just a general query, but has anyone noticed that it takes a lot >> longer to load Scilab 6 on Windows compared to v5.5.2 (64-bit)? >> >> Only installed a little while ago, but 5.5.2 loads really promptly on >> a laptop with 4 Gb of RAM and a selection of modules starting, whereas >> version 6 takes a while to get going (with no modules). >> >> Cheers >> >> Lester >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From sdr at durietz.se Wed Feb 22 18:30:34 2017 From: sdr at durietz.se (Stefan Du Rietz) Date: Wed, 22 Feb 2017 18:30:34 +0100 Subject: [Scilab-users] Scilab 6.0.0, read() In-Reply-To: References: <4cf69b09-2a89-fbe2-9ab1-9ebcebf75fa9@durietz.se> Message-ID: <888d4353-c269-bb70-d884-39319b9fdbfe@durietz.se> Here you are, Lester! A script that generates a comparatively small data file and then reads it is attached. In a small laptop computer with Windows 10 and 32-bit versions of Scilab: Scilab-5.5.2: size(mat) = [10000 7] mat took 0.08 sec to read. size(mat) = [10000 7] Scilab-6.0.0: size(mat) = [10000 7] mat took 39.14 sec to read. size(mat) = [10000 7] Regards Stefan On 2017-02-22 11:43, Lester Anderson wrote: > Haven't got as far as testing the functions, but just starting version > 6 compared to 5.5.2 is slower; not sure what is going on. Testing on > Windows 8.1 (4 Gb RAM). > > Do you have a test script to try, see if the issue can be reproduced? > > Cheers > Lester > > On 22 February 2017 at 10:15, Stefan Du Rietz wrote: >> Hello, >> I got Scilab 6 to work in a Windows 10 laptop. However, my loading of data >> with read() took almost half an hour. >> From toc() and mprintf(): >> Loading of data took 26 min 23 sec >> >> In Scilab 5.5.2 it took just over a second. >> From toc() and mprintf(): >> Loading of data took 1.219 sec. >> >> What happened? >> >> Regards >> Stefan >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- A non-text attachment was scrubbed... Name: test_read.sce Type: application/x-scilab Size: 433 bytes Desc: not available URL: From Serge.Steer at inria.fr Wed Feb 22 21:17:29 2017 From: Serge.Steer at inria.fr (Serge Steer) Date: Wed, 22 Feb 2017 21:17:29 +0100 Subject: [Scilab-users] Scilab 6.0.0, read() In-Reply-To: <888d4353-c269-bb70-d884-39319b9fdbfe@durietz.se> References: <4cf69b09-2a89-fbe2-9ab1-9ebcebf75fa9@durietz.se> <888d4353-c269-bb70-d884-39319b9fdbfe@durietz.se> Message-ID: <15f21050-3661-2bfb-e8d5-aaad3dde3343@inria.fr> I got similar results under Linux : Scilab-5.5.2: 0.03 s Scilab-6.0.0: 5.13s Serge Le 22/02/2017 ? 18:30, Stefan Du Rietz a ?crit : > Here you are, Lester! A script that generates a comparatively small > data file and then reads it is attached. > > In a small laptop computer with Windows 10 and 32-bit versions of Scilab: > > Scilab-5.5.2: > > size(mat) = [10000 7] > mat took 0.08 sec to read. > size(mat) = [10000 7] > > Scilab-6.0.0: > > size(mat) = [10000 7] > mat took 39.14 sec to read. > size(mat) = [10000 7] > > Regards > Stefan > > > On 2017-02-22 11:43, Lester Anderson wrote: >> Haven't got as far as testing the functions, but just starting version >> 6 compared to 5.5.2 is slower; not sure what is going on. Testing on >> Windows 8.1 (4 Gb RAM). >> >> Do you have a test script to try, see if the issue can be reproduced? >> >> Cheers >> Lester >> >> On 22 February 2017 at 10:15, Stefan Du Rietz wrote: >>> Hello, >>> I got Scilab 6 to work in a Windows 10 laptop. However, my loading >>> of data >>> with read() took almost half an hour. >>> From toc() and mprintf(): >>> Loading of data took 26 min 23 sec >>> >>> In Scilab 5.5.2 it took just over a second. >>> From toc() and mprintf(): >>> Loading of data took 1.219 sec. >>> >>> What happened? >>> >>> Regards >>> Stefan >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From clement.david at scilab-enterprises.com Wed Feb 22 21:26:05 2017 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Wed, 22 Feb 2017 21:26:05 +0100 Subject: [Scilab-users] Scilab 6.0.0, read() In-Reply-To: <888d4353-c269-bb70-d884-39319b9fdbfe@durietz.se> References: <4cf69b09-2a89-fbe2-9ab1-9ebcebf75fa9@durietz.se> <888d4353-c269-bb70-d884-39319b9fdbfe@durietz.se> Message-ID: <1487795165.2765.7.camel@scilab-enterprises.com> Hi Stefan, Lester, I confirmed the issue (0.02s in 5.5.2 vs 6.90 in 6.0.0) and on a local build I am able to trace the issue using the Linux perf tool: +???58,69%????58,68%??libsciast.so.6.0.0??????????????[.] types::getIndexesWithDims?????????????? +???22,09%????22,08%??libsciast.so.6.0.0??????????????[.] types::ArrayOf::resize????????? +???12,18%????12,18%??libsciast.so.6.0.0??????????????[.] types::getIndexWithDims???????????????? +????4,04%?????4,04%??libsciast.so.6.0.0??????????????[.] types::ArrayOf::getIndexes? So it seems that too much resizing occurs :/ . Could you post a bug with your test case please ? Thanks, -- Cl?ment Le mercredi 22 f?vrier 2017 ? 18:30 +0100, Stefan Du Rietz a ?crit?: > Here you are, Lester! A script that generates a comparatively small? > data file and then reads it is attached. > > In a small laptop computer with Windows 10 and 32-bit versions of Scilab: > > Scilab-5.5.2: > > size(mat) = [10000??7] > mat took 0.08 sec to read. > size(mat) = [10000??7] > > Scilab-6.0.0: > > size(mat) = [10000??7] > mat took 39.14 sec to read. > size(mat) = [10000??7] > > Regards > Stefan > > > On 2017-02-22 11:43, Lester Anderson wrote: > > Haven't got as far as testing the functions, but just starting version > > 6 compared to 5.5.2 is slower; not sure what is going on. Testing on > > Windows 8.1 (4 Gb RAM). > > > > Do you have a test script to try, see if the issue can be reproduced? > > > > Cheers > > Lester > > > > On 22 February 2017 at 10:15, Stefan Du Rietz wrote: > > > Hello, > > > I got Scilab 6 to work in a Windows 10 laptop. However, my loading of data > > > with read() took almost half an hour. > > > From toc() and mprintf(): > > > Loading of data took 26 min 23 sec > > > > > > In Scilab 5.5.2 it took just over a second. > > > From toc() and mprintf(): > > > Loading of data took 1.219 sec. > > > > > > What happened? > > > > > > Regards > > > Stefan > > > _______________________________________________ > > > users mailing list > > > users at lists.scilab.org > > > http://lists.scilab.org/mailman/listinfo/users > > > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From arctica1963 at gmail.com Thu Feb 23 07:42:31 2017 From: arctica1963 at gmail.com (Lester Anderson) Date: Thu, 23 Feb 2017 06:42:31 +0000 Subject: [Scilab-users] Scilab 6.0.0, read() In-Reply-To: <888d4353-c269-bb70-d884-39319b9fdbfe@durietz.se> References: <4cf69b09-2a89-fbe2-9ab1-9ebcebf75fa9@durietz.se> <888d4353-c269-bb70-d884-39319b9fdbfe@durietz.se> Message-ID: Thanks Stefan for the script: Windows 8.1 (64-bit) 4 Gb RAM Program load time (approx) 5.5.2 ~9 seconds (with modules installed) 6.0.0 ~20 seconds (no modules) 5.5.2 results: size(mat) = [10000 7] mat took 0.04 sec to read. size(mat) = [10000 7] 6.0.0 results: size(mat) = [10000 7] mat took 13.62 sec to read. size(mat) = [10000 7 Cheers Lester On 22 February 2017 at 17:30, Stefan Du Rietz wrote: > Here you are, Lester! A script that generates a comparatively small data > file and then reads it is attached. > > In a small laptop computer with Windows 10 and 32-bit versions of Scilab: > > Scilab-5.5.2: > > size(mat) = [10000 7] > mat took 0.08 sec to read. > size(mat) = [10000 7] > > Scilab-6.0.0: > > size(mat) = [10000 7] > mat took 39.14 sec to read. > size(mat) = [10000 7] > > Regards > Stefan > > > > On 2017-02-22 11:43, Lester Anderson wrote: >> >> Haven't got as far as testing the functions, but just starting version >> 6 compared to 5.5.2 is slower; not sure what is going on. Testing on >> Windows 8.1 (4 Gb RAM). >> >> Do you have a test script to try, see if the issue can be reproduced? >> >> Cheers >> Lester >> >> On 22 February 2017 at 10:15, Stefan Du Rietz wrote: >>> >>> Hello, >>> I got Scilab 6 to work in a Windows 10 laptop. However, my loading of >>> data >>> with read() took almost half an hour. >>> From toc() and mprintf(): >>> Loading of data took 26 min 23 sec >>> >>> In Scilab 5.5.2 it took just over a second. >>> From toc() and mprintf(): >>> Loading of data took 1.219 sec. >>> >>> What happened? >>> >>> Regards >>> Stefan >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From lists at kybdr.de Thu Feb 23 10:57:40 2017 From: lists at kybdr.de (Dirk Reusch) Date: Thu, 23 Feb 2017 10:57:40 +0100 Subject: [Scilab-users] Scilab 6.0 C++ API // Crashes due to function calls via overloading mechanism Message-ID: <20170223105740.4387246a@lemon> Hello, Using the precompiled "scilab-branch-6.0-1487071837" under Linux 64bit, I am experiencing crashes "Segmentation fault (core dumped)". I am trying to use the new C++ API to implement operations like addition for an user-defined type, lets say "T". To reproduce the crashes, I have stripped everything down to the following minimal example: 1. Implementation of addition operation for Type "T" using C++ API: ------------------------------------------------------------------- types::Function::ReturnValue sci_T_a_T(types::typed_list &in, int _iRetCount, types::typed_list &out) { try { return types::Function::OK_NoResult; } catch(std::exception& e) { return types::Function::Error; } return types::Function::OK_NoResult; } 2. Compile "sci_T_a_T" and map it to "%T_a_T" Scilab function ------------------------------------------------------------- 3. Use "%T_a_T" directly => OK ------------------------------ A=tlist("T"); B=tlist("T"); %T_a_T(A,B) // OK 4. Use "%T_a_T" via overloading mechanism of "+" operator => Crash ------------------------------------------------------------------ A=tlist("T"); B=tlist("T"); A+B // => Crashes Scilab (Segmentation fault (core dumped)) ------------------------------------------------------------------ So, it seems that using "try-catch" is a problem, when the function is called via Scilab's overloading mechanism!? What am I doing wrong, or is it a bug of Scilab? Please note, that avoiding "try-catch" is not really an option for me, because I have to use C++ functions from a library with error reporting via exceptions. Thanks for any advice and further insight, Dirk From sdr at durietz.se Thu Feb 23 15:47:20 2017 From: sdr at durietz.se (Stefan Du Rietz) Date: Thu, 23 Feb 2017 15:47:20 +0100 Subject: [Scilab-users] Scilab 6.0.0 cannot start In-Reply-To: <1487579266.2130.1.camel@scilab-enterprises.com> References: <1402226a-6b25-1339-7358-a391c42df443@durietz.se> <1487579266.2130.1.camel@scilab-enterprises.com> Message-ID: Hello Cl?ment, I will first tell you some odd things. It appeared that Scilab 5.5.2 had got exactly the same issue in this computer (I had not used it for a while)! I know that the only changes since I last used it were, besides installation of Scilab 6, updates of Java and Windows 7 Pro. I uninstalled Scilab 6, then uninstalled and reinstalled Scilab 5 to no avail. As far as I can imagine, it must be a permissions issue that is not present in the Console? Do you have a hint? Do you still want me to open a bug? Best regards Stefan On 2017-02-20 09:27, Cl?ment David wrote: > Hi Stefan, > > Could you open a bug with all your system information please ? > > As you might known, we not only build scilab but also pass the tests on the binary version using a > set of different machines before releasing. This is likely a bug in your local configuration (either > graphical card or software setup); please describe what's specific in your setup and post the result > of `[s,d]=getdebuginfo()` using Scilab 5.5.2. > > Thanks, > > -- > Cl?ment > > Le dimanche 19 f?vrier 2017 ? 11:09 +0100, Stefan Du Rietz a ?crit : >> Dear Scilab team, >> thank you very much for the new version! >> >> But when I try to start "Scilab 6.0.0" from the Windows 7 Start menu I >> get this message: >> >> "Scilab cannot create Scilab Java Main-Class (we have not been able to >> find the main Scilab class. Check if the Scilab and third-party >> packages are available)." >> >> Only "Java 8 Update 121" is installed. >> >> "Scilab Console" or "Run as Administrator" with "Scilab 6.0.0" does work. >> >> Regards >> Stefan >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From p.muehlmann at gmail.com Thu Feb 23 16:04:56 2017 From: p.muehlmann at gmail.com (=?UTF-8?Q?Philipp_M=C3=BChlmann?=) Date: Thu, 23 Feb 2017 16:04:56 +0100 Subject: [Scilab-users] Scilab 6.0.0, read() In-Reply-To: References: <4cf69b09-2a89-fbe2-9ab1-9ebcebf75fa9@durietz.se> <888d4353-c269-bb70-d884-39319b9fdbfe@durietz.se> Message-ID: another test out of curiosity Windows 7 - 64 bit 8 GB Ram 8 Prozessoren Scilab 5.4.1 (64bit) mat took 0.03 sec to read. size(mat) = [10000 7] Scilab 5.5.1 (64 bit) mat took 0.03 sec to read. size(mat) = [10000 7] Scilab 6.0.0 (64 bit) mat took 8.59 sec to read. size(mat) = [10000 7] 2017-02-23 7:42 GMT+01:00 Lester Anderson : > Thanks Stefan for the script: > > Windows 8.1 (64-bit) 4 Gb RAM > > Program load time (approx) > 5.5.2 ~9 seconds (with modules installed) > 6.0.0 ~20 seconds (no modules) > > 5.5.2 results: > size(mat) = [10000 7] > mat took 0.04 sec to read. > size(mat) = [10000 7] > > 6.0.0 results: > size(mat) = [10000 7] > mat took 13.62 sec to read. > size(mat) = [10000 7 > > Cheers > Lester > > On 22 February 2017 at 17:30, Stefan Du Rietz wrote: > > Here you are, Lester! A script that generates a comparatively small data > > file and then reads it is attached. > > > > In a small laptop computer with Windows 10 and 32-bit versions of Scilab: > > > > Scilab-5.5.2: > > > > size(mat) = [10000 7] > > mat took 0.08 sec to read. > > size(mat) = [10000 7] > > > > Scilab-6.0.0: > > > > size(mat) = [10000 7] > > mat took 39.14 sec to read. > > size(mat) = [10000 7] > > > > Regards > > Stefan > > > > > > > > On 2017-02-22 11:43, Lester Anderson wrote: > >> > >> Haven't got as far as testing the functions, but just starting version > >> 6 compared to 5.5.2 is slower; not sure what is going on. Testing on > >> Windows 8.1 (4 Gb RAM). > >> > >> Do you have a test script to try, see if the issue can be reproduced? > >> > >> Cheers > >> Lester > >> > >> On 22 February 2017 at 10:15, Stefan Du Rietz wrote: > >>> > >>> Hello, > >>> I got Scilab 6 to work in a Windows 10 laptop. However, my loading of > >>> data > >>> with read() took almost half an hour. > >>> From toc() and mprintf(): > >>> Loading of data took 26 min 23 sec > >>> > >>> In Scilab 5.5.2 it took just over a second. > >>> From toc() and mprintf(): > >>> Loading of data took 1.219 sec. > >>> > >>> What happened? > >>> > >>> Regards > >>> Stefan > >>> _______________________________________________ > >>> users mailing list > >>> users at lists.scilab.org > >>> http://lists.scilab.org/mailman/listinfo/users > >> > >> _______________________________________________ > >> users mailing list > >> users at lists.scilab.org > >> http://lists.scilab.org/mailman/listinfo/users > >> > > > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -- In Kanada is' ka' na' da. Sonst w?r' Kanada Jemanda. There we have the salad. -------------- next part -------------- An HTML attachment was scrubbed... URL: From clement.david at scilab-enterprises.com Thu Feb 23 17:52:15 2017 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Thu, 23 Feb 2017 17:52:15 +0100 Subject: [Scilab-users] Scilab 6.0.0 cannot start In-Reply-To: References: <1402226a-6b25-1339-7358-a391c42df443@durietz.se> <1487579266.2130.1.camel@scilab-enterprises.com> Message-ID: <1487868735.2765.9.camel@scilab-enterprises.com> Hi Stefan, Le jeudi 23 f?vrier 2017 ? 15:47 +0100, Stefan Du Rietz a ?crit?: > I will first tell you some odd things. It appeared that Scilab 5.5.2? > had got exactly the same issue in this computer (I had not used it for? > a while)! I know that the only changes since I last used it were,? > besides installation of Scilab 6, updates of Java and Windows 7 Pro. > > I uninstalled Scilab 6, then uninstalled and reinstalled Scilab 5 to? > no avail. > > As far as I can imagine, it must be a permissions issue that is not? > present in the Console? > > Do you have a hint? Do you still want me to open a bug? These kind of issues are always hard to fix, usually I recommend to install Scilab in an up-to-date computer. Could you try launching scilab from the command-line and log any issue ? Note: opening a bug will log the issue. This is useful to track the number of impacted users as well as keeping track of related information. I always prefer closing a bug as "WONTFIX" or "INVALID" rather than looking for information on a ML thread :). Thanks, -- Cl?ment From sgougeon at free.fr Thu Feb 23 22:03:26 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 23 Feb 2017 22:03:26 +0100 Subject: [Scilab-users] * Index in the matrices In-Reply-To: <1487796625.30700.1.camel@yahoo.es> References: <1487233426.2065.1.camel@scilab-enterprises.com> <1487796625.30700.1.camel@yahoo.es> Message-ID: http://mailinglists.scilab.org/Scilab-6-0-0-has-been-released-tp4035500p4035570.html Le 22/02/2017 ? 21:50, Amanda Osvaldo a ?crit : > > > ** Index in the matrices* > > Sometimes knowing the X, Y position of the coordinate values of the > matrices is important. > > Is there any simple way to show the same by the macro disp? > What do you mean by "X, Y position of the coordinate values of the matrices"? Could you provide an example with a simple input and the required display? -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Thu Feb 23 22:23:59 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 23 Feb 2017 22:23:59 +0100 Subject: [Scilab-users] * Data compression + Hash + Data maps In-Reply-To: <1487796625.30700.1.camel@yahoo.es> References: <1487233426.2065.1.camel@scilab-enterprises.com> <1487796625.30700.1.camel@yahoo.es> Message-ID: <2544ffcb-00a2-7a81-559b-78f273ec08b8@free.fr> Le 22/02/2017 ? 21:50, Amanda Osvaldo a ?crit : > > > ** Data compression + Hash + Data maps** > * > > Once I had to work with 30 million vectors, luckily there was an order > in the vectors and I could compress them and thus reduce to a few > minutes calculations that took hours. > > However, I was struck by the lack of support for data structure such > as trees. > > I'm referring to going beyond the list and struct. > > In that case, for example, in addition to compacting the tree data I > would send the tree indexes to the macros and the macros would > transform into a sequence, do the calculations and return the result > as an index of the compressed values. > > This requires a number of control and search macros. > > > Hi, since they opened the subject of new updates, I am sending these > suggestions. You may have a look at the *vec2list*() macro, and *pack*() and *unpack*() (may be with some adaptations). I agree: functions processing containers or data in heterogeneous containers are missing or too poor. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Thu Feb 23 22:51:47 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 23 Feb 2017 22:51:47 +0100 Subject: [Scilab-users] * ParFor : a parallelized dedicated for loop control structure In-Reply-To: <1487796625.30700.1.camel@yahoo.es> References: <1487233426.2065.1.camel@scilab-enterprises.com> <1487796625.30700.1.camel@yahoo.es> Message-ID: <746386f9-3beb-1db8-5242-5a3f8fb0b868@free.fr> http://mailinglists.scilab.org/Scilab-6-0-0-has-been-released-tp4035500p4035570.html Le 22/02/2017 ? 21:50, Amanda Osvaldo a ?crit : > > ** ParFor* > > Forward parallelism, it would also be very convenient to be able to > parallelize operations within the macro without having to put the code > to be paralyzed in another macro. > > For example: > > data = [1:10]; > > r = []; > > *parfor* i = 1:10 > > r(i) = data(i) * 5; // Each operation will be performed in parallel > > endfor > > // You will only reach this line after all the parallel operations > have finished. > > disp(r); > Indeed, this would be a very handy and straightforward way to run a parallelized loop. For the time being, although its help page is still distributed, https://help.scilab.org/docs/6.0.0/en_US/parallel_run.html */parallel_run/* has been removed from Scilab 6 --> parallel_run Undefined variable: parallel_run It was pointed to one year ago: http://bugzilla.scilab.org/14486 And some MPI features announced in the restricted 6.0.0 release notes are not actually distributed: /* MPI_Create_comm create a new communicator from MPI_COMM_WORLD using MPI world ranks.// / --> MPI_Create_comm Impossible to load mpi.dll library at least on the MSWindows 64 bits plateform, for which the Scilab installer proposes by default to instal the MPI module. So, parallelization is somewhat regressing. On windows, not really, since parallel_run never actually addressed more than one processor. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From contact at pierre-vuillemin.fr Fri Feb 24 10:01:38 2017 From: contact at pierre-vuillemin.fr (Pierre Vuillemin) Date: Fri, 24 Feb 2017 10:01:38 +0100 Subject: [Scilab-users] Strange behaviour of the auto-indent ctrl + i Message-ID: Hello all, I've just realised that block-comments are now available in Scilab 6 and I find it quite convenient. I've noticed strange behaviour when using the auto-indent tool ctrl + i in scinote though. For instance with this code // Author : Pierre Vuillemin (2017) // License : GNU GPL function problem = sopi_max(fun, varargin) /* Creates a maximisation problem. Calling Sequence problem = sopi_max(fun) problem = sopi_max(fun, c1, ..., cn) Parameters fun : the objective function (sopiVar) ci : constraints (sopiCst or list of sopiCst) problem : the optimisation problem (sopiPro) See also sopi_var sopi_min sopi_solve sopi_example */ problem = sopi_min(-fun, varargin(:)) endfunction the auto-ident tool adds strange indentation to the endfunction + it suppress the indentation of the text withing the block comment. Shouldn't it behave as if // were used? Regards, Pierre From paul.bignier at scilab-enterprises.com Fri Feb 24 10:28:42 2017 From: paul.bignier at scilab-enterprises.com (Paul Bignier) Date: Fri, 24 Feb 2017 10:28:42 +0100 Subject: [Scilab-users] Strange behaviour of the auto-indent ctrl + i In-Reply-To: References: Message-ID: <149d7ea6-000e-b6e0-fed9-273a345a6fdd@scilab-enterprises.com> Hi Pierre, The handling of comments looks buggy indeed, could you please report a bug with the test-case? Thanks! Regards, Paul On 02/24/2017 10:01 AM, Pierre Vuillemin wrote: > Hello all, > > I've just realised that block-comments are now available in Scilab 6 > and I find it quite convenient. I've noticed strange behaviour when > using the auto-indent tool ctrl + i in scinote though. > > For instance with this code > > > > // Author : Pierre Vuillemin (2017) > // License : GNU GPL > > function problem = sopi_max(fun, varargin) > /* > Creates a maximisation problem. > > Calling Sequence > problem = sopi_max(fun) > problem = sopi_max(fun, c1, ..., cn) > > Parameters > fun : the objective function (sopiVar) > ci : constraints (sopiCst or list of sopiCst) > problem : the optimisation problem (sopiPro) > > See also > sopi_var > sopi_min > sopi_solve > sopi_example > */ > problem = sopi_min(-fun, varargin(:)) > endfunction > > > the auto-ident tool adds strange indentation to the endfunction + it > suppress the indentation of the text withing the block comment. > Shouldn't it behave as if // were used? > > Regards, > > Pierre > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Paul BIGNIER Development engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.68 http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.bignier at scilab-enterprises.com Fri Feb 24 14:58:19 2017 From: paul.bignier at scilab-enterprises.com (Paul Bignier) Date: Fri, 24 Feb 2017 14:58:19 +0100 Subject: [Scilab-users] Xcos block label is deleted when block is part of a subsystem In-Reply-To: References: Message-ID: <416684d7-8c43-1eeb-02d0-cb92f340f456@scilab-enterprises.com> Hello Nils, I filed a bug for your report, we're looking into it, turns out the labels don't work for simple blocks either! Thanks your your feedback, Regards, Paul On 11/08/2016 10:15 AM, Nils.Leimbach at dlr.de wrote: > > Hello! > > I have stumbled upon the problem. A block label in Xcos will be > deleted, if it is part of a subsystem (inside a superblock) and > altered outside of Xcos. > > The label data is stored in block.graphics.id (inside of the > respective subsystem of a superblock; so superblock.model.rpar). When > I alter the content of that field, or even pull the scs_m data from > Xcos and try to reopen / reload it using the xcos(scs_m) command, all > labels inside of superblocks are deleted. > > I am not sure if this is a bug or wether I am missing a key part to > the process, but I hope this can be fixed as it is essential for my > work in progress, that I can add labels to blocks on all layers of the > simulation and that these will be considered when loading the diagram > into Xcos. > > Best regards > > Nils Leimbach > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Paul BIGNIER Development engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.68 http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sat Feb 25 18:05:23 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 25 Feb 2017 18:05:23 +0100 Subject: [Scilab-users] Curing scf() & figure() slowliness: a good target for Scilab 6.0.1 Message-ID: <0b84b337-7106-a05e-66db-c728778cc762@free.fr> Hello, Opening a new empty figure (without drawing anything) is a so common elementary task and it has become so long that i have built a short benchmark about it from Scilab 4.1.2 to Scilab 6.0. Detailed results are here-below. The main conclusions are the following: 1. with no pre-existing figure,*scf**() is **20 times slower in **5.5 and 6.0 than in *its best performances in *5.3.0*. On my computer, it takes 0.062 s with 5.3.0 and 1.3 s now (5.5.2|6.0). Scilab 5.4.0, 5.4.1 and 5.5.0 have dramatically damaged performances. The loss is even 10x bigger with figure(): it is ~200 times slower with Scilab 5.5 & 6.0 than with Scilab 4.1.2 2. Since Scilab 5.5.0, the time taken to open a new figure increases linearly with the number of already opened figures. On my computer, opening the first one (after loading scf()) takes 1.8 s, and opening the 20th one takes almost 10 s. This is still the case with Scilab 6.0. *Detailled results: * 1. Opening the first figure : Only 2 tests are reported with figure() instead of scf(). ?t=0; for i=1:50, tic(); scf(); t=t+toc(); xdel(); end; t, t/50 [s] [s] 4.1.2 base figure() 6.0.0 : 62.39/50 1.248 18.5 2.32 5.5.2 : 73.62/50 1.4723 21.8 5.5.0 : 69.94/50 1.3988 20.8 5.4.1 : 37.33/50 0.7466 11.1 5.4.0 : 24.07/50 0.4814 7.14 5.3.0 : 3.102/50 0.0620 0.92 5.1.0 : 4.069/50 0.0814 1.21 4.1.2 : 3.370/50 0.0674 1.00 0.014 2. Opening 20 figures : t=[]; for i=1:20, tic(); scf(); t(i)=toc(); end; sum(t)/20 6.0.0 : 5.30 [1.35 => 9.51] 5.5.2 : 5.68 [1.77 => 9.92] 5.5.0 : 5.66 [1.82 => 9.85] range from the #1 to #20 5.4.1 : 1.18 5.4.0 : 0.923 5.3.0 : 0.110 5.1.0 : 4.1.2 : 0.0774 Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: jcodlckpmnenjjdp.png Type: image/png Size: 7754 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: jgdmiphdjmkceaap.png Type: image/png Size: 8579 bytes Desc: not available URL: From Pablo_F_7 at hotmail.com Sat Feb 25 19:17:57 2017 From: Pablo_F_7 at hotmail.com (Pablo Fonovich) Date: Sat, 25 Feb 2017 18:17:57 +0000 Subject: [Scilab-users] Bode of discret time transfer function. Message-ID: Hi: This is the first time i work with discrete time transfers functions and Scilab. I want to use bode() for plotting the magnitud and phase response of the system, however, i don't understand how to set the frequencies to normalized values (-pi, pi). This is what i'm doing: s=poly(0,'s') H=(s^(-2400))/(1-0.5*s^(-2400)) S=syslin('d',H) bode(S) i get a warning that frequencies beyond nyquist rate are ignored and the resulting plot is attached. [cid:4845973f-0da4-4dd3-ade0-64a7e55422d3] In the help, it says that bode parameter could include fmin and fmax in herz, but isn't a discrete system response limited to normalized frequencies? And to transform the normalized frecuency to herz the sample rate must be used, but i don't know how to pass it to the system or something. Any hints would be appreciated. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pastedImage.png Type: image/png Size: 32789 bytes Desc: pastedImage.png URL: From Serge.Steer at inria.fr Sat Feb 25 20:38:11 2017 From: Serge.Steer at inria.fr (Serge Steer) Date: Sat, 25 Feb 2017 20:38:11 +0100 Subject: [Scilab-users] Bode of discret time transfer function. In-Reply-To: References: Message-ID: <0138406e-f821-850c-2e45-0196838e323d@inria.fr> Le 25/02/2017 ? 19:17, Pablo Fonovich a ?crit : > > Hi: > > This is the first time i work with discrete time transfers functions > and Scilab. > > I want to use bode() for plotting the magnitud and phase response of > the system, however, i don't understand how to set the frequencies to > normalized values (-pi, pi). > > This is what i'm doing: > > > s=poly(0,'s') > H=(s^(-2400))/(1-0.5*s^(-2400)) > S=syslin('d',H) > bode(S) > > > i get a warning that frequencies beyond nyquist rate are ignored and > the resulting plot is attached. > > > In the help, it says that bode parameter could include fmin and fmax > in herz, but isn't a discrete system response limited to normalized > frequencies? And to transform the normalized frecuency to herz the > sample rate must be used, but i don't know how to pass it to the > system or something. > S=syslin(dt,H) defines a dynamical system sampled. dt beeing the sampling period in second. If you want the frequency uniis be in rd/s add "rad" as last input argument > > Any hints would be appreciated. > > Thanks > > > > _______________________________________________ > 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: not available Type: image/png Size: 32789 bytes Desc: not available URL: From tim at wescottdesign.com Sat Feb 25 22:53:51 2017 From: tim at wescottdesign.com (Tim Wescott) Date: Sat, 25 Feb 2017 13:53:51 -0800 Subject: [Scilab-users] Bode of discret time transfer function. In-Reply-To: <0138406e-f821-850c-2e45-0196838e323d@inria.fr> References: <0138406e-f821-850c-2e45-0196838e323d@inria.fr> Message-ID: <1488059631.3078.79.camel@wescottdesign.com> First, 'bode' is going to give you a Bode plot, and it's going to be insistent on giving it to you in log-log format -- so if you want a plot on a linear frequency axis from -pi to +pi, then you need to do it by hand. Second, 'bode' is pretty insistent about reporting things as per second -- if you define a system as 'd' then it'll act like the system is sampled at 1Hz. If, for instance, you run: H = syslin('d', (%z - 0.9) / (%z - 1)); g = scf(0); clf; bode(H, 0.001, 0.4999, 'rad') You will get the following plot: It puts the vertical red lines there, presumably to mark Nyquist, even though we're displaying in radians per sample, and it reports things as radians/s. ?You can get into the guts of the graph and fix it up, though: delete(g.children(2).children(1)); ? // Delete the top red line delete(g.children(1).children(1)); ? // Delete the bottom red line g.children(2).x_label.text = "Frequency (rad/sample)"; ?// Change the top text g.children(1).x_label.text = "Frequency (rad/sample)"; ?// change the bottom text Do all this, and you get: On Sat, 2017-02-25 at 20:38 +0100, Serge Steer wrote: > Le 25/02/2017 ? 19:17, Pablo Fonovich a ?crit?: > > Hi: > > This is the first time i work with discrete time transfers > > functions and Scilab. > > I want to use bode() for plotting the magnitud and phase response > > of the system, however, i don't understand how to set the > > frequencies to normalized values (-pi, pi). > > This is what i'm doing: > > > > s=poly(0,'s') > > H=(s^(-2400))/(1-0.5*s^(-2400)) > > S=syslin('d',H) > > bode(S) > > > > i get a warning that frequencies beyond nyquist rate are ignored > > and the resulting plot is attached. > > > > In the help, it says that bode parameter could include fmin and > > fmax in herz, but isn't a discrete system response limited to > > normalized frequencies? And to transform the normalized frecuency > > to herz the sample rate must be used, but i don't know how to pass > > it to the system or something. > ?S=syslin(dt,H) defines a dynamical system sampled. dt beeing the > sampling period in second. > If you want the frequency uniis be in rd/s add "rad" as last input > argument > > Any hints would be appreciated. > > Thanks > > > > > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: unknown-8KK9VY Type: image/png Size: 11825 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: unknown-R2OMWY Type: image/png Size: 11702 bytes Desc: not available URL: From tim at wescottdesign.com Sat Feb 25 22:57:31 2017 From: tim at wescottdesign.com (Tim Wescott) Date: Sat, 25 Feb 2017 13:57:31 -0800 Subject: [Scilab-users] Bode of discret time transfer function. In-Reply-To: References: Message-ID: <1488059851.3078.83.camel@wescottdesign.com> Not sure what you're trying to achieve, but if you want a plot of the linear amplitude response on a linear frequency line, use Horner: H = syslin('d', (%z - 0.9) / (%z - 99)); th = %pi * (-1:0.01:1)'; clf; plot2d(th, abs(horner(H, exp(%i * th)))); xgrid(2) On Sat, 2017-02-25 at 18:17 +0000, Pablo Fonovich wrote: > Hi: > This is the first time i work with discrete time transfers functions > and Scilab. > I want to use bode() for plotting the magnitud and phase response of > the system, however, i don't understand how to set the frequencies to > normalized values (-pi, pi). > This is what i'm doing: > > s=poly(0,'s') > H=(s^(-2400))/(1-0.5*s^(-2400)) > S=syslin('d',H) > bode(S) > > i get a warning that frequencies beyond nyquist rate are ignored and > the resulting plot is attached. > > In the help, it says that bode parameter could include fmin and fmax > in herz, but isn't a discrete system response limited to normalized > frequencies? And to transform the normalized frecuency to herz the > sample rate must be used, but i don't know how to pass it to the > system or something. > > Any hints would be appreciated. > Thanks > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From fujimoto2005 at gmail.com Sun Feb 26 12:49:59 2017 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Sun, 26 Feb 2017 04:49:59 -0700 (MST) Subject: [Scilab-users] Bessel cubic spline Message-ID: <1488109799021-4035600.post@n3.nabble.com> Is there a function of Bessel cubic spline? I mean Besse cubic spline as follows. 1,pieacewise 3 degree polynomial on the each interval [x(i),x(i+1)] for i=1,2,..,n-1 2,f(x(i))=y(i) for 1=1,2,..,n 3,continuous at all xi for i=2,...,n-1 4,differnciable at all xi for i=2,...,n-1 5,f''(xi) for i=2,...,n-1 is same as the slope of a quadratic function which pass 3 points (x(i-1),y(i-1)) (x(i),y(i)),(x(i+1),y(i+1)) 5,f''(x(1))is same as the slope of a quadratic function which pass 3 points (x(1),y(1)) (x(2),y(2)),(x(3),y(3)) 5,f''(x(n))is same as the slope of a quadratic function which pass 3 points (x(n-2),y(n-2)) (x(n-1),y(n-1)),(x(n),y(n)) Best regards -- View this message in context: http://mailinglists.scilab.org/Bessel-cubic-spline-tp4035600.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From bruno.pincon at univ-lorraine.fr Sun Feb 26 14:16:01 2017 From: bruno.pincon at univ-lorraine.fr (=?UTF-8?Q?Pin=c3=a7on_Bruno?=) Date: Sun, 26 Feb 2017 14:16:01 +0100 Subject: [Scilab-users] Bessel cubic spline In-Reply-To: <1488109799021-4035600.post@n3.nabble.com> References: <1488109799021-4035600.post@n3.nabble.com> Message-ID: <219b2744-c3fb-b8f4-9d56-3da3323b6567@univ-lorraine.fr> Le 26/02/2017 ? 12:49, fujimoto2005 a ?crit : > Is there a function of Bessel cubic spline? > I mean Besse cubic spline as follows. > 1,pieacewise 3 degree polynomial on the each interval [x(i),x(i+1)] for > i=1,2,..,n-1 > 2,f(x(i))=y(i) for 1=1,2,..,n > 3,continuous at all xi for i=2,...,n-1 > 4,differnciable at all xi for i=2,...,n-1 > 5,f''(xi) for i=2,...,n-1 is same as the slope of a quadratic function which > pass 3 points (x(i-1),y(i-1)) (x(i),y(i)),(x(i+1),y(i+1)) > 5,f''(x(1))is same as the slope of a quadratic function which pass 3 points > (x(1),y(1)) (x(2),y(2)),(x(3),y(3)) > 5,f''(x(n))is same as the slope of a quadratic function which pass 3 points > (x(n-2),y(n-2)) (x(n-1),y(n-1)),(x(n),y(n)) > Hello, this is the option "fast" of the splin function (use splin to compute the spline and interp to evaluate it at some points). hth Bruno From tim at wescottdesign.com Sun Feb 26 21:44:55 2017 From: tim at wescottdesign.com (tim at wescottdesign.com) Date: Sun, 26 Feb 2017 12:44:55 -0800 Subject: [Scilab-users] Bessel cubic spline In-Reply-To: <1488109799021-4035600.post@n3.nabble.com> References: <1488109799021-4035600.post@n3.nabble.com> Message-ID: Have you looked at the help for the 'splin' function, to see if any of the various flavors of spline that it will compute is what you want? On 2017-02-26 03:49, fujimoto2005 wrote: > Is there a function of Bessel cubic spline? > I mean Besse cubic spline as follows. > 1,pieacewise 3 degree polynomial on the each interval [x(i),x(i+1)] for > i=1,2,..,n-1 > 2,f(x(i))=y(i) for 1=1,2,..,n > 3,continuous at all xi for i=2,...,n-1 > 4,differnciable at all xi for i=2,...,n-1 > 5,f''(xi) for i=2,...,n-1 is same as the slope of a quadratic function > which > pass 3 points (x(i-1),y(i-1)) (x(i),y(i)),(x(i+1),y(i+1)) > 5,f''(x(1))is same as the slope of a quadratic function which pass 3 > points > (x(1),y(1)) (x(2),y(2)),(x(3),y(3)) > 5,f''(x(n))is same as the slope of a quadratic function which pass 3 > points > (x(n-2),y(n-2)) (x(n-1),y(n-1)),(x(n),y(n)) > > Best regards > > > > -- > View this message in context: > http://mailinglists.scilab.org/Bessel-cubic-spline-tp4035600.html > Sent from the Scilab users - Mailing Lists Archives mailing list > archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From adelson.oliveira at gmail.com Sun Feb 26 22:02:18 2017 From: adelson.oliveira at gmail.com (Adelson Oliveira) Date: Sun, 26 Feb 2017 18:02:18 -0300 Subject: [Scilab-users] A working scilab 6.0 icon in KDE Message-ID: Has anyone succeeded in creating a "link to application" in desktop area to launch scilab 6.0 in KDE 5 plasma? Here, a desktop scilab 6.0 icon does launch scilab 6.0 but it crashes immediately. I can launch scilab 6.0 from command line without any problem. An equivalent desktop icon to launch scilab 5 works properly. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From n.strelkov at gmail.com Sun Feb 26 22:09:27 2017 From: n.strelkov at gmail.com (Nikolay Strelkov) Date: Mon, 27 Feb 2017 00:09:27 +0300 Subject: [Scilab-users] A working scilab 6.0 icon in KDE In-Reply-To: References: Message-ID: Dear Adelson Oliveira! There is a bug with Scilab 6 launch from .desktop shortcut - see bugzilla #14682 . As temporary solution I created launcher with command: env LC_ALL="en_US.UTF-8" xterm -e /home/nikolay/Software/scilab-6.0.0/bin/scilab I tested it in MATE, GNOME and Unity. Hope this helps. -- *With best regards,Ph.D., assistant professor at MPEI ,IEEE member,maintainer of Mathieu functions toolbox for Scilab ,Nikolay Strelkov.* 2017-02-27 0:02 GMT+03:00 Adelson Oliveira : > Has anyone succeeded in creating a "link to application" in desktop area > to launch scilab 6.0 in KDE 5 plasma? > > Here, a desktop scilab 6.0 icon does launch scilab 6.0 but it crashes > immediately. > > I can launch scilab 6.0 from command line without any problem. > > An equivalent desktop icon to launch scilab 5 works properly. > > Thanks > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adelson.oliveira at gmail.com Sun Feb 26 22:40:29 2017 From: adelson.oliveira at gmail.com (Adelson Oliveira) Date: Sun, 26 Feb 2017 18:40:29 -0300 Subject: [Scilab-users] A working scilab 6.0 icon in KDE In-Reply-To: References: Message-ID: Dear Nikolay Strelkov, I tested in KDE 5 plasma and it works fine as well. BTW, I used only, xterm -e /scilabdirectory/scilab no change or reference to the LC_ALL environment. Thanks a lot 2017-02-26 18:09 GMT-03:00 Nikolay Strelkov : > Dear Adelson Oliveira! > > There is a bug with Scilab 6 launch from .desktop shortcut - see bugzilla > #14682 . > > As temporary solution I created launcher with command: > > env LC_ALL="en_US.UTF-8" xterm -e /home/nikolay/Software/scilab-6.0.0/bin/scilab > > I tested it in MATE, GNOME and Unity. > > Hope this helps. > > -- > > > > > *With best regards,Ph.D., assistant professor at MPEI > ,IEEE member,maintainer of > Mathieu functions toolbox for Scilab > ,Nikolay Strelkov.* > > 2017-02-27 0:02 GMT+03:00 Adelson Oliveira : > >> Has anyone succeeded in creating a "link to application" in desktop area >> to launch scilab 6.0 in KDE 5 plasma? >> >> Here, a desktop scilab 6.0 icon does launch scilab 6.0 but it crashes >> immediately. >> >> I can launch scilab 6.0 from command line without any problem. >> >> An equivalent desktop icon to launch scilab 5 works properly. >> >> Thanks >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fujimoto2005 at gmail.com Mon Feb 27 01:41:35 2017 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Sun, 26 Feb 2017 17:41:35 -0700 (MST) Subject: [Scilab-users] Bessel cubic spline In-Reply-To: References: <1488109799021-4035600.post@n3.nabble.com> Message-ID: <1488156095355-4035607.post@n3.nabble.com> Dear Bruno, Wesvott Thank you for your replies. I understand the option "fast" is what I want. Thanks again. -- View this message in context: http://mailinglists.scilab.org/Bessel-cubic-spline-tp4035600p4035607.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From clement.david at scilab-enterprises.com Mon Feb 27 09:05:22 2017 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 27 Feb 2017 09:05:22 +0100 Subject: [Scilab-users] Acquisition of Scilab Enterprises by ESI Group Message-ID: <1488182722.2002.1.camel@scilab-enterprises.com> Dear Scilab users, After 5 years of Scilab versions made by Scilab Enterprises, the operational team is very proud to share with you that ESI Group has acquired the company.??Looking back to the history of Scilab [1], the operational team behind the software has been backed by various structures (publicly funded or private) and this is a new page for the software to be backed by a large and already-established company. ESI Group [2][3] is a pioneer and world-leading provider in Virtual Prototyping, leveraging the physics of materials. The team, now part of ESI Group, remains committed to a free and open source Scilab software for numerical computation. With the experience of OpenFOAM [4], ESI Group has already demonstrated its commitment to open-source software for engineers and scientists. More details at [5] (Press Release). We look forward to great years ahead. [1]: https://www.scilab.org/scilab/history [2]: https://www.esi-group.com/ [3]: https://en.wikipedia.org/wiki/ESI_Group [4]: https://www.esi-group.com/engineering-services/consulting-services/openfoam/what-openfoam [5]: https://www.esi-group.com/company/investors/news/acquisition-scilab-enterprises-publisher-scila b-open-source-analytical-computational-software ?- The Scilab operational team From clement.david at scilab-enterprises.com Mon Feb 27 12:58:19 2017 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 27 Feb 2017 12:58:19 +0100 Subject: [Scilab-users] Curing scf() & figure() slowliness: a good target for Scilab 6.0.1 In-Reply-To: <0b84b337-7106-a05e-66db-c728778cc762@free.fr> References: <0b84b337-7106-a05e-66db-c728778cc762@free.fr> Message-ID: <1488196699.2002.3.camel@scilab-enterprises.com> Hi Samuel, This is clearly a regression : there probably some synchronization issue (CPUs are not busy at all), could you report a bug on it please ? -- Cl?ment Le samedi 25 f?vrier 2017 ? 18:05 +0100, Samuel Gougeon a ?crit?: > Hello, > > Opening a new empty figure (without drawing anything) is a so common elementary task and it has > become so long that i have built a short benchmark about it from Scilab 4.1.2 to Scilab 6.0. > Detailed results are here-below. The main conclusions are the following: > with no pre-existing figure, scf() is 20 times slower in 5.5 and 6.0 than in its best performances > in 5.3.0. On my computer, it takes 0.062 s with 5.3.0 and 1.3 s now (5.5.2|6.0). > Scilab 5.4.0, 5.4.1 and 5.5.0 have dramatically damaged performances. > The loss is even 10x bigger with figure(): it is ~200 times slower with Scilab 5.5 & 6.0 than with > Scilab 4.1.2 > > Since Scilab 5.5.0, the time taken to open a new figure increases linearly with the number of > already opened figures. On my computer, opening the first one (after loading scf()) takes 1.8 s, > and opening the 20th one takes almost 10 s. This is still the case with Scilab 6.0. > Detailled results:? > Opening the first figure : > Only 2 tests are reported with figure() instead of scf(). > ?t=0; for i=1:50, tic(); scf(); t=t+toc(); xdel(); end; t, t/50 > ?????????????????[s]??????????????[s]??????4.1.2 base??figure() > 6.0.0 : 62.39/50??1.248???18.5?????????????????2.32 > 5.5.2 : 73.62/50??1.4723??21.8 > 5.5.0 : 69.94/50??1.3988??20.8 > 5.4.1 : 37.33/50??0.7466??11.1 > 5.4.0 : 24.07/50??0.4814??7.14 > 5.3.0 : 3.102/50??0.0620??0.92 > 5.1.0 : 4.069/50??0.0814??1.21 > 4.1.2 : 3.370/50??0.0674??1.00????????????????0.014 > Opening 20 figures : > ?t=[]; for i=1:20, tic(); scf(); t(i)=toc(); end; sum(t)/20 > > 6.0.0 : 5.30 [1.35 => 9.51] > 5.5.2 : 5.68 [1.77 => 9.92] > 5.5.0 : 5.66 [1.82 => 9.85] range from the #1 to #20 > 5.4.1 : 1.18 > 5.4.0 : 0.923 > 5.3.0 : 0.110 > 5.1.0 :? > 4.1.2 : 0.0774 > > > > Samuel > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From adelson.oliveira at gmail.com Mon Feb 27 15:46:45 2017 From: adelson.oliveira at gmail.com (Adelson Oliveira) Date: Mon, 27 Feb 2017 11:46:45 -0300 Subject: [Scilab-users] On parameters passing by name in scilab functions Message-ID: Hi, Let's take fft as an example. In scilab 5 one could call fft specifying parameters like dim and incr by name, fft(A,-1,dim=100,incr=1) Codes that used to work in scilab 5 now gives wrong results (no error messages!) in scilab 6 because the new release ignores named parameters. To get expected results with scilab 6, one should recast the command above as, fft(A,-1,100,1) otherwise scilab 6 reads fft(A,-1) instead! What for ignoring parameter names? Also, I have some scilab codes where functions do accept names and take different actions accordingly. Should I change all these codes to use scilab 6? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim at wescottdesign.com Mon Feb 27 19:07:28 2017 From: tim at wescottdesign.com (Tim Wescott) Date: Mon, 27 Feb 2017 10:07:28 -0800 Subject: [Scilab-users] On parameters passing by name in scilab functions In-Reply-To: References: Message-ID: <1488218848.714.1.camel@wescottdesign.com> Is this true? ?Parameter passing by name is hugely useful -- they'd have to re-write a whole bunch of libraries to make it work, and I'd have a lot of stuff that would be instantly obsolete. On Mon, 2017-02-27 at 11:46 -0300, Adelson Oliveira wrote: > Hi, > > Let's take fft as an example. > > In scilab 5 one could call fft specifying parameters like dim and > incr by name, > > fft(A,-1,dim=100,incr=1) > > Codes that used to work in scilab 5 now gives wrong results (no error > messages!) in scilab 6 because the new release ignores named > parameters. To get expected results with scilab 6, one should recast > the command above as, > > fft(A,-1,100,1) > > otherwise scilab 6 reads? > > fft(A,-1) > > instead! > > What for ignoring parameter names? Also, I have some scilab codes > where functions do accept names and take different actions > accordingly. Should I? > change all these codes to use scilab 6? > > Thanks > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From sgougeon at free.fr Mon Feb 27 19:36:19 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 27 Feb 2017 19:36:19 +0100 Subject: [Scilab-users] On parameters passing by name in scilab functions In-Reply-To: References: Message-ID: <295c29ae-d8ea-efca-784e-e0023925378c@free.fr> Hello Adelson, Le 27/02/2017 ? 15:46, Adelson Oliveira a ?crit : > Hi, > > Let's take fft as an example. > > In scilab 5 one could call fft specifying parameters like dim and incr > by name, > > fft(A,-1,dim=100,incr=1) Here names are simply ignored. There would be a true call by names if the order would not matter, while it does: -->Fp2 = fft(A,-1,incr=1,dim=100); !--error 999 fftw: Wrong values for input argument #3: Elements must be greater than 1. I guess that this is because fft() is a built-in, not a "macro". But even for functions written in Scilab language (aka macros), passing named parameters is strongly discouraged: * this sets a formal link between the calling level and the inner called one. Then, any change of the parameters names in the function definition breaks such calls. * the definition of most (say 99%) scilab functions test input parameters against their position rather than their name. It is not robust, but so it is. So (provided that fft() would be a macro) when calling fft(1,-1,incr=1), incr is detected at the third position while in the definition it is listed in the 4th one. Really efficient to get a mess ;) function test(a, b) mprintf("RHS=%d, exists(a)=%d exists(b)=%d\n", argn(2), exists("a","l"), exists("b","l")) endfunction -->test(b=1)RHS=1, exists(a)=0 exists(b)=1-->test(b=1,a=2)RHS=2, exists(a)=1 exists(b)=1 So, Tim is right. Calls with named parameters make the code fragile, or make somewhat harder to code the analysis of input arguments in a robust way. This coding way still increases functions overheads, that make them slower. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim at wescottdesign.com Mon Feb 27 19:49:59 2017 From: tim at wescottdesign.com (Tim Wescott) Date: Mon, 27 Feb 2017 10:49:59 -0800 Subject: [Scilab-users] On parameters passing by name in scilab functions In-Reply-To: <295c29ae-d8ea-efca-784e-e0023925378c@free.fr> References: <295c29ae-d8ea-efca-784e-e0023925378c@free.fr> Message-ID: <1488221399.714.17.camel@wescottdesign.com> You misread my comments. ?Tim _likes_ named parameters. ?If Tim were on the C++ standards committee (which is as likely as pigs flying, BTW) Tim would agitate that named parameters be adopted into that language. ?Scilab, Verilog, and (I think) VHDL have it, and particularly in a language that allows for optional parameters, I feel that when you have to have function calls with more than a few parameters it vastly aids code readability. On Mon, 2017-02-27 at 19:36 +0100, Samuel Gougeon wrote: > Hello Adelson, > > Le 27/02/2017 ? 15:46, Adelson Oliveira a ?crit?: > > Hi, > > > > Let's take fft as an example. > > > > In scilab 5 one could call fft specifying parameters like dim and > > incr by name, > > > > fft(A,-1,dim=100,incr=1) > ?Here names are simply ignored. There would be a true call by names > if the order would not matter, while it does: > -->Fp2 = fft(A,-1,incr=1,dim=100); > ?????????????????????????????? !--error 999? > fftw: Wrong values for input argument #3: Elements must be greater > than 1. > > I guess that this is because fft() is a built-in, not a "macro". > But even for functions written in Scilab language (aka macros), > passing named parameters is strongly discouraged: > this sets a formal link between the calling level and the inner > called one. Then, any change of the parameters names in the function > definition breaks such calls. > the definition of most (say 99%) scilab functions test input > parameters against their position rather than their name. It is not > robust, but so it is. So (provided that fft() would be a macro) when > calling fft(1,-1,incr=1), incr is detected at the third position > while in the definition it is listed in the 4th one. Really efficient > to get a mess ;) > function test(a, b) > ????mprintf("RHS=%d, exists(a)=%d??exists(b)=%d\n", argn(2), > exists("a","l"), exists("b","l")) > endfunction > -->test(b=1) > RHS=1, exists(a)=0??exists(b)=1 > ? > -->test(b=1,a=2) > RHS=2, exists(a)=1??exists(b)=1 > So, Tim is right. Calls with named parameters make the code fragile, > or make somewhat harder to code the analysis of input arguments in a > robust way. This coding way still increases functions overheads, that > make them slower. > Samuel > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From sgougeon at free.fr Mon Feb 27 19:54:00 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 27 Feb 2017 19:54:00 +0100 Subject: [Scilab-users] On parameters passing by name in scilab functions In-Reply-To: <295c29ae-d8ea-efca-784e-e0023925378c@free.fr> References: <295c29ae-d8ea-efca-784e-e0023925378c@free.fr> Message-ID: Le 27/02/2017 ? 19:36, Samuel Gougeon a ?crit : > .../... > So, Tim is right. Calls with named parameters make the code fragile, > or make somewhat harder to code the analysis of input arguments in a > robust way. > /This coding way still increases functions overheads, that make them > slower./ Hmmm, actually, i don't really think so. It would be more robust but also more straightforward and readable to test the existence of input parameters according to their name instead of according to their number and position. But this is not the way used in most functions definitions. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Mon Feb 27 20:18:44 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 27 Feb 2017 20:18:44 +0100 Subject: [Scilab-users] On parameters passing by name in scilab functions In-Reply-To: <1488221399.714.17.camel@wescottdesign.com> References: <295c29ae-d8ea-efca-784e-e0023925378c@free.fr> <1488221399.714.17.camel@wescottdesign.com> Message-ID: Le 27/02/2017 ? 19:49, Tim Wescott a ?crit : > You misread my comments. Tim _likes_ named parameters. If Tim were on > the C++ standards committee (which is as likely as pigs flying, BTW) > Tim would agitate that named parameters be adopted into that language. > Scilab, Verilog, and (I think) VHDL have it, and particularly in a > language that allows for optional parameters, I feel that when you have > to have function calls with more than a few parameters it vastly aids > code readability. Sorry for my misinterpretation. I agree that it is easier to use named parameters rather than to have to count and feed many "empty" or default positions to reach useful trailing ones. But when a parameter has been badly named when designing the function (*), then it is done and over. We must bear it all the time. And this is not nice at all. Same thing when you want to add a parameter that has a meaning close to another already existing one. Then keeping things (names) clear may become hard. Moreover, things get more complicated when using varargin (that ignores names). (*) this is often the case. Scilab misses a standards committee, also to well name things. From adelson.oliveira at gmail.com Mon Feb 27 22:57:06 2017 From: adelson.oliveira at gmail.com (Adelson Oliveira) Date: Mon, 27 Feb 2017 18:57:06 -0300 Subject: [Scilab-users] On parameters passing by name in scilab functions In-Reply-To: References: <295c29ae-d8ea-efca-784e-e0023925378c@free.fr> <1488221399.714.17.camel@wescottdesign.com> Message-ID: Well, now scilab 6.0 ignores named parameters at fft calls. One can check it with fft(eye(4,4),-1,dims=4,incr=1)-fft(eye(4,4),-1) the result is 4X4 matrix with zeros. This is different from (without names): fft(eye(4,4),-1,4,1)-fft(eye(4,4),-1). Then, I guess it is to say optional parameters are no longer "fully" optional, they must be provided in their order ... But anyway, it seems that my personal "macros" or functions still work with named optional parameters (opt1, opt2, ....) treated as, if exists('opt1','local') == 0 then opt1 = default_opt1.; end 2017-02-27 16:18 GMT-03:00 Samuel Gougeon : > Le 27/02/2017 ? 19:49, Tim Wescott a ?crit : > >> You misread my comments. Tim _likes_ named parameters. If Tim were on >> the C++ standards committee (which is as likely as pigs flying, BTW) >> Tim would agitate that named parameters be adopted into that language. >> Scilab, Verilog, and (I think) VHDL have it, and particularly in a >> language that allows for optional parameters, I feel that when you have >> to have function calls with more than a few parameters it vastly aids >> code readability. >> > Sorry for my misinterpretation. > I agree that it is easier to use named parameters rather than to have to > count and feed many "empty" or default positions to reach useful trailing > ones. But when a parameter has been badly named when designing the function > (*), then it is done and over. We must bear it all the time. And this is > not nice at all. > Same thing when you want to add a parameter that has a meaning close to > another already existing one. Then keeping things (names) clear may become > hard. Moreover, things get more complicated when using varargin (that > ignores names). > > (*) this is often the case. Scilab misses a standards committee, also to > well name things. > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adelson.oliveira at gmail.com Mon Feb 27 23:05:34 2017 From: adelson.oliveira at gmail.com (Adelson Oliveira) Date: Mon, 27 Feb 2017 19:05:34 -0300 Subject: [Scilab-users] On parameters passing by name in scilab functions In-Reply-To: References: <295c29ae-d8ea-efca-784e-e0023925378c@free.fr> <1488221399.714.17.camel@wescottdesign.com> Message-ID: BTW, Scilab has always had problems to provide interfaces to languages that accept optional parameters (but not only because of it) like modern FORTRAN. 2017-02-27 18:57 GMT-03:00 Adelson Oliveira : > Well, now scilab 6.0 ignores named parameters at fft calls. One can check > it with > > fft(eye(4,4),-1,dims=4,incr=1)-fft(eye(4,4),-1) > > the result is 4X4 matrix with zeros. This is different from (without > names): > > fft(eye(4,4),-1,4,1)-fft(eye(4,4),-1). > > Then, I guess it is to say optional parameters are no longer "fully" > optional, they must be provided in their order ... > > But anyway, it seems that my personal "macros" or functions still work > with named optional parameters (opt1, opt2, ....) treated as, > > if exists('opt1','local') == 0 then > opt1 = default_opt1.; > end > > > 2017-02-27 16:18 GMT-03:00 Samuel Gougeon : > >> Le 27/02/2017 ? 19:49, Tim Wescott a ?crit : >> >>> You misread my comments. Tim _likes_ named parameters. If Tim were on >>> the C++ standards committee (which is as likely as pigs flying, BTW) >>> Tim would agitate that named parameters be adopted into that language. >>> Scilab, Verilog, and (I think) VHDL have it, and particularly in a >>> language that allows for optional parameters, I feel that when you have >>> to have function calls with more than a few parameters it vastly aids >>> code readability. >>> >> Sorry for my misinterpretation. >> I agree that it is easier to use named parameters rather than to have to >> count and feed many "empty" or default positions to reach useful trailing >> ones. But when a parameter has been badly named when designing the function >> (*), then it is done and over. We must bear it all the time. And this is >> not nice at all. >> Same thing when you want to add a parameter that has a meaning close to >> another already existing one. Then keeping things (names) clear may become >> hard. Moreover, things get more complicated when using varargin (that >> ignores names). >> >> (*) this is often the case. Scilab misses a standards committee, also to >> well name things. >> >> >> _______________________________________________ >> 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 27 23:30:25 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 27 Feb 2017 23:30:25 +0100 Subject: [Scilab-users] On parameters passing by name in scilab functions In-Reply-To: References: <295c29ae-d8ea-efca-784e-e0023925378c@free.fr> <1488221399.714.17.camel@wescottdesign.com> Message-ID: <15f9bb59-d436-0866-8fef-5b1345c5bf3c@free.fr> Adelson, It could somewhat misleading to get conclusions about Scilab behavior with named parameters out of the current fft() behavior, because there are some pending bugs about fft(), independently from named arguments. IMHO, it would be safer to do tests about named arguments with another builtin but healthy function. Yes, for macros things are "simpler". There is just that isdef() (or exists()) applied to a skipped input parameter (like in myfunc(a, ,c)) returns %T (or 1) although the parameter is not defined. Samuel Le 27/02/2017 ? 22:57, Adelson Oliveira a ?crit : > Well, now scilab 6.0 ignores named parameters at fft calls. One can > check it with > > fft(eye(4,4),-1,dims=4,incr=1)-fft(eye(4,4),-1) > > the result is 4X4 matrix with zeros. This is different from (without > names): > > fft(eye(4,4),-1,4,1)-fft(eye(4,4),-1). > > Then, I guess it is to say optional parameters are no longer "fully" > optional, they must be provided in their order ... > > But anyway, it seems that my personal "macros" or functions still work > with named optional parameters (opt1, opt2, ....) treated as, > > if exists('opt1','local') == 0 then > opt1 = default_opt1.; > end From tim at wescottdesign.com Tue Feb 28 00:07:25 2017 From: tim at wescottdesign.com (tim at wescottdesign.com) Date: Mon, 27 Feb 2017 15:07:25 -0800 Subject: [Scilab-users] On parameters passing by name in scilab functions In-Reply-To: References: <295c29ae-d8ea-efca-784e-e0023925378c@free.fr> <1488221399.714.17.camel@wescottdesign.com> Message-ID: On 2017-02-27 11:18, Samuel Gougeon wrote: > Le 27/02/2017 ? 19:49, Tim Wescott a ?crit : >> You misread my comments. Tim _likes_ named parameters. If Tim were >> on >> the C++ standards committee (which is as likely as pigs flying, BTW) >> Tim would agitate that named parameters be adopted into that language. >> Scilab, Verilog, and (I think) VHDL have it, and particularly in a >> language that allows for optional parameters, I feel that when you >> have >> to have function calls with more than a few parameters it vastly aids >> code readability. > Sorry for my misinterpretation. > I agree that it is easier to use named parameters rather than to have > to count and feed many "empty" or default positions to reach useful > trailing ones. But when a parameter has been badly named when > designing the function (*), then it is done and over. We must bear it > all the time. And this is not nice at all. > Same thing when you want to add a parameter that has a meaning close > to another already existing one. Then keeping things (names) clear may > become hard. Moreover, things get more complicated when using varargin > (that ignores names). > > (*) this is often the case. Scilab misses a standards committee, also > to well name things. Yet even knowing all of that, and agreeing with most of it I would still vote for named parameters. Even with the difficulties around varargin. From payen.pierre at gmail.com Tue Feb 28 16:19:38 2017 From: payen.pierre at gmail.com (Pierre Payen) Date: Tue, 28 Feb 2017 16:19:38 +0100 Subject: [Scilab-users] Set up a ATOMS repo. Message-ID: Hi, I want to set up a simple ATOMS repo as in https://wiki.scilab.org/ATOMS/localrepository But after downloadding the archive -renamed to atoms-repo.zip- , when i do --> atomsRepositoryAdd('file:///path/to/atoms-repo') OR --> atomsRepositoryAdd('file:///path/to/atoms-repo.zip') I get either ans = > 0 > OR !--error 10000 > atomsDESCRIPTIONget : L'extraction du fichier DESCRIPTION > ('/tmp/user/SCI_TMP_16335_bZRcC8/.atoms/1_TOOLBOXES.gz') a ?chou?. > at line 182 of function atomsDESCRIPTIONget called by : > at line 142 of function atomsRepositoryAdd called by : > atomsRepositoryAdd('file:///path/to/atoms-repo.zip') > So : how can I set up a personnal repo ? (locally or remotely). Thx, -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Tue Feb 28 22:09:03 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 28 Feb 2017 22:09:03 +0100 Subject: [Scilab-users] Set up a ATOMS repo. In-Reply-To: References: Message-ID: <37874310-7540-63c9-56db-25c438673128@free.fr> Le 28/02/2017 ? 16:19, Pierre Payen a ?crit : > Hi, > > I want to set up a simple ATOMS repo as in > https://wiki.scilab.org/ATOMS/localrepository > > But after downloadding the archive -renamed to atoms-repo.zip- , when i do > > --> atomsRepositoryAdd('file:///path/to/atoms-repo') > OR > --> atomsRepositoryAdd('file:///path/to/atoms-repo.zip') > > I get either > > ans = > 0 > > > OR > > !--error 10000 > atomsDESCRIPTIONget : L'extraction du fichier DESCRIPTION > ('/tmp/user/SCI_TMP_16335_bZRcC8/.atoms/1_TOOLBOXES.gz') a ?chou?. > at line 182 of function atomsDESCRIPTIONget called by : > at line 142 of function atomsRepositoryAdd called by : > atomsRepositoryAdd('file:///path/to/atoms-repo.zip') > > > So : how can I set up a personnal repo ? (locally or remotely). Please try the following: edit("SCI/modules/atoms/macros/atoms_internals/atomsDESCRIPTIONget.sci",194) // It is the line #178 in local numbering //replace the line #178 extract_cmd = """" + gzip_path + """" + " -d """ + file_out + """"; //with extract_cmd = """" + gzip_path + """" + " *-f *-d """ + file_out + """"; //Save the file. Then do: cd SCI/modules/atoms/macros/atoms_internals/ predef clear // unprotect libraries to be able to recompile atomsinternalslib genlib atomsinternalslib // recompile the sub-library to take the change into account //Then, try to rerun the ATOMS Gui.. HTH Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From erhard.glueck.austria at gmail.com Tue Feb 28 23:35:20 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Tue, 28 Feb 2017 15:35:20 -0700 (MST) Subject: [Scilab-users] distinguish between rows and columns Message-ID: <1488321320234-4035640.post@n3.nabble.com> Hello! I have experience to write software and know about more dimensional arrays. If a look in Variable Browser and than use the function size() I'm wondering, that "r" means the vertical numbers. Have you a tip for a very basic letter which explains this? Thank you Erhy -- View this message in context: http://mailinglists.scilab.org/distinguish-between-rows-and-columns-tp4035640.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.