Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How do I get the filename of an image that I loaded and store it in a string variable?

조회 수: 1 (최근 30일)
Suraj Suresh
Suraj Suresh 2017년 12월 8일
마감: Stephen23 2017년 12월 8일
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.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by