<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hello Christian,<br>
<br>
AFAIK there is presently no way to skip an output parameter. The
more handy would be<br>
[,y2,,y4] = f(x)<br>
but unfortunately, it does not work (yet?).<br>
I did not find this feature as a wish on bugzilla. IMO it should
be.<br>
It is possible to use a one-character variable name, for instance
among %, #, ! or ?.<br>
<br>
<tt>--> [%,%,kb] = intersect(grand(1,10,"uin",0,9),
grand(1,10,"uin",0,9));</tt><tt><br>
</tt><tt>--> kb</tt><tt><br>
</tt><tt> kb = </tt><tt><br>
</tt><tt><br>
</tt><tt> 7. 5. 2.</tt><tt><br>
</tt><br>
Even if the tilde was allowed, it is not very smart. A true
blackhole would be better.<br>
<br>
Regards<br>
Samuel<br>
<br>
Le 11/01/2018 à 11:31, Soulard, Christian (GE Power) a écrit :<br>
</div>
<blockquote
cite="mid:VI1P101MB01744225CB24201227A3F1049A160@VI1P101MB0174.NAMP101.PROD.OUTLOOK.COM"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">What is the Scilab way
to dump the output of a function ? The Matlab equivalent is
tilde (~).<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">To give an example,
suppose I have an existing function f such as :<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal">function [y_1,y_2] = f(x)<o:p></o:p></p>
<p class="MsoNormal"> y_1 = x ^ 2;<o:p></o:p></p>
<p class="MsoNormal"> y_2 = x ^ 3;<o:p></o:p></p>
<p class="MsoNormal">enfunction<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">Suppose I want to use
this function, but I am only interested in the y_2 result,
and I don’t want to assign a variable to the y_1 output. In
Matlab, I would do the following way :<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[~,b] = f(2)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I would only get a
single output variable :<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">b = 8<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thank you for your
feedback.</span><span style="mso-fareast-language:FR"
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<p><br>
</p>
</body>
</html>