Convert Frequency to Wavelength
Determine the wavelength of a 1 GHz electromagnetic wave.
freq = 1e9; lambda = physconst('LightSpeed')/freq
lambda = 0.2998
Thermal Noise Power
Determine the thermal noise power per unit bandwidth in the in-phase (I) and quadrature (Q) channels of a receiver. Specify a receiver temperature of 290 K.
T = 290; k = physconst('Boltzmann');
Compute the noise power per unit bandwidth, split evenly between the I and Q channels. Units are in dB.
Noise_power = 10*log10(k*T/2)
Noise_power = -206.9855
const — Value of physical constant
Value of physical constant, returned as a real-valued scalar. All values are in SI units.
This table lists the supported constants and their values in SI units.
|Speed of light in vacuum||299,792,458 m/s. Most commonly denoted by c.|
|Boltzmann constant relating kinetic energy to temperature||J/K. CODATA value most commonly denoted by k.|
|Mean radius of the Earth||6,371,000 m|
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
The function does not support variable-size inputs.
Introduced in R2011a