xieyaxiongfly / Atheros-CSI-Tool-UserSpace-APP

The user-space applications for our Atheros-CSI-Extraction-TOOL
56 stars 62 forks source link

How to convert amplitude to amplitude in dB level #47

Open leewez opened 6 years ago

leewez commented 6 years ago

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

xieyaxiongfly commented 6 years ago

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

On Mon, Jun 25, 2018 at 11:41 AM, leewez notifications@github.com 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

leewez commented 6 years ago

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

xieyaxiongfly commented 6 years ago

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 notifications@github.com 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