MATLAB Function Reference Previous page   Next Page
wk1read

Read Lotus123 spreadsheet file (.wk1)

Syntax

Description

M = wk1read(filename) reads a Lotus123 WK1 spreadsheet file into the matrix M.

M = wk1read(filename,r,c) starts reading at the row-column cell offset specified by (r,c). r and c are zero based so that r=0, c=0 specifies the first value in the file.

M = wk1read(filename,r,c,range) reads the range of values specified by the parameter range, where range can be

Examples

Create a 8-by-8 matrix A and export it to Lotus spreadsheet matA.wk1:

To read in a limited block of the spreadsheet data, specify the upper left row and column of the block using zero-based indexing:

To select a more restricted block of data, you can specify both the upper left and lower right corners of the block you want imported. Read in a range of values from row 4, column 3 (defining the upper left corner) to row 6, column 6 (defining the lower right corner). Note that, unlike the second and third arguments, the range argument [4 3 6 6] is one-based:

See Also

wk1write


Previous page  wk1finfo wk1write Next page

© 1994-2005 The MathWorks, Inc.