Is there an alternative to Matlab "makehgtform" function? (compatible with C/C++ code-generation)
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Pablo Minguijon Pallas
el 15 de Jul. de 2017
Respondida: Walter Roberson
el 16 de Jul. de 2017
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 comentarios
Respuesta aceptada
Walter Roberson
el 16 de Jul. de 2017
dbtype makehgtform
You can look at the source code. For example somewhere around line 160 has
elseif strcmpi(name,'zrotate')
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Environment and Settings en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!