How to change working directory from within a GUI

3 views (last 30 days)
I am trying to see if there is a way to change working directory from a running GUI. The reason for this that I am working with text files that are much to large to be opened in matlab. I was hoping to write up a GUI to assist me instead of just changing an m file each time. Can I change the working directory or at least add to the working directory while I am actively running the GUI. The GUI wont be a standalone executable file as I only have the student version of matlab at the moment.
Thanks for the help,
Anthony

Answers (1)

Jan
Jan on 31 Oct 2012
I can open text files with 4.5GB in Matlab successfully. Do you mean "opening in the editor"?
Yes, you can modify the current directory simply by using the cd command. This is actually such trivial, that I assume, you forgot to mention some other restrictions.

Categories

Find more on File Operations in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!