diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2009-12-23 03:42:55 +0000 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2009-12-23 03:42:55 +0000 |
commit | f7edd7a8f1076c677d6951eb8de75670c306060c (patch) | |
tree | 67437b55d28672dd1480c2b675681a658227ae18 /basis_transformation.m | |
parent | 539cde27dee1cd9721a4684f815883b44464170c (diff) | |
download | multi_mode_eit-f7edd7a8f1076c677d6951eb8de75670c306060c.tar.gz multi_mode_eit-f7edd7a8f1076c677d6951eb8de75670c306060c.zip |
nice formating
Diffstat (limited to 'basis_transformation.m')
-rw-r--r-- | basis_transformation.m | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/basis_transformation.m b/basis_transformation.m index 01c3202..5ebf83b 100644 --- a/basis_transformation.m +++ b/basis_transformation.m @@ -3,9 +3,9 @@ % matrix of circular to linear transformation % [x, l, z]' = lin2circ * [r, l, z]' circ2lin= [ ... - [ 1/sqrt(2), 1/sqrt(2), 0]; ... - [-1i/sqrt(2), 1i/sqrt(2), 0]; ... - [ 0, 0, 1] ... + [ 1/sqrt(2), 1/sqrt(2), 0]; ... + [-1i/sqrt(2), 1i/sqrt(2), 0]; ... + [ 0, 0, 1] ... ]; % matrix of linear to circular transformation @@ -18,9 +18,9 @@ lin2circ=inverse(circ2lin); % [x_new, y_new, z_new]' = oldlin2newlin * [x_old, y_old, z_old]' function coord_new = oldlin2newlin(coord_old, theta) oldlin2newlin_m = [ ... - [ 1, 0, 0]; ... - [ 0, cos(theta), -sin(theta)]; ... - [ 0, sin(theta), cos(theta)]... + [ 1, 0, 0]; ... + [ 0, cos(theta), -sin(theta)]; ... + [ 0, sin(theta), cos(theta)]... ]; coord_new = oldlin2newlin_m * coord_old; endfunction |