' CODER.VARSIZE is not applicable to 'mxArray' problem while trying to use MATLAB Coder
조회 수: 2 (최근 30일)
이전 댓글 표시
I seem to be getting the error of
' CODER.VARSIZE is not applicable to 'mxArray'. ' when using the Matlab Coder function
I'm currently trying to convert my image processing program into a C static library. I have attached a screenshot of the problem.
All help and suggestions are appreciated!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/149042/image.png)
댓글 수: 0
답변 (1개)
Arnab De
2015년 5월 13일
The value of the variable pre_img comes from the output of some extrinsic function. Such variable are of 'mxArray' type. If you want to use coder.varsize on such variables. you need to pre-define the variable.
This answer covers it in more detail:
And some documentation on this:
댓글 수: 0
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!