How can I graph the following functions?

1 次查看(过去 30 天)
A periodic signal x(t) with a fundamental period of 2 seconds is described over one fundamental period by
x(t) = sin(2*pi*t) for t< 0.5
0 for 0.5 < |t| < 1
Graph the signal. Then graph on the same scale the signal Xn(t) given by
Xn(t) = Summation Cx[k]e^(j2*pi*kt/To) where k is -N to N
For N=10,20 and 30 ( In each case the time scale of the graph should cover at least two fundamental periods of the original signal).
Plz help i am beginner and confused :'(

回答(1 个)

the cyclist
the cyclist 2014-3-8
I think you will find some good help by going to the MATLAB Plot Gallery, taking a look at some of those examples, and then adapting the code available there to your case.

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by