Question about run executable(Generated by simulink code) in cmd
1 次查看(过去 30 天)
显示 更早的评论
Hello,
I was learning the example "Run Batch Simulations Without Recompiling Generated Code" in help documentation.
In the M file, there are two sentences:
runstr = ['.', filesep, 'rtwdemo_rsimtf -p params',num2str(i),'.mat', ' -v'];
runstr = ['.', filesep, 'rtwdemo_rsimtf -f rsim_tfdata.mat=sweep', ...
num2str(i),'.mat -v -tf 4.096'];
My question is about these 2 sentences:
- what's the function of '.' at the start the bracket?
- what do '-p', '-v' and '-f' mean?
Thanks!
采纳的回答
Walter Roberson
2017-10-24
The '.' means "relative to the current directory".
-f is "Read input data for a From File block from a MAT-file other than the MAT-file used for the previous simulation"
-p is "Read a parameter vector from file filename.mat"
-v is "Run in verbose mode"
-tf is "Run the simulation until the time value stoptime is reached"
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Code Generation Output 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!