How to import csv file that contains strings and numeric values?

7 views (last 30 days)
I have a csv file (that looks like the image attached). I am trying to import this csv file. When I use importdata, I am getting a 1x1 struct. The 1x1 struct contains 2 fields, data (200x3 double) and textdata (201x5 cell) which is not what I am hoping for. Can someone please help me import the csv file.

Accepted Answer

Walter Roberson
Walter Roberson on 29 Nov 2021
readtable() unless you are using a quite old MATLAB

More Answers (0)

Categories

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

Community Treasure Hunt

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

Start Hunting!