Path: news.mathworks.com!not-for-mail
From: "Ryan Utz" <rutz@al.umces.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Severing ties between Matlab and data files when programming
Date: Wed, 31 Dec 2008 16:16:02 +0000 (UTC)
Organization: University of Maryland
Lines: 8
Message-ID: <gjg5s2$533$1@fred.mathworks.com>
Reply-To: "Ryan Utz" <rutz@al.umces.edu>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1230740162 5219 172.30.248.38 (31 Dec 2008 16:16:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 31 Dec 2008 16:16:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1502608
Xref: news.mathworks.com comp.soft-sys.matlab:509346


I'm constantly constructing m-files that batch process or analyze a number of .csv files. When I'm working on one and it messes up for whatever reason (i.e. an error occurs and the process is interrupted), I find that I cannot move, delete, or make changes on the data file that it was last working on. If I try to, Windows tells me that another program (Matlab) is operating on the file (or something to the tune of that), even though Matlab is no longer 'Busy', the error has been posted, and a fresh >> is in the command line. 

The only solution I've found to this is to shut down Matlab completely, do what I need to to the data file in question, and restart Matlab to start work again. There has got to be a better way. I'm guessing (and hoping) it's something simple. 'clear' doesn't do the trick.  

Anyone have a solution?

Thanks,
Ryan