Hi, How can i put the command window in a GUI?

4 views (last 30 days)
I want the command window to show itself as a section in the GUI.
  3 Comments
Rik
Rik on 23 Aug 2019
Letting the user run arbitrary code seems like a bad idea.
Adam Danz
Adam Danz on 23 Aug 2019
With a text box the code will not be executed until something invokes the GUI to read in the text and do an eval() or evalin(). Error messages, warnings, and outputs could be channeled to appear the pseudo-command-window. But I'd bet that it wouldn't be trivial. That might also require using multiple workspaces and sharing variables between them which sounds clumsy, too. If the commands that need to be entered are simple, there are much better solutions that immitating a command window from the GUI.

Sign in to comment.

Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!