MATLAB: How to specify a relative path when adding the own documentation files to the Help Browser in MATLAB 7.0 (R14)

addaddingbrowserdocumentationfileshelpinfoinfo.xmlMATLABparentpathrelativexml

I am following the instructions given in the documentation entitled "Adding Your Own Help Files in the Help Browser." This documentation is found, from the help table of contents, in MATLAB -> Desktop Tools and Development Environment -> GUI Reference for Desktop Tools and Development Environment -> Adding Your Own Toolboxes to the Development Environment -> Adding Your Own Help Files in the Help Browser.
In the first table given in this section of the documentation, it states the following in the Notes section for the XML Tag help_location:
"You can specify a relative path, that is, relative to the location of the info.xml file."
However, there is no example given on how to do this. I want to be able to access the parent directory of my XML-file using the "../" notation, but I cannot get it to work.

Best Answer

This feature is available in MATLAB 7.0.1 (R14SP1). For previous releases, please read below for any possible workarounds:
The ability to access the parent directories of the "info.xml" file when specifying a relative path as the location of your documentation files is not available in MATLAB 7.0 (R14). Currently, you can specify a relative path to your documentation files in the "info.xml" file in the following three ways:
1) You can specify a relative path if the path to your documentation files is an extension of the path to the "info.xml" file. For example, suppose that your "info.xml" file is in the "D:\Applications\MATLAB7\mytoolbox" directory and your documentation files are in the "D:\Applications\MATLAB7\mytoolbox\helpfiles" directory. You can add the following line of code to your XML-file in order to specify the relative path to these documentation files:
<help_location>helpfiles</help_location>
2) You can use $toolbox to specify the $MATLAB/toolbox directory, where $MATLAB is the root directory where MATLAB is installed. For example, if your documentation files lie in the "D:/Applications/MATLAB7/toolbox/mytoolbox/help" directory, you would add the following line of code to your "info.xml" file:
<help_location>$toolbox/mytoolbox/help</help_location>
3) You can also use $docroot to refer to the root documentation directory (type "docroot" at the MATLAB command prompt to determine what "$docroot" represents in your MATLAB installation). For example, if your documentation files lie in the "D:/Applications/MATLAB7/help/mytoolbox/" directory, you would add the following line of code to your "info.xml" file:
<help_location>$docroot/mytoolbox</help_location>