5.0

5.0 | 3 ratings Rate this file 5 Downloads (last 30 days) File Size: 1.42 KB File ID: #3145

GOTO: Go to a directory containing a file

by Scott Hirsch

 

17 Mar 2003 (Updated 04 Jan 2010)

Jump to the directory containing a specified file.

Editor's Notes:

This file was a File Exchange Pick of the Week

| Watch this File

File Information
Description

GOTO filename changes MATLAB current directory to the one containing filename. filename must be on the MATLAB path. goto uses the first instance of filename that it finds (a la WHICH).

This is not rocket science, but it sure is convenient!

Acknowledgements
This submission has inspired the following:
Jump, pushd, getfile, GOBACK
MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
17 Sep 2004 Chris Arndt

This is great when you can't remember where you saved a file.

01 Mar 2005 alaa saad

ALAASAADMALKAWI

22 Sep 2006 Jøger Hansegård

Nice utility which i use a lot

Please login to add a comment or rating.
Updates
01 Dec 2004

Update to work with GOBACK.

04 Jan 2010

minor update to title

Tag Activity for this File
Tag Applied By Date/Time
path Scott Hirsch 22 Oct 2008 06:58:27
directories Scott Hirsch 22 Oct 2008 06:58:27
files Scott Hirsch 22 Oct 2008 06:58:27
cd Scott Hirsch 22 Oct 2008 06:58:27
navigate Scott Hirsch 22 Oct 2008 06:58:27
browse Scott Hirsch 22 Oct 2008 06:58:27
file Scott Hirsch 22 Oct 2008 06:58:27
which Scott Hirsch 22 Oct 2008 06:58:27
path Matt Brunner 09 Nov 2010 17:10:28

Contact us at files@mathworks.com