Couldn't find the file

2 次查看(过去 30 天)
zeynep ozkayikci
zeynep ozkayikci 2022-8-10
I was doing this example but when I run the
mission.Data = load("SatelliteScenarioCustomAttitudeData.mat", "PositionTimeTableGCRF", "AttitudeTimeTableGCRF2Body");
display(mission.Data.PositionTimeTableGCRF)
it gives me an error and I could not find any file under that name. Could you hep me please?

回答(2 个)

Steven Lord
Steven Lord 2022-8-10
That data file is in the example's folder, which is not on the MATLAB path by default. If you open the example in MATLAB using the command that you can copy to the clipboard by clicking on the "Copy Command" button in the upper-right corner of the example, MATLAB will change its current directory to the one containing that example (and its associated data file.) Once that's happened you will be able to load that data file.
  1 个评论
zeynep ozkayikci
zeynep ozkayikci 2022-8-11
Thank you for response, but when I try that command it gives error like that. Also when I try on matlab online, it does not give an error. However, I have to make my own matlab. And I ony need is that load files. Could you help me please?

请先登录,再进行评论。


Walter Roberson
Walter Roberson 2022-8-15
You need to have the Aerospace Toolbox installed, R2022a or later. It did not exist in your R2021b.

类别

Help CenterFile Exchange 中查找有关 Reference Applications 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by