- Start by creating a time vector using "linspace", something like "t = linspace(-1, 1, 1000)" depending on your signal duration and resolution.
- Next, define your Gaussian signal as an anonymous function. For example:
- Choose a suitable "sigma" based on how narrow or wide you want the pulse.
- Now, define a reference point (here, "receiver"). Then compute the delay for each "
", use the Euclidean distance formula and divide by the propagation speed "c", like this:
- Once you have the delay, shift your signal in time by using:
- To normalize it, use the L2 norm function "norm(shifted, 2)" and divide:
- Repeat this for each "j", and store the result into the matrix
.
- linspace: https://www.mathworks.com/help/matlab/ref/double.linspace.html
- norm: https://www.mathworks.com/help/matlab/ref/norm.html

