diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2011-11-16 17:52:16 -0500 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2020-09-21 16:29:52 -0400 |
commit | 7867fb3c58ef934a09ae3841da1b232690d36d00 (patch) | |
tree | 8fe3530a0f047322584041477abdffa9e2b4c704 | |
parent | f25ef4ac36b03b1c4e26ef0aa14905734c2db9fe (diff) | |
download | multi_mode_eit-7867fb3c58ef934a09ae3841da1b232690d36d00.tar.gz multi_mode_eit-7867fb3c58ef934a09ae3841da1b232690d36d00.zip |
added tasks result post processor
-rw-r--r-- | faraday/tasks_pp.m | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/faraday/tasks_pp.m b/faraday/tasks_pp.m new file mode 100644 index 0000000..bc81b07 --- /dev/null +++ b/faraday/tasks_pp.m @@ -0,0 +1,19 @@ + +fnames=glob('results/*.mat'); + +Nsteps=length(fnames) +B_field=zeros(1,Nsteps); +xi_linear=zeros(1,Nsteps); +xi_left=zeros(1,Nsteps); +xi_right=zeros(1,Nsteps); + +% read the information from resulting files +for i=1:Nsteps + d=load(fnames{i}); + B_field(i)=d.B_field; + xi_linear(i)=d.xi_linear; + xi_left(i)=d.xi_left; + xi_right(i)=d.xi_right; +endfor + +plot(B_field, real(xi_right+xi_left)); |