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

Fix bug throwing error when providing a 3D array as input

parent ceffcd18
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,7 @@ function diagonality = diagMetric(mat, matNorm, normalise)
% Validate input arguments
% ====================================================
% Validate mandatory arguments
validateattributes(mat, "numeric", {'3d', 'square', 'nonempty'}, mfilename, "Matrices to be checked for diagonality", 1);
validateattributes(mat, "numeric", {'3d', 'nonempty', 'size', [NaN, size(mat, 1), NaN]}, mfilename, "Matrices to be checked for diagonality", 1);
% Validate optional arguments
if nargin > 1 && ~isempty(matNorm)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment