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

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 commentaires

What are you hoping / planning to do with such an object? What's your use case?
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.

Connectez-vous pour commenter.

Réponses (1)

Rajeev
Rajeev le 20 Jan 2023
Modifié(e) : Rajeev le 20 Jan 2023
As of now, the "doc" command does not return any kind of object and hence there is no result to store.

2 commentaires

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!
Thank you for pointing it out, I have edited the answer accordingly.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange

Produits

Version

R2022b

Question posée :

le 18 Jan 2023

Commenté :

le 23 Jan 2023

Community Treasure Hunt

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

Start Hunting!

Translated by