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

조회 수: 1 (최근 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 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