how to call .exe file (made from standalone Simulink model) in .m file? -


when use

!mdlname -p file.mat  

in command window of matlab have no errors, when use command in .m file error says mat file can not located. tried put full path name file.mat this

!mdlname -p c:\path..\file.mat

but still error saying mat file can not found (error reading parameter data mat-file)

i tried using function system in m file , works can't force function system use file.mat can -p.

system(['"zbroj.exe" -p zbro.mat']); 

here solution, tried , tried , made it. zbroj.exe rsim exe simulink model, -p switch forces zbroj.exe take input parameters zbro.mat file.


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -