From e2f483d6d491ada05a2f9b7dee058762c19f8ace Mon Sep 17 00:00:00 2001 From: MarcoRianiUNIPR Date: Thu, 17 Oct 2024 16:02:12 +0200 Subject: [PATCH] Solved bug for R2024b: Scalar input for array size is not supported inside ind2sub --- toolbox/graphics/covplot.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/toolbox/graphics/covplot.m b/toolbox/graphics/covplot.m index e8abdb45f..c690a4976 100644 --- a/toolbox/graphics/covplot.m +++ b/toolbox/graphics/covplot.m @@ -262,7 +262,8 @@ function covplot(out,varargin) % 1,2; 1,3; .... v-1,v; aco=triu(ones(v,v)); ind = find(abs(aco)>0); -[I,J]=ind2sub(v,ind); +% From 2024b +[I,J]=ind2sub([v, 1],ind); numtext=cellstr([num2str(I) repmat(',',vv,1) num2str(J)]); % laby= label used for the y-axis of the malfwdplot.