I need to list the subfolders inside a folder using Matlab. If I use
nameFolds = dir(pathFolder),
I get . and .. + the subfolder names. I then have to run nameFolds(1) = [] twice. Is there a better way to get the subFolder names using Matlab? Thanks.