function A = do_work(m,H,V,D)

rsH = sum(abs(H),2)';
csH = sum(abs(H));

rsV = sum(abs(V),2)';
csV = sum(abs(V));

rsD = sum(abs(D),2)';
csD = sum(abs(D));




rH = percent(rsH,m);
cH = percent(csH,m);

rV = percent(rsV,m);
cV = percent(csV,m);

rD = percent(rsD,m);
cD = percent(csD,m);

A = [rH, cH, rV, cV, rD, cD];




