ismemberを活用して、'.'と'..'の名前以外を抽出すればできます。
folderInfo = dir(read_dir);
folderInfo = folderInfo(~ismember({folderInfo.name}, {'.', '..'}));
folderlist = folderInfo([folderInfo.isdir]);
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!