"platform" error after copying Matlab example to a PC

19 visualizaciones (últimos 30 días)
vasili
vasili hace alrededor de 17 horas
Comentada: vasili hace alrededor de 15 horas
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 comentarios
Steven Lord
Steven Lord hace alrededor de 16 horas
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 hace alrededor de 16 horas
Matlab 2023a and aerospace - well, a trlal version downloaded from matlab a few days ago

Iniciar sesión para comentar.

Respuesta aceptada

Steven Lord
Steven Lord hace alrededor de 16 horas
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 comentario
vasili
vasili hace alrededor de 15 horas
thank you for pointing this out! Indeed, I'll try the 2023 example then

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Dates and Time en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by