MATLAB app designer, Reading in arrays

2 次查看(过去 30 天)
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;

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by