[solved] – Question 93439
Write a MATLAB function (not a script!) to generate a periodic waveform of total length
L. Each period must be a pulse of amplitude A that lasts a total of M samples followed by
T − M samples that are zero so that the overall period is T. The result should be a square
wave. You can learn some tricks from the triangular waveform function example in MATLAB
for DSP to write this function without loops. (This is not necessary for full credit.) Note
that this function is not exactly the same in terms of arguments or units. Include a listing
of your function. The function may not call a signal-generating function in the MATLAB
Signal Processing Toolbox.
Expert Answer
OR

