[Scilab-users] Indirect function call

Antoine Monmayrant antoine.monmayrant at laas.fr
Thu Jun 6 15:46:46 CEST 2013


On 06/06/2013 11:23, HathB wrote:
> Hello,
>
> I have the same problem and the solution which is given doesn't work.
>
> function_handle (@) doesn't exist in scilab ?
>
>
>
> --
> View this message in context: http://mailinglists.scilab.org/Indirect-function-call-tp4025965p4026781.html
> Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users

Maybe I am wrong but I think you can achieve the same in Scilab without 
using @ as you can use function names like any other variables (which is 
not the case in Matlab):

tmp=sin;
disp(tmp(%pi/2));
tmp=cos;
disp(tmp(%pi/2));

Hope it helps,

Antoine




More information about the users mailing list