Matlab function takes 1 argument, Java caller provides 2
1 次查看(过去 30 天)
显示 更早的评论
% makesqr.m
%----------
function y = makesqr(x)
y = magic(x);
This gets generated into a Java package. However, the `step 16` of the Java invoker shows `makesqr` with *two* arguments.
result = theMagic.makesqr(1, n);
Can anyone please explain this difference in the number of arguments?
0 个评论
采纳的回答
Walter Roberson
2020-10-23
The first input to a generated function is the number of left-hand sides.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Java Package Integration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!