If it is possible to display matlab's command window in app designer's text area?
39 views (last 30 days)
Hi. I wonder if there is a possibility to display matlab's command window in app designer's text area. Im working with USRP B200 mini radio and i need to display command window's result in my app. This will allow the application to show the result of sending of receiving data. Without this, the application will be useless. I have no idea how to do this. Can you help me?
Jan on 19 Dec 2021
See: FEX: CmdWinTool
cmdWinDoc = com.mathworks.mde.cmdwin.CmdWinDocument.getInstance;
initial = cmdWinDoc.getLength;
% Run the external program:
Msg = char(cmdWinDoc.getText(initial, cmdWinDoc.getLength - initial));
Now insert Msg in the text field. This could be done by a timer also.