MATLAB: HOW TO DELETE A LINE FROM A CREATING FILE

commanddelete rowfilewritetable

Hello, I have a question. I am creating a .csv file in MATLAB using the commands:
T = cell2table
writetable(T,'file.csv')
. I would like to delete from this file the 2nd row only, and keeping all the other rows. How could I make it?
Thanks

Best Answer

writetable(T(2:end, :),'file.csv')
This assumes that you want to write out the variable names but skip the first row of the matrix