Skip to content

Commit

Permalink
[bug] fix typo in mmclab
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Mar 13, 2024
1 parent 45bc0da commit d230c1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmclab/mmclab.m
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@
newdetp.v = detp(end - 3:end - 1, :)'; % columns 4-2 from the right store the exit dirs*/
end
newdetp.w0 = detp(end, :)'; % last column is the initial packet weight
if (isfield(cfg.srcpattern) && ndims(cfg.srcpattern) == 3)
if (isfield(cfg(i), 'srcpattern') && ndims(cfg.srcpattern) == 3)
newdetp.w0 = typecast(newdetp.w0, 'uint32');
end
newdetp.prop = cfg(i).prop;
Expand Down

0 comments on commit d230c1d

Please sign in to comment.