I want to correlate the signals x1 and y and plot it for the range n=0:59; but when I run the following code it gives error: Error using plot
Vectors must be the same length.
x=[1 1 1 1 1 -1 -1 1 1 -1 1 -1 1 ];
x=[x, zeros(1, length(n) - length(x))];
I have tried solving the problem but had no luck whatsoever. Any help would be appreciated.