Hi,I am a total newbie to matlab. I been trying to get sensor data from my android phone. I am getting the data but there is almost a lag of 1 second. here is my code
clear allclose allclcconnector on;m = mobiledev();m.OrientationSensor = 1;m.Logging = 1;pause (4)for c = 1:inf o = m.Orientation pause(0.1); figure(1); axis tight hold on plot(c,o(1),'.'); figure(2); axis tight hold on plot(c,o(2),'.'); figure(3); axis tight hold on plot(c,o(3),'.');end
Best Answer