关于MATLAB中angle2quat函数的使用
在Simulink的Function中直接使用angle2quat函数时,会报“Function ‘angle2quat’ not supported for code generation.”这样的错误,解决办法是在function的第一行加入“coder.extrinsic(‘angle2quat’)”。
参考如下答案解决:
“By default, Simulink converts the whole model to C code. If you are using this inside a MATLAB function block, you can use coder.extrinsic to tell Simulink to don’t convert it to C code. Add the following line at the beginning of your function。”