Couldn't find the file

7 views (last 30 days)
zeynep ozkayikci
zeynep ozkayikci on 10 Aug 2022
Edited: zeynep ozkayikci on 15 Aug 2022
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?

Answers (2)

Steven Lord
Steven Lord on 10 Aug 2022
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 Comment
zeynep ozkayikci
zeynep ozkayikci on 11 Aug 2022
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?

Sign in to comment.


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

Categories

Find more on Reference Applications in Help Center and File Exchange

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!