基本信息
源码名称:离散系统的时域分享.doc
源码大小:1.42M
文件格式:.doc
开发语言:MATLAB
更新时间:2022-01-08
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300

本次赞助数额为: 2 元 
   源码介绍

离散系统的时域分享.doc


Laboratory Exercise 2

DISCRETE-TIME SYSTEMS: TIME-DOMAIN REPRESENTATION

2.1 SIMULATION OF DISCRETE-TIME SYSTEMS

Project 2.1 The Moving Average System

A copy of Program P2_1 is given below:




n = 0:100;

s1 = cos(2*pi*0.05*n); % A low frequency sinusoid

s2 = cos(2*pi*0.47*n); % A high frequency sinusoid

x = s1 s2;

M = input('Desired length of the filter = ');

num = ones(1,M);

y = filter(num,1,x)/M;

clf;

subplot(2,2,1);

plot(n,s1);

axis([0, 100, -2, 2]);

xlabel('Time index n'); ylabel('Amplitude');

title('Signal # 1');

subplot(2,2,2);

plot(n,s2);

axis([0, 100, -2, 2]);

xlabel('Time index n'); ylabel('Amplitude');

title('Signal # 2');

subplot(2,2,3);

plot(n,x);

axis([0, 100, -2, 2]);

xlabel('Time index n'); ylabel('Amplitude');

title('Input Signal');

subplot(2,2,4);

plot(n,y);

axis([0, 100, -2, 2]);

xlabel('Time index n'); ylabel('Amplitude');

title('Output Signal');

axis;