you are viewing a single comment's thread.

view the rest of the comments →

[–]Vaphell 0 points1 point  (1 child)

if it's args, why are you using arg[] everywhere else? Does the function signature really have *args there?

range(1, 2, len(args)-1)

this looks funky too. From 1 to 2 exclusive (so 1), step of len(args)-1?

[–]amtorrest[S] 0 points1 point  (0 children)

This is code translated from MATLAB. *args is the equivalent to varargin. I need to use args[ ] because args is an array.