close all
clear all
clc

tic

no_of_modes = 35

for k=1:no_of_modes
     eval(sprintf('load C:\\School_work\\ESM_4714\\Hoop_Strain_mode_%d;',k))
     eval(sprintf('load C:\\School_work\\ESM_4714\\Long_Strain_mode_%d;',k))

     if k==1
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_1.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_1.txt',Avg_Long_Strain,'\t')
    elseif k==2
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_2.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_2.txt',Avg_Long_Strain,'\t')
    elseif k==3
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_3.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_3.txt',Avg_Long_Strain,'\t')
    elseif k==4
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_4.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_4.txt',Avg_Long_Strain,'\t')
    elseif k==5
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_5.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_5.txt',Avg_Long_Strain,'\t')
    elseif k==6
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_6.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_6.txt',Avg_Long_Strain,'\t')    
    elseif k==7
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_7.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_7.txt',Avg_Long_Strain,'\t')
    elseif k==8
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_8.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_8.txt',Avg_Long_Strain,'\t')
    elseif k==9
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_9.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_9.txt',Avg_Long_Strain,'\t')
     elseif k==10
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_10.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_10.txt',Avg_Long_Strain,'\t') 
     elseif k==11
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_11.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_11.txt',Avg_Long_Strain,'\t')
     elseif k==12
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_12.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_12.txt',Avg_Long_Strain,'\t')
     elseif k==13
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_13.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_13.txt',Avg_Long_Strain,'\t')
     elseif k==14
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_14.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_14.txt',Avg_Long_Strain,'\t')
     elseif k==15
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_15.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_15.txt',Avg_Long_Strain,'\t')
     elseif k==16
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_16.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_16.txt',Avg_Long_Strain,'\t')
     elseif k==17
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_17.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_17.txt',Avg_Long_Strain,'\t')
     elseif k==18
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_18.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_18.txt',Avg_Long_Strain,'\t')
     elseif k==19
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_19.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_19.txt',Avg_Long_Strain,'\t')
     elseif k==20
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_20.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_20.txt',Avg_Long_Strain,'\t')
     elseif k==21
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_21.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_21.txt',Avg_Long_Strain,'\t')
     elseif k==22
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_22.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_22.txt',Avg_Long_Strain,'\t')
     elseif k==23
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_23.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_23.txt',Avg_Long_Strain,'\t')
     elseif k==24
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_24.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_24.txt',Avg_Long_Strain,'\t')
     elseif k==25
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_25.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_25.txt',Avg_Long_Strain,'\t')
     elseif k==26
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_26.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_26.txt',Avg_Long_Strain,'\t')
    elseif k==27
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_27.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_27.txt',Avg_Long_Strain,'\t')
     elseif k==28
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_28.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_28.txt',Avg_Long_Strain,'\t')
     elseif k==29
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_29.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_29.txt',Avg_Long_Strain,'\t')
     elseif k==30
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_30.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_30.txt',Avg_Long_Strain,'\t')
     elseif k==31
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_31.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_31.txt',Avg_Long_Strain,'\t')
     elseif k==32
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_32.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_32.txt',Avg_Long_Strain,'\t')
     elseif k==33
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_33.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_33.txt',Avg_Long_Strain,'\t')
     elseif k==34
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_34.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_Strain_mode_34.txt',Avg_Long_Strain,'\t')
     elseif k==35
        dlmwrite('C:\School_work\ESM_4714\Hoop_Strain_mode_35.txt',Avg_Hoop_Strain,'\t')
        dlmwrite('C:\School_work\ESM_4714\Long_strain_mode_35.txt',Avg_Long_Strain,'\t')
    end
    
end

toc