MATLAB: Read some images from one folder contain on many images

image & video processing

Hi, I have folder "new images" contain on 50 images such as (P1.png, P2.png, P3.png,…….,P50.png). I'd like to process (im2bw for example) on some of them like (P1.png, P5.png, P13.png, P20.png, P21.png, P30.png, P33.png, P40.png & P48.png). Can you please help me to make a code. Regards

Best Answer

The MATLAB wiki covers this, and explains it quite well:
Related Question