Linking to a specific (non-function's) documentation page programmatically

前端 未结 1 621
旧巷少年郎
旧巷少年郎 2021-01-24 08:59

As part of writing some documentation for my code, I would like to include a runnable command which would show the user some specific documentation page I have in mind, from MAT

相关标签:
1条回答
  • 2021-01-24 09:41

    Open the page in question in the documentation browser, right-click anywhere on the page and choose "Get Page Address". This opens a dialog with the location of the doc page both locally and a URL to the online webpage.

    You can see how the local command given is just a direct call to the HTML file to be displayed in the embedded help browser.

    So take queue from MathWorks and just do the same thing by programmatically calling this from your program:

    >> web(fullfile(docroot, 'curvefit/evaluating-goodness-of-fit.html'))
    
    0 讨论(0)
提交回复
热议问题