Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Insert Moving Window Calculation

1 vue (au cours des 30 derniers jours)
Conrado Dias
Conrado Dias le 12 Nov 2015
Clôturé : MATLAB Answer Bot le 20 Août 2021
Hello,
I have this algorithm and would like to make a modification, but I can not.
%Noise
n=length(data);
x=(1:1:n)';
y=data;
p=polyfit(x,y,1);
w=p(1,1)*x+p(1,2);
z=w-y;
q1=ones(n,1);
q2=cos(x);
q3=sin(x);
q4=cos(x);
q5=sin(x);
a=[q1 q2 q3 q4 q5];
b=z;
c=inv(a'*a)*a'*b;
d=c(1,1)+30*c(2,1)*cos(x)+30*c(3,1)*sin(x)+30*c(4,1)*cos(x)+30*c(5,1)*sin(x);
enoise=d-z;
%Wavelet Analysis
ccfs = cwt(enoise,1:64,'mexh');
The doubt is: how to calculate in moving window?
Thanks.
  2 commentaires
Walter Roberson
Walter Roberson le 12 Nov 2015
How to calculate what in the moving window?
Conrado Dias
Conrado Dias le 12 Nov 2015
Modifié(e) : Conrado Dias le 13 Nov 2015
The entire process. Calculation of noise and wavelet

Réponses (1)

Stalin Samuel
Stalin Samuel le 12 Nov 2015

Cette question est clôturée.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by