Const = physconst(Name)
Const = physconst(Name) returns the constant corresponding to the string Name in SI units. Valid values of Name are 'LightSpeed', 'Boltzmann', and 'EarthRadius'.
String that indicates which physical constant the function returns. The valid strings are not case sensitive.
The following table lists the supported constants and their values in SI units.
|'LightSpeed'||Speed of light in vacuum||299,792,458 m/s. Most commonly denoted by c.|
|'Boltzmann'||Boltzmann constant relating energy to temperature||J/K. Most commonly denoted by k.|
|'EarthRadius'||Mean radius of the Earth||6,371,000 m|
Determine the wavelength of an electromagnetic wave whose frequency is 1 GHz.
freq = 1e9; lambda = physconst('LightSpeed')/freq;
Approximate the thermal noise power per unit bandwidth in the I and Q channels of a receiver.
Define the receiver temperature and Boltzmann constant.
T = 290; k = physconst('Boltzmann');
Compute the noise power per unit bandwidth, split evenly between the in-phase and quadrature channels.
Noise_power = 10*log10(k*T/2);