신호처리 | 신호의 크기와 각도 그리기 |
페이지 정보
작성자 cemtool 작성일14-04-23 14:59 조회11,361회 댓글0건본문
사이에 있는 501개 등간격 점들에서 을 구하고 크기, 각도, 실수부, 허수부를 그려보자.
- ex3_3.cem
w = [0:500:1]*pi/500; /* [0, pi] axis divided into 501 points. */ X = exp(j*w) ./ (exp(j*w) - 0.5*ones(1,501)); magX = abs(X); angX = angle(X); realX = real(X); imagX = imag(X); subplot(2,2,1); plot(w/pi,magX); xtitle("frequency in pi units"); title("Magnitude Part"); ytitle("Magnitude"); subplot(2,2,3); plot(w/pi,angX); xtitle("frequency in pi units"); title("Angle Part"); ytitle("Radians"); subplot(2,2,2); plot(w/pi,realX); xtitle("frequency in pi units"); title("Real Part"); ytitle("Real"); subplot(2,2,4); plot(w/pi,imagX); xtitle("frequency in pi units"); title("Imaginary Part"); ytitle("Imaginary")
댓글목록
등록된 댓글이 없습니다.