필터 지우기
필터 지우기

Error popup: "Undefined function 'cosd' for input arguments of type 'matlab.ui​.control.N​umericEdit​Field' "

조회 수: 4 (최근 30일)
I'm coding a program using Matlab App Designer and when I try to run the program, this error pops up and I am not at all sure what to fix.
The program allows users to input numerical data, push 'start' and the program should analyse this data.
Here is the code giving the error:
and this is how I call the function:
Help would be greatly appreciated!

채택된 답변

Cris LaPierre
Cris LaPierre 2020년 5월 7일
You are passing in handles to the components, not the values they contain. You need to access the specific property of the component that contains the displayed value. You can see a list of components and view their properties here.
For example, for a numericeditfield, you want to use
theta = app.orientationangleEditField.Value;

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by