|
|
how to do xlsread if I don't know the number of rows on the Excel sheet?
Hi all,
Is there a good way of solving this problem?
I have an Excel book with quite a number of sheets, each sheet
contains one column of dates and many columns of data.
The book is dynamically growing.
Every time my Matlab program opens the book, it doesn't know the
number of rows. (it's supposed to work as a mid-night automation
process, so I won't be able to be there every mid-night to read the
number of rows and input it to the Matlab automation program.)
So how to solve this problem?
Currently since I am using Excel 2003, so I put the max number of rows
to be 65535, etc.
But then I have to do lots of post-processing to truncate the 65535
rows with many blank empty rows...
Any thoughts?
Thank you!
|
|
0
|
|
|
|
Reply
|
Luna
|
9/23/2010 11:52:11 PM |
|
Luna Moon <lunamoonmoon@gmail.com> wrote in message <9710e953-a64d-48c6-ad4d-f39ba0c2d0fa@c13g2000vbr.googlegroups.com>...
> Hi all,
>
> Is there a good way of solving this problem?
>
> I have an Excel book with quite a number of sheets, each sheet
> contains one column of dates and many columns of data.
>
> The book is dynamically growing.
>
> Every time my Matlab program opens the book, it doesn't know the
> number of rows. (it's supposed to work as a mid-night automation
> process, so I won't be able to be there every mid-night to read the
> number of rows and input it to the Matlab automation program.)
>
> So how to solve this problem?
>
> Currently since I am using Excel 2003, so I put the max number of rows
> to be 65535, etc.
>
> But then I have to do lots of post-processing to truncate the 65535
> rows with many blank empty rows...
>
> Any thoughts?
>
> Thank you!
Why do you need to tell Matlab the number of rows?
Why not just
num = xlsread(filename, sheet);
Ross
|
|
0
|
|
|
|
Reply
|
Ross
|
9/24/2010 1:43:05 AM
|
|
|
1 Replies
642 Views
(page loaded in 0.056 seconds)
Similiar Articles: how to do xlsread if I don't know the number of rows on the Excel ...Hi all, Is there a good way of solving this problem? I have an Excel book with quite a number of sheets, each sheet contains one column of date... import data from excel 2007 with more than 65536 rows to matlab ...how to do xlsread if I don't know the number of rows on the Excel ... Do you know the "range" of ... necessarily, especially since we don't ... import data from excel 2007 ... Problem reading Excel files with xlsread, xlsread1 - comp.soft-sys ...how to do xlsread if I don't know the number of rows on the Excel ... Problem reading Excel files with xlsread, xlsread1 - comp.soft-sys ... how to do xlsread if I don't ... xlsread issues - comp.soft-sys.matlabhow to do xlsread if I don't know the number of rows on the Excel ... Hi all, Is there a good way of ... I have an Excel book with quite a number of sheets, each sheet ... Precision problem with xlsread - comp.soft-sys.matlabI have data such as this in an excel sheet. The number of rows and ... I tried xlsread('file.xls'). Below is what I ... But I don't know how to solve this. I also tried ... ODS Html Style Graph with SGPLOT in Excel Sheet - comp.soft-sys ...how to do xlsread if I don't know the number of rows on the Excel ... ODS Html Style Graph with SGPLOT in Excel Sheet - comp.soft-sys ... how to do xlsread if I don't know ... copy an excel sheet from one place to another - comp.soft-sys ...how to do xlsread if I don't know the number of rows on the Excel ..... to do xlsread ... lib What I want to do: Copy some lines inside a windows-app (excel-sheet ... Problems with JTable using fixed rows - comp.lang.java.gui ...... end ----- I don't know how portable ... MatLab gurus I ... import data from excel 2007 with more than 65536 rows ... ... Matrix when "Blocks" Have Unequal Number of Rows ... Importing From Excel - Access Create Wrong Data Type - comp ...... code column in the Excel spread sheet, and the first several records don't have a hypnen and zip + 4, and several rows ... the data type of Number ... Unless you know of some ... create excel plot with MATLAB? - comp.soft-sys.matlabMore importantly, where do you go find out the methods ... once you have defined eS to be your sheet ... you are trying to simulate is how Excel automatically assigns rows ... how to do xlsread if I don't know the number of rows on the Excel ...Hi all, Is there a good way of solving this problem? I have an Excel book with quite a number of sheets, each sheet contains one column of date... Tutorial #2 - Graphics and advanced Matlab featuresWhat I don’t like about the save ... Using xlsread saves you from having to export the excel file as an ascii file. ... parameter specifies the total number of rows in ... 7/20/2012 9:12:34 PM
|
|
|
|
|
|
|
|
|