mxGetNumberOfElements causing matlab to force close

I have compiled a mex function that compiled fine, and part of the code is trying to get the size of a string in a cell array of strings. I am using the function: mxGetNumberOfElements, but for some reason this function is causing matlab to force close down. I am passing to it: 'const mxArray *Array_Ptr'. Any help will be greatly appreciated!

댓글 수: 1

Please post your code and then we can suggest corrections. If you are passing in a cell array of strings, you would need to use mxGetCell first, and then mxGetNumberOfElements on the result of the mxGetCell call.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기

태그

질문:

2013년 7월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by