Couldn't find the file
4 views (last 30 days)
Show older comments
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?
0 Comments
Answers (2)
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.
Walter Roberson
on 15 Aug 2022
You need to have the Aerospace Toolbox installed, R2022a or later. It did not exist in your R2021b.
1 Comment
See Also
Categories
Find more on Reference Applications in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!