Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

How to display on GUI?

Asked by Arun Badigannavar on 11 Feb 2013

How to display user defined string value using input dialogue on the gui,,, suppose user enters some string,,,and it will come to workspace,,,and i want to show those user defined string on the GUI

0 Comments

Arun Badigannavar

Tags

Products

No products are associated with this question.

1 Answer

Answer by Image Analyst on 11 Feb 2013

First of all, look at Doug Hull's blogs on making GUIs. http://blogs.mathworks.com/videos/category/gui-or-guide/

The answer to your question is to make up a string, say with sprintf(), then use set() to send it to the text label control:

set(handles.text1, 'String', yourString);

1 Comment

Arun Badigannavar on 11 Feb 2013

I got worked out with "evalin" command,,,thanks for ur response

Image Analyst

Contact us