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: convertToMeasPara.m
    path of file: ./repos/CS_MoCo_LAB/reconstruction/matlab/CS_LAB_matlab/preproc
    
    the code of the file until where you have to start completion: function measPara = convertToMeasPara( drecksMDH, measPara )
%CONVERTTOMEASPARA convert from drecksMDH 2.0-struct to measPara-struct,
% but measPara-struct now contains just all needed variables
%
% (c) Thomas Kuestner

    
function measPara = convertToMeasPara( drecksMDH, measPara )
%CONVERTTOMEASPARA convert from drecksMDH 2.0-struct to measPara-struct,
% but measPara-struct now contains just all needed variables
%
% (c) Thomas Kuestner
% ---------------------------------------------------------------------

if(drecksMDH.Seq.Is3D)
    measPara.dimensionSeq = '3D';
else
    measPara.dimensionSeq = '2D';
end