MATLAB Answers

Double Scalar error. I am trying to figure out this error message. Any help appreciated.

조회 수: 42(최근 30일)
Joshua Kinlaw
Joshua Kinlaw 2021년 3월 28일
댓글: Walter Roberson 2021년 3월 31일
  댓글 수: 1
Walter Roberson
Walter Roberson 2021년 3월 28일
Use the debugger to put a breakpoint at the line where the assignment is, and check to see whether Force is a scalar or not, and what value Force is, and what the value of app.ForceEditField.Limits are.

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

답변(1개)

Reshma Nerella
Reshma Nerella 2021년 3월 31일
Hi,
This error message is displayed when you try to assign a value that is out of the limits specified for a Numeric Edit Field.
Consider checking the limits for the ForceEditField in your app and then assign proper values to it or modify the limits for the ForceEditField so that it can accommodate any obtained value.
Hope this helps!
  댓글 수: 1
Walter Roberson
Walter Roberson 2021년 3월 31일
For example, hypothetically the field might have been restricted to positive values, but on your last step you might be generating a negative value.

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

태그

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by