核心提示:MATLAB代做|FPGA代做|python代做-STBC误码率仿真源码...
clc;
clear;
close all;
warning off;
addpath 'func\'
dat = csvread('iladata64.csv');
I1 = dat(:,4);
Q1 = dat(:,5);
fs=30.72;
re =[I1(1600:1:3800)];
im =[Q1(1600:1:3800)];
x = ((re+sqrt(-1)*im));
f=fftshift(fft(x));
w=linspace(-fs/2,fs/2,length(f));
figure;
subplot(211);
plot(re);
subplot(212);
plot(im);
figure;
plot(w,20*log10(abs(f)));title('fft');
dat = csvread('iladata170.csv');
I1 = dat(:,4);
Q1 = dat(:,5);
fs=30.72;
re =[I1(950:1:3250)];
im =[Q1(950:1:3250)];
x = ((re+sqrt(-1)*im));
f=fftshift(fft(x));
w=linspace(-fs/2,fs/2,length(f));
figure;
subplot(211);
plot(re);
subplot(212);
plot(im);
figure;
plot(w,20*log10(abs(f)));title('fft');
联系:highspeedlogic
QQ :1224848052
微信:HuangL1121
邮箱:1224848052@qq.com
微信扫一扫: