Matlab中excel文件中的列数
有一个Matlab的命令来获取在Excel文件中写入的cols的数量吗?
这是我的excel文件:
这是我的代码:
e = actxserver ('Excel.Application'); %# open Activex server filename = fullfile(pwd,'example2.xlsx'); %# full path required ewb = e.Workbooks.Open(filename); %# open the file esh = ewb.ActiveSheet;
我试过了:
intCol = Range('IV1').End(xlLeft).Col;
谢谢 :]
关于什么:
[num, txt, raw] = xlsread('example2.xlsx'); intCol = size(raw, 2);