Closed
Description
If I execute the following example code, it will print False Not enough input arguments.
. If I include the save(...)
command for debugging purposes and load debug_dump.mat
afterwards, it only holds a single variable called a
with size 10x10x3
.
Is there a flaw in my code that I am not able to spot or is this problem rooted somewhere in the pymatbridge package? I am using pymatbridge 0.6.0-dev with Python 2.7.9 and Matlab R2014a.
def test():
dummy1 = np.random.normal(size=(10, 10))
dummy2 = np.random.normal(size=(10, 10))
dummy3 = np.random.normal(size=(10, 10))
mlab = Matlab()
mlab.start()
returnval = mlab.run_func('multiply_them.m', dummy1, dummy2, dummy3, nargout=1)
mlab.stop()
print returnval['success'], returnval['content']['stdout']
if __name__ == '__main__':
test()
The matlab function stored in multiply_them.m
:
function d = multiply_them(a, b, c)
% save('debug_dump') % store all known variables in workspace
d = a*b*c;
end
Metadata
Metadata
Assignees
Labels
No labels