How to dlmread with different format ?

How to dlmread with different format ? Like my text file has string and int etc

 Réponse acceptée

Walter Roberson
Walter Roberson le 5 Déc 2016

1 vote

readtable() the file.

2 commentaires

Walter Roberson
Walter Roberson le 5 Déc 2016
Or, use num2cell on each numeric column, and horzcat() those together with the string columns
RuiQi
RuiQi le 5 Déc 2016
Modifié(e) : RuiQi le 5 Déc 2016
Cool ! readtable() is an awesome function ! Super easy to convert to cell

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Characters and Strings dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by