evalc
- :
text =evalc(try)¶ - :
text =evalc(try, catch)¶ - :
[text, y1, …] =evalc(try)¶ - :
[text, y1, …] =evalc(try, catch)¶ Run try as
evalwould, but divert everything it would have written to the terminal into the returned string text rather than showing it (including warnings andfprintfto stderr, matching MATLAB).Additional outputs y1, … are the values produced by try (or catch when that path runs), as with MATLAB’s multi-output
evalc.A second string catch is run in place of try when the latter fails, and the terminal is restored to normal output even if an error propagates out.