From 2a6ddbe3becd6311e327324716c8254497ade534 Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Wed, 23 Dec 2009 03:43:18 +0000 Subject: function return transformation matrix now --- basis_transformation.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'basis_transformation.m') 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 -- cgit v1.2.3