MATLAB Function Reference Previous page   Next Page

Evaluate MATLAB expression with capture



T = evalc(S) is the same as eval(S) except that anything that would normally be written to the command window is captured and returned in the character array T (lines in T are separated by \n characters).

[T, X, Y, Z, ...] = evalc(S) is the same as [X, Y, Z, ...] = eval(S) except that any output is captured into T.


When you are using evalc, diary, more, and input are disabled.

See Also

diary, eval, evalin, input, more

Previous page  eval evalin Next page

© 1994-2005 The MathWorks, Inc.