You can use the MATLAB® Report Generator™ to create reports for sharing your MATLAB code and presenting the results of the code.
In addition, MATLAB provides several methods for presenting MATLAB code and results, including:
The MATLAB Live Editor enables you to create cohesive, shareable documents that include executable MATLAB code, embedded output, and formatted text.
The MATLAB publish command enables you to publish your MATLAB code quickly, so that you can describe and share your code with others, even if they do not have MATLAB software. You can publish in various formats, including HTML, XML, and LaTeX. If Microsoft® Word or Microsoft PowerPoint® applications are on your Microsoft Windows® system, you can publish to their formats as well.
To compare the MATLAB tools for presenting MATLAB code and results and MATLAB Report Generator, see Options for Presenting Your Code (MATLAB).