Re: [Scilab-users] Dump the output of a function

2018-02-06 Thread Clément David
Le mercredi 17 janvier 2018 à 20:36 +0100, Samuel Gougeon a écrit : > Le 17/01/2018 à 20:26, Samuel Gougeon a écrit : > > Le 17/01/2018 à 18:16, antoine monmayrant a écrit : > > > Hello all, > > > > > > > > > I might say something really stupid, but can't we define a special > > > variable

Re: [Scilab-users] Dump the output of a function

2018-01-17 Thread Samuel Gougeon
Le 17/01/2018 à 20:26, Samuel Gougeon a écrit : Le 17/01/2018 à 18:16, antoine monmayrant a écrit : Hello all, I might say something really stupid, but can't we define a special variable like %eps, %i, etc to act as a black hole ? Something like %null (like piping to /dev/null or a null

Re: [Scilab-users] Dump the output of a function

2018-01-17 Thread antoine monmayrant
- De: "Clément David" À: users@lists.scilab.org Envoyé: Mardi 16 Janvier 2018 09:31:20 Objet: Re: [Scilab-users] Dump the output of a function Hello Christian, Samuel, My 2c, most of the modern languages supporting such a feature are using the one-character variable trick; sometimes enforc

Re: [Scilab-users] Dump the output of a function

2018-01-16 Thread sgougeon
e unlikely possible to rename it... Would it? Best regards Samuel - Mail original - De: "Clément David" À: users@lists.scilab.org Envoyé: Mardi 16 Janvier 2018 09:31:20 Objet: Re: [Scilab-users] Dump the output of a function Hello Christian, Samuel, My 2c, most of the modern

Re: [Scilab-users] Dump the output of a function

2018-01-16 Thread Clément David
Hello Christian, Samuel, My 2c, most of the modern languages supporting such a feature are using the one-character variable trick; sometimes enforced by conventions. For example, Go, Rust and Python are using `_` as in : [_,_,kb] = intersect(grand(1,10,"uin",0,9), grand(1,10,"uin",0,9)); This

Re: [Scilab-users] Dump the output of a function

2018-01-11 Thread Rafael Guerra
On Behalf Of Soulard, Christian (GE Power) Sent: Thursday, January 11, 2018 11:31 AM To: users@lists.scilab.org<mailto:users@lists.scilab.org> Subject: [Scilab-users] Dump the output of a function Hello, What is the Scilab way to dump the output of a function ? The Matlab equivalent is tild

Re: [Scilab-users] Dump the output of a function

2018-01-11 Thread Rafael Guerra
ursday, January 11, 2018 11:31 AM To: users@lists.scilab.org Subject: [Scilab-users] Dump the output of a function Hello, What is the Scilab way to dump the output of a function ? The Matlab equivalent is tilde (~). To give an example, suppose I have an existing function f such as : function [y

Re: [Scilab-users] Dump the output of a function

2018-01-11 Thread Samuel Gougeon
Hello Christian, AFAIK there is presently no way to skip an output parameter. The more handy would be [,y2,,y4] = f(x) but unfortunately, it does not work (yet?). I did not find this feature as a wish on bugzilla. IMO it should be. It is possible to use a one-character variable name, for

[Scilab-users] Dump the output of a function

2018-01-11 Thread Soulard, Christian (GE Power)
Hello, What is the Scilab way to dump the output of a function ? The Matlab equivalent is tilde (~). To give an example, suppose I have an existing function f such as : function [y_1,y_2] = f(x) y_1 = x ^ 2; y_2 = x ^ 3; enfunction Suppose I want to use this