Path: news.mathworks.com!not-for-mail
From: "Alan Leung" <twaleung@engmail.uwaterloo.ca>
Newsgroups: comp.soft-sys.matlab
Subject: String Manipulation
Date: Mon, 30 Jul 2007 14:36:58 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 28
Message-ID: <f8kt2a$hsl$1@fred.mathworks.com>
Reply-To: "Alan Leung" <twaleung@engmail.uwaterloo.ca>
NNTP-Posting-Host: webapp-00-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1185806218 18325 172.30.248.35 (30 Jul 2007 14:36:58 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 30 Jul 2007 14:36:58 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1069707
Xref: news.mathworks.com comp.soft-sys.matlab:421697


Hi,

1. I have an cell element called type_name:
type_name = 'A Math Example';

I would like to use type_name as the name of the worksheet
xlswrite('C:\A.xls',A,type_name,'A1:B2')

This statement does not work. How should I modify it?

2. This is a part of my code:
ID1 = {'A';'B';'C';};
for i = 1:1:3
  for j = 1:1:3
     for k = 1:1:3
       ...
     end
  end
end 

Now, I would like to make a matrix so that it look something like:
Output = {'AAA';'AAB';'AAC';'ABA';...}

How should I do it?

Thanks,

Alan