Folder for Simulink S-Functions
显示 更早的评论
Hi there,
I have a model with many S-Function m-files. The files are all in my MATLAB main folder. When I try wo make a folder for the files, Simulink don't accept the path. But all files in the main folder is a kind of chaos... is there an opportunity to make a folder for the m-files?
Thx for any kind of help.
回答(1 个)
S-function do not accept file path as s-function name. You can do in this way
- Put your m files in different folders as you want.
- Add these folders to matlab path.
- Now simulink s-function will automatically find m-files residing in these paths.
类别
在 帮助中心 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!