why when i import an image from my desktop the error says it doesnt exist plz help and thank u in advance
조회 수: 1 (최근 30일)
이전 댓글 표시
채택된 답변
Voss
2022년 11월 29일
편집: Voss
2022년 11월 29일
Use both output arguments from uigetfile to construct the full path name of the file:
[filename,pathname] = uigetfile();
fullfilename = fullfile(pathname,filename);
a = imread(fullfilename);
댓글 수: 2
Walter Roberson
2022년 11월 29일
Also, we recommend
[filename,pathname] = uigetfile();
if isnumeric(filename); return; end %user cancel
fullfilename = fullfile(pathname,filename);
추가 답변 (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!