📜  matlab 检查值是否在数组中 - Matlab 代码示例

📅  最后修改于: 2022-03-11 15:01:04.597000             🧑  作者: Mango

代码示例1
ismember(A,B)
% returns an array containing logical 1 (true) where the data in A is found in
% B. Elsewhere, the array contains logical 0 (false).

% Note:
% If A and B are tables or timetables, then ismember returns a logical value
% for each row. For timetables, ismember takes row times into account to
% determine equality. The output, Lia, is a column vector.