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: analyze_speed.m
    path of file: ./repos/toolkit-legacy/analysis
    
    the code of the file until where you have to start completion: function result = analyze_speed(experiments, trackers, sequences, varargin)
% analyze_speed Perform speed analysis
%
% Perform speed analysis on a set of experiments, trackers, and sequences. Returns 
% normalized and raw average speed.
%
% Input:
% - experiments (cell): A cell array of valid experiment structures.
% - trackers (cell): A cell array of valid tracker descriptors.
% - sequences (cell): A cell array of valid sequence descriptors.
%
% Output:
% - result (struct):
%     - normalized (double matrix): Normalized speed.
%     - original (double matrix): Raw speed.
%


print_text('Performing speed analysis ...');
    
normalized = nan(length(experiments), length(trackers), length(sequences));
original = nan(length(experiments), length(trackers), length(sequences));

result = struct('normalized', normalized, 'original', original);

    
function result = analyze_speed(experiments, trackers, sequences, varargin)
% analyze_speed Perform speed analysis
%
% Perform speed analysis on a set of experiments, trackers, and sequences. Returns 
% normalized and raw average speed.
%
% Input:
% - experiments (cell): A cell array of valid experiment structures.
% - trackers (cell): A cell array of valid tracker descriptors.
% - sequences (cell): A cell array of valid sequence descriptors.
%
% Output:
% - result (struct):
%     - normalized (double matrix): Normalized speed.
%     - original (double matrix): Raw speed.
%


print_text('Performing speed analysis ...');
    
normalized = nan(length(experiments), length(trackers), length(sequences));
original = nan(length(experiments), length(trackers), length(sequences));

result = struct('normalized', normalized, 'original', original);

result = iterate(experiments, trackers, sequences, 'iterator', @speed_iterator, 'context', result);

end