Run Simulink simulation from user defined function within its workspace

I am trying to run a Simulink simulation from within a user defined function and I want the simulation to utilize the variable values available within the function's workspace, not the 'base' workspace. Any help would be great. Thank you.

类别

在 帮助中心 和 File Exchange 中查找有关 Simulink 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by