Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将 xlsread 指令合并到在不同年份列表上运行的循环中。我的意图是在每个循环中单元格范围都会发生变化,以便导入相应年份的数据。我希望单元格范围移动到上一个单元格范围右侧的列。有没有办法做到这一点?
谢谢你的建议!
这不可能自动发生。
重复调用xlsread非常慢。因为每个人都会打开一个 Excel 应用程序的实例。您最好一次性读取所有数据,然后在 MATLAB 中逐步遍历生成的数组。
xlsread