Question about run executable(Generated by simulink code) in cmd

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:
  1. what's the function of '.' at the start the bracket?
  2. what do '-p', '-v' and '-f' mean?
Thanks!

1 件のコメント

Li Huang
Li Huang 2017 年 10 月 24 日
編集済み: Li Huang 2017 年 10 月 24 日
3. What does "-tf" mean?

サインインしてコメントする。

 採用された回答

Walter Roberson
Walter Roberson 2017 年 10 月 24 日

0 投票

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 件)

カテゴリ

質問済み:

2017 年 10 月 24 日

回答済み:

2017 年 10 月 24 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by