summaryrefslogtreecommitdiff
path: root/q_after_abcd.m
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2011-04-14 10:01:51 -0400
committerEugeniy Mikhailov <evgmik@gmail.com>2011-04-14 10:01:51 -0400
commit48c490b71eadf20187c93c1541dda3e40843dcce (patch)
tree6aed8ac79f92749333576757ec0af5d1e07ba0c8 /q_after_abcd.m
parent621aff7d0168de6ae2f127e14edfde7d526baf69 (diff)
downloadmode_match-48c490b71eadf20187c93c1541dda3e40843dcce.tar.gz
mode_match-48c490b71eadf20187c93c1541dda3e40843dcce.zip
functions from abcd.m now in separate files
Ignore-this: 33d046a6087834ae6c896966261af8e3 darcs-hash:20110414140151-067c0-7ee6687ce86608989ad7b9b2b1db276c7c11dbc2
Diffstat (limited to 'q_after_abcd.m')
-rw-r--r--q_after_abcd.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/q_after_abcd.m b/q_after_abcd.m
new file mode 100644
index 0000000..fd1f905
--- /dev/null
+++ b/q_after_abcd.m
@@ -0,0 +1,6 @@
+function qnew=q_after_abcd(q_old,abcd)
+% calculates q parameter after propagating through element with given abcd matrix
+ qnew=(q_old*abcd(1,1)+abcd(1,2))/(q_old*abcd(2,1)+abcd(2,2));
+endfunction
+
+