How can I process all the files with \".xyz\" extension in a folder? The basic idea is that I want a list of file names and then a for loop to load each file.
You could use
fileName=ls('*xyz').
fileName=ls('*xyz')
fileName variable will have the list of all the filenames which you can use in the for loop