function pot2 = cg_to_gpot(pot)
% CG_TO_GPOT Convert a Conditional Gaussian potential to a Gaussian potential.
% pot2 = cg_to_gpot(pot)

pot = cg_can_to_mom(pot);
pot2 = mk_gpot(pot.cdom, pot.csizes, 'm');
pot2.logp = pot.pot{1}.logp;
pot2.mu = pot.pot{1}.mu;
pot2.Sigma = pot.pot{1}.Sigma;
