https://github.com/entron/snake-dmrg
Raw File
Tip revision: 5581575de60596a13ea45e4ac96e981b761d95c0 authored by Cheng Guo on 18 March 2015, 18:47:37 UTC
Update README.md
Tip revision: 5581575
plotvisibility.m
rdm=0;
tau=0.5;
T=100;
tarray=tau:tau:T;

folderlist=dir('Lambda*BathL*z*');
n=length(folderlist);
for k=1:n
filename=strcat(folderlist(k).name,'/results/rdm.dat');
if exist(filename)
    r=load(filename);
    rdm=rdm+r;
end
end

rdm=rdm/n;
plot(tarray,sqrt(rdm(:,1).^2+rdm(:,2).^2),'-o');
back to top