please i need the matlab code for this question
显示 更早的评论
1) Plot the signal x(t)=cost(ω_0 t) for 0≤t≤10 and ω_0=-2π,-π,π,2π
2) Assume x(t)=t,for 0≤t≤2. Plot x(t-1),x(-t+1),and-x(-t).
回答(2 个)
Azzi Abdelmalek
2013-12-27
Use plot function
doc plot
1 个评论
Azzi Abdelmalek
2013-12-27
编辑:Azzi Abdelmalek
2013-12-27
Example
t=0:0.1:10
y=sin(t)
plot(t,y)
For more details look at
doc plot
help plot
Sean de Wolski
2013-12-27
编辑:Sean de Wolski
2013-12-27
t = (0:0.1:10).';
w_0 = linspace(-2*pi,2*pi,100);
surf(t*ones(size(w_0)),ones(size(t))*w_0,cos(t*w_0))
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!