%  Returns A(j) if A is a vector, otherwise return the scalar A 
function Aj = Pick(A,j)
  if length(A)>1
    Aj=A(j);
  else
    Aj=A;
  end
end
