plots periodics functions and fourier transform
1 次查看(过去 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 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!