%  Unpack an array function 
function [varargout] = Unpack(G)
  nout = length(G);
  for k=1:nout
    if iscell(G)
      varargout{k} = G{k};
    else
      varargout{k} = G(k);
    end
  end
end
