Remove useless commas
Detected and automatically fixed by MATLAB Code Analyzer app.covariance-quadratic-approximation
parent
56e97e29aa
commit
ff7cc9267e
|
@ -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')
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue