How to extract low frequency component from a "Simulink" model signal using Wavelet Transform?

조회 수: 15 (최근 30일)
So, I have a signal which is highly transient in nature. It is a Power Reference signal. I want to separate this transient signal into low frequency and high frequency components in a Simulink Model. And I need to do this using Wavelets. Can someone please help me in understanding how to implement this on Simulink? All the resources point towards Matlab functions only.
Here is the Signal which I am working on:
And here is how I want to implement this:
PS: I haven't coded anything into this Matlab fcn block. Just putting it here to make sure you understand what I mean.
I am new to Wavelets and any help from you all will be appreciated! I am here to learn. Thanks in advance ^_^
  댓글 수: 4
Sharmin Kibria
Sharmin Kibria 2022년 5월 23일
Hi Gokul,
There are two issues you are dealing with here.
  1. Unless specified otherwise, Simulink passes one sample at a time from one block to another. As the function block you are using expects a vector as input but getting one sample, it is erroring out. To ensure that your function block receives a vector, you need to use a buffer block. The buffer will hold multiple samples to form a vector that your can pass to the MATLAB function block.
  2. You can obtain the low and high frequency parts of a signal using transforms like lwt, modwt, etc in Wavelet toolbox. For instance, you can obtain the low and high frequency components of a signal using the following command in the function block.:
function [hi,Lo] = LWTFeatureGen(x)
[ca4,cd4]= lwt(yf,'Wavelet','db3','Level',1,"LiftingScheme",LS);
hi = lwtcoef(ca4,cd4,"Wavelet",'db3',"OutputType","projection",...
"Type","detail","Level",1);
Lo = lwtcoef(ca4,cd4,"Wavelet",'db3',"OutputType","projection",...
"Type","approximation","Level",1);
end
You can use other wavelet transform instead of lwt in the function block.
I hope this helps.
Thanks
Sharmin

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Continuous Wavelet Transforms에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by