MATLAB Answers

0

how to load dat file without header?

Asked by Muhammad RSMY on 8 Oct 2018
Latest activity Commented on by Muhammad RSMY on 8 Oct 2018
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

  0 Comments

Sign in to comment.

Tags

1 Answer

Answer by ANKUR KUMAR on 8 Oct 2018
 Accepted Answer

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 Comments

@ANKUR KUMAR wow you are great.. I really appreciate your kind support,, thanks a lot
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.
Oh Thanks once again

Sign in to comment.