Reading a .txt file without knowing the length of rows and skipping headers

4 次查看(过去 30 天)
Hello,
I need to read a .txt file without knowing the size of the filewhile putting inputing into a matrix and while skipping the first row
Here is an example of a file that needs to be put into a matrix

采纳的回答

Johannes Hougaard
Johannes Hougaard 2021-11-3
m = readmatrix('connectivity.txt','NumHeaderLines',1);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Workspace Variables and MAT Files 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by