Excel (.xlsx, .xls) File Format - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Input and Output : File Formats : Formats/Excel

Excel (.xlsx, .xls) File Format

Excel file format

 

Description

Examples

Compatibility

Description

• 

The Excel spreadsheet format is the native file format of Microsoft® Excel.

• 

The name refers both to the Excel Binary File Format (.xls) in use until Excel 2007, and to the Office Open XML spreadsheet format (.xlsx) in use by Excel 2007 and later revisions.

• 

The ExcelTools package allow detailed control over import and export of Excel spreadsheets.

• 

The general-purpose commands Import and Export also support this format.

• 

The default output from Import for this format is a DataFrame. To produce a Matrix, use Import(...,output=Matrix).

Examples

Import data from an Excel spreadsheet.

dataFileTools:-JoinPathExcel,ExperimentalData.xls,base=datadir

C:\Program Files\Maple 2016\data\Excel\ExperimentalData.xls

(1)

MImportdata

M:=TimeConcentration AConcentration CO2Concentration ATConcentration BConcentration CConcentration A.B10.0.543990.001210.00480.007220.000790.34423220.00.278370.000820.103390.00370.014340.09162340.00.238120.001080.125030.001240.019630.03804460.00.251230.001160.139970.000870.0213069711980039580.01886580.00.175160.001160.150190.000810.0219364077550058340.007486100.00.164170.001170.15190.000140.02218740983635140.001157120.00.156020.001170.163050.000200.022378841241146510.009548140.00.129590.001220.160150.000570.0225068521765741280.00101........................

(2)

Import data from an Excel spreadsheet as a Matrix.

MImportdata,output=Matrix

M:= 12 x 7 MatrixData Type: anythingStorage: rectangularOrder: Fortran_order

(3)

To perform the following example, you should create an Excel spreadsheet named Employees.xlsx with the necessary sheets and cells.

QExcelTools:-ImportEmployees.xlsx,Payroll,B2:C9:

Compatibility

• 

With Maple 2016, the Import command applied to Excel files now produces DataFrame objects by default.

See Also

ExcelTools

ExportMatrix

Formats

ImportMatrix

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam