I am having a trouble using importdata

I need to import the numerical data from this text file: http://sdrv.ms/1cbm8uU
I have found success using importdata for all the text files I have used except for this one.
This is the code that I am using:
data_file_modtran = '10410 EDZE Essen Observations.chn';
d=importdata(data_file_modtran,' ',5);
data_bands_modtran=d.data;
data_bands_modtran=data_bands_modtran(1:16,:);
The only column of data being imported is the last column. I really only need the 4th column.
Why isn't my code working?

2 件のコメント

Walter Roberson
Walter Roberson 2014 年 2 月 9 日
Do any of your other files have the second set of headers in the middle of the file?
Sam
Sam 2014 年 2 月 9 日
Yes, most of them do. If I need the data from the lower half, I just find out the size of the upper half, and I use import data again, but this time I have it start at (length+4). In this case, I don't need the data below because it is just a duplicate of the top.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeLarge Files and Big Data についてさらに検索

タグ

質問済み:

Sam
2014 年 2 月 9 日

コメント済み:

Sam
2014 年 2 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by