MATLAB: How to get the path of a folder

folder dir

I want to get the path of a folder,not a file; Well, a dialog box pops up ,ask me to choose a folder, and I hope it can returns the path of the folder,such as 'C:\Document\Files\MYfolder'
Thank you for your help!

Best Answer

uigetdir()