フィルターのクリア

Use data in text files and use that data in Matlab

2 ビュー (過去 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.
  1 件のコメント
Ricardo Gutierrez
Ricardo Gutierrez 2018 年 12 月 19 日
Works !!!! Many thanks.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Import and Export についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by