%% Test Values for Inequality
% Determine if a value is nonzero. Use the ~= operator to test for inequality.

x = 10;
if x ~= 0
    disp('Nonzero value')
end

% Copyright 2019 The MathWorks, Inc.