How to receive value of an variable as output in TextArea/EditField in Matlab app?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Wong Slocked
el 11 de Abr. de 2020
Comentada: Ameer Hamza
el 11 de Abr. de 2020
I first noticed EditField can reveive value of an variable as output in the example app ''Mortgage.mlapp''.
app.MonthlyPaymentEditField.Value = payment;
However, when I try to make an EditField reveive variable as output like this,
app.MessageBoxEditField.Value='dataset loaded';
An error occured, saying the data type is invalid, it must be matlab.ui.control.editfield or can be converted to matlab.ui.control.editfield.

I'm a little confused, how can I fix it?
update line
I really appreciate your looking into it.
In the attachment I uploaded, I tried 2 ways in line 40 and 41,but neither works.
1 comentario
Respuesta aceptada
Ameer Hamza
el 11 de Abr. de 2020
The code you pasted in the question is different as compared to the app you attached. See the attached app for the correct code.
2 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!