Wednesday, July 15, 2009

Sawtooth wave plot

%sawtooth wave generation
%****************************************
y=0:.5:2
for j=0:8
a=(2*j)+y
plot(a,y,'b')
hold on
end
x=2:2:18
for k=0:.01:2;
b=k;
plot(x,b,'b')
hold on
end
hold off

No comments: