Code covered by the BSD License  

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

5.0

5.0 | 2 ratings Rate this file 8 Downloads (last 30 days) File Size: 2.04 KB File ID: #23194

verbatim: Get the text of a block comment.

by Douglas Schwarz

 

05 Mar 2009 (Updated 22 Mar 2009)

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 submission has inspired the following:
mexme - write MEX files in no time
MATLAB release MATLAB 7.8 (R2009a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
21 Apr 2009 Alexandre Gramfort

just works !

30 Apr 2011 Patrick Mineault  
Please login to add a comment or rating.
Updates
22 Mar 2009

Updated for R2009a and added automatic removal of indentation.

Tag Activity for this File
Tag Applied By Date/Time
text formatting Douglas Schwarz 05 Mar 2009 12:43:16
quote Douglas Schwarz 05 Mar 2009 12:43:16
string Douglas Schwarz 05 Mar 2009 12:43:16

Contact us at files@mathworks.com