Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8161555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:31:27+00:00 2026-06-06T18:31:27+00:00

Say I’ve written a class in a package, called mypackage.myclass . I’ve written my

  • 0

Say I’ve written a class in a package, called mypackage.myclass. I’ve written my own HTML documentation for the package and the class, and have included this within the MATLAB help browser as described in the MATLAB documentation.

I can display this HTML documentation by using the help browser to navigate directly to it, but typing doc mypackage.myclass does not display it; instead it displays some HTML documentation that is auto-generated by helpwin (which is a nice feature, but not what I want – the auto-generated documentation is too techy for my users).

How can I force doc to display my documentation, rather than the auto-generated documentation?

Equivalently:

When you run doc docTopic, inside the doc command the Java class com.mathworks.mlservices.MLHelpServices.showReferencePage(docTopic) gets called. If a reference page for docTopic exists, it displays it and returns a success value. If a reference page doesn’t exist, it returns a failure value, which then causes helpwin(docTopic) to get called. Somewhere there must be some catalog that connects values of docTopic with individual reference HTML files. How can I fiddle with that catalog – or can I create one for my package?

MathWorkers and @Yair, please give me enough undocumented rope to hang myself with 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T18:31:29+00:00Added an answer on June 6, 2026 at 6:31 pm

    As far as I know this is not possible and not intended by MathWorks. I don’t know of an undocumented way of doing this either. As far as I remember the keywords for doc are hard-coded somewhere.

    Depending on your setup you can try the following: Prepare your own doc command that uses web(..., '-helpbrowser') to display HTML pages in MATLAB’s help browser:

    function doc(topic)
    
        my_topics = {
            'foo', 'foo.html'
            'bar', 'bar/help/intro.html'
        };
    
        for i = 1 : size(my_topics, 1)
            if strcmpi(topic, my_topics{i, 1})      
                web(my_topics{i, 2}, '-helpbrowser');
                return;
            end
        end
    
        % Fall back to MATLAB's doc. Note that our doc shadows MATLAB's doc.
        docs = which('doc', '-all');
        old_dir = cd();
        c = onCleanup(@() cd(old_dir));
        cd(fileparts(docs{2}));
        doc(topic); 
    end
    

    If you put that function in a file doc.m and put the corresponding directory at the beginning of the MATLAB path (see help addpath) then it will be called instead of the built-in doc.

    Of course you could use some other place to store your custom doc mapping (a file, for instance) or use some kind of dynamic lookup scheme.

    UPDATE: As of MATLAB R2012b, the '-helpbrowser' option of web is undocumented. This is probably related to the GUI changes in that MATLAB version, which also include the help browser. web(..., '-helpbrowser') still works as intended, but that may change in future versions of MATLAB. As far as I know, there is no documented way of opening any HTML page in the help browser in R2012b.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say I have this class: class MyClass { private String s; // more attributes
Say I have this html: <table> <tr> <th>Sort Order</th> <th>Name</th> </tr> <tr class=item id=item_1>
Say that I have this markup excerpt: <p onblur=...>text 1</p> <p class=myclass>text 2</p> <p
Say I have this: private list<myClass> myCollection; Is there a programming idiom to shorten
Say I have an HTML form like this to collect an email from a
Say I have a class called Money which has parameters Dollars and Cents I
Say I have an object called MyClass, which has a property defined as @property
Say I have a select box eg <div data-bind='visible: someProp'> <select class=selectSubWidgets data-bind='options: subWidgets,optionsText:
Say I have classes class A{ //code for class A } class B{ //code
Say I have a SqlAlchemy model something like this: from sqlalchemy.ext.declarative import declarative_base from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.