URL
https://opencores.org/ocsvn/dblclockfft/dblclockfft/trunk
Subversion Repositories dblclockfft
[/] [dblclockfft/] [trunk/] [bench/] [cpp/] [fft_tb.m] - Rev 26
Go to most recent revision | Compare with Previous | Blame | View Log
% Read the file fid = fopen('fft_tb.dbl','r'); raw = fread(fid, [2 inf], 'double'); fclose(fid); % Convert the raw doubles into complex values datc = raw(1,:)+j*raw(2,:); % Reshape the matrix into one line per FFT % Assume an FFT length of 2048 ftlen = 2048; % ftlen = 128; ndat = reshape(datc, ftlen*2, length(datc)/(ftlen*2)); truth = ndat((ftlen+1):(2*ftlen), :); output = ndat(1:ftlen,:); % Create a time axis, for use in plotting if desired tm = 0:(ftlen-1); % Now, the data from the test is ready for inspection
Go to most recent revision | Compare with Previous | Blame | View Log