matlab - Simulink callback problem -
hey, have maybe simple problem using preloadfcn in model.
i want model load m-file before starting simulation (this preloadfcn for, think).
so added in file -> model properties -> callbacks -> preloadfcn line
run('./init.m')
in file there several variables set. model refers variables , throws exception, can't find them when click on "start simulation". indicates me, callback isn't doing should doing...
the file 'init.m' in same directory simulation file.
even trying add directory matlab path didn't take effect.
greets poeschlorn
does work run "init" @ matlab command prompt prior running model? if so, should replace callback simply
init
which run script "init.m".
Comments
Post a Comment