Newer
Older
function [handleHorizontalVelocities, handleLegend] = plotHorizontalVelocities(pAxesHandle, pTrajectory)
%CALCULATERESIDUALS Summary of this function goes here
% Detailed explanation goes here
%% Setup return variables
handleHorizontalVelocities = struct();
%% Get required data
velocities = pTrajectory.velocities;
rafosDate = pTrajectory.date;
%% Clear axes
cla(pAxesHandle);
%% Plot data
legendText = {'u', 'v'};
hold(pAxesHandle, 'on');
handleHorizontalVelocities.horizontalLongitude = plot(pAxesHandle, rafosDate, velocities.horizontalLongitude, '.-');
handleHorizontalVelocities.horizontalLatitude = plot(pAxesHandle, rafosDate, velocities.horizontalLatitude, '.-');
hold(pAxesHandle, 'off');
%% Setup legend
handleLegend = legend(pAxesHandle, legendText);
end