How to link .m files with simscape ?
Show older comments
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
on 6 Jan 2026
0 votes
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!