Good morning, I have been working on the following code for days. It is a Labview program that through a camera acquires images of a cube hanging from a spring that moves. To study its motion, the image was divided into 4 ROIs, whose coordinates were calculated over time. It is desired from the motion of these 4 points on a face to establish the approximate 3D motion of the cube. To do this, a matlab function was constructed. What I do not understand is why the program does not work. I hope for your help, I leave attached all the files.