フィルターのクリア

I cannot get my userdefined m-function help by the ‘help ___ ’ command in Command window

1 回表示 (過去 30 日間)
Yijie
Yijie 2023 年 3 月 26 日
編集済み: MathWorks Support Team 2023 年 9 月 29 日
I cannot get my userdefined m-function help by the ‘help xxx ’ command in Command window.
As the Official Help Document show (figure1 below),I copy the m-function addme and save the file to my workdir.
However, when type 'help addme' in Command window , I only get the result as 'addme is a function'(figure 2 below).
As show in figure 3 , the help report result of my workdir shows that there is no help in my code.
How can I get my my userdefined m-function help ?
  • figure1 Official Help Document
  • figure2 my code
  • figure3 help report

回答 (1 件)

Swaraj
Swaraj 2023 年 4 月 4 日
I tried running it and it worked correctly.
I got the above output.
I suggest you try it out once again. It should work in the intended way.
  1 件のコメント
Yijie
Yijie 2023 年 4 月 7 日
This problem may be due to a path setting error. Due to the need for co-simulation with other simulation software, I added the relevant paths of Siemens PreScan into the MATLAB path, resulting in that all the help information added in the m file could not be indexed in the command window and help report. After deleting these relevant paths, the help information could be retrieved again.

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

カテゴリ

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

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by