Some of the parameter names (even very innocent ones) seem to be generating an error in my code. The attached code, for example, works just fine. But when I replace parameter name "theta" with a parameter name "lambda" (using Replace All function, I get 20 replacements), I get an error message saying that: "The input character is not valid in MATLAB statements or expressions".
Any suggestions would be very much appreciated.
Many thanks,
tokhir