Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

argument structure in matlab compiled libraries.

1 visualización (últimos 30 días)
Kaushik
Kaushik el 16 de Oct. de 2012
Cerrada: MATLAB Answer Bot el 20 de Ag. de 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.

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by