I am assigned to write a code which takes input from an excel sheet containing observation no., x coordinate, y coordinate and time tag and calculate the msd (mean square displacement) for the entire data. I got the basic idea that I need to get some 'for' loops going one of which will be calculating the distance between two consecutive points. I'm new to MatLab so I'm quite unable to figure out how to write the code. It'll be really helpful for y'all if you can tell me the best way to counter this problem!
Thanks to all of you!