inputdlg does not work Matlab 2020a
5 次查看(过去 30 天)
显示 更早的评论
when including "inputdlg" in a simple script I recieve the following error:
Error using matlab.graphics.Graphics/set
Unrecognized property Units for class AnnotationPane.
Error in inputdlg (line 340)
set(findall(InputFig),'Units','normalized','HandleVisibility','callback');
the dialog box opens but the 'ok' and 'cancel' buttons can't be pressed and the only option is to close the window.
I checked that it is not a syntax problem by copying the inputdlg example code from Mathworks, https://www.mathworks.com/help/matlab/ref/inputdlg.html
1 个评论
Jan
2020-11-24
Please post a piece of code, which reproduces the problem.
Did you shadow a builtin function? This can happen when folders with user-defined functions are stored in the path before Matlab's toolboxes.
回答(1 个)
Jan
2020-11-24
User the debugger to find out more details. Type in in the command window:
dbstop if caught error
Now run the code again and check, which line is failing and the values of the used variables.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Performance and Memory 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!