Matlab function takes 1 argument, Java caller provides 2
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
% 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 Kommentare
Akzeptierte Antwort
Walter Roberson
am 23 Okt. 2020
The first input to a generated function is the number of left-hand sides.
1 Kommentar
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Java Package Integration finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!