 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% .m script of web demo "On-the-fly Polar Code Bit-Error-Rate Simulations" 
% Written for GNU Octave
% 
% INSTITUTE OF TELECOMMUNICATIONS  
% University of Stuttgart 
% www.inue.uni-stuttgart.de 
% author: Benedikt Leible   
% date: 14.11.2016
%
% Note that source codes pertaining the Institute's current
% research collaborations are (in most cases) not public.
%
% For enquiries, you may contact:
% Sebastian Cammerer            : sebastian.cammerer@inue.uni-stuttgart.de
% Prof. Stephan ten Brink	: tenbrink@inue.uni-stuttgart.de  
%    
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function webdemo_polar_dec_wrapper(...
         decoder_type,...                               
	 L,... 
         n,...
         r,...
         code_design,...
         design_snr,...
         use_custom_frozen_bits,...
         simTime,...
	 maxIter,...
	 eb_no,...
	 show_fer,...
	 plot_cap,...
	 uploadfile1,...
         filename)
       addpath(genpath("./sourcecode/"));

       ber_sim_polar_dec(decoder_type,...                               
	 L,... 
         n,...
         r,...
         code_design,...
         design_snr,...
         use_custom_frozen_bits,...
         simTime,...
	 maxIter,...
	 eb_no,...
	 show_fer,...
	 plot_cap,...
	 uploadfile1,...
         filename);

end
