参考:https://www.cnblogs.com/bithuaning/p/6925037.html
测试:
arr=[1 2 3;4 5 6;7 8 9]
mask=[1 0 1;0 1 0;1 0 1];
ret = arr.*mask
参考:https://www.cnblogs.com/bithuaning/p/6925037.html
测试:
arr=[1 2 3;4 5 6;7 8 9]
mask=[1 0 1;0 1 0;1 0 1];
ret = arr.*mask