check filename of the input image
조회 수: 3 (최근 30일)
이전 댓글 표시
I wanna make sure the filename of input image is same as what I want. I need it to get into if-else statement.
For example(some sort like this):
a = imread('img.jpg');
if(image_wanted == img.jpg) for(k =1:5) x(k) = k; end end
댓글 수: 0
채택된 답변
Image Analyst
2016년 10월 16일
use strcmpi:
if strcmpi(image_wanted, 'img.jpg')
% Name matches
else
% Name does not match.
end
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Debugging and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!