matlab으로 하는 신호와 시스템
- 최초 등록일
- 2007.01.18
- 최종 저작일
- 2007.01
- 7페이지/ 한컴오피스
- 가격 1,500원
소개글
신호와 시스템 경희대학교 lab1 입니다.
목차
없음
본문내용
Signals and Systems MATLAB Lab #1 (2003/Fall)
1. Given a continuous signal, y(t)=sin(4t), do the followings within one period (t>=0).
A. Plot the y(t).
B. Display the y[n] = sin[n] after sampling the y(t) using sampling period of ts=0.02 sec. (you should use "stem" command).
C. Repeat step B using ts=0.28
D. Observe the results of step B and step C. Which result represents the original signal y(t) better?
-> source)
% lab #1-1
clear all;
clc;
%Question A
t=0:0.01:0.5;
x=sin(4*pi*t);
figure; orient tall;
subplot(411); plot(t,x); title(`y(t) = sin(4*pi*t)`); grid on;
%Question B
t=0:0.02:0.5;
x=sin(4*pi*t);
subplot(412); stem(t,x); title(`y[n]=sin[n] of sampling period of ts=0.02 sec`); grid on;
%Question C
t=0:0.28:0.5;
x=sin(4*pi*t);
subplot(413); stem(t,x); title(`y[n]=sin[n] of sampling period of ts=0.28 sec`); grid on;
%other ts=0.01
t=0:0.01:0.5;
x=sin(4*pi*t);
subplot(414); stem(t,x); title(`y[n]=sin[n] of sampling period of ts=0.01 sec`); grid on;
참고 자료
없음