본문 바로가기

이직로그/MATLAB 스터디

MATLAB - Signal Generation and Resampling 1

https://matlabacademy.mathworks.com/v1/portal.html?course=otmlsgr

 

MATLAB Course

 

matlabacademy.mathworks.com

fs = 100
t = (0:1/fs:3)
sig = sin(2*pi*5*t)+sin(2*pi*3*t);
plot(t,sig)
pspectrum(sig,fs)

스펙트럼 피크가 2 와 3 에서 뜨는걸 볼수가 있다.