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
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
2017-8-12
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
2017-8-12
R2010b was the first release that supported arithmetic on int64 values.
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!