db2mag
将分贝转换为幅值
说明
示例
随机数的幅值
生成一个 2×4×2 高斯随机数数组。假设这些数字以分贝表示,用于计算对应的幅值。
r = randn(2,4,2); mags = db2mag(r)
mags = mags(:,:,1) = 1.0639 0.7710 1.0374 0.9513 1.2351 1.1044 0.8602 1.0402 mags(:,:,2) = 1.5098 0.8561 1.0871 1.0858 1.3755 1.4182 0.9928 0.9767
使用定义来检查计算。
chck = 10.^(r/20)
chck = chck(:,:,1) = 1.0639 0.7710 1.0374 0.9513 1.2351 1.1044 0.8602 1.0402 chck(:,:,2) = 1.5098 0.8561 1.0871 1.0858 1.3755 1.4182 0.9928 0.9767
输入参数
ydb
— 输入数组(以分贝为单位)
标量 | 向量 | 矩阵 | N 维数组
输入数组(以分贝为单位),指定为标量、向量、矩阵或 N 维数组。当 ydb
为非标量时,db2mag
是按元素运算。
数据类型: single
| double
版本历史记录
在 R2008a 中推出
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)