필터 지우기
필터 지우기

.TXT data into matrix Matlab

조회 수: 1 (최근 30일)
Michal Cerny
Michal Cerny 2022년 11월 2일
답변: Voss 2022년 11월 2일
Hello everyone, I am having issues with the import of data. The data is in Text file with semicolon as the delimiter. The data is format of time;GPS coordinates;subject. I am having issues with import probably because of the "plane" text. I intend to import this data and then plot the GPS coordinates. How can I please solve my problem? Thank you
  댓글 수: 1
Davide Masiello
Davide Masiello 2022년 11월 2일
I suggest reading the documentation for readmatrix.

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

답변 (1개)

Voss
Voss 2022년 11월 2일
You might try using readtable.
t = readtable('data.txt')
t = 2×4 table
Var1 Var2 Var3 Var4 ____________ ______ ______ _________ 01:00:00.914 47.958 16.921 {'plane'} 01:00:03.008 47.96 16.919 {'plane'}
plot(t.Var2,t.Var3)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by