Returns the paths of all subdirectories of the root path.
Tim Myers (2020). subdir (https://www.mathworks.com/matlabcentral/fileexchange/7699-subdir), MATLAB Central File Exchange. Retrieved .
Function documentation states that FileExchange submission dirdir is required for use. A broken link is supplied.
As an alternative, please consider including dirdir as a subfunction within subdir, with citation. This would eliminate the need to update the URL, and allow your function to be self-sufficient.
Plese, correct the '\' character in line 36 and repalce it with filesep for platform independance. '\' is the file separator only for Wondows.
Inspired by: dirdir