mag2db
振幅をデシベル (dB) に変換する
説明
例
デシベル単位でのゲイン余裕の表示
この例では、システムに複数のゲイン交差周波数または位相交差周波数が存在し、複数のゲイン余裕値または位相余裕値が生じる次の SISO フィードバック ループについて考えます。
伝達関数を作成します。
G = tf(20,[1 7]) * tf([1 3.2 7.2],[1 -1.2 0.8]) * tf([1 -8 400],[1 33 700]);
コマンド allmargin
を使用してすべての安定余裕を計算します。
m = allmargin(G)
m = struct with fields:
GainMargin: [0.3408 3.3920]
GMFrequency: [1.9421 16.4807]
PhaseMargin: 68.1140
PMFrequency: 7.0776
DelayMargin: 0.1680
DMFrequency: 7.0776
Stable: 1
ゲイン余裕はデシベル (dB) ではなくゲイン比で表されることに注意してください。値を dB に変換するには、mag2db
を使用します。
GainMargins_dB = mag2db(m.GainMargin)
GainMargins_dB = 1×2
-9.3510 10.6091
入力引数
y
— 入力配列
スカラー | ベクトル | 行列 | 配列
入力配列。スカラー、ベクトル、行列、または配列として指定します。y
が非スカラーの場合、mag2db
は要素単位の演算になります。
データ型: 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)