Convert speed to Doppler shift
Doppler_shift = speed2dop(radvel,lambda)
the one-way Doppler shift in hertz corresponding to the radial velocity,
Doppler_shift = speed2dop(
for the wavelength
Calculate Doppler Shift from Speed
Calculate the Doppler shift in hertz for a given carrier wavelength and source speed. The radar frequency is 24.15 GHz. Assume a radial speed of 35.76 m/s.
radvel = 35.76; f0 = 24.15e9; lambda = physconst('LightSpeed')/f0; doppler_shift = speed2dop(radvel,lambda)
doppler_shift = 2.8807e+03
Doppler-Radial Velocity Relation
The Doppler shift of a source relative to a receiver can be computed from the relative radial velocity between the source and receiver:
where Δf is the Doppler shift in hertz, Vs,r denotes the radial velocity of the source relative to the receiver, and λ is the carrier frequency wavelength in meters.
 Rappaport, T. Wireless Communications: Principles & Practices. Upper Saddle River, NJ: Prentice Hall, 1996.
 Skolnik, M. Introduction to Radar Systems, 3rd Ed. New York: McGraw-Hill, 2001.
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Usage notes and limitations:
Does not support variable-size inputs.