Subsystem(Mask)

3 次查看(过去 30 天)
slasherzz22
slasherzz22 2012-4-5
how to make a subsystem(mask).. i have 2 files..which is M-files where i put the machine parameter. and the other file is Simulink files.. to run the simulink, i need to run the M-file first.. how do i put a command such as subsytem(for the parameter) on the S-files so that i didnt have to open M-file . by clicking the Subsystem (mask) at the simulink, the M-file already save at workspace without opening the M-file separately..anyone who knows, please help me... =)

采纳的回答

Kaustubha Govind
Kaustubha Govind 2012-4-5
You can create an InitFcn Block Callback Function on your subsystem so that the corresponding MATLAB-file is always run when the subsystem is executed. If you want to run the MATLAB code only when the subsystem is opened, you can use the OpenFcn callback.

更多回答(0 个)

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by