 % and gate with n in
 % release date 2016.11.14
 % Prof Frank Urban urban@fiu.edu

classdef NotGate
    properties
        in
        out
    end
    methods
        function obj = NotGate
        end
        function obj = applyInputs(obj,in)
            if islogical(in)
                obj.in = in;
                obj.out = ~in;
            else
                fprintf(2,'\n ERROR: in must be logical - no changes made\n')
            end
        end
    end
end