how to load dat file without header?

6 次查看(过去 30 天)
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.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Whos 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by