File Exchange

image thumbnail

verbatim: Get the text of a block comment.

version 1.1 (2.04 KB) by

Verbatim returns the text contained in the next block comment.



View License

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.

Comments and Ratings (4)


Excellent piece of code, to enable multi-line string literals in MATLAB

Patrick Mineault

just works !



Updated for R2009a and added automatic removal of indentation.

MATLAB Release
MATLAB 7.8 (R2009a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Win prizes and improve your MATLAB skills

Play today