怎样在matlab运​行并输出结果,同时,​看.xlsx文件的变​化?。

5 views (last 30 days)
我在运行部分我的代码时,如果开着excel,就会出现这样的错误提示,但是我想看着,xlsx文件的变化,不想一遍遍打开excel检验我的结果,请问应该写什么代码?
data=xlsread('dataForMeasure.xlsx');
Title = {'X01', 'Y01', 'Z01'};
xlswrite(pathout,Title,1,'A1:C1');
错误使用 xlswrite (line 219)
文件 D:\此电脑\桌面\工作\dataForMeasure.xlsx
不可写。它可能被其他进程锁定。

Accepted Answer

果博东方开户登录网址微8785092
不能用这两个高级命令。
可以试试 actxserver
e=actxserver('Excel.Application')
....
后面的自己结合VBA可以观察变化

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!