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: extractMultipleQRS.m
    path of file: ./repos/arrhythmia-ecg-analysis-pds/Code/matlab
    
    the code of the file until where you have to start completion: function arrhythmiaMultipleQRS = extractMultipleQRS(arrhythmiaPeriods, sizeEcgSig, timeEcgSig, ecgsig, tmSeg, sample, arrhythmiaType)

% usage: arrhythmiaMultipleQRS = extractMultipleQRS(arrhythmiaPeriods, 650000, 1820, ecgsig, tmSeg, '200m', 'VT')
%

    
function arrhythmiaMultipleQRS = extractMultipleQRS(arrhythmiaPeriods, sizeEcgSig, timeEcgSig, ecgsig, tmSeg, sample, arrhythmiaType)

% usage: arrhythmiaMultipleQRS = extractMultipleQRS(arrhythmiaPeriods, 650000, 1820, ecgsig, tmSeg, '200m', 'VT')
%
% This function extract multiples QRS wave,
% which may or not contain signal arrhytmias.
%
% arrhythmiaMultipleQRS{i,1} equals to the QRS extracted signal
% arrhythmiaMultipleQRS{i,2} equals to the QRS extracted time
% arrhythmiaMultipleQRS{i,3} equals to arrhythmia type sample
%

% Last version
% extractMultipleQRS.m           D. Kawasaki			16 June 2017
% 		      Davi Kawasaki	       16 June 2017 version 1.0

periodInterval = sizeEcgSig/timeEcgSig;

arrhythmiaMultipleQRS = {};
qrsScaleStart = 2;
qrsScaleEnd = 1;

% Increase the right period	in Ventricular bigeminy cases
if(arrhythmiaType == 'B')
    qrsScaleStart = 2;
    qrsScaleEnd = 2;
elseif(arrhythmiaType == 'T')
    qrsScaleStart = 1;
    qrsScaleEnd = 2.1;
end