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: createSideBySide.m
    path of file: ./repos/ciatah/+ciapkg/+api
    
    the code of the file until where you have to start completion: function [outputMovie] = createSideBySide(primaryMovie,secondaryMovie,varargin)

    
function [outputMovie] = createSideBySide(primaryMovie,secondaryMovie,varargin)
	% Auto-create side-by-side, either save output as hdf5 or return a matrix
	% Biafra Ahanonu
	% started: 2014.01.04 (code taken from controllerAnalysis)
	% inputs
		% primaryMovie - string pointing to the video file (.avi, .tif, or .hdf5 supported, auto-detects based on extension) OR a matrix
		% secondaryMovie - string pointing to the video file (.avi, .tif, or .hdf5 supported, auto-detects based on extension) OR a matrix
	% outputs
		% outputMovie - horizontally concatenated movie


	[outputMovie] = ciapkg.video.createSideBySide(primaryMovie,secondaryMovie,'passArgs', varargin);
end