"platform" error after copying Matlab example to a PC
19 次查看(过去 30 天)
显示 更早的评论
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 个评论
Steven Lord
about 18 hours 前
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.
采纳的回答
Steven Lord
about 18 hours 前
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dates and Time 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!