Suppose I want mp3 or avi files from a folder, on Unix I could do
Is there a clean one-liner way to do this in matlab? Presently, I can do it in two lines by doing the following:
f = dir(folder)
However, I find this rather ugly compared to the simplicity of the first expression.