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_plotEfficiency.m
    path of file: ./repos/Simscape-Battery-Electric-Vehicle-Model/Components/MotorDriveUnit/Utility
    
    the code of the file until where you have to start completion: function fig = MotorDriveUnit_plotEfficiency(nvpairs)
%% Makes a plot of power conversion efficiency/losses for motor drive unit
% This function takes arguments corresponding to block parameters
% of the following blocks:
%
%   - Motor & Drive block, from Simscape Driveline
%   - Motor & Drive (System Level) block, from Simscape Electrical
%
% and makes a plot of electric-to-mechanical power conversion efficiency map
% as a function of motor speed and torque.
%
% You can run this function without arguments,
% and it will create a plot using default argument values.
%
% No that Motor & Drive (System Level) block supports
% various ways to accept block parameters, but
% this function makes a plot for it assuming the following case:
%
%   Electrical Torque
%     - Parameterized by: Maximum torque and power
%   Electrical Losses
%     - Parameterize losses by: Single efficiency measurement
%
% To make an efficiency plot for other cases
% in Motor & Drive (System Level) block,
% use the "Plot efficiency map" link in the block Description.

% Copyright 2021-2023 The MathWorks, Inc.

arguments
  % In road vehicle applications,
  % maximum motor speed is determined by vehicle top speed,
  % tire rolling radius, and reduction gear ratio. 
  nvpairs.MaxSpeed_rpm (1,1) double {mustBePositive} = 17000

  nvpairs.MaxTorque_Nm (1,1) double {mustBePositive} = 163
  nvpairs.MaxPower_kW (1,1) double {mustBePositive} = 53

  nvpairs.Efficiency_pct (1,1) double {mustBePositive} = 95
  nvpairs.Speed_measured_rpm (1,1) double {mustBeNonnegative} = 2000
  nvpairs.Torque_measured_Nm (1,1) double {mustBeNonnegative} = 50

    
function fig = MotorDriveUnit_plotEfficiency(nvpairs)
%% Makes a plot of power conversion efficiency/losses for motor drive unit
% This function takes arguments corresponding to block parameters
% of the following blocks:
%
%   - Motor & Drive block, from Simscape Driveline
%   - Motor & Drive (System Level) block, from Simscape Electrical
%
% and makes a plot of electric-to-mechanical power conversion efficiency map
% as a function of motor speed and torque.
%
% You can run this function without arguments,
% and it will create a plot using default argument values.
%
% No that Motor & Drive (System Level) block supports
% various ways to accept block parameters, but
% this function makes a plot for it assuming the following case:
%
%   Electrical Torque
%     - Parameterized by: Maximum torque and power
%   Electrical Losses
%     - Parameterize losses by: Single efficiency measurement
%
% To make an efficiency plot for other cases
% in Motor & Drive (System Level) block,
% use the "Plot efficiency map" link in the block Description.

% Copyright 2021-2023 The MathWorks, Inc.

arguments
  % In road vehicle applications,
  % maximum motor speed is determined by vehicle top speed,
  % tire rolling radius, and reduction gear ratio. 
  nvpairs.MaxSpeed_rpm (1,1) double {mustBePositive} = 17000

  nvpairs.MaxTorque_Nm (1,1) double {mustBePositive} = 163
  nvpairs.MaxPower_kW (1,1) double {mustBePositive} = 53

  nvpairs.Efficiency_pct (1,1) double {mustBePositive} = 95
  nvpairs.Speed_measured_rpm (1,1) double {mustBeNonnegative} = 2000
  nvpairs.Torque_measured_Nm (1,1) double {mustBeNonnegative} = 50

  % In Motor & Drive block from Simscape Driveline,
  % iron loss, constant electrical loss, and rotor friction are not modelled,
  % i.e., they are 0. 
  nvpairs.IronToNominalLossRatio_pct (1,1) double {mustBeNonnegative} = 0.1
  nvpairs.FixedLoss_W (1,1) double {mustBeNonnegative} = 40
  nvpairs.RotorDamping_Nm_per_radps (1,1) double {mustBeNonnegative} = 0.05

  % Contour levels need 3 or more points for lower bound, upper bound,
  % and one or more points in between.
  nvpairs.ContourLevels_pct (1,:) double {mustBeNonnegative} = [1 60 80 90 92 94 96 97 98 99]

  nvpairs.PlotResolution (1,1) {mustBeInteger, mustBePositive} = 500
end