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: plotextramavstatevariables.m
    path of file: ./repos/Flight-Dynamics-and-Control-UAVs/State Estimation
    
    the code of the file until where you have to start completion: function plotextramavstatevariables(uu,SENSOR)
%
% modified 12/11/2009 - RB
%           5/17/2010 - RB
%
%  plot groundspeed Vg, heading psi, wind North wn, and wind East we

    % process inputs to function
%    pn
    
function handle = graph_y_yd(t, y, yd, lab, handle)
  
  if isempty(handle),
    handle(1)    = plot(t,y,'b');
    handle(2)    = plot(t,yd,'g--');
    ylabel(lab)
    set(get(gca, 'YLabel'),'Rotation',0.0);
  else
    set(handle(1),'Xdata',[get(handle(1),'Xdata'),t]);
    set(handle(1),'Ydata',[get(handle(1),'Ydata'),y]);
    set(handle(2),'Xdata',[get(handle(2),'Xdata'),t]);
    set(handle(2),'Ydata',[get(handle(2),'Ydata'),yd]);
    %drawnow
  end