Wednesday, July 15, 2009

Triangular wave plot

% triangular wave generation
%****************************************
y=0:0.5:2;
for j=0:3
x=(4*j)+y;
plot(x,y)
hold on
end
for k=0:3;
x=(4*k)-y
plot(x,y)
hold on
end
hold off

4 comments:

shantikumar said...

Sir,

Thanks for uploading such valuable program. Its very useful to me.

yours,

Y.Shantikumar

Unknown said...

Thank you for sharing this, just used it for my hw.

ravi said...

This is not the write way of plotting
ur just superimposing one plot to another which is wrong ,to pot any wave

ravi said...
This comment has been removed by the author.