why is my code having an error
1 次查看(过去 30 天)
显示 更早的评论
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)dipfinalproject('importimage_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
1 个评论
Rajeev
2023-1-23
Can you provide the exact snapshot of the error along with the script that is causing it?
回答(1 个)
Walter Roberson
2023-1-23
the most common problem in image importing callbacks, is failing to use fully qualified file names. uigetfile returns two outputs, filename and directory. The directory returned is not certain to end with a directory separator character but often does. use fullfile to put the two parts together.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!