目的:MATLAB 将向量a中 “向量b对应位置为0的元素” 删除 a = [ 1 2 3 4 5 6 ] b = [ 1 0 0 1 1 0 ] 命令: a(b==0) = [] 结果: a = [ 1 4 5 ]