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!