mirror of
http://43.156.76.180:8026/YuuMJ/EukPhylo.git
synced 2025-12-28 12:40:26 +08:00
11 lines
242 B
Matlab
11 lines
242 B
Matlab
function DPHI=dphi(PHI,D,PI,CC)
|
|
% compute the emperical derivative WR to the angles
|
|
|
|
delta=0.00001;
|
|
ll0=LL(rotAll(PHI),D,PI,CC);
|
|
for i=1:length(PHI),
|
|
p2=PHI;
|
|
p2(i)=p2(i)+delta;
|
|
lli=LL(rotAll(p2),D,PI,CC);
|
|
DPHI(i)=(lli-ll0)/delta;
|
|
end; |