フィルターのクリア

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