您的位置:首页 > 编程语言 > MATLAB

MATLAB 支持的文件格式 以及简单的操作函数

2010-04-25 23:32 781 查看

File Formats - Supported file formats

Description

This table shows the file formats that you can import and export from the MATLAB application.

You can import any of these file formats using the Import Wizard or the importdata function, except:

netCDF

H5

Motion JPEG 2000

Platform-specific video

The importdata function cannot read HDF files.

File Content

Extension

Description

Import Function

Export Function

MATLAB formatted dataMAT

Saved MATLAB workspace

load

save

Text

any

White-space delimited numbers

load

save -ascii

Delimited numbers

dlmread

dlmwrite

Delimited numbers, or a mix of strings and numbers

textscan

Spreadsheet

XLS

Microsoft Excel worksheet

xlsread

xlswrite

XLSX
XLSB
XLSM

Formats supported with Excel 2007 for Windows installed

Extended Markup LanguageXML

XML-formatted text

xmlread

xmlwrite

Data Acquisition Toolbox fileDAQ

Data Acquisition Toolbox

daqread

none
Scientific data

CDF

Common Data Format

cdfread, or see cdflib

cdfwrite, or see cdflib

FITS

Flexible Image Transport System

fitsread

none
HDF

Hierarchical Data Format, version 4, or HDF-EOS v. 2

hdfread

H5

HDF or HDF-EOS, version 5

hdf5read

hdf5write

NC

Network Common Data Form (netCDF)

See netcdf

See netcdf

ImageBMP

Windows Bitmap

imread

imwrite

GIF

Graphics Interchange Format

HDF

Hierarchical Data Format

JPEG
JPG

Joint Photographic Experts Group

JP2
JPF
JPX
J2C
J2K

JPEG 2000

PBM

Portable Bitmap
PCX

Paintbrush

PGM

Portable Graymap
PNG

Portable Network Graphics

PNM

Portable Any Map

PPM

Portable Pixmap

RAS

Sun Raster

TIFF
TIF

Tagged Image File Format

XWD

X Window Dump

CUR

Windows Cursor resources

imread

none
FITS

FTS
Flexible Image Transport System

ICO

Windows Icon resources

Audio file

AU
SND

NeXT/Sun sound

auread

auwrite

WAV

Microsoft WAVE sound

wavread

wavwrite

Video (all platforms)

AVI

Audio Video Interleave

mmreader

avifile

MJ2

Motion JPEG 2000

mmreader

none
Video (Windows)MPG

Motion Picture Experts Group, phases 1 and 2

mmreadernone
ASF
ASX
WMV

Windows Media®

any

Formats supported by Microsoft DirectShow®

Video (Mac®)MPG
MP4
M4V

MPEG-1 and MPEG-4

mmreadernone
any

Formats supported by QuickTime®, including .mov, .3gp, .3g2, and .dv

Video (Linux)any

Formats supported by your installed GStreamer plug-ins, including .ogg

mmreadernone

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/fileformats.html;jsessionid=Nhd0LJTQpN205dnpFP151tjRyMysT8yrKvcwV2YJ0bHYphrx54bG!580148501

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: