fabregasmu 发表于 2014-11-27 11:50 
怎么截取啊?
按照字符串截取就行了 (1:(end-3))如果中文识别成双字节就-6,如果空格影响转换时间就再多减1
help xlsread 里面说
“ Notes:
* On Windows systems with Excel software, xlsread reads any file
format recognized by your version of Excel, including XLS, XLSX,
XLSB, XLSM, and HTML-based formats.
* If your system does not have Excel for Windows, xlsread operates in
BASIC mode (see Input Arguments).
* xlsread imports formatted dates as strings (such as '10/31/96'),
except in BASIC mode. In BASIC mode, xlsread imports all dates as
serial date numbers. Serial date numbers in Excel use different
reference dates than date numbers in MATLAB. For information on
converting dates, see the documentation on importing spreadsheets.”
所以你可以看看,这个周几是不是你的Excle里默认的日期格式里加上的?如果修改日期格式不行,那就用xlsread的BASIC模式,这个按照注视中说,会按照标准的 / /格式输出