I created a a matlab GUI using default GUIDE property of matlab. I made a single push button which when is pushed starts running a particular script. That script takes some inputs from the user to create a ".mat" file which is used in some other scripts seperately. Now what I want is to display the output of command window into the my GUI. I made a static text box and I want to use it as my command window in other words the command window is duplicated in that static text box. Is that possible ? If yes please explain how I can do it.
clear all;
close all;
clc;
theta=input('theta point ') ;
phi=input('phi point ') ;
x=input('enter real value ' );
y=input('enter img value ') ;
z=x .*exp(1j*(y)*pi/180)