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

1 visualización (últimos 30 días)
Atin
Atin el 18 de En. de 2023
Comentada: Atin el 23 de En. de 2023
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 comentarios
Steven Lord
Steven Lord el 20 de En. de 2023
What are you hoping / planning to do with such an object? What's your use case?
Atin
Atin el 23 de En. de 2023
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.

Iniciar sesión para comentar.

Respuestas (1)

Rajeev
Rajeev el 20 de En. de 2023
Editada: Rajeev el 20 de En. de 2023
As of now, the "doc" command does not return any kind of object and hence there is no result to store.
  2 comentarios
Atin
Atin el 20 de En. de 2023
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 el 20 de En. de 2023
Thank you for pointing it out, I have edited the answer accordingly.

Iniciar sesión para comentar.

Categorías

Más información sobre Data Import and Export en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by