"platform" error after copying Matlab example to a PC

조회 수: 1 (최근 30일)
vasili
vasili 2024년 11월 19일
댓글: vasili 2024년 11월 19일
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
Steven Lord 2024년 11월 19일
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.
vasili
vasili 2024년 11월 19일
Matlab 2023a and aerospace - well, a trlal version downloaded from matlab a few days ago

댓글을 달려면 로그인하십시오.

채택된 답변

Steven Lord
Steven Lord 2024년 11월 19일
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.
  댓글 수: 1
vasili
vasili 2024년 11월 19일
thank you for pointing this out! Indeed, I'll try the 2023 example then

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Dates and Time에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by