Supported File Formats

The table below shows the file formats that you can read or write from your MATLAB application, along with the functions that support each format.

File Format

File Content

Extension

Functions

MATLAB formatted

Saved MATLAB workspace

.mat

load, save

Text

Text

any

textscan

Text

any

textread

Delimited text

any

dlmread,
dlmwrite

Comma-separated numbers

.csv

csvread,
csvwrite

Extended Markup Language

XML-formatted text

.xml

xmlread,
xmlwrite

Audio

NeXT/SUN sound

.au

auread,
auwrite

Microsoft WAVE sound

.wav

wavread,
wavwrite

Video

Audio/video

.avi

aviread,
avifile

.avi

.mpg,
.mpeg,
.wmv,
.asf,
.asx,
.mov,
.mp4,
.m4v,
.3gp,
.3g2,
.dv

mmreader

Scientific data

Data in Common Data Format

.cdf

cdfread,
cdfwrite

Flexible Image Transport System data

.fits

fitsread

Data in Hierarchical Data Format (HDF4)

.hdf

hdf

Data in Hierarchical Data Format (HDF5)

.h5

hdf5

Spreadsheet

Microsoft Excel® worksheet

.xls

xlsread,
xlswrite

Lotus 123 worksheet

.wk1

wk1read,
wk1write

Graphics

TIFF image

.tiff

imread,
imwrite

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

imread

Icon image

.ico

imread

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS