-
编程语言:C/C++
大小:
金币:
上传人:shangyou88
发布日期:2023-11-06
-
编程语言:其他
大小:
金币:
上传人:chaoshanxx
发布日期:2023-08-16
-
编程语言:Matlab
大小:
金币:
上传人:yuyunfu
发布日期:2021-06-01
function [R1, t1] = reg(data1, data2, corr)M = data1(:,corr(:,1)); mm = mean(M,2);S = data2(:,corr(:,2));ms = mean(S,2); Sshifted = [S(1,:)-ms(1); S(2,:)-ms(2); ];Mshifted = [M(1,:)-mm(1); M(2,:)-mm(2); ];b1 = Sshifted(1,:)*Mshifted(1,:)\'+S