reading the data with title

1 view (last 30 days)
MOH on 9 Nov 2021
Answered: Rik on 9 Nov 2021
I have a text file with title , I want to add a new column that replicate the header as per column length
I want to have final matrix
1 2 3 cat
3 4 5 cat
5 6 7 cat
MOH on 9 Nov 2021
I didn't know how to do it , please help ?

Sign in to comment.

Answers (1)

Rik on 9 Nov 2021
Any Google search for 'read text file matlab' should provide you with an answer that works. What I personally use is my readfile function (which you can get from the FEX). If you are using R2017a or later, you can also get it through the AddOn-manager.

Community Treasure Hunt

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

Start Hunting!

Translated by