Logartihmic Amplifier in Simulink

조회 수: 3 (최근 30일)
Federico
Federico 2023년 3월 27일
댓글: Federico 2023년 3월 28일
Hello,
I need a block that function as a Logartihmic Amplifier for a sound level meter desing in simulink.
I tried ussing the Amplifier block, but i dont know how to adapt it to my needs.

채택된 답변

Daniel
Daniel 2023년 3월 27일
If you just want to implement this generically, it shouldn't be hard to build up from the mathematical definition.
  1. Divide Vin by Vref with a Divide block or a Gain block. The block output is Vin/Vref.
  2. Take the log of the output with a Log block. The block output is ln(Vin/Vref).
  3. Multiply by K with a Gain block. The block output is K*ln(Vin/Vref).
If you want that to look pretty, you can package it in a subsystem, and perhaps create a mask to define K and Vref.
  댓글 수: 3
Daniel
Daniel 2023년 3월 28일
You can use a Gain block in that case, which has one input and one parameter.
You can also use Constant blocks to create non-varying signals.
Federico
Federico 2023년 3월 28일
Thanks ! Ill try that and will get back to you.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by