You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: Sync_Beats.m
    path of file: ./repos/ECGdeli/ECG_Processing
    
    the code of the file until where you have to start completion: % -------------------------------------------------------
%
%    Sync_Beats  - Synchronize FPTs comming from different channels of the same signal
%
%    Ver. 1.0.0
%
%    Created:           Nicolas Pilia (22.06.2020)
%    Last modified:     Claudia Nagel (29.06.2020)
%
%    Institute of Bio
    
function is used to synchronize FPTs comming from different channels 
% of the same signal. The classes of the QRS complexes are not synchronized.
% Every FPT must be placed in the cell array FPT_Cell.
%
% Inputs:
%       FPT_Cell: FPT Cell Array
%       samplerate: sampling frequency in Hz
%
% Outputs:
%       FPT_Synced: synchronized FPT
%       FPT_Cell_Synced: FPTs of all available channels with deleted beats
%           that were removed by the synchronization
%
% Example Usage:
%       [FPT_Synced,FPT_Cell_Synced]=Sync_Beats(FPT_Cell,250)
%
% Revision history:
%
%

function [FPT_Synced,FPT_Cell_Synced]=Sync_Beats(FPT_Cell,samplerate)

disp('Syncing beats...');

%Number of channels
N_Channels=length(FPT_Cell);

%Check for the size of FPT_Cell
if N_Channels==1
    disp('Only one channel present in structure. No synchronization of channels needed.');
    FPT_Synced=FPT_Cell{1};
    FPT_Cell_Synced=FPT_Cell;
    return
end