I have a script in which I use writetable() to write data to a row in an excel spreadsheet. I need to get the row number of the next empty row in the file, but I haven't found a solution on this site.

Kind regards

Mikkel

Skip to content
# MATLAB: How to find the first empty row of a .xlsx-file

excelMATLAB

I have a script in which I use writetable() to write data to a row in an excel spreadsheet. I need to get the row number of the next empty row in the file, but I haven't found a solution on this site.

Kind regards

Mikkel

## Best Answer