已知A矩阵为:
4 20 12 8
3 15 0 40
8 22 12 36
11 30 18 46
将A中元素小于等于12全部置0
要求输出
0 20 0 0 0 15 0 40 0 22 0 36 0 30 18 46
A=[4,20,12,8;3,15,0,40;8,22,12,36;11,30,18,46]; A(find(A<=12))=0; disp(num2str(A));
标签:11,12,15,22,46,18,30 From: https://www.cnblogs.com/lachesism/p/16732795.html