How to see the values of the Parameters defined as variables in the Examples given by Simulink?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Guanwei Zeng
el 15 de Mzo. de 2021
Comentada: Guanwei Zeng
el 25 de Mzo. de 2021
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).
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/550982/image.png)
And some variations(like power.vref) can't be found in workspace or Mask>>View Base Mask.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/550972/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/550977/image.png)
Could anyone tell me how t find the values of these variations?
0 comentarios
Respuesta aceptada
Uday Pradhan
el 18 de Mzo. de 2021
Editada: Uday Pradhan
el 18 de Mzo. de 2021
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
Más respuestas (0)
Ver también
Categorías
Más información sobre Interactive Model Editing 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!