<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263604</link>
    <title>MATLAB Central Newsreader - xlsread-multiple sheets</title>
    <description>Feed for thread: xlsread-multiple sheets</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Tue, 20 Oct 2009 08:58:52 -0400</pubDate>
      <title>xlsread-multiple sheets</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263604#688320</link>
      <author>enviro</author>
      <description>Hi there;&lt;br&gt;
&lt;br&gt;
I would like to read multiple excel sheets and save each sheet as separate matrix. I have tried below but there is a problem yet. Any help would be appreciated.&lt;br&gt;
&amp;nbsp;&lt;br&gt;
%--------------------------&lt;br&gt;
[type,sheetname] = xlsfinfo('test.xls'); &lt;br&gt;
m=size(sheetname,2); &lt;br&gt;
&lt;br&gt;
for(i=1:1:m); &lt;br&gt;
Sheet = char(sheetname(1,i)) ;  &lt;br&gt;
matrix = xlsread('test', 'Sheet'); &lt;br&gt;
end</description>
    </item>
    <item>
      <pubDate>Tue, 20 Oct 2009 12:03:06 -0400</pubDate>
      <title>Re: xlsread-multiple sheets</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263604#688354</link>
      <author>Giacomo Faggiani</author>
      <description>&lt;br&gt;
&amp;gt; matrix = xlsread('test', 'Sheet'); &lt;br&gt;
&lt;br&gt;
matrix = xlsread('test', Sheet); &lt;br&gt;
&lt;br&gt;
try without marks&lt;br&gt;
&lt;br&gt;
Giacomo</description>
    </item>
    <item>
      <pubDate>Tue, 20 Oct 2009 12:32:43 -0400</pubDate>
      <title>Re: xlsread-multiple sheets</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263604#688368</link>
      <author>enviro</author>
      <description>Thanks for your reply.&lt;br&gt;
It now gives only final sheet. I wonder if I could have all sheets and a way to save them into individual matrices.</description>
    </item>
    <item>
      <pubDate>Tue, 20 Oct 2009 13:37:17 -0400</pubDate>
      <title>Re: xlsread-multiple sheets</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263604#688389</link>
      <author>Leslie McBrayer</author>
      <description>&lt;br&gt;
&quot;enviro&quot; &amp;lt;farhadnejadkoorki@yahoo.co.uk&amp;gt; wrote in message &lt;br&gt;
news:1789462907.86588.1256041993772.JavaMail.root@gallium.mathforum.org...&lt;br&gt;
&amp;gt; Thanks for your reply.&lt;br&gt;
&amp;gt; It now gives only final sheet. I wonder if I could have all sheets and a &lt;br&gt;
&amp;gt; way to save them into individual matrices.&lt;br&gt;
&lt;br&gt;
You could create a cell array as follows:&lt;br&gt;
&lt;br&gt;
alldata = cell(1, m);&lt;br&gt;
&lt;br&gt;
for(i=1:1:m);&lt;br&gt;
Sheet = char(sheetname(1,i)) ;&lt;br&gt;
alldata{i} = xlsread('test', Sheet);&lt;br&gt;
end </description>
    </item>
    <item>
      <pubDate>Wed, 21 Oct 2009 09:39:23 -0400</pubDate>
      <title>Re: xlsread-multiple sheets</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263604#688605</link>
      <author>enviro</author>
      <description>Thanks for the help</description>
    </item>
    <item>
      <pubDate>Sun, 08 Nov 2009 12:31:02 -0500</pubDate>
      <title>Re: xlsread-multiple sheets</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263604#693000</link>
      <author>ujjwal saha</author>
      <description>thanks a lot...it saved lots of my energy...</description>
    </item>
    <item>
      <pubDate>Tue, 10 Nov 2009 07:20:01 -0500</pubDate>
      <title>Re: xlsread-multiple sheets</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/263604#693412</link>
      <author>enviro</author>
      <description>Is it posible to read rawdata of each sheet as well? &lt;br&gt;
[N, T, rawdata] = xlsread('filename', ...)</description>
    </item>
  </channel>
</rss>

