how to load dat file without header?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Muhammad RSMY
le 8 Oct 2018
Commenté : Muhammad RSMY
le 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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/197342/image.png)
0 commentaires
Réponse acceptée
ANKUR KUMAR
le 8 Oct 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 commentaires
ANKUR KUMAR
le 8 Oct 2018
Modifié(e) : ANKUR KUMAR
le 8 Oct 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.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Whos dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!