1.matlab 求两个矩阵对应位置上元素平均值
matlab 求两个矩阵对应位置上元素平均值
矩阵大小一样吗?
如果一样
c=(a+b)/2就可以
>>a = [1 2; 3 4];
>>b = [2 3; 4 5];
>>c = (a+b)/2
>>c =
1.5 2.5
3.5 4.5
copyright © 2016 powered by 皮皮网 sitemap