f



Is it right?

hi
 I'm a beginner in matlab and I have to plot these FS but I'm not sure
of my codes so could anyone help me!!!
 sawtooth signal
              x(t)=(2A/�)(sin(wt)-(1/2)sin(2wt)+(1/3)sin(3wt)- ...)
my code is:
T=.01
t=0:.000001:.03
x=0
for i=1:21
x=x+((sin(2*pi*(t/T)))/i)
end
plot(x)

 fully-rectified consinusoid
           
x(t)=(2A/�)(1+(2/3)cos(wt)-(2/15)cos(2wt)+(2/35)cos(3wt)...)
I don't know how to write it's code ??help me plz

0
lasolie (4)
8/11/2004 2:35:06 PM
comp.soft-sys.matlab 211264 articles. 25 followers. lunamoonmoon (257) is leader. Post Follow

0 Replies
380 Views

Similar Articles

[PageSpeed] 53

Reply: