Is there a way to get result of doc command as an HTML/XML object?

9 ビュー (過去 30 日間)
Atin
Atin 2023 年 1 月 18 日
コメント済み: Atin 2023 年 1 月 23 日
Can we get the result of doc command in an object instead of displaying it as an HTML.
For example -
obj = doc("mean")
Here 'obj' is an HTML/XML object.
  2 件のコメント
Steven Lord
Steven Lord 2023 年 1 月 20 日
What are you hoping / planning to do with such an object? What's your use case?
Atin
Atin 2023 年 1 月 23 日
For a given help text about a class or function -
I would like to extract only the Help text but in a structured form, so that I could easily interpret that help text about function, properties etc.

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

回答 (1 件)

Rajeev
Rajeev 2023 年 1 月 20 日
編集済み: Rajeev 2023 年 1 月 20 日
As of now, the "doc" command does not return any kind of object and hence there is no result to store.
  2 件のコメント
Atin
Atin 2023 年 1 月 20 日
No. 'help' returns the help text and can be stored as well. Check this-
k = help("timefun")
disp(k)
I am expecting something like this for 'doc' as well!
Rajeev
Rajeev 2023 年 1 月 20 日
Thank you for pointing it out, I have edited the answer accordingly.

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

カテゴリ

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

タグ

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by