Skip to Main Content Skip to Search
Product Documentation

evalc - Evaluate MATLAB expression with capture

Syntax

T = evalc(S)
[T, X, Y, Z, ...] = evalc(S)

Description

T = evalc(S) is the same as eval(S) except that anything that would normally be written to the command window, except for error messages, 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.

Tips

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

See Also

assignin | diary | eval | evalin | feval | input | more

  


» Learn more
» Download free kit
» Get trial software

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS