How can I create a pulse train which is not periodic? A sample program has been attached.
6 views (last 30 days)
The matlab code shown below is for generating the pulse signal. However, when I try to plot 'b_n' the output I got is only first and the last shifted part. But I want to hold the in-between pulses also. The plotted figure is also shown below.
Sam Chak on 2 Aug 2022
I followed an example in this link and modifed values of the parameters. Do you think it can be applied to your problem?
t = 0:1e-3:10;
d = [0:8:10]';
x = @rectpuls;
y = pulstran(t-1, d, x);