How to see the values of the Parameters defined as variables in the Examples given by Simulink?

조회 수: 1 (최근 30일)
Hi, reacently I donwnload a Simulink Example(https://www.mathworks.com/help/releases/R2020a/aeroblks/Electrical-Component-Analysis-Hybrid-and-Electric-Aircraft.html) which I need to study. However, the parameters in this Example is defined as variations(as the picture below).
And some variations(like power.vref) can't be found in workspace or Mask>>View Base Mask.
Could anyone tell me how t find the values of these variations?

채택된 답변

Uday Pradhan
Uday Pradhan 2021년 3월 18일
편집: Uday Pradhan 2021년 3월 18일
Hi,
"power" is struct with 7 fields, you can see the values of these fields as such (given that power variable exists in the base workspace):
>> power % MATLAB command line
power =
struct with fields:
kWrating: 100
vref: 371
rpmMotor: 2000
rpmEngine: 2000
massEngine: 130
genTorqueDemand: 40.566
ampMax: 269.811320754717

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Logging에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by