summaryrefslogtreecommitdiff
path: root/basis_transformation.m
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2009-12-23 03:43:18 +0000
committerEugeniy Mikhailov <evgmik@gmail.com>2009-12-23 03:43:18 +0000
commit2a6ddbe3becd6311e327324716c8254497ade534 (patch)
treeb07b70597b55e3bccb76264afc763319e0d25525 /basis_transformation.m
parentf7edd7a8f1076c677d6951eb8de75670c306060c (diff)
downloadmulti_mode_eit-2a6ddbe3becd6311e327324716c8254497ade534.tar.gz
multi_mode_eit-2a6ddbe3becd6311e327324716c8254497ade534.zip
function return transformation matrix now
Diffstat (limited to 'basis_transformation.m')
-rw-r--r--basis_transformation.m3
1 files changed, 1 insertions, 2 deletions
diff --git a/basis_transformation.m b/basis_transformation.m
index 5ebf83b..135e9c1 100644
--- a/basis_transformation.m
+++ b/basis_transformation.m
@@ -16,13 +16,12 @@ lin2circ=inverse(circ2lin);
% x axis untouched
% z and y rotated by angle theta around 'x' axis
% [x_new, y_new, z_new]' = oldlin2newlin * [x_old, y_old, z_old]'
-function coord_new = oldlin2newlin(coord_old, theta)
+function oldlin2newlin_m = oldlin2newlin(theta)
oldlin2newlin_m = [ ...
[ 1, 0, 0]; ...
[ 0, cos(theta), -sin(theta)]; ...
[ 0, sin(theta), cos(theta)]...
];
- coord_new = oldlin2newlin_m * coord_old;
endfunction
% vim: ts=2:sw=2:fdm=indent