t=0:0.001:10;
sinewave=2*sin(1500*t);
squarewave1=2.5+2.5*square(12000*t);
trianglewave=0.25+0.25*sawtooth(5000*t);
squarewave2=2.5+2.5*square(80000*t);
sawtoothwave=-3+2.5*sawtooth(10000*t);
plot(t,sinewave)
If you want to see from a broader perspective, increase the increment of t, like 0.1.
Best Answer