How do I plot the periodic transmitted signal sin(t^2) with a period of 0:2pi?
1 次查看(过去 30 天)
显示 更早的评论
How do I plot the periodic transmitted signal sin(t^2) with a period of 0:2pi?
Thanks J
0 个评论
回答(1 个)
Star Strider
2017-2-16
It’s not clear to me what you want.
See if this works for you:
t = linspace(0, 2*pi, 250);
s = sin(t.^2);
figure(1)
plot(t, s)
grid
2 个评论
Star Strider
2017-2-16
That is straightforward to do:
t = linspace(0, 10*pi, 500); % Time Vector For 5 Cycles (5 * 2*pi)
tm = rem(t,2*pi); % Calculate ‘t mod(2*pi)’
s = @(t) t.^2; % Create Anonymous Function For Convenience
figure(1)
plot(t, s(tm)) % Plot
grid
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Detection, Range and Doppler Estimation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!