Skip to Main Content Skip to Search
Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Thread Subject: xlsread

Subject: xlsread

From: Alasdair

Date: 17 Aug, 2007 16:52:13

Message: 1 of 3

When using xlsread I am only able to read one sheet of
Excel data into Matlab. I can not read another sheet in
later in the session. Any one know a way round this?

Subject: Re: xlsread

From: josep

Date: 17 Aug, 2007 19:07:49

Message: 2 of 3

"Alasdair " <alasdair.macarthur@ed.ac.uk> wrote in message
<fa4jnt$jc$1@fred.mathworks.com>...
> When using xlsread I am only able to read one sheet of
> Excel data into Matlab. I can not read another sheet in
> later in the session. Any one know a way round this?

Hi,

Try...
>>xlsread(file,'sheet2')

or use the name of the sheet

Subject: Re: xlsread

From: Yair Altman

Date: 18 Aug, 2007 18:02:05

Message: 3 of 3

"josep " <joancampoy@hotmail.com> wrote in message

>>xlsread(file,'sheet2')

This works, but is painfully slow if you have several
worksheets you wish to read one after the other. The reason
is that xlsread opens and closes an Excel COM server each
time, and does not reuse an open server connection. There
are a couple of solutions for that on the Matlab File
Exchange - one of them is my OfficeDoc -
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=15192

Yair Altman
http://ymasoftware.com

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
excel Ned Gulley 17 Aug, 2007 14:40:53
rssFeed for this Thread

envelope graphic E-mail this page to a colleague

Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.
Related Topics