필터 지우기
필터 지우기

I have a gps file to read, Can anyone help me with a code to read from txt?

조회 수: 2 (최근 30일)
Nahid Hasan
Nahid Hasan 2018년 11월 26일
답변: ahmed nebli 2018년 11월 26일
File is in dat format, it is like this:
Computer Date Computer Time VTG String
10/30/2015 23:00:01 $GPVTG,104.1,T,113.0,M,1.8,N,3.3,K*40
I am new in Matlab, so a code to read from txt will be huge help.

답변 (1개)

ahmed nebli
ahmed nebli 2018년 11월 26일
You need to use the function fscanf but before that you need to open the file, i suggest you follow the exemple in this link https://www.mathworks.com/help/matlab/ref/fscanf.html

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by