필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How do I call an M-file containing variables and several S-Function files when opening a custom block in simulink?

조회 수: 2 (최근 30일)
Hi,
I've created a custom block in simulink and it needs to be used by a large number of people so when it's copied into a model I want it to be able to operate without the user having to open an run separate files within their work-space.
These files include an M-file declaring variables and a number of s-function m-files.
Can this be done?

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2012년 9월 13일
I think you should be able to put that code into the block's CopyFcn callback.

이 질문은 마감되었습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by