Use data in text files and use that data in Matlab

조회 수: 1 (최근 30일)
Ricardo Gutierrez
Ricardo Gutierrez 2018년 12월 19일
댓글: Ricardo Gutierrez 2018년 12월 19일
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
Mark Sherstan
Mark Sherstan 2018년 12월 19일
편집: Mark Sherstan 2018년 12월 19일
Please post your .txt file.

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2018년 12월 19일
Try
data = importdata(filename);
column3 = data.data(:,3);
Write back if you have problems, and attach your file.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Text Data Preparation에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by