MATLAB: Error in the plot function/low resolution

plotresolution erro

Hi everyone!
I have an EMG signal at 1000Hz. When I use the plot(EMG signal), the x values only move at 10 ms (anything inside this gets the same x value), the y values are working fine (upper pic). If I cut the signal to a smaller piece, the error is gone (lower pic). I need the 1ms resolution to define events.

Best Answer

Hi all,
It is not an error. It is just the precision of the datatip function. It is easily adjustable on the following line:
formattedValue = [valueFormat num2str(value,4) removeValueFormat];
i found this info on the following discussion:
Cheers!
Pedro.