i want to ask about compare string
i want to select file use this code
[FileName,PathName] = uigetfile('*.jpg','Select the jpg-file');handles.gambar=imread(fullfile(PathName, FileName));image(handles.gambar)axis offguidata(hObject, handles);
could i compare the filename of the image that i've selected ?
for example the image filename is "image1"
TF = strcmp(handles.gambar,image1)
if i choose the right image the TF would become 1, if wrong then it would become 0..
i already try to compare it but error any suggest ? sorry if my english is bad
Best Answer