how to delete permanently the first row of this table
72 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MA
el 15 de Sept. de 2021
Comentada: MA
el 16 de Sept. de 2021
Hi, This table was baiscally a data file that I have imported using 'import data tool', I woud like to get rid of the first row in this tabel contaning tthe non values but I am not sure how to do that, because every time I try to delete it when I run the code again it returs back.. so what can I do?
2 comentarios
Respuesta aceptada
Image Analyst
el 15 de Sept. de 2021
% Read table from txt file:
t = readtable('jro19661111.001.txt')
% Delete first row
t(1,:) = [];
2 comentarios
Cris LaPierre
el 15 de Sept. de 2021
Editada: Cris LaPierre
el 15 de Sept. de 2021
To expound, your import code is reading in the column headers. If you want to use the import tool/textscan, set the range so that it skips the first line. If doing it programmatically, use the HeaderLines input argument.
Más respuestas (0)
Ver también
Categorías
Más información sobre Text Files en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!