In MATLAB I am using ActiveX to import many columns of data from an excel file. Each column is of a different and unknown length. Therefore I do not know what cell range to put.
Range = get(hSheet5, 'Range', '??:??');
Is there a way for matlab to detect the length of the column so that I can then know what cell range to put when importing it?
aWorksheetObject.UsedRange.Columns.Count(orRows). Not sure hoe relevant this is, so hope it helps. - Aleksander LidtkeRange("A1").End(xlDown).Row(or any top cell of an arbitrary column)? Does that work? - Aleksander Lidtkelastcol=hSheet6.Range(irange).End('xltoRight').Column(So I deleted my earlier comment). Go ahead and put it as answer if you want. - ben