Borrar filtros
Borrar filtros

MATLAB app designer, Reading in arrays

2 visualizaciones (últimos 30 días)
tyler seudath
tyler seudath el 8 de Feb. de 2021
Comentada: Sourabh Kondapaka el 11 de Feb. de 2021
Hi Everyone,
I am trying to read in arrays(eg,[1,2,3,4]) from a text edit field and convert it to a numerical value and perform mathematical operations to get a value. However, I am getting an error
'Value' must be a double scalar within the range of 'Limits'. Could someone assist please?
Thank you,
Tyler Seudath.
x=str2double(app.timedelay.Value);
y =str2double(app.Relativepower.Value);
%mean excess delay
numerical_value = (10.^(y./10));
a= numerical_value.* x;
mean_excess_delay= (a.*x)/sum(numerical_value);
app.aEditField.Value =mean_excess_delay;
  2 comentarios
Sourabh Kondapaka
Sourabh Kondapaka el 11 de Feb. de 2021
The link provided in @Matt Gaidica's comment should help in resolving your query.
Please comment if you need more help.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by