Undefined function or method ... int64

Dear,
I am trying to run a MATLAB code and I am getting the following Error:
??? Undefined function or method 'minus' for input arguments of type 'int64'.
Error in ==> ReadGnssLogger>CheckGnssClock at 391
gnssRaw.allRxMillis = int64((gnssRaw.TimeNanos - gnssRaw.FullBiasNanos)*1e-6);
any suggestions?
Many thanks

답변 (1개)

Walter Roberson
Walter Roberson 2017년 8월 12일

0 개 추천

Subtraction was not defined for int64 until MATLAB 7 (R14) in 2004. Subtraction for int64 was not available in R13* (2002 to 2003 time frame) even though int64 was permitted back then.

댓글 수: 3

Jalal AlAzizi
Jalal AlAzizi 2017년 8월 12일
Thank you Walter Roberson. I am using matlab v 7.6 (R2008a) Is there any other alternative solution to let the code run and get same results?
Walter Roberson
Walter Roberson 2017년 8월 12일
You would need to write a mex routine to do the subtraction. When you do that, remember to pay attention to overflow and underflow, which will normally "wrap" when you are working with C, but MATLAB defines them through saturation instead.
Walter Roberson
Walter Roberson 2017년 8월 12일
R2010b was the first release that supported arithmetic on int64 values.

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

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

태그

질문:

2017년 8월 12일

댓글:

2017년 8월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by