Error popup: "Undefined function 'cosd' for input arguments of type 'matlab.ui.control.NumericEditField' "
4 ビュー (過去 30 日間)
古いコメントを表示
Danielle Hendricks
2020 年 5 月 6 日
コメント済み: Danielle Hendricks
2020 年 5 月 9 日
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!
0 件のコメント
採用された回答
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 Center および File 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!