/ / Matlab liczba kolumn w pliku excela - excel, matlab

Liczba matlab cols w pliku excel - excel, matlab

Czy istnieje polecenie Matlaba, aby uzyskać liczbę zapisanych kolejek w pliku Excela?

to jest mój plik Excel: wprowadź opis obrazu tutaj

to jest mój kod:

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;

I próbowałem:

intCol = Range("IV1").End(xlLeft).Col;

Dziękuję Ci :]

Odpowiedzi:

2 dla odpowiedzi № 1

Co powiesz na:

[num, txt, raw] = xlsread("example2.xlsx");
intCol = size(raw, 2);