Define MATLAB Interface to C++ Library (multi-dimesion array as input/output without knowing the dimension before hand)

조회 수: 3 (최근 30일)
Hi,
I got a simple problem in C but I am not sure how to implement it with Matlab's clibgen.
int myfunc(float matrix1[][2], float matrix2[][4], int dimension1[], int dimesion2)
My matrix1 length is actually sum of all dimension1 element. My dimension1 length is dimension2.
Now, according to the official tutorial, it is quite simple to define dimension1 array. However, I am not sure how this can be done with matrix1 (multi-dimension) array. Matrix2 is a constant length array that I know of.
Any suggestion? Thanks.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Build MATLAB Interface to C++ Library에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by