Matlab function takes 1 argument, Java caller provides 2
조회 수: 4(최근 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개)
참고 항목
범주
Find more on Java Package Integration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!