Exercise 2: Sampling theorem
조회 수: 7 (최근 30일)
이전 댓글 표시
We have an analogue signal: x(t) = cos(2*pi*500*t) + 3* cos(2*pi*1000*t)
1) Write a programme to display the sampled signal and the spectrum of the signal?
2) Display the signal in the time and frequency domains if the sampling frequency is 1.5 KHz. Comments on the observations.
Is the following code correct for section 1? clc;clear;close all; fs = 10 *10^3; % sampling frequency t=0:1/fs:5/fc; x = cos(2*pi*500*t) + 3*cos(2*pi*1000*t); % signal function % (i) display sampled signal plot(t,x)
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Signal Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!