Effacer les filtres
Effacer les filtres

Is there an alternative to Matlab "makehgtform" function? (compatible with C/C++ code-generation)

3 vues (au cours des 30 derniers jours)
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.

Réponse acceptée

Walter Roberson
Walter Roberson le 16 Juil 2017
dbtype makehgtform
You can look at the source code. For example somewhere around line 160 has
elseif strcmpi(name,'zrotate')

Plus de réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by