Excelファイルに書き込まれた列の数を取得するMatlabのコマンドはありますか?
これは私の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;
ありがとうございました :]