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

% Axes
axFreq = app.ExtUI.UPVRobotPostProcessFreq1DSPLUIaxes;
axDist = app.ExtUI.UPVRobotPostProcessFreq1DDistanceUIaxes;

cla(axFreq,'reset')
cla(axDist,'reset')

% ===========================================
% Coords
coords = app.ExtVar.UPVRobotPostProcess.Coords;

% Selected points
idxP = app.ExtVar.UPVRobotPostProcess.SelectedPoints;


% Frequency data
switch app.ExtVar.UPVRobotPostProcess.DataSource
    
    case 'IR'
        % FR mat file
        mat = app.ExtVar.UPVRobotPostProcess.FreqResp;
        
        % Get SPL from selected points
        Faux = mat.Data(:,1);
        F = zeros(size(Faux,1),numel(idxP));
        switch app.ExtVar.UPVRobotPostProcess.Multicore

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

% Axes
axFreq = app.ExtUI.UPVRobotPostProcessFreq1DSPLUIaxes;
axDist = app.ExtUI.UPVRobotPostProcessFreq1DDistanceUIaxes;

cla(axFreq,'reset')
cla(axDist,'reset')

% ===========================================
% Coords
coords = app.ExtVar.UPVRobotPostProcess.Coords;

% Selected points
idxP = app.ExtVar.UPVRobotPostProcess.SelectedPoints;


% Frequency data
switch app.ExtVar.UPVRobotPostProcess.DataSource
    
    case 'IR'
        % FR mat file
        mat = app.ExtVar.UPVRobotPostProcess.FreqResp;
        
        % Get SPL from selected points
        Faux = mat.Data(:,1);
        F = zeros(size(Faux,1),numel(idxP));
        switch app.ExtVar.UPVRobotPostProcess.Multicore
            case 0 % Single core
                for i = 1:numel(idxP)
                    F(:,i) = readmat(mat,idxP(i));
                end