why is my code having an error

7 ビュー (過去 30 日間)
tala
tala 2023 年 1 月 17 日
回答済み: Walter Roberson 2023 年 1 月 23 日
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)dipfinalproject('importimage_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
  1 件のコメント
Rajeev
Rajeev 2023 年 1 月 23 日
Can you provide the exact snapshot of the error along with the script that is causing it?

サインインしてコメントする。

回答 (1 件)

Walter Roberson
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.

カテゴリ

Help Center および File ExchangeApp Building についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by