| Products & Services | Solutions | 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('mymfiles/results')MATLAB returns
tf = 1
indicating that mymfiles/results is a folder.
![]() | iscom | isEdge (TriRep) | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |