Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

argument structure in matlab compiled libraries.

1 Ansicht (letzte 30 Tage)
Kaushik
Kaushik am 16 Okt. 2012
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
hi,
i went through the mcc example but something is not clear. can someone please clarify. In the example we have
function a = addmatrix(a1, a2) a = a1 + a2;
which afteri compli using mcc results in a following definition in the c++ header file
addmatrix(int nargout, mwArray& a, mwArray& a1, mwArray& a2);
my question is if the output of the matlab function is a structure which contains a vector of dimension 1X5 and a matrix of dimension 7X3 then what should nargout be ? and how should i define mwArray a ?
since the output of the matlab structure is just 1 structure should nargout be equal to 1 ? and should i be defining mwArray as mwArray a(1*5+7*3) in my c++ code.
thanks in advance.

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by