フィルターのクリア

I want to get an external analog signal via arduino and then perform its FFT. Kindly Help

5 ビュー (過去 30 日間)
KSHITIJ SHAKYA
KSHITIJ SHAKYA 2020 年 1 月 31 日
回答済み: Githin John 2020 年 2 月 7 日
I got the signal vector of my analog data via arduino but I couldnt determine the time length of signal thus the FFT couldnt be performed. The X-axis of FFT should be in Hertz.
a=arduino('com10','Mega2560')
v=zeros(1000,1);
t=seconds(v);
t0=datetime('now');
for ii=1:1000
v(ii)=readVoltage(a,'A0');
t(ii)=datetime('now')-t0;
end
Y=fft(v);

回答 (1 件)

Githin John
Githin John 2020 年 2 月 7 日

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by