Rev | Line | |
---|
[37] | 1 | function Fs = fu2F7(u) |
---|
| 2 | |
---|
| 3 | % Z = []; |
---|
| 4 | % for j = 1:7 |
---|
| 5 | % Z(j,:) = reshape(u(1:3,j)*u(4:6,j)',1,9); |
---|
| 6 | % end |
---|
| 7 | |
---|
| 8 | Z = lin_fm(u); |
---|
| 9 | |
---|
| 10 | NullSp = null(Z); |
---|
| 11 | if size(NullSp,2) > 2 |
---|
| 12 | Fs = []; |
---|
| 13 | return; %degenerated sample |
---|
| 14 | end |
---|
| 15 | |
---|
| 16 | F1 = reshape(NullSp(:,1),3,3); |
---|
| 17 | F2 = reshape(NullSp(:,2),3,3); |
---|
| 18 | p = fslcm(F1,F2); |
---|
| 19 | aroots = rroots(p); |
---|
| 20 | |
---|
| 21 | %xr = o_fslcm(F1,F2) |
---|
| 22 | |
---|
| 23 | %aroots == xr |
---|
| 24 | |
---|
| 25 | for i = 1:length(aroots) |
---|
| 26 | l = aroots(i); |
---|
| 27 | Ft = F1 * l + F2 * (1-l); |
---|
| 28 | % Ft = Ft /norm(Ft,2); |
---|
| 29 | Fs(:,:,i) = Ft; |
---|
| 30 | end |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | |
---|
Note: See
TracBrowser
for help on using the repository browser.