diff options
Diffstat (limited to 'useful_functions.m')
-rw-r--r-- | useful_functions.m | 8 |
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 |