Programming |
Supported File Formats
The table below shows the file formats that you can read or write from MATLAB along with the functions that support each format.
File Format |
File Content |
Extension |
Functions |
MATLAB formatted |
Saved MATLAB workspace |
.mat |
|
Text | Text |
any |
|
Text |
any |
|
|
Delimited text |
any |
||
Comma-separated numbers |
.csv |
|
|
Extended Markup Language |
XML-formatted text |
.xml |
|
Audio | NeXT/SUN sound |
.au |
|
Microsoft WAVE sound |
.wav |
|
|
Movie |
Audio/video |
.avi |
|
Scientific data | Data in Common Data Format |
.cdf |
|
Flexible Image Transport System data |
.fits |
|
|
Data in Hierarchical Data Format |
.hdf |
|
|
Spreadsheet | Excel worksheet |
.xls |
|
Lotus 123 worksheet |
.wk1 |
|
|
Graphics | TIFF image |
.tiff |
|
PNG image |
.png |
same |
|
HDF image |
.hdf |
same |
|
BMP image |
.bmp |
same |
|
JPEG image |
.jpeg |
same |
|
GIF image |
.gif |
same |
|
PCX image |
.pcx |
same |
|
XWD image |
.xwd |
same |
|
Cursor image |
.cur |
same |
|
Icon image |
.ico |
same |
Using the Import Wizard with Binary Data | Saving and Loading MAT-Files |
© 1994-2005 The MathWorks, Inc.