test if p == q
0001 function tf = eq(p,q) 0002 % test if p == q 0003 np = length(p); 0004 nq = length(q); 0005 0006 if np ~= nq 0007 tf = false; 0008 return 0009 else 0010 tf = all(p.array == q.array); 0011 end