|     IEEE Xplore Digital Library     |     IEEE Standards     |     IEEE Spectrum     |     More Sites

Commit c9d842b5 authored by Martin Hudlicka's avatar Martin Hudlicka
Browse files


parent 8438ccd8
% Downsampling code (user distributable)
% This code is implementing the preprocessing step of downsampling and is
% not a part of the IEEE P1765 Baseline EVM Algorithm.
% The downsampling is discussed in Section
% Here, we present a method to perform downsampling on a measured RF or
% baseband time-domain waveform which is typically oversampled and needs to
% be matched in length to the ideal waveform.
% Authors:
% Christopher P. Silva - Original code Version 04.30.2021
% Paritosh Manurkar - Modularization of the code into a main program and subroutines Version 06.08.2021
clear; close all; clc;
%% Read Basic Communication Parameters
params = F_Basic_Communication_Parameters();
%% Ask for file input
% Read in ASCII RF Measured Signal Waveform file, txt file not supplied
disp('Read in ASCII RF Measured Waveform file');
[fname,path] = uigetfile([pwd,'\Example Measured Waveform\measured_signal.txt'],'Select the signal text file');
file = fullfile(path,fname);
distSig_rf = transpose(dlmread(file));
sigSize_rf = length(distSig_rf);
% Extract the file extension for default filenaming convention
[~,~,ext] = fileparts(fname);
% Perform downsampling
[distSig,sigSize_rf] = PreProcessing_F_Downsample(distSig_rf,params.numSamp,sigSize_rf);
% Save downsampled time-domain waveform
% Replace the filename extenstion with elaborate filename to signify downsampling plus extension
stri = fullfile(path,strcat(fname(1:end-length(ext)),'_downsampled.txt'));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment