Cannot get simout from Simulink Model

조회 수: 17 (최근 30일)
Hoban Carney
Hoban Carney 2022년 4월 27일
답변: Steve Miller 2022년 11월 25일
I'm trying to model how a solar sail could make a small spacecraft reach escape velocity from LEO, and so far I have a model of the earth, sun, and the spacecraft. I want to be able to plot the paths of all of these though, and was following a matlab tutorial similar to mine, but when I run my code it says error not enough inputs, and that simout doesn't exist.

답변 (1개)

Steve Miller
Steve Miller 2022년 11월 25일
Your model produces variable "out" instead of "simout". You can see this in the Configuration Panel.
If you enter this command and make a few other changes to the model and code, you will get a plot.
>> showTrajMasters(out,Earth,SpaceCraft)
I think the code needs further debugging, though. I have attached the code with the few adjustments I made.
--Steve

카테고리

Help CenterFile Exchange에서 Aerospace Applications에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by