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: plot_ranking.m
    path of file: ./repos/toolkit-legacy/report
    
    the code of the file until where you have to start completion: function handle = plot_ranking(trackers, accuracy, robustness, varargin)
% plot_ranking Generate an A-R ranking plot
%
% The function generates an A-R ranking plot for a sequence of measurements.
%
% Input:
% - trackers (cell): A cell array of tracker structures.
% - accuracy (matrix): Accuracy ranks.
% - robustness (matrix): Robustness ranks.
% - varargin[Title] (string): A title of the plot.

    
function handle = plot_ranking(trackers, accuracy, robustness, varargin)
% plot_ranking Generate an A-R ranking plot
%
% The function generates an A-R ranking plot for a sequence of measurements.
%
% Input:
% - trackers (cell): A cell array of tracker structures.
% - accuracy (matrix): Accuracy ranks.
% - robustness (matrix): Robustness ranks.
% - varargin[Title] (string): A title of the plot.
% - varargin[Limit] (double): A manually set maximum rank.
% - varargin[Visible] (boolean): Is the figure visible on the display.
% - varargin[Width] (double): Figure width hint.
% - varargin[Height] (double): Figure height hint.
% - varargin[Handle] (handle): Plot on existing figure handle.
% - varargin[Legend