Simulink "variable block"

96 次查看(过去 30 天)
Peter Vella
Peter Vella 2019-11-16
回答: FraFal 2019-11-16
Where is the "variable block" located in the libraries please?

回答(1 个)

FraFal
FraFal 2019-11-16
Hi,
if you want to use variables as input/parameters not constants, you can define the parameter in MATLAB workspace and use that variable instead of the constant values as parameter.
The steps are:
-Define the variable for parameter in MATLAB workspace
-Define a constant block and double clicking the block to open parameter dialogue box
- Use the variable name defined in the MATLAB workspace
-Make sure to inizialize or assig this variable before it's been used

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by