I hope to use enough points and show only a few repetitions to make a smooth graph.
1 次查看(过去 30 天)
显示 更早的评论
Plot the sinusoid 2*cos(2*pi*1500*t+pi/2), starting at t=0 seconds.
I want to use enough points and show only a few repetitions to make a smooth graph.
.
.
thanks for ur kindness
0 个评论
采纳的回答
Voss
2022-3-30
% cos(t) has period 2*pi
% cos(2*pi*t) has period 1
% cos(2*pi*1500*t) has period 1/1500
%
% pick t values that span a few periods
% (i.e., a few multiples of 1/1500):
%
% 500 points, starting with 0, ending with 5/1500:
t = linspace(0,5/1500,500);
x = 2*cos(2*pi*1500*t+pi/2);
plot(t,x);
xlabel('t');
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
