Chat with our AI personalities
The code below can generate triangular wave in Matlab. A=2; t = 0:0.0005:1; x=A*sawtooth(2*pi*5*t,0.25); %5 Hertz wave with duty cycle 25% plot(t,x); grid axis([0 1 -3 3]);
period.
1kHz
For waves the unit of one wave cycle per second is Hertz
Such is called the period of the wave. The period is the reciprocal of the frequency.