understanding cycle sample expression

조회 수: 1 (최근 30일)
fima v
fima v 2020년 3월 24일
댓글: darova 2020년 3월 24일
Hello , I cant understand the logic in this expression "cycles/N = fx/fs"
N is number of samples
fs- frequency if the whole signal of the with all the N periods
what is the meaning of our new frequency fx=(cycles*fs)/N ?
cycles /number of samples has no meaning
Thanks.
% Second example shows how to fix this problem by integer number of cycles.
% best to choose cycles=prime number otherwise quantization noise is periodic and non-randon . cycles/N = fx/fs.
% first select cycles=10 then cycles=11
%%%%%%%%% sampling definitions %%%%%%%%%
fs = 880e3;
N=100;
cycles=11
%%%%%%%%% signal definitions time/frequency %%%%%%%%%
fx = fs*cycles/N %% fx=50e3;
Afs=1;
% time vector
t=linspace(0, (N-1)/fs, N); %t = linspace(0, (N-1)/fs, N);
% input signal
y = Afs * cos(2*pi*fx*t)+0.0*cos(2*pi*5*fx*t);
  댓글 수: 1
darova
darova 2020년 3월 24일
I don't know if this question about MATLAB

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by