how to check whether variable is directory
Ältere Kommentare anzeigen
I don't know whether a variable is a directory or not, but when I use exist or isdir, and it is not a directory, I get a fatal error.
Antworten (1)
Walter Roberson
am 23 Apr. 2016
Variables cannot be directories. Variables can be strings that name directories. Example:
Testvar = 'data7'
exist(Testvar,'dir')
Kategorien
Mehr zu Search Path finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!