xlswrite(filename, M) writes matrix M to the Excel? file filename. The filename input is a string enclosed in single quotes. The input matrix M is an m-by-n numeric, character, or cell array, where m < 65536 and n < 256. The matrix data is written to the first worksheet in the file, starting at cell A1.
例如:
xlswrite('testdata', [12.7 5.02 -98 63.9 0 -.2 56])