How can I read and import data from a .dat file in matlab?

4 views (last 30 days)
I have a .dat file which contains one header row, and data of several rows. I tried import data as I used to do for .txt file, but in case of .dat file import data is not working. can anyone give a solution to it?
  6 Comments
Puspa patra
Puspa patra on 27 Jul 2018
I first used Home==>Importdata==>numeric matrix==> importdata. the matrix I got is something like this. it should contain values as in original file instead of null.
Guillaume
Guillaume on 27 Jul 2018
We need the original file, not the result of the failed import.
Have you tried readtable ?

Sign in to comment.

Answers (0)

Categories

Find more on Data Import and Analysis in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!