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: MotorDriveUnit_loadSimulationCase.m
    path of file: ./repos/Simscape-Battery-Electric-Vehicle-Model/Components/MotorDriveUnit/Utility/Configuration
    
    the code of the file until where you have to start completion: function MotorDriveUnit_loadSimulationCase(nvpairs)
%% Sets up simulation
% This function sets up the followings:
% - Simulation stop time
% - Input signals
% - Initial conditions
%
% Model must be loaded for this function to work.

% Copyright 2023 The MathWorks, Inc.

arguments
  nvpairs.CaseName {mustBeTextScalar} = "Default"

  nvpairs.ModelName {mustBeTextScalar} = "MotorDriveUnit_harness_model"

  nvpairs.StopTime (1,1) {mustBePositive} = 10

  nvpairs.InputSystemPath {mustBeTextScalar} = "/Inputs"

  nvpairs.AxleClutchSwitch_BlockName {mustBeTextScalar} = "Axle clutch switch"
  nvpairs.AxleClutchSwitch_DataPoints (:,2) double = [0 0; 1 0]

  nvpairs.AxleSpeed_BlockName {mustBeTextScalar} = "Axle speed"
  nvpairs.AxleSpeed_DataPoints (:,3) double = [0 1 0]
  nvpairs.AxleSpeed_DeltaT (1,1) {mustBePositive} = 0.1

  nvpairs.AxleTorque_BlockName {mustBeTextScalar} = "Axle torque"
  nvpairs.AxleTorque_DataPoints (:,3) double = [0 1 0]
  nvpairs.AxleTorque_DeltaT (1,1) {mustBePositive} = 0.1

  nvpairs.MotorTorqueCommand_BlockName {mustBeTextScalar} = "Motor torque command"
  nvpairs.MotorTorqueCommand_DataPoints (:,3) double = [0 1 0]
  nvpairs.MotorTorqueCommand_DeltaT (1,1) {mustBePositive} = 0.1

  nvpairs.HeatFlowCommand_BlockName {mustBeTextScalar} = "Heat flow command"
  nvpairs.HeatFlowCommand_DataPoints (:,3) double = [0 1 0]
  nvpairs.HeatFlowCommand_DeltaT (1,1) {mustBePositive} = 0.1

  nvpairs.LoadInertia_kg_m2 (1,1) {mustBePositive} = 100*0.3^2
  nvpairs.LoadDamping_Nm_per_rpm (1,1) {mustBePositive} = 0.03

  nvpairs.GeartrainInertia_kg_m2 (1,1) {mustBePositive} = 15*0.3^2
  nvpairs.GeartrainDamping_Nm_per_rpm (1,1) {mustBePositive} = 0.001

  nvpairs.HVBattery_Voltage_V (1,1) {mustBePositive} = 340
  nvpairs.HVBattery_TerminalResistance_Ohm (1,1) {mustBePositive} = 0.01

  nvpairs.Initial_LoadInertiaSpd_rpm (1,1) double = 0;
  nvpairs.Initial_MotorDriveUnit_RotorSpd_rpm (1,1) double = 0;
  nvpairs.Initial_MotorDriveUnit_Temperature_K (1,1) {mustBePositive} = 273.15 + 20
  nvpairs.Initial_AmbientTemperature_K (1,1) {mustBePositive} = 273.15 + 20

  nvpairs.DisplayMessage (1,1) logical = true
end

dispMsg = nvpairs.DisplayMessage;

if dispMsg
  disp("Setting up simulation...")
  disp("Simulation case: " + nvpairs.CaseName)
end

mdl = nvpairs.ModelName;


    
function MotorDriveUnit_loadSimulationCase(nvpairs)
%% Sets up simulation
% This function sets up the followings:
% - Simulation stop time
% - Input signals
% - Initial conditions
%
% Model must be loaded for this function to work.

% Copyright 2023 The MathWorks, Inc.

arguments
  nvpairs.CaseName {mustBeTextScalar} = "Default"

  nvpairs.ModelName {mustBeTextScalar} = "MotorDriveUnit_harness_model"

  nvpairs.StopTime (1,1) {mustBePositive} = 10

  nvpairs.InputSystemPath {mustBeTextScalar} = "/Inputs"

  nvpairs.AxleClutchSwitch_BlockName {mustBeTextScalar} = "Axle clutch switch"
  nvpairs.AxleClutchSwitch_DataPoints (:,2) double = [0 0; 1 0]

  nvpairs.AxleSpeed_BlockName {mustBeTextScalar} = "Axle speed"
  nvpairs.AxleSpeed_DataPoints (:,3) double = [0 1 0]
  nvpairs.AxleSpeed_DeltaT (1,1) {mustBePositive} = 0.1

  nvpairs.AxleTorque_BlockName {mustBeTextScalar} = "Axle torque"
  nvpairs.AxleTorque_DataPoints (:,3) double = [0 1 0]
  nvpairs.AxleTorque_DeltaT (1,1) {mustBePositive} = 0.1

  nvpairs.MotorTorqueCommand_BlockName {mustBeTextScalar} = "Motor torque command"
  nvpairs.MotorTorqueCommand_DataPoints (:,3) double = [0 1 0]
  nvpairs.MotorTorqueCommand_DeltaT (1,1) {mustBePositive} = 0.1

  nvpairs.HeatFlowCommand_BlockName {mustBeTextScalar} = "Heat flow command"
  nvpairs.HeatFlowCommand_DataPoints (:,3) double = [0 1 0]
  nvpairs.HeatFlowCommand_DeltaT (1,1) {mustBePositive} = 0.1

  nvpairs.LoadInertia_kg_m2 (1,1) {mustBePositive} = 100*0.3^2
  nvpairs.LoadDamping_Nm_per_rpm (1,1) {mustBePositive} = 0.03

  nvpairs.GeartrainInertia_kg_m2 (1,1) {mustBePositive} = 15*0.3^2
  nvpairs.GeartrainDamping_Nm_per_rpm (1,1) {mustBePositive} = 0.001

  nvpairs.HVBattery_Voltage_V (1,1) {mustBePositive} = 340
  nvpairs.HVBattery_TerminalResistance_Ohm (1,1) {mustBePositive} = 0.01

  nvpairs.Initial_LoadInertiaSpd_rpm (1,1) double = 0;
  nvpairs.Initial_MotorDriveUnit_RotorSpd_rpm (1,1) double = 0;
  nvpairs.Initial_MotorDriveUnit_Temperature_K (1,1) {mustBePositive} = 273.15 + 20
  nvpairs.Initial_AmbientTemperature_K (1,1) {mustBePositive} = 273.15 + 20

  nvpairs.DisplayMessage (1,1) logical = true
end

dispMsg = nvpairs.DisplayMessage;

if dispMsg
  disp("Setting up simulation...")
  disp("Simulation case: " + nvpairs.CaseName)
end

mdl = nvpairs.ModelName;

t_end = nvpairs.StopTime;

if dispMsg
  disp("Setting simulation stop time to " + t_end + " sec.")
end

set_param(mdl, StopTime = num2str(t_end));

if dispMsg
  disp("Setting block parameters...")
end