https://github.com/entron/snake-dmrg
Raw File
Tip revision: 458952053f581046be8a21c8cc1e894b0228f926 authored by Cheng Guo on 05 December 2012, 22:55:28 UTC
Splitted a long function.
Tip revision: 4589520
plotsigmaz.m
sigmaz=0;
tau=0.5;
T=2000;
tarray=tau:tau:T;

folderlist=dir('ratio1.68*');
n=length(folderlist);
for k=1:n
filename=strcat(folderlist(k).name,'/results/sigmaz_t.dat');
if exist(filename)
    r=load(filename);
    sigmaz=sigmaz+r;
end
end

sigmaz=sigmaz/n;
plot(tarray,sigmaz,'-o');
back to top