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: binvar.m
    path of file: ./repos/YALMIP/extras
    
    the code of the file until where you have to start completion: function sys = binvar(varargin)
%BINVAR Create symbolic binary variable

    
function sys = binvar(varargin)
%BINVAR Create symbolic binary variable
%
%   BINVAR works exactly as SDPVAR, with the only difference that
%   the elements in the variable automatically will be constrained
%   to be binary (0/1) when an optimization problem is solved.
%
%   See also INTVAR, SDPVAR, BINARY, INTEGER

all_variable_names = 1;
i = 1;

% check for command line syntax
while all_variable_names & i<=nargin
    all_variable_names = all_variable_names & isvarname(varargin{i});
    i = i + 1;
end