필터 지우기
필터 지우기

how to split a number

조회 수: 2 (최근 30일)
Abhiraj Gupta
Abhiraj Gupta 2019년 6월 26일
댓글: Abhiraj Gupta 2019년 6월 27일
for eg I have this data from a gps receiver 2829.20246 in which 28 is degree value and 29.20246 is minute value.I want to convert the minute in degree decimal . So how can I seperate and process data.....????

채택된 답변

Bjorn Gustavsson
Bjorn Gustavsson 2019년 6월 26일
Perhaps something like this:
GPSval = 2829.20246;
GPSdeg = sign(GPSval)*floor(abs(GPSval/100));
GPSmin = GPSval - 100*GPSdeg;
Should be stable to negative values.
HTH
  댓글 수: 1
Abhiraj Gupta
Abhiraj Gupta 2019년 6월 27일
Thanks for the reply.

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

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by