Info

This question is closed. Reopen it to edit or answer.

Insert Moving Window Calculation

1 view (last 30 days)
Conrado Dias
Conrado Dias on 12 Nov 2015
Closed: MATLAB Answer Bot on 20 Aug 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 Comments
Walter Roberson
Walter Roberson on 12 Nov 2015
How to calculate what in the moving window?
Conrado Dias
Conrado Dias on 12 Nov 2015
Edited: Conrado Dias on 13 Nov 2015
The entire process. Calculation of noise and wavelet

Answers (1)

Stalin Samuel
Stalin Samuel on 12 Nov 2015

Community Treasure Hunt

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

Start Hunting!