Atheros-CSI-Tool-UserSpace-APP icon indicating copy to clipboard operation
Atheros-CSI-Tool-UserSpace-APP copied to clipboard

How to convert amplitude to amplitude in dB level

Open leewez opened this issue 6 years ago • 3 comments

Hi @xieyaxiongfly I saw 2 pics in your website http://wands.sg/AtherosCSI/ showing amplitude and amplitude in dB level of four CSI. Would you please share me some information about the connection between amplitude to amplitude in dB level? how to convert amplitude to amplitude in dB level ?

Thanks, Li, Yongfeng

leewez avatar Jun 25 '18 03:06 leewez

In matlab, you can use the db() function.

On Mon, Jun 25, 2018 at 11:41 AM, leewez [email protected] wrote:

Hi @xieyaxiongfly https://github.com/xieyaxiongfly I saw 2 pics in your website http://wands.sg/AtherosCSI/ showing amplitude and amplitude in dB level of four CSI. Would you please share me some information about the connection between amplitude to amplitude in dB level? how to convert amplitude to amplitude in dB level ?

Thanks, Li, Yongfeng

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/xieyaxiongfly/Atheros-CSI-Tool-UserSpace-APP/issues/47, or mute the thread https://github.com/notifications/unsubscribe-auth/AF-RQ08WQDi2M7T611Z_01NoxtFAab5kks5uAFwGgaJpZM4U1d_E .

--

*-- Yaxiong Xie / *谢亚雄

School of Computer Engineering

Nanyang Technological University, Singapore

xieyaxiongfly avatar Jun 25 '18 04:06 xieyaxiongfly

@xieyaxiongfly do you mean this function is provided by matlab? I'm wandering whether I can do this convertion in C language

leewez avatar Jun 25 '18 05:06 leewez

If you want to implement this function in c, you can take a look at how db is calculated in matlab https://www.mathworks.com/help/signal/ref/db.htmland then do the same operation in c. The db calculation is quite simple.

On Mon, Jun 25, 2018 at 1:41 PM, leewez [email protected] wrote:

@xieyaxiongfly https://github.com/xieyaxiongfly do you mean this function is provided by matlab? I'm wandering whether I can do this convertion in C language

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/xieyaxiongfly/Atheros-CSI-Tool-UserSpace-APP/issues/47#issuecomment-399837699, or mute the thread https://github.com/notifications/unsubscribe-auth/AF-RQ4EzunB8jA0tP2N8_cqLA_ZGjBGCks5uAHfsgaJpZM4U1d_E .

--

*-- Yaxiong Xie / *谢亚雄

School of Computer Engineering

Nanyang Technological University, Singapore

xieyaxiongfly avatar Jun 25 '18 05:06 xieyaxiongfly