function CPT = mk_noisy_mux2(mux, pcorrect)

sz = size(mux2);
O = sz(end);
ncols = sz(end-1);
nrows = sz(end-2);

temp = reshape(mux, [nrows*ncols O]);
