[Scilab-users] Custom function takes arguments from workspace

Samuel Gougeon sgougeon at free.fr
Fri Apr 10 21:37:14 CEST 2015


Hello,

Le 10/04/2015 17:21, Pablo Fonovich a écrit :
> .../... If i call the function without giving the argument N, but 
> there is a variable called N in the workspace, it uses that N...
> Is this intentional?
Yes it is.

> So, if i want the user to give exactly the 3 arguments... the only 
> solution would be using argn?
Yes, indeed.

>
> because this was causing me some bugs
For variables scope, you may have a look at 
http://wiki.scilab.org/howto/global%20and%20local%20variables

Regards
Samuel

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


More information about the users mailing list