Skip to content

Commit

Permalink
FIX: ops, missed indexing for p
Browse files Browse the repository at this point in the history
  • Loading branch information
brudfors committed Feb 25, 2022
1 parent c320912 commit 83e5d23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spm_mb_init.m
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@
sett.gmm(ix_gmm).nit_appear = cfg.gmm(p).nit_appear;

% Multiple Gaussians per template class
if isfield(cfg.gmm(p),'mg_ix') && ~isempty(cfg.gmm.mg_ix)
sett.gmm(ix_gmm).mg_ix = cfg.gmm.mg_ix;
if isfield(cfg.gmm(p),'mg_ix') && ~isempty(cfg.gmm(p).mg_ix)
sett.gmm(ix_gmm).mg_ix = cfg.gmm(p).mg_ix;
else
sett.gmm(ix_gmm).mg_ix = 1:(sett.K+1);
end
Expand Down

0 comments on commit 83e5d23

Please sign in to comment.