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

조회 수: 5 (최근 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