johnlove9527 发表于 2012-2-15 10:19:19

请教xlswrite出错问题

前段时间程序用了xlswrite函数,当时在7.0版本运行无问题,最近装了2010b版本,就出现错误了。而且不是必出,概率性出现错误如下
??? Error using ==> xlswrite at 213
Excel returned: Undefined command/function 'Select'..
我代码xlswrite(FileFullname,title_d,'sheet1','A1');
请问有没有人遇到类似问题?在网上搜索貌似没什么发现。

qibbxxt 发表于 2012-2-15 11:25:06

请把你的数据传上来

johnlove9527 发表于 2012-2-15 11:35:43

OK,我是打开一个excel然后取出几列然后保存,数据在附件里,我选中了其中的浓度,吸入真空,密度几列。

qibbxxt 发表于 2012-2-15 13:54:36

>> data = xlsread('2008-05-28-18-00-01-2008-05-28-19-40-29.xlsx');
>> xlswrite('2008-05-28-18-00-01-2008-05-28-19-40-29.xlsx',data(:,2:4),'sheet1','A1');
Warning: Added specified worksheet.
> In xlswrite>activate_sheet at 289
In xlswrite>ExecuteWrite at 261
In xlswrite at 219 没有问题啊

johnlove9527 发表于 2012-2-15 15:54:23

qibbxxt 发表于 2012-2-15 13:54 static/image/common/back.gif
没有问题啊

我代码和你一样,但是就出问题了。概率性出。。不知道什么原因。
页: [1]
查看完整版本: 请教xlswrite出错问题