Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

argument structure in matlab compiled libraries.

1 visualizzazione (ultimi 30 giorni)
Kaushik
Kaushik il 16 Ott 2012
Chiuso: MATLAB Answer Bot il 20 Ago 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.

Risposte (0)

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by