view toolboxes/FullBNT-1.0.7/bnt/general/dispcpt.m @ 0:cc4b1211e677 tip

initial commit to HG from Changeset: 646 (e263d8a21543) added further path and more save "camirversion.m"
author Daniel Wolff
date Fri, 19 Aug 2016 13:07:06 +0200
parents
children
line wrap: on
line source
function display_CPT(CPT)

n = ndims(CPT);
parents_size = size(CPT);
parents_size = parents_size(1:end-1);
child_size = size(CPT,n);
c = 1;
for i=1:prod(parents_size)
  parent_inst = ind2subv(parents_size, i);
  fprintf(1, '%d ', parent_inst);
  fprintf(1, ': ');
  index = num2cell([parent_inst 1]);
  index{n} = ':';
  fprintf(1, '%6.4f ', CPT(index{:}));
  fprintf(1, '\n');
end