updated plotcells6.m to handle trivial cases