I have 3 sensors , say x y z, whose values are received in matlab GUI and plotted. I need to find the correlation between xy, yz and xz such that when there is a negative correlation, I could identifiy the sensor associated with that error. Inorder to do this I want to store the live incoming data into array of size 10 or 15. The old data need to shift when new data arrives. Could someone tell me how this could be created in GUI