how to read images from a folder one after the other from a folder and convert them into its greylevel image using a for loop?

Suppose i hav around 30 images in a folder named 'images'.Now what i need to do is to read the images one after the other and convert them into their greylevel image.how to do this process using a for loop or any other technique for reading the images one after the other instead of writing 'imread' for all the 30 images 30 times .How can u do this...plz help sir...

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Asked:

on 8 Feb 2012

Community Treasure Hunt

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

Start Hunting!