added viewPatches2D.m