How to dlmread with different format ?

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

 Accepted Answer

readtable() the file.

2 Comments

Or, use num2cell on each numeric column, and horzcat() those together with the string columns
RuiQi
RuiQi on 5 Dec 2016
Edited: RuiQi on 5 Dec 2016
Cool ! readtable() is an awesome function ! Super easy to convert to cell

Sign in to comment.

More Answers (0)

Tags

Asked:

on 5 Dec 2016

Edited:

on 5 Dec 2016

Community Treasure Hunt

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

Start Hunting!