Bayesian Networks

Copyright Tristan Aubrey-Jones April 2007.

condsToStr.m

home Home   up Up   ( Download )


function s = condsToStr(conds) % CONDSTOSTR Takes a matrix of conditions % and returns a string of their comma delimited rep s = ''; sz = size(conds); for i = 1:sz(1) % get correct char s = strcat(s, char(conds(i,1) + 96), num2str(conds(i, 2))); % add a comma if i ~= sz(1) s = strcat(s, ','); end end