knrt.net
当前位置:首页 >> Z1 = (X1(1:n%1)+X1(2:n))/2 B = [%Z1, onEs(n%1,1... >>

Z1 = (X1(1:n%1)+X1(2:n))/2 B = [%Z1, onEs(n%1,1...

Z1=(X1(1: n - 1) + X1(2: n)) / 2; B = [-Z1, ones(n - 1, 1)]; 从你这个代码上看,X1应该是一个有n个元素的一维矩阵,第一句话的作用就是求矩阵X1中每相邻两个元素的算数平均数。它的作用相当于: Z1(1) = (X1(1) + X1(2)) / 2; Z1(2) = (X1(2...

网站首页 | 网站地图
All rights reserved Powered by www.knrt.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com