Efficiency loading a file into Matlab
이전 댓글 표시
I am trying to load a file in Matlab. But I am a bit confused about the best way to do it.
The file has 3 columns and looks like the screenshot below:

This file I can load very quickly by doing `load('c')`.
However, I had to add 2 NaNs on the bottom row.
The original file actually looks like the file below:

Now if I do `load('c')` on the file below I get the error:
Error using load
Unable to read file 'c'. Input must be a MAT-file or an ASCII file containing numeric
data with same number of columns in each row.
Of course I can use ImportData to import this file, but it is just soooo slow to import it.
Any suggestions?
댓글 수: 1
Walter Roberson
2021년 12월 14일
Did you try readmatrix() ?
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!