Using importdata function without importing the first line of text file
이전 댓글 표시
I am trying to import the data from different text files, but I don't want to import the first line of those files. My text files contain data like this.

So, I use the IMPORTDATA function to import all contents except the first line.
filename{k} = importdata (name{k}, ' ', 1);
While the name variable is a cell array that keeps the names of my files and filename is used to keep those contents. As my understanding, this function should return all content in the file except the first line and keep in the filename variable. However, when I printed out the value of filename, I got only the first line not the other content that I want. What I got is shown below.

So, is there anything I have missed? Please help!
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Text Data Preparation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!