lla2ecef is not supported for code generation

I am creating MEX code from my m-file that includes "lla2ecef" function.
So, when I use the "Matlab coder" for the m-file, it shows the error message that "lla2ecef is not supported for code generation."
Does anyone know how to solve this problem?
Thanks,

댓글 수: 2

John Lee
John Lee 2021년 10월 23일
편집: John Lee 2021년 10월 23일
Thank you very much!
Someone should make it sure in radian rather than degree for the latitude and longitude. altitude is in meters.
It would probably make sense to adapt the function from that code, such as by using sind() and cosd()

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

릴리스

R2021a

태그

질문:

2021년 10월 23일

댓글:

2021년 10월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by