Remove useless commas

Detected and automatically fixed by MATLAB Code Analyzer app.
covariance-quadratic-approximation
Sébastien Villemot 2023-12-15 15:37:35 +01:00
parent 56e97e29aa
commit ff7cc9267e
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
2 changed files with 5 additions and 5 deletions

View File

@ -78,14 +78,14 @@ end
Counter(0);
switch L1ops
case {'==' '='},
case {'==' '='}
if isnan(MaxCounter)
% return the number of solutions
v = nchoosek(n+L1-1,L1); % nchoosek(n+L1-1,n-1)
else
v = allVL1eq(n, L1);
end
case '<=', % call allVL1eq for various sum targets
case '<=' % call allVL1eq for various sum targets
if isnan(MaxCounter)
% return the number of solutions
%v = nchoosek(n+L1,L1)*factorial(n-L1); BUG <- 16/Sep/2009:
@ -99,7 +99,7 @@ switch L1ops
v = cell2mat(arrayfun(@(j) allVL1eq(n, j), (0:L1)', ...
'UniformOutput', false));
end
case '<',
case '<'
v = allVL1(n, L1-1, '<=', MaxCounter);
otherwise
error('allVL1: unknown L1ops')

View File

@ -108,7 +108,7 @@ end
if abs(floor(x(1))-xind_tick(1))-abs(ceil(x(end))-xind_tick(end))<-1
xind_tick = xind_tick+1;
end
if length(xind_tick)==gend,
if length(xind_tick)==gend
xind_tick = x(2:end);
end
% xind_tick = [x(ind_yrs(1))-floor(dind_tick/2):dind_tick:x(ind_yrs(end))+floor(dind_tick/2)]+1;
@ -154,7 +154,7 @@ comp_nbr0=comp_nbr;
%%plot decomposition
for j=1:nvar
z1 = squeeze(z(i_var(j),:,:));
if screen_shocks,
if screen_shocks
[~, isort] = sort(mean(abs(z1(1:end-2,:)')), 'descend');
if initval
labels = char(char(shock_names(isort(1:16))),'Others', 'All shocks');