function [p1,p2] = getp12(A,i,j,w1,w2) p1 = squeeze(A(i,j,:,w1)); p2 = squeeze(A(i,j,:,w2)); return