Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9822c7b commit b51f918Copy full SHA for b51f918
pymatbridge/matlab/util/pymat_eval.m
@@ -35,10 +35,13 @@
35
rehash
36
37
if iscell(req.func_args)
38
- [resp{1:req.nargout}] = feval(req.func_name, req.func_args{:});
+ func_args = req.func_args;
39
else
40
- [resp{1:req.nargout}] = feval(req.func_name, req.func_args);
+ % If we don't have a cell, the JSON decoder has managed to merge
41
+ % everything into an array, which we don't want
42
+ func_args = num2cell(req.func_args, 1);
43
end
44
+ [resp{1:req.nargout}] = feval(req.func_name, func_args{:});
45
46
if req.nargout == 1
47
response.result = resp{1};
0 commit comments