Can I convert MATLAB function whose inputs and outputs have(variable-size)MATRICES?
1 view (last 30 days)
I'm studying MATLAB Coder and I want to convert a function that has MATRICES inputs and a MATRIX output.
function A = MULTIPLE(B,C)
columnB = size(B,2);
rowC = size(C,1);
if columnB == rowC
A = B * C;
A = 0;
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?