Code covered by the BSD License  

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

4.66667

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

verbatim: Get the text of a block comment.

by

 

05 Mar 2009 (Updated )

Verbatim returns the text contained in the next block comment.

| Watch this File

File Information
Description

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.
%}

Acknowledgements

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

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 !

Updates
22 Mar 2009

Updated for R2009a and added automatic removal of indentation.

Contact us