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

1 次查看(过去 30 天)
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!

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by