summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2010-05-15 03:38:11 +0000
committerEugeniy Mikhailov <evgmik@gmail.com>2010-05-15 03:38:11 +0000
commit50603bb22095291dc0efea81c517cb686b3dda6b (patch)
tree8870f030231350eb4dafcb43fca997b16602dda0
parent1ebe1d578961c95a38a7b00cd1c2a5835ea6da54 (diff)
downloadmulti_mode_eit-50603bb22095291dc0efea81c517cb686b3dda6b.tar.gz
multi_mode_eit-50603bb22095291dc0efea81c517cb686b3dda6b.zip
indexing compatible with octave 3.2.4
-rw-r--r--useful_functions.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/useful_functions.m b/useful_functions.m
index 842f0fa..eb3e880 100644
--- a/useful_functions.m
+++ b/useful_functions.m
@@ -33,11 +33,11 @@ function [N, rhoLiouville_w, rhoLiouville_r, rhoLiouville_c]=unfold_density_matr
rhoLiouville_c=zeros(N,1);
w=1:Nfreq;
- w_tmplate(:)=repmat(w,rho_size,1);
- rhoLiouville_w=w_tmplate';
+ w_tmplate=(repmat(w,rho_size,1))(:);
+ rhoLiouville_w=w_tmplate;
r=1:Nlevels;
- r_tmplate(:)=repmat(r,Nlevels,1);
- rhoLiouville_r(:)=repmat(r_tmplate',Nfreq,1);
+ r_tmplate=(repmat(r,Nlevels,1))(:);
+ rhoLiouville_r=(repmat(r_tmplate,Nfreq,1))(:)';
c=(1:Nlevels)';% hold column value of rho_rc
rhoLiouville_c=repmat(c,Nfreq*Nlevels,1);
endfunction