I'm using Oct2Py in order to use some M-files in my Python code. Let's say that I have this simple Matlab function :
function [a, b] = toto(c);
a = c;
b = c + 1;
end
What happens if I call it in Octave is obviously :
>> [x,y] = toto(3)
x = 3
y = 4
Now if I call it in Python, using oct2py :
from oct2py import octave
my_dir = "D:\\My_Dir"
octave.addpath(my_dir)
a,b = octave.toto(3)
This returns :
TypeError: 'int' object is not iterable
It seems like octave.toto(n) only returns the first value, when I'd expect two... Can anyone explain to me what I should be doing ? Thanks