How to display result in Text Area in Matlab Appdesigner
Mostrar comentarios más antiguos
Hi, I have a problem here where I could not display my result of the equation in the text area.
Below is the code.
The app.EIRP.Value is the text area.
pt = app.ouputpower.Value;
lbo = app.backoffloss.Value;
lbf = app.eartbranchingloss.Value;
at = app.antennagain.Value;
lu = app.uplinkloss.Value;
lp = app.pathloss.Value;
gte = app.gteratio.Value;
bfb = app.satbranchingloss.Value;
br = app.bitrate.Value;
app.EIRP2 = pt+at-lbo-lbf;
app.EIRP.Value = num2str(eval(app.EIRP2));
1 comentario
Zain Ul Abidin
el 25 de Abr. de 2021
Movida: Adam Danz
el 23 de Nov. de 2022
How Can I add nultiple line in a single text area using differnt sprint commands
Respuesta aceptada
Más respuestas (2)
Bill Llach
el 16 de Abr. de 2022
Editada: Bill Llach
el 16 de Abr. de 2022
0 votos
if you have a complex number vector just use:
evalc('anything')
Example:
someArray = [1 2 1 2];
theThingYouWantToShow = roots(someArray);
%theThingYouWantToShow is a vector with complex numbers (if you can show this, you can show anything :) (I guess) )
app.SomeTextArea.Value = evalc('theThingYouWantToShow');
1 comentario
Also see formattedDisplayText
Diego Roa
el 21 de Nov. de 2022
0 votos
¿Como imprimir una función de transferencia en un texteditfield ?
Categorías
Más información sobre Develop Apps Using App Designer en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
