How can I save the output of display in a string

8 views (last 30 days)
I would like to do:
displaystring = display(obj);

Accepted Answer

Aaditya Kalsi
Aaditya Kalsi on 12 Apr 2014
You can do this with EVALC (<http://www.mathworks.com/help/matlab/ref/evalc.html>)
displaystring = evalc('display(obj)');

More Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!