필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

argument structure in matlab compiled libraries.

조회 수: 1 (최근 30일)
Kaushik
Kaushik 2012년 10월 16일
마감: MATLAB Answer Bot 2021년 8월 20일
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.

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by