- What does "introduced two addional lines" mean?
- Why are the data padded by dlmread to make the columns the smae length?! You've said, that there is a different number of columns, but do the columns have a different length in addition?!
How to load txt file with a known number of rows with different lengths of columns??
1 回表示 (過去 30 日間)
古いコメントを表示
Hey all,
I tried loading my txt file that has different number of columns usnig different commands and down i will state each one with its problem:
1] load: doesn't work for different number of columns.
2] importdata: introduced in my txt two additional lines!!
3] dlmread: padded my data with zeros to make all columns the same length!
Can anyone suggest another command!! dlmread seems the best out of theses three commands I tried, but my data is very sensitive specially to zeros!!even if I tried to eliminate them, there is no way I can know whether this zero is one of my data or the padded one!!
2 件のコメント
Jan
2012 年 11 月 21 日
編集済み: Jan
2012 年 11 月 21 日
Please show a minimal example of a possible file, and explain the wanted output format. DLMREAD creates a matrix, and matrices must be rectangular. Therefore the padding is expected and wanted.
参考
カテゴリ
Help Center および File Exchange で Large Files and Big Data についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!