MATLAB: How can i filtering white gaussian noise using shaping filter H(f)

shaping filter

i want filtering white gaussian noise using shaping filter h(f). what is the function of shaping filter in matlab

Best Answer

Define the filter as a designfilt object (if you use designfilt), as numerator and denominator polynomials, or preferably a second-order-section and gain matrix, then use the filtfilt function to filter it, as you would any other signal. Your filter will pass the selected random-amplitude values in the frequency spectrum you specify for the filter. You can see the results if you do a fft (link) on the output of the filter.