cleanupcomment()
Does anyone know what this function does and what is the
proper way to call it (argument types, output, etc)?
-------------------------------------------------------
More details:
It is apparently called with a string argument in the code,
and my guess is it is used to strip comments from a line of
code that is being parsed, or something similar.
I know for a fact that the code used to run in older MATLAB
versions (I think 4.2), but causes an error in v7.4, which I
can't seem to be able to fix.
The error is:
??? Error: File: cleanupcomment.m Line: 1 Column: 25
The input character is not valid in MATLAB statements or
expressions.
I have verified that the directory which contains the
function
(C:\ProgramFiles\MATLAB\R2007a\toolbox\compiler\mcr\matlab\verctrl)
is in my PATH, and that the file itself, cleanupcomment.m,
is there, although it does not contain ASCII, so it's
unreadable.
-----------------------------------------------------------
Any help will be greatly appreciated.
Dimitris
http://alliance.seas.upenn.edu/~ese313/wiki/index.php?
title=Tutorial:_Matlab
contains the line:
"CLEANUPCOMMENT Remove whitespace from a comment"
as an example of the use of 'lookfor'. That would appear to indicate that
'cleanupcomment' is supposed to remove whitespace characters from an
entered string argument. Perhaps it doesn't like the looks of one of the
characters it sees there. If you know the entered string, what is the character
in column 25?
Note: I have matlab version 4a and there is no such function there.
Roger Stafford