# How to use Fourier Transform to convert time to frequency domain for real time data ?

5 ビュー (過去 30 日間)
Esakki Ponraj Esakkimuthu 2018 年 6 月 22 日
コメント済み: umut senturk 2019 年 6 月 25 日
Hello, I have been doing my scientific project in Radar Sensor with Arduino. I am reading the receiver value in voltage with respect to time. I use Matlab Arduino tool to read the real time voltage values which is in time domain. I need to convert those values in frequency domain. How can i get the frequency domain with FFT function in Matlab ??? I have just a simple code to read voltage values from Radar. Radar Info : 24 GHz.
%%% code %%%%%%% clear a; a = arduino('COM4','Nano'); x = 0;
while(1==1) v =readVoltage(a, 'A0'); disp(v); x =[x v]; plot(x); drawnow; grid;
Kindly shed some light in this area !!!!!

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

### 回答 (2 件)

Tamir Suliman 2018 年 6 月 23 日
##### 0 件のコメント表示非表示 -1 件の古いコメント

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

Elyes Hadj belgacem 2019 年 2 月 25 日
Hello
i already tried this but not with radar sensor actually i used the simulink with arduino and log all the data coming from arduino (I mean here my FSR sensor) to the workspace (in array form, u can do it in the scope part) therefore i applied the FFT (or whatever you want) to the data in the workspace .
I hope this gives you some help
##### 1 件のコメント表示非表示 なし
umut senturk 2019 年 6 月 25 日
hey bro can you give me matlab codes. I can save data from scope to workspace but dont know other steps for FFT

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

### カテゴリ

Find more on Antennas, Microphones, and Sonar Transducers in Help Center and File Exchange

### Community Treasure Hunt

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

Start Hunting!

Translated by