MATLAB: Remove a warning in the plot command below

plot warning

How to remove a warning in my plot command below

Best Answer

FYI, it much better to paste code, rather than an image of code. That way we can copy it in a command window and try it ourselves.
But, this looks pretty easy. In line 98, you index with
1:length(ADC...)/2
That index is a half-integer (like 3/2 or 5/2), so does not index properly into the vector.
You could round down with
1:floor(length(ADC...)/2)