Hi community,
I have generated colored Noise with power spectral density N(f) which is the function of frequency. The generated colored noise extends until the samplting frequency. So, the noise power is NOISE_POWER_FS = N(f)*fs. However, to calculate the signal to noise ratio, I need the noise power in my bandwidth of interest (B). NOISE_POWER_B = N(f)*B. I couldnt figure out a way to do this in matlab.
If it was AWGN noise, the spectral density N(f) = No would be a constant. So, i could just multiply Noise power within sampling frequency with a scaling factor (B/Fs). However, since N(f) is not constant, I got stuck at this point.
Can anyone explain me how to find the noise power of the colored noise within the bandwidth with some matlab help if possible?
Thanks,
Max