function PrepareData(NAME,DATA,t,Period,MidTransit,Inclination,LLD,QLD,ap,p)

E=struct;

E=struct;
%%
E.NAME= NAME;%Name of the experiment which will coincide with the one of the results folder.
E.N=size(DATA,1);%Number of signals
E.Y=[];%A reference signal (Can be left empty) Size (1, Number of samples)
E.YN=DATA;%List of signals. Size (Number of signals, Number of samples)
E.t=t;%Time in days. Size (1, Number of samples)
E.F=[];%Current signal (used in execution can be left empty)
E.Mag=[];%2.5*log(E.F)/log(10) (used in execution can be left empty)
E.Period= Period;%Initial estimate for period
E.MidTransit= MidTransit;%: Initial estimate for mid transit
E.Inclination= Inclination;%Initial estimate for inclination
E.LLD= LLD;%Initial estimate for linear limb darkening
E.QLD= QLD;%Initial estimate for quadratic limb darkening
E.ap= ap;%Initial estimate for Scaled semi-major axis,
E.p= p;%: Initial estimate for radius ratio
E.FFT_size=2^ceil(log2(size(DATA,2)));%Size of the FFT for the filter 
E.Fit_LP=1;%Estimate limb darkening in the first step (1=YES, 0=No)
E.Fit_MidT=1;%Estimate mid transit in the first step (1=YES, 0=No)
E.Fit_Radius=1;%Estimate radius ratio (Must be 1)
E.Fit_Inclination=1;%Estimate inclination in the first step (1=YES, 0=No)
E.Fit_ScaleFactor=1;%Estimate scale factor in the first step (1=YES, 0=No)
E.Fit_Period=1;%Estimate limb period in the first step (1=YES, 0=No)          
%%
save([E.NAME '.mat'],'E')       