I am taking 30 snapshots with a camera connected to my computer. I have developed a for loop that saves the images in the current folder. Here are the codes
photo = videoinput('winvideo', 1);for i = 1:30 my_image = getsnapshot(photo); file_name = ['Image' num2str(i)]; imwrite(my_image,file_name,'png'); pause(2); imshow(my_image(i));end
The expected output should be
Image1.pngImage2.png…………………………Image30.png
In lieu to the above I get
Image1Image2…………………………Image30
Any help please
Best Answer