Hi, im actually working porting to java some portion of matlab code. Im not matlab programer, but it was very natural for me to understand matlab code and how it worls. For analysis and test reasons, i executed the original matlab code on matlab 2018 to get the outputs in each step of the program.
Actualiiy im stuck in this line:
t = 2 * pi * rem(time,1) + ll;
where: ll = -1.1087
and: time= 2457600
and: rem(time,1) gives a 0 result cause rem(2457600,1)
.....very simple......
1) But when the entire application is executed on matlab, it displays as a result, the value -0.7465
2)When i executed the same formula through the console,the result is -1.1087 (I think the correct value, for obvious reasons, Some people is using this application with this formula on an academic project, Im sure they must take notice of this error if it happened because they check the application output through many ways, Because of that i think i have something im not taking notice of cause of my short experience using matlab)
Someone who can help me?. Thanks in advance
Why matlab output gives dIfferent result for a f(x) into a program when is executed, compared with the same f(x) executed through the console?