Effacer les filtres
Effacer les filtres

Use data in text files and use that data in Matlab

2 vues (au cours des 30 derniers jours)
Ricardo Gutierrez
Ricardo Gutierrez le 19 Déc 2018
Hello good day.
I hope you can help me.
I have a text file called 'Gain' that has 8 columns of data, each column has a header and 181 numeric data.
I just want the numeric data (181) from the third column of the text file and
use them in a Matlab file as matrix 181 X 1
How I do this?
I would be infinitely grateful for your help.
Greetings.
  1 commentaire
Mark Sherstan
Mark Sherstan le 19 Déc 2018
Modifié(e) : Mark Sherstan le 19 Déc 2018
Please post your .txt file.

Connectez-vous pour commenter.

Réponse acceptée

Image Analyst
Image Analyst le 19 Déc 2018
Try
data = importdata(filename);
column3 = data.data(:,3);
Write back if you have problems, and attach your file.

Plus de réponses (0)

Catégories

En savoir plus sur Data Import and Export dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by