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: bench_plot.m
    path of file: ./repos/OPTI/Utilities/opti
    
    the code of the file until where you have to start completion: function bench_plot(times,res,solvers,prob)
%BENCH_PLOT  Plot the results of a benchmark test
%
% bench_plot(times,res,solvers,prob) not intended to be called by a user -
% use optiBench.

%   Copyright (C) 2011 Jonathan Currie (Control Engineering)

nS = length(solvers);   % Number of Solvers
nP = length(times{1});  % Number of Test problems

tol = 1e-4;

%Determine maximum time for normalizing

    
function bench_plot(times,res,solvers,prob)
%BENCH_PLOT  Plot the results of a benchmark test
%
% bench_plot(times,res,solvers,prob) not intended to be called by a user -
% use optiBench.

%   Copyright (C) 2011 Jonathan Currie (Control Engineering)

nS = length(solvers);   % Number of Solvers
nP = length(times{1});  % Number of Test problems

tol = 1e-4;

%Determine maximum time for normalizing
maxT = 0;
for i = 1:nS
    s = sum(times{i});
    if(s > maxT), maxT = s; end