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: quadcopter_ex02_motor_sweep_code.m
    path of file: ./repos/Quadcopter-Drone-Model-Simscape/Workflows/Workshop/Ex_02_Motor_Sweep
    
    the code of the file until where you have to start completion: %% Use Parallel Computing and Fast Restart to sweep parameter value
% Copyright 2021-2023 The MathWorks, Inc.

% Move to folder where script is saved
cd(fileparts(whic
    
function plot_sim_res_batt(simInput,simOut)

% Create/Reuse figure and define handle in workspace
fig_handle_name =   'h5_quadcopter_propeller_test_harness_pct_mass';

handle_var = evalin('base',['who(''' fig_handle_name ''')']);
if(isempty(handle_var))
    evalin('base',[fig_handle_name ' = figure(''Name'', ''' fig_handle_name ''');']);
elseif ~isgraphics(evalin('base',handle_var{:}))
    evalin('base',[fig_handle_name ' = figure(''Name'', ''' fig_handle_name ''');']);
end