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: UPVRobotCreateRectanglePanel.m
    path of file: ./repos/A-Lab/include/Measurements/Special Research - UPV Robot/UI/Geometric Coords Panels
    
    the code of the file until where you have to start completion: function UPVRobotCreateRectanglePanel(app)
% Copyright (C) Jose M. Requena Plens 
% joreple@upv.es - jmrplens.github.io

% Create UPVRobotGeometricRectanPanel
app.ExtUI.UPVRobotGeometricRectanPanel = uipanel(app.ExtUI.UPVRobotLeftPanelMeasurementGeometricGrid);
app.ExtUI.UPVRobotGeometricRectanPanel.BackgroundColor = [1 1 1];
app.ExtUI.UPVRobotGeometricRectanPanel.Layout.Row = 2;
app.ExtUI.UPVRobotGeometricRectanPanel.Layout.Column = [1 2];

    
function UPVRobotCreateRectanglePanel(app)
% Copyright (C) Jose M. Requena Plens 
% joreple@upv.es - jmrplens.github.io

% Create UPVRobotGeometricRectanPanel
app.ExtUI.UPVRobotGeometricRectanPanel = uipanel(app.ExtUI.UPVRobotLeftPanelMeasurementGeometricGrid);
app.ExtUI.UPVRobotGeometricRectanPanel.BackgroundColor = [1 1 1];
app.ExtUI.UPVRobotGeometricRectanPanel.Layout.Row = 2;
app.ExtUI.UPVRobotGeometricRectanPanel.Layout.Column = [1 2];

% Create UPVRobotGeometricRectanGrid
app.ExtUI.UPVRobotGeometricRectanGrid = uigridlayout(app.ExtUI.UPVRobotGeometricRectanPanel);
app.ExtUI.UPVRobotGeometricRectanGrid.ColumnWidth = {'fit', '1x', '1x', '1x'};
app.ExtUI.UPVRobotGeometricRectanGrid.RowHeight = {'fit', 1, 'fit', 'fit', 1, 'fit', 'fit'};
app.ExtUI.UPVRobotGeometricRectanGrid.BackgroundColor = [1 1 1];

% Create UPVRobotGeometricRectanPlaneDropDownLabel
app.ExtUI.UPVRobotGeometricRectanPlaneDropDownLabel = uilabel(app.ExtUI.UPVRobotGeometricRectanGrid);
app.ExtUI.UPVRobotGeometricRectanPlaneDropDownLabel.HorizontalAlignment = 'right';
app.ExtUI.UPVRobotGeometricRectanPlaneDropDownLabel.Layout.Row = 1;
app.ExtUI.UPVRobotGeometricRectanPlaneDropDownLabel.Layout.Column = [1 2];
app.ExtUI.UPVRobotGeometricRectanPlaneDropDownLabel.Text = 'Plane';

% Create UPVRobotGeometricRectanPlaneDropDown
app.ExtUI.UPVRobotGeometricRectanPlaneDropDown = uidropdown(app.ExtUI.UPVRobotGeometricRectanGrid);
app.ExtUI.UPVRobotGeometricRectanPlaneDropDown.ValueChangedFcn = {@UPVRobotParameterGeometricRectanChanged,app};
app.ExtUI.UPVRobotGeometricRectanPlaneDropDown.Items = {'XY', 'XZ', 'YZ'};
app.ExtUI.UPVRobotGeometricRectanPlaneDropDown.Layout.Row = 1;
app.ExtUI.UPVRobotGeometricRectanPlaneDropDown.Layout.Column = [3 4];
app.ExtUI.UPVRobotGeometricRectanPlaneDropDown.Value = 'XY';
if ~isempty(app.ExtVar.UPVRobot.GeometricCoords.Plane) && ~strcmp(app.ExtVar.UPVRobot.GeometricCoords.Plane,'3D')
    app.ExtUI.UPVRobotGeometricRectanPlaneDropDown.Value = app.ExtVar.UPVRobot.GeometricCoords.Plane;
else
    app.ExtVar.UPVRobot.GeometricCoords.Plane = app.ExtUI.UPVRobotGeometricRectanPlaneDropDown.Value;
end