function care in embedded matlab function, traslate in a C function
2 ビュー (過去 30 日間)
古いコメントを表示
with the command
eml.extrinsic('care')
the function care works well in simulink. But when I built the function, matlab give me error:
"Failed to eliminate a call to the MATLAB function 'care'. For non-simulation builds, calls to unsupported MATLAB functions are eliminated if they do not affect function outputs."
I think because care is not available in embedded matlab function. How can I resolve this problem? can I automatically translate, using matlab, the matlab function into a C function?
How can I do? help me, please.
0 件のコメント
回答 (1 件)
Kaustubha Govind
2013 年 4 月 11 日
編集済み: Kaustubha Govind
2013 年 4 月 11 日
The diective coder.extrinsic is meant to be used to declare functions that are not supported for code-generation (ie. it is not possible to generate standalone C code for this MATLAB function due to its use of language constructs or other functions that are not suitable or not supported for code-generation). The only alternative is to implement the function in C by yourself, or rewrite 'care' such that it uses only the MATLAB Language Subset supported for code generation, and remove the coder.extrinsic declaration.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!