Skip to content
Snippets Groups Projects
Commit bc876f99 authored by Achilles Kappis's avatar Achilles Kappis
Browse files

Add check for corrrect dimension of Svv in obsFilt.m

parent c50638aa
No related branches found
No related tags found
1 merge request!2Update the MATLAB implementation of the optimal frequency domain observation filter
......@@ -96,6 +96,8 @@ function [oOpt, Sme, Smm, condNum] = obsFilt(Pe, Pm, srcCsd, regFacs, snrVal)
% Check for correct dimensions
if diff(size(srcCsd))
error("The source power spectral density matrix must be a square matrix");
elseif size(srcCsd, 1) ~= size(Pe, 1)
error("The number of rows of the source power spectral density matrix must be equal to the number of sources");
end
else
srcCsd = eye(size(Pe, 2));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment