在Matlab中使用xlswrite(第219行)时出错 [英] Error using xlswrite (line 219) in Matlab

查看:824
本文介绍了在Matlab中使用xlswrite(第219行)时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行以下代码时,是matlab中的示例:

while I run the following code, an example in matlab:

filename = 'testdata.xlsx';
A = [12.7 5.02 -98 63.9 0 -.2 56];
xlswrite(filename,A)

我得到了错误

Error using xlswrite (line 219)

我已经尝试解决这个问题.我重新安装了Office,然后重新安装了matlab,但我无法正常工作.但是,以上代码在其他PC上有效.

I have already tried to slove this problem. I reinstall office, and reinstall matlab, but i doesn't work. However, the above code is valid in other PC.

推荐答案

只需打开Windows任务管理器(Ctrl + Shift + Esc),然后单击更多详细信息",在进程"中查找并关闭所有excel进程并然后运行您的代码.

Just open the Windows Task Manager (Ctrl+Shift+Esc), then click on "More details", in "Processes" find and close all excel processes and then run your code.

这篇关于在Matlab中使用xlswrite(第219行)时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆