From f7edd7a8f1076c677d6951eb8de75670c306060c Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Wed, 23 Dec 2009 03:42:55 +0000 Subject: nice formating --- basis_transformation.m | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'basis_transformation.m') 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 -- cgit v1.2.3