matlab读取excel,txt文件函数

注意matlab不识别中文,读写的文件中最好不含有中文

excel读取函数 xlsread

text  读取函数csvread

XLSREAD Get data and text from a spreadsheet in an Excel workbook.
    [NUMERIC,TXT,RAW]=XLSREAD(FILE) reads the data specified in the Excel
    file, FILE. The numeric cells in FILE are returned in NUMERIC, the text
    cells in FILE are returned in TXT, while the raw, unprocessed cell
    content is returned in RAW. 
 
    [NUMERIC,TXT,RAW]=XLSREAD(FILE,SHEET,RANGE) reads the data specified
    in RANGE from the worksheet SHEET, in the Excel file specified in FILE.
    It is possible to select the range of data interactively (see Examples
    below). Please note that the full functionality of XLSREAD depends on
    the ability to start Excel as a COM server from MATLAB.
 
    [NUMERIC,TXT,RAW]=XLSREAD(FILE,SHEET,RANGE,'basic') reads an XLS file as
    above, using basic input mode. This i

你可能感兴趣的:(Matlab)