Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
How do I get the filename of an image that I loaded and store it in a string variable?
조회 수: 1 (최근 30일)
이전 댓글 표시
this is the code I used to load the image
global im im2
[path,user_cance]=imgetfile();
im=imread(path);
Is there a way that I can get the filename of the image, say for example 'imgname.bmp', store it in a string variable say 'string sname' and then
strcmp(sname,'imgname.bmp');
if true
statement1
else
statement2
end
How can I do this or is there any other way?I am a beginner so please be elaborate. Thank you in Advance.
댓글 수: 1
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!