Está en la página 1de 1

>> x=randn(1e3,1);

>> plot(x)
>> [xc,lags]=xcorr(x,20,'coeff');
>> stem(lags,xc,'markerfacecolor',[0 0 1]);
>> lconf= 1.96/sqrt(length(x));
>> upconf=1.96/sqrt(length(x));
>> hold on
>> lconf= -1.96/sqrt(length(x));
>> line(lags,lconf*ones(size(lags)),'color','r','linewidth',2);
>> line(lags,upconf*ones(size(lags)),'color','r','linewidth',2);
>>

También podría gustarte