how to load dat file without header?

3 Ansichten (letzte 30 Tage)
Muhammad RSMY
Muhammad RSMY am 8 Okt. 2018
Kommentiert: Muhammad RSMY am 8 Okt. 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

Akzeptierte Antwort

ANKUR KUMAR
ANKUR KUMAR am 8 Okt. 2018
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 Kommentare
ANKUR KUMAR
ANKUR KUMAR am 8 Okt. 2018
Bearbeitet: ANKUR KUMAR am 8 Okt. 2018
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 am 8 Okt. 2018
Oh Thanks once again

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by