Display output in a separate window in MATLAB

At the end of the execution of my program in MATLAB, the results, stored in a variable are being displayed in the command window. How to display the contents of a variable on to a different window?
Thanks!

1 Comment

Stephen23
Stephen23 on 13 May 2017
Edited: Stephen23 on 13 May 2017
It would be simpler to just put a semi-colon after the line to prevent displaying the output.

Sign in to comment.

Answers (1)

evalc() the routine that produces the output, and store the result in a variable. Then display the content of the variable in the other window.
Note: when you evalc() a routine, no output will be produced until the end of the routine.

Categories

Find more on MATLAB Coder in Help Center and File Exchange

Tags

Answered:

on 13 May 2017

Community Treasure Hunt

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

Start Hunting!