%% Create Measurement from Constant Turn-Rate Motion in Spherical Frame
% Define the state of an object in 2-D constant turn-rate motion. The state is the position and velocity in each dimension, and the turn rate. The measurements are in spherical coordinates.

state = [1;10;2;20;5];
measurement = ctmeas(state,'spherical')

% The elevation of the measurement is zero and the range rate is positive indicating that the object is moving away from the sensor.
% Copyright 2017 The MathWorks, Inc.