www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/InequalityOfTwoVectorsExample.m

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

% Copyright 2015 The MathWorks, Inc.

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.