- 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.
Folder for Simulink S-Functions
조회 수: 4 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
답변 (1개)
TAB
2013년 1월 1일
편집: TAB
2013년 1월 1일
S-function do not accept file path as s-function name. You can do in this way
댓글 수: 2
TAB
2013년 1월 2일
Add your folder in matlab path. Thats it.
You can do this using command line.
>> addpath('MATLAB/FILES')
>> savepath
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!