View License

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

» Watch video

Highlights from
verbatim: Get the text of a block comment.

4.7 | 3 ratings Rate this file 7 Downloads (last 30 days) File Size: 2.04 KB File ID: #23194 Version: 1.1

verbatim: Get the text of a block comment.



05 Mar 2009 (Updated )

Verbatim returns the text contained in the next block comment.

| Watch this File

File Information

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.


This file inspired Matlab Mesh To Pdf With 3 D Interactive Object, Mexme Write Mex Files In No Time, Export Figure To 3 D Interactive Pdf, and Inlinedef: Define Functions In Scripts.

MATLAB release MATLAB 7.8 (R2009a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
22 May 2013 Muthu Annamalai

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

30 Apr 2011 Patrick Mineault

21 Apr 2009 Alexandre Gramfort

just works !

22 Mar 2009 1.1

Updated for R2009a and added automatic removal of indentation.

Contact us