thanks for your suggestion. But, I want to use the results in a project that I can't use this way. Because, the supervisor of the project does not accept this way.
to remove the DC component, u need a high-pass filter (HPF), and also u need to provide the HPF what's the cut-off freqency (ωc). Finally, ur input frequency to the HPF should be larger than ωc, otherwise the output signal shape of HPF will be changed.
to remove the DC component, u need a high-pass filter (HPF), and also u need to provide the HPF what's the cut-off freqency (ωc). Finally, ur input frequency to the HPF should be larger than ωc, otherwise the output signal shape of HPF will be changed.
Thanks for your reply
I have used this way and the signal's frequency is larger than the freq. But, the signal DC is not removed at first times of the signal and it is removed delayed and this changes the signal shape.
1. to have to know the DC offset in some way;
2. to substract the DC offset from the signal.
The second step is trivial having the DC offset estimation. You just to add subtract block into your Simulink model subtracting the signal "DC offset" from your target signal. But to answer the question how to find the DC offset is not so easy. There are different situations with different answers. In general to find the correct solution a good understanding of your model is required together with estimation theory results.
The simplest situation if you know the DC offset a priori. In that case you just insert into your model a constant block generating the constant DC offset.
The more complex situation is if you do not know the DC offset before the signal processing start. In that case you have to calculate the offset from your signal. With some kind of LP filter for example. In some situations the DC offset is just the signal value before the processing signal wave arrival and can be latched before the signal waveform processing. Of course in general you can't calculate DC offset before the signal arrival. The standard solution is to delay you signal processing in some way for time sufficient for DC offset calculation - with discret delay block for example.
Hope this advice will help you to find the correct solution of your problem.