Why do I get a found an mxArray error pointing to a variable that has a value from a function declared as coder.extrinsic?
이전 댓글 표시
Why do I get the error "Expected either a logical, char, int, fi, single, or double. Found an mxArray. MxArrays are returned from calls to the MATLAB interpreter and are not supported inside expressions. They may only be used on the right-hand side of assignments and as arguments to extrinsic functions." for 'index= sum(cummu <= randm) +1;'
Sample code:
coder.extrinsic('get_param');
x = get_param(<modelname/block>,'Value');
y = x + 5;
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Vehicle Dynamics Blockset에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!