matlab 删除所有有nan值的列
2个回答
展开全部
A = [0.9501 0.7621 0.6154 0.4057 0.0579
NaN 0.4565 0.7919 0.9355 0.3529
NaN NaN NaN 0.9169 0.8132
0.4860 0.8214 0.7382 0.4103 0.0099
0.8913 NaN 0.1763 0.8936 0.1389];
L = sum(isnan(A));
R = A(:,L==0)
R =
0.4057 0.0579
0.9355 0.3529
0.9169 0.8132
0.4103 0.0099
0.8936 0.1389
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询