이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
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)이 아닌 이득비로 표현됩니다. mag2db
를 사용해 값을 dB로 변환합니다.
GainMargins_dB = mag2db(m.GainMargin)
GainMargins_dB = 1×2
-9.3510 10.6091
입력 인수
y
— 입력 배열
스칼라 | 벡터 | 행렬 | 배열
입력 배열로, 스칼라, 벡터, 행렬 또는 배열로 지정됩니다. y
가 비 스칼라이면 mag2db
는 요소별 연산입니다.
데이터형: single
| double
복소수 지원 여부: 예
출력 인수
버전 내역
R2008a에 개발됨
참고 항목
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 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)