global Xs Ws MFsf_nega
global counter Cs S
global xxs xxl xxr a
global xxsm xxsl xxsr

global XS3 WS3 XXS3 XXL3 XXR3 XXSM3 XXSL3 XXSR3
global ling3_11 ling3_12 ling3_13 ling3_14
global ling3_21 ling3_22 ling3_23 ling3_24
global ling3_31 ling3_32 ling3_33 ling3_34
global ling3_41 ling3_42 ling3_43 ling3_44
global ling3_51 ling3_52 ling3_53 ling3_54
global ling3_61 ling3_62 ling3_63 ling3_64
global rank3_1 rank3_2 rank3_3 rank3_4 rank3_5
global cen3_1 cen3_2 cen3_3 cen3_4 cen3_5
global sim3_11 sim3_12 sim3_13 sim3_14 sim3_15
global sim3_21 sim3_22 sim3_23 sim3_24 sim3_25
global sim3_31 sim3_32 sim3_33 sim3_34 sim3_35
global sim3_41 sim3_42 sim3_43 sim3_44 sim3_45
global sim3_51 sim3_52 sim3_53 sim3_54 sim3_55

%% 1st Set of Data
global counter
global XS1 WS1 XXS1 XXL1 XXR1 XXSM1 XXSL1 XXSR1
global ling1_11 ling1_12 ling1_13 ling1_14
global ling1_21 ling1_22 ling1_23 ling1_24
global ling1_31 ling1_32 ling1_33 ling1_34
global ling1_41 ling1_42 ling1_43 ling1_44
global ling1_51 ling1_52 ling1_53 ling1_54
global ling1_61 ling1_62 ling1_63 ling1_64
global rank1_1 rank1_2 rank1_3 rank1_4 rank1_5
global cen1_1 cen1_2 cen1_3 cen1_4 cen1_5
global sim1_11 sim1_12 sim1_13 sim1_14 sim1_15
global sim1_21 sim1_22 sim1_23 sim1_24 sim1_25
global sim1_31 sim1_32 sim1_33 sim1_34 sim1_35
global sim1_41 sim1_42 sim1_43 sim1_44 sim1_45
global sim1_51 sim1_52 sim1_53 sim1_54 sim1_55

%% 2nd Set of Data
global XS2 WS2 XXS2 XXL2 XXR2 XXSM2 XXSL2 XXSR2
global ling2_11 ling2_12 ling2_13 ling2_14
global ling2_21 ling2_22 ling2_23 ling2_24
global ling2_31 ling2_32 ling2_33 ling2_34
global ling2_41 ling2_42 ling2_43 ling2_44
global ling2_51 ling2_52 ling2_53 ling2_54
global ling2_61 ling2_62 ling2_63 ling2_64
global rank2_1 rank2_2 rank2_3 rank2_4 rank2_5
global cen2_1 cen2_2 cen2_3 cen2_4 cen2_5
global sim2_11 sim2_12 sim2_13 sim2_14 sim2_15
global sim2_21 sim2_22 sim2_23 sim2_24 sim2_25
global sim2_31 sim2_32 sim2_33 sim2_34 sim2_35
global sim2_41 sim2_42 sim2_43 sim2_44 sim2_45
global sim2_51 sim2_52 sim2_53 sim2_54 sim2_55
%% LINGUISTIC RATINGS AND WEIGHTS
XS3;
WS3;

ling3_11=get(handles.edit3_11, 'string');
ling3_12=get(handles.edit3_12, 'string');
ling3_13=get(handles.edit3_13, 'string');
ling3_14=get(handles.edit3_14, 'string');

ling3_21=get(handles.edit3_21, 'string');
ling3_22=get(handles.edit3_22, 'string');
ling3_23=get(handles.edit3_23, 'string');
ling3_24=get(handles.edit3_24, 'string');

ling3_31=get(handles.edit3_31, 'string');
ling3_32=get(handles.edit3_32, 'string');
ling3_33=get(handles.edit3_33, 'string');
ling3_34=get(handles.edit3_34, 'string');

ling3_41=get(handles.edit3_41, 'string');
ling3_42=get(handles.edit3_42, 'string');
ling3_43=get(handles.edit3_43, 'string');
ling3_44=get(handles.edit3_44, 'string');

ling3_51=get(handles.edit3_51, 'string');
ling3_52=get(handles.edit3_52, 'string');
ling3_53=get(handles.edit3_53, 'string');
ling3_54=get(handles.edit3_54, 'string');

ling3_61=get(handles.edit3_61, 'string');
ling3_62=get(handles.edit3_62, 'string');
ling3_63=get(handles.edit3_63, 'string');
ling3_64=get(handles.edit3_64, 'string');

rank3_1=get(handles.edit3_rank1, 'string');
rank3_2=get(handles.edit3_rank2, 'string');
rank3_3=get(handles.edit3_rank3, 'string'); 
rank3_4=get(handles.edit3_rank4, 'string'); 
rank3_5=get(handles.edit3_rank5, 'string');

cen3_1=str2num(get(handles.edit3_cen1, 'string'));
cen3_2=str2num(get(handles.edit3_cen2, 'string')); 
cen3_3=str2num(get(handles.edit3_cen3, 'string')); 
cen3_4=str2num(get(handles.edit3_cen4, 'string')); 
cen3_5=str2num(get(handles.edit3_cen5, 'string'));

sim3_11=str2num(get(handles.edit3_sim11, 'string'));
sim3_12=str2num(get(handles.edit3_sim12, 'string'));
sim3_13=str2num(get(handles.edit3_sim13, 'string')); 
sim3_14=str2num(get(handles.edit3_sim14, 'string'));
sim3_15=str2num(get(handles.edit3_sim15, 'string'));

sim3_21=str2num(get(handles.edit3_sim21, 'string'));
sim3_22=str2num(get(handles.edit3_sim22, 'string'));
sim3_23=str2num(get(handles.edit3_sim23, 'string')); 
sim3_24=str2num(get(handles.edit3_sim24, 'string'));
sim3_25=str2num(get(handles.edit3_sim25, 'string'));

sim3_31=str2num(get(handles.edit3_sim31, 'string'));
sim3_32=str2num(get(handles.edit3_sim32, 'string'));
sim3_33=str2num(get(handles.edit3_sim33, 'string')); 
sim3_34=str2num(get(handles.edit3_sim34, 'string'));
sim3_35=str2num(get(handles.edit3_sim35, 'string'));

sim3_41=str2num(get(handles.edit3_sim41, 'string'));
sim3_42=str2num(get(handles.edit3_sim42, 'string'));
sim3_43=str2num(get(handles.edit3_sim43, 'string')); 
sim3_44=str2num(get(handles.edit3_sim44, 'string'));
sim3_45=str2num(get(handles.edit3_sim45, 'string'));

sim3_51=str2num(get(handles.edit3_sim51, 'string'));
sim3_52=str2num(get(handles.edit3_sim52, 'string'));
sim3_53=str2num(get(handles.edit3_sim53, 'string')); 
sim3_54=str2num(get(handles.edit3_sim54, 'string'));
sim3_55=str2num(get(handles.edit3_sim55, 'string'));

%% TO PLOT THE RISK & RANK BAND
XXS3;
XXL3;
XXR3;

XXSM3;
XXSL3;
XXSR3;

%% Clear 1st Set of Data
XS1=[]; WS1=[]; XXS1=[]; XXL1=[]; XXR1=[]; XXSM1=[]; XXSL1=[]; XXSR1=[];
ling1_11=[]; ling1_12=[]; ling1_13=[]; ling1_14=[];
ling1_21=[]; ling1_22=[]; ling1_23=[]; ling1_24=[];
ling1_31=[]; ling1_32=[]; ling1_33=[]; ling1_34=[];
ling1_41=[]; ling1_42=[]; ling1_43=[]; ling1_44=[];
ling1_51=[]; ling1_52=[]; ling1_53=[]; ling1_54=[];
ling1_61=[]; ling1_62=[]; ling1_63=[]; ling1_64=[];
rank1_1=[]; rank1_2=[]; rank1_3=[]; rank1_4=[]; rank1_5=[];
cen1_1=[]; cen1_2=[]; cen1_3=[]; cen1_4=[]; cen1_5=[];
sim1_11=[]; sim1_12=[]; sim1_13=[]; sim1_14=[]; sim1_15=[];
sim1_21=[]; sim1_22=[]; sim1_23=[]; sim1_24=[]; sim1_25=[];
sim1_31=[]; sim1_32=[]; sim1_33=[]; sim1_34=[]; sim1_35=[];
sim1_41=[]; sim1_42=[]; sim1_43=[]; sim1_44=[]; sim1_45=[];
sim1_51=[]; sim1_52=[]; sim1_53=[]; sim1_54=[]; sim1_55=[];

%% Put 3rd Set -> 1st
%%% 3rd Set of Data
XS1=XS3; WS1=WS3; XXS1=XXS3; XXL1=XXL3; XXR1=XXR3; XXSM1=XXSM3; XXSL1=XXSL3; XXSR1=XXSR3;
ling1_11=ling3_11; ling1_12=ling3_12; ling1_13=ling2_13; ling1_14=ling2_14;
ling1_21=ling3_21; ling1_22=ling2_22; ling1_23=ling2_23; ling1_24=ling2_24;
ling1_31=ling3_31; ling1_32=ling3_32; ling1_33=ling2_33; ling1_34=ling2_34;
ling1_41=ling3_41; ling1_42=ling3_42; ling1_43=ling2_43; ling1_44=ling2_44;
ling1_51=ling3_51; ling1_52=ling3_52; ling1_53=ling2_53; ling1_54=ling2_54;
ling1_61=ling3_61; ling1_62=ling3_62; ling1_63=ling2_63; ling1_64=ling2_64;
rank1_1=rank2_1; rank1_2=rank2_2; rank1_3=rank2_3; rank1_4=rank2_4; rank1_5=rank2_5;
cen1_1=cen2_1; cen1_2=cen2_2; cen1_3=cen2_3; cen1_4=cen2_4; cen1_5=cen2_5;
sim1_11=sim2_11; sim1_12=sim2_12; sim1_13=sim2_13; sim1_14=sim2_14; sim1_15=sim2_15;
sim1_21=sim2_21; sim1_22=sim2_22; sim1_23=sim2_23; sim1_24=sim2_24; sim1_25=sim2_25;
sim1_31=sim2_31; sim1_32=sim2_32; sim1_33=sim2_33; sim1_34=sim2_34; sim1_35=sim2_35;
sim1_41=sim2_41; sim1_42=sim2_42; sim1_43=sim2_43; sim1_44=sim2_44; sim1_45=sim2_45;
sim1_51=sim2_51; sim1_52=sim2_52; sim1_53=sim2_53; sim1_54=sim2_54; sim1_55=sim2_55;