www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/MatrixWithMissingDataExample.m
%% Matrix with Missing Data % Create a matrix with missing data and remove any column (second % dimension) containing two or more missing values. Return the new matrix and the % logical row vector that indicates which columns of |A| were removed. A = [NaN NaN 5 3 NaN 5 7 NaN 9 2; 8 9 NaN 1 4 5 6 5 NaN 5; NaN 4 9 8 7 2 4 1 NaN 3] %% [R,TF] = rmmissing(A,2,'MinNumMissing',2)