how to go from NED to ECI frame?
이전 댓글 표시
Hello! I am wondering how do you go from NED frame to ECI frame?
I got a NED frame from the WMM block but it say that the dimention of matrix multiplication is not complete.
also I got an error say that the built in fuction ecef2eci does't exist
function ECI = NEDtoECI(mu, l, NED)
DCM = [-sin(mu)*cos(l) -sin(mu)*sin(l) cos(mu) ; -sin(l) cos(l) 0 ; -cos(mu)*cos(l) -cos(mu)*sin(l) -sin(mu)];
dcmtran = DCM.';
ECEF = NED*dcmtran;
utc = [2019 1 4 12 0 0];
ECI = ecef2eci(utc,ECEF);
end
댓글 수: 7
Jonathan Gadiel Ramírez Martínez
2023년 4월 19일
Hi! did you solved it?
Khang Nguyen
2023년 4월 19일
편집: Khang Nguyen
2023년 4월 19일
Jonathan Gadiel Ramírez Martínez
2023년 4월 19일
Thanks Khang! We faced the same problem, I will look into your code, I'm trying to get the magnetic field vector for a TRIAD algorithm simulation, but I'm having problems converting from NED to an ECI, you'll see, in a playlist videos from a professor, he makes the rotation with a simple rotation matrix, but I'm not sure. If you want to check it out, here's the link to the video. https://www.youtube.com/watch?v=H1quaWy_onc&list=PL_D7_GvGz-v3mDQ9iR-cfjXsQf4DeR1_H&index=11&ab_channel=MonteCarlos from min 16:00
Jonathan Gadiel Ramírez Martínez
2023년 4월 20일
Hello Khang, another question, what does mu and l means in your code? latitude and longitude?
Khang Nguyen
2023년 4월 20일
편집: Khang Nguyen
2023년 4월 20일
Jonathan Gadiel Ramírez Martínez
2023년 4월 20일
Oh I see, that makes sense Khang, thank you very much!
Mehmet Ogulcan
2024년 12월 17일
Hello Jonathan,
Did you solved problem ? Do you have working code for transformation NED frame to ECI frame ?
Best regards,
답변 (1개)
Alan Moses
2021년 2월 25일
0 개 추천
Hi Khang,
The “ecef2eci” is part of the set of functions that require the ‘Aerospace Blockset CubeSat Simulation Library’ Add-on support package. You could download this from the Add-ons manager.
Hope it helps!
카테고리
도움말 센터 및 File Exchange에서 View and Analyze Simulation Results에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!