how to import csv file containing text and empty rows as a header along with numerical data in matlab?

This question was flagged by dpb
  • Flagged as Duplicate by dpb on 13 Aug 2022.

    Responses to same Q? at <https://in.mathworks.com/matlabcentral/answers/1778640-how-to-import-csv-file-with-along-with-its-headers-in-the-matlab>

I am using MATLAB R2021a.
I want to import a csv file with 1-7 as text header lines. But, when I import it using readtable command, it only takes data and not header lines!!
I use readtable command and the output takes Var1, Var2, Var3 etc as heading names.
I have elaborated by question here:
Any help will be greatly appriciated.

1 Comment

I'll not close this yet, but follow up at the original; there are a couple of solutions there. Add the release information there.
Can you not upgrade to later release that seems to solve the issue?

Answers (0)

This question is closed.

Asked:

MP
on 13 Aug 2022

Closed:

on 23 Aug 2022

Community Treasure Hunt

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

Start Hunting!