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: qGetRotQuaternion.m
    path of file: ./repos/CutAndDisplace/SharedFunctions/Quats
    
    the code of the file until where you have to start completion: function Q = qGetRotQuaternion( teta, rotationVector )
% qCreateRotQuaternion: outputs a quaternion which is used to perform
% rotation
% Q = qGetRotQuaternion( teta, rotationVector )
% IN: 
%     teta - rotation angle
%     rotationVector - vector around which the rotation will be performed
% 
% OUT:
%     Q - rotation quaternion

    
function Q = qGetRotQuaternion( teta, rotationVector )
% qCreateRotQuaternion: outputs a quaternion which is used to perform
% rotation
% Q = qGetRotQuaternion( teta, rotationVector )
% IN: 
%     teta - rotation angle
%     rotationVector - vector around which the rotation will be performed
% 
% OUT:
%     Q - rotation quaternion
%     
% VERSION: 03.03.2012

norm = sqrt(sum( rotationVector .* rotationVector ));
if( numel( rotationVector ) ~= 3 )
    fprintf( 'rotationVector should have 3 coordinates!\r' );
    return;
end