- Define the function signature with inputs like input signal, desired direction, interference direction.
- Calculate the desired steering vector and the interference steering vector using desired direction and interference direction respectively.
- Calculate the covariance matrix of the input signal using the “cov” function.
- Use the covariance matrix, steering vector, and regularization to calculate the weights for the MVDR beamformer. The weights are generally calculated as the inverse of the covariance matrix multiplied by the steering vector. You can also use the “mvdrweights” function to compute the weights directly.
- Multiply input signal with the weights to obtain the result.
- https://www.mathworks.com/help/phased/beamforming.html
- https://www.mathworks.com/help/matlab/ref/cov.html
- https://www.mathworks.com/help/phased/ref/mvdrweights.html