Is there an alternative to Matlab "makehgtform" function? (compatible with C/C++ code-generation)
Show older comments
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.
Accepted Answer
More Answers (0)
Categories
Find more on Clocks and Timers in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!