Detect a peak from ADC input ?

5 ビュー (過去 30 日間)
bianchi
bianchi 2019 年 7 月 4 日
コメント済み: bianchi 2019 年 7 月 4 日
Dear Matlab Members,
I tried to detect a peak from ADC input, I have some values from UART, and put them in my excel,
Is it possible that I detect in Matlab code than convert the code to C ?
ADC input = 12 VAC
I'm using STM32 ADC
Any filters for it ?
Any clues or suggestions ?
Thanks

回答 (1 件)

boris vuleta
boris vuleta 2019 年 7 月 4 日
As I understood you, you have a ecxel table with values of a signal that you got from ADC. If that's so, you can transfer those values to a matlab which will store them in a workspace variable and using max function just find out the position and the value of max number in your array.
Here is a link to max function
importing data from excel to matlab
I hope this will help you, good luck!
  1 件のコメント
bianchi
bianchi 2019 年 7 月 4 日
and after that, how can I convert Matlab code into C code, so it can be used on my chip ? thanks

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by