怎样在matlab运行并输出结果,同时,看.xlsx文件的变化?。
5 views (last 30 days)
Show older comments
果博东方现场开户【微8785092】
on 23 May 2023
Answered: 果博东方开户登录网址微8785092
on 23 May 2023
我在运行部分我的代码时,如果开着excel,就会出现这样的错误提示,但是我想看着,xlsx文件的变化,不想一遍遍打开excel检验我的结果,请问应该写什么代码?
data=xlsread('dataForMeasure.xlsx');
Title = {'X01', 'Y01', 'Z01'};
xlswrite(pathout,Title,1,'A1:C1');
错误使用 xlswrite (line 219)
文件 D:\此电脑\桌面\工作\dataForMeasure.xlsx
不可写。它可能被其他进程锁定。

0 Comments
Accepted Answer
果博东方开户登录网址微8785092
on 23 May 2023
不能用这两个高级命令。
可以试试 actxserver
e=actxserver('Excel.Application')
....
后面的自己结合VBA可以观察变化
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!