怎样在matlab运行并输出结果,同时,看.xlsx文件的变化?。
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
果博东方现场开户【微8785092】
el 23 de Mayo de 2023
Respondida: 果博东方开户登录网址微8785092
el 23 de Mayo de 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 comentarios
Respuesta aceptada
果博东方开户登录网址微8785092
el 23 de Mayo de 2023
不能用这两个高级命令。
可以试试 actxserver
e=actxserver('Excel.Application')
....
后面的自己结合VBA可以观察变化
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre 电子表格 en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!