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.
|
| Updates |
| 22 Mar 2009 |
Updated for R2009a and added automatic removal of indentation. |
|
Contact us at files@mathworks.com