In my code there is 'for loop' and i have to pass image name according to loo
if true
% code
for k=100 to 102
imshow('C:\Users\shraddha\Documents\MATLAB\Snaps\100.png');
end
at '100.png' I want the value of k so i tried a lot but didn't got the solution..please sugest me some solution.

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2014년 11월 23일

0 개 추천

for k=100 to 102
imshow(sprintf('C:\Users\shraddha\Documents\MATLAB\Snaps\%d.png',k));
end

댓글 수: 1

Shraddha Agnihotri
Shraddha Agnihotri 2014년 11월 23일
This still showing error like...
Error in imshow (line 198) [common_args,specific_args] = ...
Error in roi_demo (line 31) imshow(sprintf('C:\Users\shraddha\Documents\MATLAB\Snaps\%d.png',k)) >>

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Convert Image Type에 대해 자세히 알아보기

제품

질문:

2014년 11월 23일

댓글:

2014년 11월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by