Matlab number of rows in excel file
问题 is there a command of Matlab to get the number of the written rows in excel file? firstly, I fill the first row. and then I want to add another rows in the excel file. so this is my excel file: I tried: e = actxserver ('Excel.Application'); filename = fullfile(pwd,'example2.xlsx'); ewb = e.Workbooks.Open(filename); esh = ewb.ActiveSheet; sheetObj = e.Worksheets.get('Item', 'Sheet1'); num_rows = sheetObj.Range('A1').End('xlDown').Row But num_rows = 1048576, instead of 1. please help, thank you