3D plot with the Earth in the center

25 ビュー (過去 30 日間)
Niccolo Carioli
Niccolo Carioli 2024 年 3 月 27 日
コメント済み: Niccolo Carioli 2024 年 3 月 28 日 8:00
I am simulating the endoatmospheric trajectory of a launcher. I have solved the equation of motion and I have obtained a matrix called X which has 6 coloumns. The first 3 are the positions (x,y,z) as a function of time, whereas the last 3 are the velocities (Vx,Vy,Vz) as a function of time. The vectors are written in an inertial frame centered in the center of the Earth.
What I want to do now is to plot the trajectory. I thought that it would be nicer and clearer if the Earth was visible in the plot, so that starting point and ending point were put into perspective.
However I did not find any "easy" method, like some built-in function, that allows me to do that.
How can I obtain this kind of graph?

回答 (1 件)

John D'Errico
John D'Errico 2024 年 3 月 27 日
With the mapping toolbox, easy.
Without the mapping toolbox, more difficult. Nothing is impossible, of course. But lacking the proper tools, you would need to import an image of the earth, viewed from your chosen perspective. Then you would need to locate the points of interest in the image coordinates.
  1 件のコメント
Niccolo Carioli
Niccolo Carioli 2024 年 3 月 28 日 8:00
Ok, that was helpful. I saw that there are tons of functions in that packet, if you have an idea of which functions should help me achieving what I want to do could you tell me? So that I can narrow down my readings

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMap Display についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by