[Scilab-users] Indirect function call

Samuel Gougeon sgougeon at free.fr
Thu Jun 6 23:03:38 CEST 2013


Le 18/02/2013 20:52, fitzyfish a écrit :
> Is there a Scilab equivalent for the MATLAB function handle @ to call a
> function indirectly e.g.
> sqr = @(x) x.^2;

deff('y = sqr(x)','y = x.^2')

Then

-->sqr(2)
  ans  =
     4.

HTH
Samuel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20130606/62e8ba91/attachment.htm>


More information about the users mailing list