plots periodics functions and fourier transform
조회 수: 3 (최근 30일)
이전 댓글 표시
how can I plot a periodic function like e^-abs(z) while -T1<z<T1 and 0 else? if my cycle is L = T0
댓글 수: 3
Matt J
2012년 10월 7일
Please format your code (using the '{} Code' toolbar icon), so that we can read it more easily.
채택된 답변
Matt J
2012년 10월 7일
This might be what you're looking for:
T1=10;
T0=6;
h=T0/2;
f=@(z) exp(-abs(z));
p=@(t) mod(t-h,2*h)-h;
t=linspace(-T1,T1,1000);
plot(t,f(p(t)));
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Fourier Analysis and Filtering에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!