IEEE.org
|
IEEE Xplore Digital Library
|
IEEE Standards
|
IEEE Spectrum
|
More Sites
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Joshua Gay
IEEE P1765 Recommended Practice for EVM Measurement and Uncertainty Evaluation
Commits
c9d842b5
Commit
c9d842b5
authored
Jun 29, 2021
by
Martin Hudlicka
Browse files
Deleted
parent
8438ccd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
03 P1765 Baseline EVM Algorithms/Single_Carrier/PreProcessing_Main_Downsample.m
deleted
100644 → 0
View file @
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 5.1.1.1.
% 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'
));
dlmwrite
(
stri
,
distSig
.
','
newline
','
pc
','
precision
','
%8f');
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment