Find the help for sim command in the MPC Toolbox

3 ビュー (過去 30 日間)
J Chen
J Chen 2019 年 11 月 29 日
コメント済み: Fangjun Jiang 2019 年 12 月 6 日
The sim command can be used to simulate Simulink models or MPC objects. How can I open the Help Browser from the command line for the sim in the MPC Toolbox? The "doc sim" command open the reference for Simulink sim, not MPC sim.
I could use the "doc mpc/sim" command in the past to get help from the command line for the MPC sim. It doesn't seem to work in R2018b.
  1 件のコメント
J Chen
J Chen 2019 年 12 月 6 日
help mpc/sim is able to pull the help page for mpc sim command while doc mpc/sim can't

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

採用された回答

Fangjun Jiang
Fangjun Jiang 2019 年 12 月 6 日
There seems to exist a consistency issue.
  • In R2018a, "doc mpc/sim" brings up the correct doc page. The address is
web(fullfile(docroot, 'mpc/ref/sim.html'))
  • In R2018b, "doc mpc/sim" WON'T bring up the correct doc page. Using address can bring it up
web(fullfile(docroot, 'mpc/ref/sim.html'))
  • In R2019a, "doc mpc/sim" brings up the correct doc page. The address is slightly different
web(fullfile(docroot, 'mpc/ref/mpc.sim.html'))
  2 件のコメント
J Chen
J Chen 2019 年 12 月 6 日
I would add that "doc mpc/sim" also works in R2019b. So R2018b is the only version that doesn't work.
How did you find out the corresponding web commands?
Fangjun Jiang
Fangjun Jiang 2019 年 12 月 6 日
Right click on the doc page, select "Get Page Address"

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeController Creation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by