[Scilab-users] On parameters passing by name in scilab functions

Adelson Oliveira adelson.oliveira at gmail.com
Mon Feb 27 15:46:45 CET 2017


Hi,

Let's take fft as an example.

In scilab 5 one could call fft specifying parameters like dim and incr by
name,

fft(A,-1,dim=100,incr=1)

Codes that used to work in scilab 5 now gives wrong results (no error
messages!) in scilab 6 because the new release ignores named parameters. To
get expected results with scilab 6, one should recast the command above as,

fft(A,-1,100,1)

otherwise scilab 6 reads

fft(A,-1)

instead!

What for ignoring parameter names? Also, I have some scilab codes where
functions do accept names and take different actions accordingly. Should I
change all these codes to use scilab 6?

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


More information about the users mailing list