MATLAB app designer, Reading in arrays

조회 수: 2 (최근 30일)
tyler seudath
tyler seudath 2021년 2월 8일
댓글: Sourabh Kondapaka 2021년 2월 11일
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
Sourabh Kondapaka
Sourabh Kondapaka 2021년 2월 11일
The link provided in @Matt Gaidica's comment should help in resolving your query.
Please comment if you need more help.

댓글을 달려면 로그인하십시오.

답변 (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