I'm looking for a way to document the code and models created or generated by MATLAB (m-files) Simulink models (S-functions etc.) and Stateflow. In the last five years I was using Octave so I'm not familiar with newer MATLAB features.
The documentation should be able to present mathematical functions as well as graphics and if possible have a help menu. Portability (html, pdf etc.) is also of interest.
What options are available in MATLAB R2017b and to what extent can they satisfy the above requirements? If there's no built-in tool, I want an external tool that can do this.
To what extent can MATLAB's Publish tool meet these requirements? Does it need a separate toolbox license?