I am using Oct2Py to use some M files in my Python code. Say 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, 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: object 'int' is not iterable
It seems that octave.toto (n) only returns the first value when I expect two ... Can someone explain to me what I should do? Thanks
source share