EXPAND

  Expand small field small into big field big according
  to ind for a total length of dims = [96 48]
function big=expand(small,ind,dims)
%

%
%Usage:
%       zb=expand(z,ind,[96 48])
%
tot=dims(1)*dims(2);
big=ones(tot,1)*9999;
for ii=1:length(ind);
    big(ind(ii))=small(ii);
end