比如一列数据,1到100,其中缺失几个数,如何找到缺失的数,使得数据连续
C是缺失的数
clear all; A = [1 2 4 5 6 9]; B = min(A) : max(A); isA = ismember(B, A); C = B(~isA);