how to plot DWT wavelet coefficients with respect to time (in x axis)?
2 views (last 30 days)
Show older comments
consider a sample code:
u=inline('t>=0');
fs=3200; % sampling frequency
a=0.6;
t1=100;
t2=180;
t=0:8*10^-8:.1;
v1=sin(2*pi*(50/fs)*t);
v2=(1-a*(u(t-t1)-u(t-t2))).*sin(2*pi*(50/fs)*t);
signal2= v2.*v2;
[ca2,cd2]=dwt(signal2,'db4');
[c2,l2]=wavedec(signal2,2,'db4');
d2=wrcoef('d',c2,l2,'db4',2);
d1=wrcoef('d',c2,l2,'db4',1);
figure (1); plot(d2),title('Bus A, Scale 1');
figure (2); plot(d1),title('Bus B, Scale 1');
the fig 1 and fig 2 looks something like as show in the pic.
<<
<<
>>
>>
the x axis represent samples.but i want to plot dwt coefficients with respect to time. HOW CAN I DO THAT?
note: here i have generated v2, BUT actually i get this voltage data from simulink model. i take the fault bus voltage value, transform it into clarkes component, take a single component (like zero or alpha or beta) which represents my v2. i want to take wavelet coefficient of this v2 and plot it with respect to time so that i can calculate fault location. #fault location based on travelling wave using wavelet transform
hoping for a reply, thanking in advance :-)
0 Comments
Answers (0)
See Also
Categories
Find more on Discrete Multiresolution Analysis in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!