매트랩으로 사각파 톱니파 컨벌루젼 적분하기
- 최초 등록일
- 2009.02.05
- 최종 저작일
- 2007.07
- 5페이지/ 한컴오피스
- 가격 1,500원
소개글
매트랩으로 사각파 톱니파 컨벌루젼 적분하기
목차
1. For unitstep(t) and ramp(t)
2.For squarewave(wt+@), where w is radian frequency and @ is phase
3. For sawtooth(wt+@), where w is radian frequency and @ is phase
4. Implement the convolution sum and plot the result
5. 느낀점
본문내용
3. For sawtooth(wt+@), where w is radian frequency and @ is phase
1) sawtooth(10t), t = -3:0.1:3
t=-3:0.01:3;
width = 1;
rt = rem(10*t,2*pi)*(1/2/pi);
k1 = find( ((rt<=width)&(rt>=0)) | ((rt<width-1)&(rt<0)) );
k2 = 1:length(t(:));
k2(k1) = [];
y = zeros(size(t));
y(k1) = ( ((t(k1)<0)&(rt(k1)~=0)) + rt(k1) - .5*width)*2;
if (width ~= 0),
y(k1) = y(k1)*(1/width);
end
y(k2) = ( -(t(k2)<0) - rt(k2) + 1 - .5*(1-width))*2;
if (width ~= 1),
y(k2) = y(k2)*(1/(1-width));
end
plot(t,y);
axis([-5 5 -2 2]);
ylabel(`sawtooth(10t)`)
xlabel(`t`)
중략...
5. 느낀점
매트랩의 사용이 익숙치 않아서 꽤 힘든 프로젝트였다.
프로젝트가 끝나고 나니 매트랩과 좀 더 친해진 것 같다. convolution 등을 매트랩으로 직접 해보니 조금 신기하기도 했다. x와 h를 벡터로 정의 했을 때 1씩 밀렸었는데 이를 해결하는 방법도 한번 생각해보아야 겠다. (함수를 다시정의하는 방법이 아닌 방법)
참고 자료
없음