Help: cleanupcomment.m



I am trying to "decipher" some old code and have encountered
the following MATLAB function, which I cannot figure out:

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


.



Relevant Pages

  • Re: Help: Finding 2nd max value index
    ... how should i decipher it. ... sorry i am very new to matlab. ... i am still at the learning stage. ...
    (comp.soft-sys.matlab)
  • Re: Help: cleanupcomment.m
    ... I know for a fact that the code used to run in older MATLAB ... "CLEANUPCOMMENT Remove whitespace from a comment" ... If you know the entered string, what is the character ...
    (comp.soft-sys.matlab)
  • ERROR
    ... I get the following error in the 'command window' when using characters like ./ or .*, ... "The input character is not valid in MATLAB statements or expressions." ... What is the meaning of this, if ./ and .* are valid MATLAB commands? ...
    (comp.soft-sys.matlab)
  • fopen error
    ... am going to use the fopen function i get this error: ... The input character is not valid in MATLAB statements or expressions. ...
    (comp.soft-sys.matlab)