- Divide Vin by Vref with a Divide block or a Gain block. The block output is Vin/Vref.
- Take the log of the output with a Log block. The block output is ln(Vin/Vref).
- Multiply by K with a Gain block. The block output is K*ln(Vin/Vref).
Logartihmic Amplifier in Simulink
6 ビュー (過去 30 日間)
古いコメントを表示
採用された回答
Daniel
2023 年 3 月 27 日
If you just want to implement this generically, it shouldn't be hard to build up from the mathematical definition.
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
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.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!