function [handleVerticalVelocities, handleLegend] = plotVerticalVelocities(pAxesHandle, pTrajectory) %CALCULATERESIDUALS Summary of this function goes here % Detailed explanation goes here %% Get required data velocities = pTrajectory.velocities; rafosDate = velocities.verticalDates; %% Clear axes cla(pAxesHandle); %% Plot data legendText = {'w'}; hold(pAxesHandle, 'on'); handleVerticalVelocities = plot(pAxesHandle, rafosDate, velocities.vertical, '.-'); hold(pAxesHandle, 'off'); %% Setup legend handleLegend = legend(pAxesHandle, legendText); end