summaryrefslogtreecommitdiff
path: root/useful_functions.m
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2009-12-18 22:57:30 +0000
committerEugeniy Mikhailov <evgmik@gmail.com>2009-12-18 22:57:30 +0000
commita0b6189c556b53b4a74a8d4ef2f36e0ecf9a3ffd (patch)
treeae743ce3d9da4442160fcff475e3f6b3b673195b /useful_functions.m
parente9a0365d960fd43c0181e73d10cb896e9274d9da (diff)
downloadmulti_mode_eit-a0b6189c556b53b4a74a8d4ef2f36e0ecf9a3ffd.tar.gz
multi_mode_eit-a0b6189c556b53b4a74a8d4ef2f36e0ecf9a3ffd.zip
moved counter to outside for loop
Diffstat (limited to 'useful_functions.m')
-rw-r--r--useful_functions.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/useful_functions.m b/useful_functions.m
index 8e73ddf..8adbf86 100644
--- a/useful_functions.m
+++ b/useful_functions.m
@@ -120,11 +120,11 @@ function L=Liouville_operator_matrix( ...
% Liouville matrix operator has Nlevels*Nlevels blocks
% which governed by the same modulation frequency
for p_freq_cntr=1:Nfreq
+ p0=1+(p_freq_cntr-1)*rho_size;
+ % we guaranteed to know frequency of final and initial rhoLiouville
+ w1i=rhoLiouville_w(p0); % final
for s_freq_cntr=1:Nfreq
- p0=1+(p_freq_cntr-1)*rho_size;
s0=1+(s_freq_cntr-1)*rho_size;
- % we guaranteed to know frequency of final and initial rhoLiouville
- w1i=rhoLiouville_w(p0); % final
w_jk=modulation_freq(w1i);
w2i=rhoLiouville_w(s0); % initial
w_mn=modulation_freq(w2i);