this is my code
for k = 1 : 5
im = imread(sprintf('C:\1\%d.BMP',k));
%blablalba...
end
There are 5 BMP files in "C: \ 1 \"
The files are named 1.BMP, 2.BMP, 3.BMP, 4.BMP, and 5.BMP respectively
Use sprintf to import files of 1.BMP, 2.BMP ... 5.BMP respectively into imread
But there is an error.
error : demo_SR (line 5)
im = imread(sprintf('C:\1\%d.BMP',k));
Why do I get an error when I get k from 1 to 5 and write"%d"?
thanks you