Dear Sir/Madam,
How do you adjust the snr plot so that the fundamental is at 0dB?
Fs = 10000;
f = 2100;
t = 0:1/Fs:1;
x = 5*sin(2*pi*f*t) + 0.001*randn(1,length(t));
snr(x, Fs, 5);
Regards Joe

 채택된 답변

Star Strider
Star Strider 2017년 9월 2일

0 개 추천

Dividing ‘x’ by ‘max(x)’ is probably as close as you can get:
xs = x/max(x);
figure(1)
snr(xs, Fs, 5)

댓글 수: 2

Joe Miller
Joe Miller 2017년 9월 3일
Thank you
Star Strider
Star Strider 2017년 9월 3일
My pleasure.

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

추가 답변 (0개)

카테고리

질문:

2017년 9월 2일

댓글:

2017년 9월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by