function yk = vdpMeasurementFcn(xk)
% vdpMeasurementFcn Example measurement function for discrete-time
% nonlinear state estimators. 
%
% The measurement is the first state.
%
% yk = vdpMeasurementFcn(xk)
%
% Inputs:
%    xk - x[k], states at time k
%
% Outputs:
%    yk - y[k], measurements at time k
%
% See also extendedKalmanFilter, unscentedKalmanFilter

%   Copyright 2016 The MathWorks, Inc.

%#codegen

% The tag %#codegen must be included if you wish to generate code with 
% MATLAB Coder.

% The measurement is the first state
yk = xk(1);
end