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

    %% Find Characters
% Create a character vector.
M = 'masterpiece';

%%
% Test for the presence of a specific character using |~=|.
M ~= 'n'

%%
% The value of logical |1| (|true|) indicates the absence of the character
% |'n'|. The character is not present in the vector.