function [response, time] = IFFT_time_resp(Pressure,frequency);

Frequency_Signal = Pressure;

freq_range=frequency;

regen_fft_num = length(Frequency_Signal)-1; %freq_range_FE(352) 

remainder = (round(regen_fft_num/2) - regen_fft_num/2); 

for n=1:1

    SIG = Frequency_Signal(n,:);  
    
    if remainder == 0; 
        % Even number of points assigning the N/2 term == 0 or equating the N/2 term == to the term preceeding the N/2 term
        % 
        A   = SIG(1,1:regen_fft_num+1);
        B   = conj(SIG(1,regen_fft_num+1:-1:2));
        C(1:regen_fft_num+1)   = (A);
        
        %N/2 term
        C(regen_fft_num+2) = 0.00;
        %or 
        %N/2 term
        %C(regen_fft_num+2)  =abs(C(length(A))) ;
        
        C(regen_fft_num+3:2.*regen_fft_num+2) = (B);
        
        % set the DC Term to zero because we know that there should not be a DC term because everything was AC coupled
        % and there is no initial pressure in the cylinder.
        
        C(1) = 0;
        
    else
        
        A = SIG(1,1:regen_fft_num+1);
        B = conj(SIG(1,regen_fft_num+1:-1:2));
        C(1:regen_fft_num+1) = (A);
        C(regen_fft_num+2:2.*regen_fft_num+1) = (B);
        
        % set the DC Term to zero because we know that there should not be a DC term because everything was AC coupled
        % and there is no initial pressure in the cylinder.
        C(1) = 0;
        
    end     

 df = (freq_range(2)-freq_range(1)); %.*length(freq_range);
 dt = 1/(df.*length(C));

data_length = length(C);
 
 regen_time = (0:dt:dt*(data_length-1));

uniform_load_time_strain =  (data_length).*ifft(C);

max(real(uniform_load_time_strain));
min(real(uniform_load_time_strain));

%Press_and_time = plot(regen_time, (real(uniform_load_time_strain)),'-or','Markersize',5);

time = regen_time;
response = real(uniform_load_time_strain);

%hold on
%plot(regen_time, real(Press2_time),'-db','Markersize',5)
end