以后好好用doc命令吧:
doc xlswrite
Example 2 — Writing Mixed Data to a Specific WorksheetThis example writes the following mixed text and numeric data to the
file tempdata.xls:d = {'Time', 'Temp'; 12 98; 13 99; 14 97};Call xlswrite, specifying the worksheet
labeled Temperatures, and the region within the worksheet
to write the data to. The 4-by-2 matrix will be written to the rectangular
region that starts at cell E1 in its upper left corner:s = xlswrite('tempdata.xls', d, 'Temperatures', 'E1')
s =
1The output status s shows that the write operation
succeeded. The data appears as shown here in the output file:
Time Temp
12 98
13 99
14 97
你的问题答案:
m=cellstr(strcat(num2str(round(10)),'%'));
xlswrite('w.xls',m,'sheet1','a1:a10'); |