"platform" error after copying Matlab example to a PC
21 views (last 30 days)
Show older comments
vasili
on 19 Nov 2024 at 15:52
Commented: vasili
on 19 Nov 2024 at 17:04
I copied the code from this example https://uk.mathworks.com/help/aerotbx/ug/analyze-access-between-a-satellite-constellation-and-an-aircraft.html , but when trying to execute it on my PC I have an error:
Error using platform
Expected a string scalar or character vector for the parameter name.
aircraft.obj = platform(mission.scenario,aircraft.trajectory, Name='Aircraft');
The example runs ok on Matlab online. What could be the issue when I run absolutely the same code on my PC?
2 Comments
Steven Lord
on 19 Nov 2024 at 16:15
What release of MATLAB and Aerospace Toolbox are you using? It's possible the example is using language features or functionality that was introduced in a later release than the one you're using. If that's the case, you could check the documentation that is part of your installation to see if there's a version of that example, which would use only the functionality available in your release.
Accepted Answer
Steven Lord
on 19 Nov 2024 at 16:42
Comparing the version of the example from release R2023a and the version from the most recent release (as I type this, release R2024b) I see there are differences between the two examples. I haven't used Aerospace Toolbox enough to be able to tell which of the differences are significant, but I recommend using the release R2023a version of the example for now. If you want, you could step through the sections of the two examples to determine what's different then review the appropriate function documentation pages to see how they have changed (or what has been introduced) between R2023a and R2024b.
More Answers (0)
See Also
Categories
Find more on Dates and Time 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!