You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: adimat_neigs.m
    path of file: ./repos/d2d/arFramework3/ThirdParty/StrucID/adimat/runtime
    
    the code of the file until where you have to start completion: % function [V D] = adimat_neigs(A, k?, sigma?, opts?)
% 
% Return eigenvectors from eigs in a normalized form: first component
% is always positive.
%
% Copyright (C) 2015 Johannes Willkomm
function [V D] = adimat_neigs(A, varargin
    
function [V D] = adimat_neigs(A, k?, sigma?, opts?)
% 
% Return eigenvectors from eigs in a normalized form: first component
% is always positive.
%
% Copyright (C) 2015 Johannes Willkomm
function [V D] = adimat_neigs(A, varargin)
  [V D] = eigs(A, varargin{:});
  for k=1:size(V,2)
    V(:,k) = sign(V(1,k)) .* V(:,k);
  end