필터 지우기
필터 지우기

i have data in m.file..how to put the data in simulink

조회 수: 1 (최근 30일)
peppa
peppa 2013년 12월 12일
답변: Kaustubha Govind 2014년 3월 13일
hi all. I have basic questions.. I have data like..a=20; b=30; and so on.. then I built my own Simulink which the gain block I just put a/2..b/6 and so on... so my question is how to put the m.file in Simulink.. is it in the model properties?? can someone help me.. because the data... a,b and so on..is changeable..so easy for me to use the m.file instead of changing the value in the gain blocks everytime.

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2014년 3월 13일
You can use the PreLoadFcn model callback to call your MATLAB file that creates the data. Please see Load Variables When Loading a Model.

카테고리

Help CenterFile Exchange에서 Model, Block, and Port Callbacks에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by