simulink control re entry atmosphere code

조회 수: 6 (최근 30일)
Alessandro Vitiello
Alessandro Vitiello 2019년 10월 22일
답변: Maadhav Akula 2019년 11월 6일
Hi, I am trying to do this simulation, is a control of a re-entry vehicle. I have a nominal trajectory that comes from an optimization. and know I am trying to implement a control that follows this tracjectorie. but I have this error, I am sure that is very simple but I do not find the solution in the documentation, and so I can,t go on.
"Invalid structure-format variable specified as workspace input in 'entry/From Workspace'. If the input signal is a bus signal, the variable must be a structure of MATLAB time series objects. Otherwise, the variable must include 'time' and 'signals' fields, and the 'signals' field must be a structure with a 'values' field."
many thanks for your time and consideration.
kinds regards

채택된 답변

Maadhav Akula
Maadhav Akula 2019년 11월 6일
When I loaded the given *.mat files the variables phin, rn, vn are actually stored as 1x1 struct, which is why errors are coming up.
So, after you load the *.mat files, run the following command:
phin = phin.mat;
rn = rn.mat;
vn = vn.mat;
Now, run your entry.slx model and also please change the phin’ to phin in your Simulink model.
Hope this helps!

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Schedule Model Components에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by