How to link .m files with simscape ?

12 views (last 30 days)
Swagata Dutta
Swagata Dutta on 8 Feb 2015
Answered: Sabin on 6 Jan 2026 at 15:37
I have a simscape model and an m file. I want both to run in sync. The signal fed to the simscape model is generated at each instance of time by the m file and the output of the model is the input for the m file.

Answers (1)

Sabin
Sabin on 6 Jan 2026 at 15:37
This can be done using the MATLAB Function in Simulink:

Categories

Find more on Simscape in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!