%% Inequality of Two Vectors
% Create two vectors containing both real and imaginary numbers, then compare the vectors for inequality.

A = [1+i 3 2 4+i];
B = [1 3+i 2 4+i];
A ~= B

% The ne function tests both real and imaginary parts for inequality, and returns logical 1 (true) where one or both parts are not equal.
% Copyright 2015 The MathWorks, Inc.