how to pass image name dynamically
Afficher commentaires plus anciens
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.
Réponses (1)
Azzi Abdelmalek
le 23 Nov 2014
for k=100 to 102
imshow(sprintf('C:\Users\shraddha\Documents\MATLAB\Snaps\%d.png',k));
end
1 commentaire
Shraddha Agnihotri
le 23 Nov 2014
Catégories
En savoir plus sur Convert Image Type dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!