MATLAB 帮助中心
Convert frequency to wavelength
Since R2021a
wavelen = freq2wavelen(freq)
wavelen = freq2wavelen(freq,c)
[wavelen,c] = freq2wavelen(___)
wavelen = freq2wavelen(freq) converts the frequency freq to the wavelength wavelen using the speed of light in a vacuum.
wavelen
freq
example
wavelen = freq2wavelen(freq,c) also specifies the signal propagation speed c.
c
[wavelen,c] = freq2wavelen(___) also returns the propagation speed c used to compute wavelength wavelen.
collapse all
Calculate the wavelengths corresponding to frequencies of 3 and 4 GHz. Use the default speed of propagation.
freq = [3e9,4e9]; lambda = freq2wavelen(freq)
lambda = 1×2 0.0999 0.0749
Calculate the wavelength corresponding to a frequency of 4 GHz. Obtain the propagation speed used to compute the wavelength.
freq = 4e9; [lambda,c] = freq2wavelen(freq,3.0e8)
lambda = 0.0750
c = 300000000
Signal frequency, specified as a positive scalar or a length-M vector of positive values. Units are in Hz.
Example: 10e6
10e6
Data Types: double
double
Signal propagation speed, specified as a positive scalar. The default value is obtained from physconst('Lightspeed'). Units are in m/s.
physconst('Lightspeed')
Example: 3.0e8
Signal wavelength, returned as a positive scalar or length-M vector of positive values. The size of wavelen equals the size of freq. Units are in meters.
Signal propagation speed, returned as a positive scalar. Units are in m/s.
expand all
Introduced in R2021a
wavelen2freq
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处