[Scilab-users] Scilab versus matlab
Dang, Christophe
Christophe.Dang at sidel.com
Tue May 13 11:16:48 CEST 2014
Hello,
> De : Patrick Seeboerger
> Envoyé : lundi 12 mai 2014 20:27
>
> So when I write an argumental function in Matlab I can write it for
> example like:
>
> U_q=@(f_u) k_U*2*pi*f_u;
I'm not a Matlaber, but a quick search on the Mathwork website tells me you're trying to deine an anonymous function, right?
I don't think such things exist in Scilab.
You can define the function with
function [y]=U_q(f_U)
y = k_U*2*%pi*f_U
endfunction
or with
deff("y = U_q(f_U)", "y = k_U*2*%pi*f_U")
Now, if it is important for you to have an anonymous function and not a "normal" function, you should tell us why so we can give you the "right" solution.
HTH
--
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.
______________________________________________________________________
More information about the users
mailing list