1 2 3 4 5
function c = CPT(bnet, i) % CPT Helper function avoid having to type in % CPD_to_CPT(bnet.CPD{i}) every time c = CPD_to_CPT(bnet.CPD{i});