フィルターのクリア

using data from a .txt file in matlab

1 回表示 (過去 30 日間)
Biza Ferreira
Biza Ferreira 2018 年 10 月 25 日
コメント済み: madhan ravi 2018 年 10 月 26 日
Hello friends, I have a fews problems, I have a text file and inside have some data disposed in columns. I want to load some columns, now my problem is how to bring the columns that I need? This is my file.
  1 件のコメント
madhan ravi
madhan ravi 2018 年 10 月 26 日
Is the commas in the file represent dots?

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

回答 (2 件)

Abdul Rehman
Abdul Rehman 2018 年 10 月 25 日

Biza Ferreira
Biza Ferreira 2018 年 10 月 26 日
Thanks for your reply I ended up making the following code, but it does not bring me all the data.Can someone help me?
if true
%
[filename pathname]= uigetfile({'*.txt'},'Select .txt file');
fullpathname = strcat(pathname, filename);
app.locationFile.Value = fullpathname;
textLocalization = fopen(fullpathname,'r');
mesurements = textscan(textLocalization,'%d %d %d %f %d','HeaderLines',3,'Delimiter',' ');
fclose(textLocalization);
disp(mesurements)
end

カテゴリ

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