Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Automating variable naming
Date: Thu, 11 Dec 2008 19:31:02 +0000 (UTC)
Organization: University of California Santa Barbara
Lines: 5
Message-ID: <ghrppm$6ua$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1229023862 7114 172.30.248.37 (11 Dec 2008 19:31:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 11 Dec 2008 19:31:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1313622
Xref: news.mathworks.com comp.soft-sys.matlab:506410


I'm trying to find a method to give unique names to workspace variables without having to manually do this in the workspace.  I have a function which looks up Excel file names and puts them into a cell array.  I'd like to use those unique file names to label the variable (matrix) that the larger function outputs, so that I can just automate processing and loop through.  I'm taking Excel files, reading them and their filenames, doing slight manipulation/cleaning up, and then outputting in matlab.

I know this is a basic question, but it's frustrating that I'm unable to find the answer to this seemingly simple issue anywhere.

Thanks for the assistance!