| Products & Services | Industries | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
tf = isdir('A')
tf = isdir('A') returns logical 1 (true) if A is a folder. Otherwise, it returns logical 0 (false).
Run:
tf=isdir('myfiles/results')MATLAB returns
tf = 1
indicating that myfiles/results is a folder.

Explore how to use MATLAB to make advancements in engineering and science.
| © 1984-2010- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |