how to load dat file without header?

3 ビュー (過去 30 日間)
Muhammad RSMY
Muhammad RSMY 2018 年 10 月 8 日
コメント済み: Muhammad RSMY 2018 年 10 月 8 日
hi friends
could you please help me upload dat file without header, also I would like to get similar arrangement of data, as you see there is some rows have extra columns
thanks

採用された回答

ANKUR KUMAR
ANKUR KUMAR 2018 年 10 月 8 日
Since you have not attached any sample file, I am giving you an example with a attached file.
A=importdata('sample.txt');
A.data
  7 件のコメント
ANKUR KUMAR
ANKUR KUMAR 2018 年 10 月 8 日
編集済み: ANKUR KUMAR 2018 年 10 月 8 日
Updated the previous answer. Updated commands are:
C1{i}(length(C1{i})+1:max(id))={''};
and
C1{i}(length(C1{i})+1:max(id))={'0'};
I forgot to add 1 after length(C1{i}).
Sorry for the inconvenience.
Muhammad RSMY
Muhammad RSMY 2018 年 10 月 8 日
Oh Thanks once again

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by