how can i display a message in appdesigner in a button callback

lets say we've got an if statement and i wanna display a message in appdesigner i'm asked to use a label but no idea how to do it after a code
here is an example
if closest<=5 % if the closest distance between the target and the players trajectory
app.score=app.score+10; % the players score will be increment 10 points if the trajectory was very close or hits the target
msgbox('Unbelievable ! ','Success')
but other than using a msgbox i'm asked to use a label can someone help because i tried everything and searching but nothing useful and always getting an error it is irritating!!!

9 comentarios

Do you want to show message embeded inside the appdesigner figure? or just like msgbox which open seperately (uialert for Appdesigner)
like message box but seperate window same as we do in matlab when we wanna display a message we use msgbox and i had to change this into label but i don't know what's that so please support
you can use uialert or is it necessary to make your own message box and write that stuff?
to be honest i'm confused if possible sending me your email to send you the program to test it your self
i don't get it
i don't want to share the code so it won't be available for everyone
let me have your email sir
I think you can use 'label' component in appdesigner which is basically a static text. You can update the 'Value' of label to display the message.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre App Building en Centro de ayuda y File Exchange.

Preguntada:

el 17 de Abr. de 2020

Comentada:

el 8 de Mayo de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by