Is it possible to get digital data(8 bit conversion) of the following imported file & get fft of that digital data?What would be the code for it?

3 views (last 30 days)
Analog to digital conversion and FFT

Answers (1)

Walter Roberson
Walter Roberson on 26 May 2017
cur_data = importdata('current.txt');
cur = cur_data.data(:,2);
cur_8bit = round(cur ./ max(cur) * 255);
result = fft(cur_8bit);

Categories

Find more on Fourier Analysis and Filtering in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!