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.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ