summaryrefslogtreecommitdiff
path: root/abcd2ABCD.m
blob: 74faa2c1252f873f442caa5b0d4e4e54ffebbdfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function [A, B, C, D] = abcd2ABCD( abcd_matrix )
% decompose  abcd matrix to its coefficients
%          | A   B |
%   abcd = |       |
%          | C   D |

A = abcd_matrix(1,1);
B = abcd_matrix(1,2);
C = abcd_matrix(2,1);
D = abcd_matrix(2,2);

end