필터 지우기
필터 지우기

Can I convert MATLAB function whose inputs and outputs have(varia​ble-size)M​ATRICES?

조회 수: 1 (최근 30일)
Hello,
I'm studying MATLAB Coder and I want to convert a function that has MATRICES inputs and a MATRIX output.
Let's say
function A = MULTIPLE(B,C)
columnB = size(B,2);
rowC = size(C,1);
if columnB == rowC
A = B * C;
else
A = 0;
endif
end
The MATLAB Code always asks me the types and sizes of B, C.
If I define them, the coder generates the code.
But I want to get a C function that can accept variable size matrices. Is there any way to do that?

채택된 답변

Walter Roberson
Walter Roberson 2015년 7월 11일

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by