Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
How to make variable in Simulink, which few elements contains?
조회 수: 1 (최근 30일)
이전 댓글 표시
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?
댓글 수: 0
답변 (1개)
goerk
2016년 1월 18일
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)
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!