Skip to content

Commit

Permalink
Solved bug for
Browse files Browse the repository at this point in the history
R2024b: Scalar input for array size is not supported 
inside ind2sub
  • Loading branch information
MarcoRianiUNIPR committed Oct 17, 2024
1 parent 8c3d789 commit e2f483d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion toolbox/graphics/covplot.m
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e2f483d

Please sign in to comment.