Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How to make variable in Simulink, which few elements contains?

1 visualización (últimos 30 días)
Marcin Slotwinski
Marcin Slotwinski el 15 de En. de 2016
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Hallo, how can I make variable for example f in simulink, so I don't have to change it in few elements (generators, sine functions , etc), without using .m file?

Respuestas (1)

goerk
goerk el 18 de En. de 2016
In a simulink model you can specify callbacks. In this callbacks you can place your variable declaration.
In the menu "Flie" -> "Model Properties" -> "Model Properties" in the Tab Callbacks you can choose PreLoadFcn. There you can define your variable (eg. f = 1.234;).
An other possibility is to define the variable in the model workspace. This can be done in the "Model Explorer". (View -> Model Explorer -> Model Explorer)

La pregunta está cerrada.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by