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!