Filter löschen
Filter löschen

MATLAB app designer, Reading in arrays

2 Ansichten (letzte 30 Tage)
tyler seudath
tyler seudath am 8 Feb. 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;

Antworten (0)

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange

Produkte


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by