You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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 (2026). verbatim: Get the text of a block comment. (https://au.mathworks.com/matlabcentral/fileexchange/23194-verbatim-get-the-text-of-a-block-comment), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.1.0.0 (2.04 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
