import only selected row in file data

3 vues (au cours des 30 derniers jours)
didi
didi le 6 Mar 2018
Hi! I have a file .dat like this:
101
190.946 74.1
101
120.903 76.6
101
120.041 76.525
101
119.846 76.5
101
120.206 76.5
101
119.729 76.525
101
119.656 76.525
I would like to import in matlab only the first column without repetitions and NaN.

Réponses (1)

Paul Shoemaker
Paul Shoemaker le 6 Mar 2018
Modifié(e) : Paul Shoemaker le 6 Mar 2018
There are countless options for doing this and your problem appears to be fairly general purpose. Take a look at this information page on the topic.
Paul Shoemaker

Catégories

En savoir plus sur Workspace Variables and MAT-Files 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!

Translated by