<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hello,<br>
<br>
As answered by Christophe, you shall use deff(..).<br>
In Scilab, all functions are somewhat anonymous, in the way that
their names are "handles"<br>
that some functions may accept as is (functions names are some
variables with specific types).<br>
<br>
Some examples:<br>
<font face="Courier New, Courier, monospace">deff("y =
what_do_you_want_to_do(action, param)", "y = action(param)")<br>
-->what_do_you_want_to_do(sqrt, 2)<br>
ans = <br>
1.4142136 <br>
<br>
-->what_do_you_want_to_do(max, [2 -1 3 0])<br>
ans =<br>
3. <br>
<br>
-->what_do_you_want_to_do(min, [2 -1 3 0])<br>
ans =<br>
- 1. </font><br>
<br>
It is possible to make aliases of functions as of variables:<br>
<br>
<span id="result_box" class="short_text" lang="de"><span
class="hps"><font face="Courier New, Courier, monospace">-->quadratwurzel
= sqrt <br>
<br>
-->quadratwurzel(2)<br>
ans =<br>
1.4142136 <br>
</font><br>
and so on.<br>
<br>
HTH,<br>
Samuel<br>
<br>
</span></span>Le 12/05/2014 20:27, Patrick Seeboerger a écrit :<br>
</div>
<blockquote
cite="mid:1399919230.76591.YahooMailNeo@web133004.mail.ir2.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff;
font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
Lucida Grande, sans-serif;font-size:12pt">
<div class="" style="">Dear Sir or Madame,</div>
<div class="" style=""><br class="" style="">
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida
Grande', sans-serif; background-color: transparent;
font-style: normal" class="">I am starting to use Scilab
instead of Matlab more and more so I have to translate </div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida
Grande', sans-serif; background-color: transparent;
font-style: normal" class="">some code from a Matlab M-file
into Scilab.</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida
Grande', sans-serif; background-color: transparent;
font-style: normal" class=""><br class="" style="">
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida
Grande', sans-serif; background-color: transparent;
font-style: normal" class="">So when I write an argumental
function in Matlab I can write it for example like:</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida
Grande', sans-serif; background-color: transparent;
font-style: normal" class=""><br class="" style="">
</div>
<div style="background-color: transparent" class="">U_q=@(f_u)
k_U*2*pi*f_u;<br class="" style="">
</div>
<div style="background-color: transparent; color: rgb(0, 0, 0);
font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue',
Helvetica, Arial, 'Lucida Grande', sans-serif; font-style:
normal;" class=""><br>
</div>
<div style="background-color: transparent; color: rgb(0, 0, 0);
font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue',
Helvetica, Arial, 'Lucida Grande', sans-serif; font-style:
normal;" class="">Now my question:</div>
<div style="background-color: transparent; color: rgb(0, 0, 0);
font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue',
Helvetica, Arial, 'Lucida Grande', sans-serif; font-style:
normal;" class=""><br>
</div>
<div style="background-color: transparent; color: rgb(0, 0, 0);
font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue',
Helvetica, Arial, 'Lucida Grande', sans-serif; font-style:
normal;" class="">Which operator do I have to use in Scilab
instead of =@ ?</div>
<div style="background-color: transparent; color: rgb(0, 0, 0);
font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue',
Helvetica, Arial, 'Lucida Grande', sans-serif; font-style:
normal;" class=""><br>
</div>
<div style="background-color: transparent; color: rgb(0, 0, 0);
font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue',
Helvetica, Arial, 'Lucida Grande', sans-serif; font-style:
normal;" class="">Thank you,</div>
<div style="background-color: transparent; color: rgb(0, 0, 0);
font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue',
Helvetica, Arial, 'Lucida Grande', sans-serif; font-style:
normal;" class=""><br>
</div>
<div style="background-color: transparent; color: rgb(0, 0, 0);
font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue',
Helvetica, Arial, 'Lucida Grande', sans-serif; font-style:
normal;" class="">Best regards,</div>
<div style="background-color: transparent; color: rgb(0, 0, 0);
font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue',
Helvetica, Arial, 'Lucida Grande', sans-serif; font-style:
normal;" class=""><br>
</div>
<div style="background-color: transparent; color: rgb(0, 0, 0);
font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue',
Helvetica, Arial, 'Lucida Grande', sans-serif; font-style:
normal;" class="">Patrick Seebörger</div>
</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>
<br>
</body>
</html>