verbatim: Get the text of a block comment.
Have you ever wanted to include a block of text in your m-file without having to worry about quotes ('), end-of-line characters (\n) and other formatting issues? Verbatim will return exactly the text contained in the block comment following the call to verbatim. Example:
str = verbatim;
%{
This is the text
that will be returned by verbatim.
%}
Cite As
Douglas Schwarz (2024). verbatim: Get the text of a block comment. (https://www.mathworks.com/matlabcentral/fileexchange/23194-verbatim-get-the-text-of-a-block-comment), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired: INLINEDEF: Define functions in scripts, mexme - write MEX files in no time, Export figure to 3D interactive PDF, Matlab mesh to PDF with 3D interactive object
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.