- 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
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (1)
TAB
il 1 Gen 2013
Modificato: TAB
il 1 Gen 2013
S-function do not accept file path as s-function name. You can do in this way
2 Commenti
TAB
il 2 Gen 2013
Add your folder in matlab path. Thats it.
You can do this using command line.
>> addpath('MATLAB/FILES')
>> savepath
Vedere anche
Categorie
Scopri di più su Simulink Functions in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!