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.
我们可以在 MATLAB 中使用此函数提取特定工作表:
out = xlsread(filename,sheet);
我们如何使用此函数的单次调用来提取多张纸?我不想使用循环并一次又一次地读取文件以提取不同的工作表数据。
xlsread不支持一次阅读多张纸。您必须使用循环。
xlsread
作为替代方案,您可以创建自己的xlsread具有更多功能的函数。相关代码放置在toolbox\matlab\iofun\xlsread.m其中,toolbox\matlab\iofun\private\xls*.m您可以创建这些函数的副本并修改它们以支持多个工作表。
toolbox\matlab\iofun\xlsread.m
toolbox\matlab\iofun\private\xls*.m