Is there an alternative to Matlab "makehgtform" function? (compatible with C/C++ code-generation)
3 次查看(过去 30 天)
显示 更早的评论
I am using the mentioned function (makehgtform) to create a rotation matrix around a 3D axis within a function that I wish to convert to C++, however it is apparently not compatible with code generation at the moment.
"The extrinsic function 'makehgtform' is not available for standalone code generation. It must be eliminated for stand-alone code to be generated. It could not be eliminated because its outputs appear to influence the calling function. Fix this error by not using 'makehgtform' or by ensuring that its outputs are unused."
I was wondering, is there any way to implement such rotation without the use of this function? What´s the underlying method that Matlab uses to calculate this rotation matrix? I haven´t been able to find it.
Thank you very much. Cheers.
0 个评论
采纳的回答
Walter Roberson
2017-7-16
dbtype makehgtform
You can look at the source code. For example somewhere around line 160 has
elseif strcmpi(name,'zrotate')
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!