MATLAB is unable to analyze code within statements called by
eval
. This prevents
Furthermore, concatenated character vectors within an eval
statement are often difficult to read. This makes code less clear and causes
issues with sharing and maintaining code.
To allow eval
for the right hand side of the assignment.
Old | New |
---|---|
eval( [ 'signal=', varname, ';' ] )
|
signal = eval(varname);
|