how to convert C code to MATLAB code

I have arduino C code and I need to convert it into matlab code but I am getting no luck. and the code has plus,minus, equals too signs which I donot know how to convert into MATLAB code. Please help me.

New Text Document.txt (1.17 KB)

P[0][1] -= dt * P[1][1];

is a shorter way of writing

P[0][1] = P[0][1] - dt * P[1][1];

Please help me.

Why? This is NOT the Matlab forum.

This is NOT the Matlab forum.

Agreed, but asking what "Arduino" syntax does in a Matlab forum is likely to result in him/her being sent here.

Ping-Pong anyone ?

Now that he/she knows what the double operator syntax does then if they need help translating that into something that works on Matlab then a Matlab forum would be an appropriate place to ask.

Ping-Pong anyone ?

It doesn't make sense to ask how to convert code from one system to another without context, like where the GPS data is coming from, and how it is getting there. So, yes, OP is going to get batted back and forth, until he/she asks a more comprehensive question and explains why it is necessary to convert Arduino code to Matlab code.

OP: don't waste your time with that code, it is not a Kalman filter and doesn't work well.

See this page for MATLAB code that actually works.