이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
mag2db
크기를 데시벨로 변환
설명
예제
고역통과 필터의 크기 응답
rad/sample의 정규화된 3dB 주파수를 갖는 3차 고역통과 버터워스 필터를 설계합니다. 필터의 주파수 응답을 계산합니다. 크기 응답을 데시벨 단위로 표현하고 플로팅합니다.
[b,a] = butter(3,0.5,'high'); [h,w] = freqz(b,a); dB = mag2db(abs(h)); plot(w/pi,dB) xlabel('\omega / \pi') ylabel('Magnitude (dB)') ylim([-82 5])
fvtool
을 사용하여 계산을 반복합니다.
fvtool(b,a)
입력 인수
y
— 입력 배열
스칼라 | 벡터 | 행렬 | N차원 배열
입력 배열로, 스칼라, 벡터, 행렬 또는 N차원 배열로 지정됩니다. 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)