How to add text or string in App Designer

Hi
I am creating an app in App Designer that perform some calculations. During the process, I want to display text somewhere in the app from a string in the main code. I am aware of uilabel, but this creates a new window instead of displaying the text in the app window.
Please can you help me?

Answers (1)

Rik
Rik on 4 Oct 2017
It sounds like uicontrol('Style','text') will do the trick.

4 Comments

I cannot get this to work on App Designer.
Have you called uilabel while specifying the parent? The doc for uilabel states that it will create a new uifigure if you don't.
Yes, I have called uilabel while specifying the parent. No luck.
Hello Andre,
I answered a similar question here, and didn't experience any issues. Can you provide some details on what didn't work? Did you get any error messages?

Sign in to comment.

Categories

Find more on App Building in Help Center and File Exchange

Asked:

on 4 Oct 2017

Commented:

on 6 Oct 2017

Community Treasure Hunt

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

Start Hunting!