5.0

5.0 | 1 rating Rate this file 101 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)

Code covered by BSD License  

Verbatim returns the text contained in the next block comment.

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

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 (1)
21 Apr 2009 Alexandre Gramfort

just works !

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
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com