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
d3d3a0d9
Commit
d3d3a0d9
authored
Jun 29, 2021
by
Martin Hudlicka
Browse files
Deleted
parent
57a6f2d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
03 P1765 Baseline EVM Algorithms/Single_Carrier/F_UserInputs.m
deleted
100644 → 0
View file @
57a6f2d1
function
[
evm_results_folder
,
filename
,
file
]
=
F_UserInputs
()
% Select the folder where these programs reside
uiwait
(
msgbox
({
'In order for the program to run correctly,'
...
'the parent program folder needs to be selected'
...
'as the working directory in the next window.'
}));
pause
(
0.001
);
program_folder
=
uigetdir
(
pwd
,
'Select the folder where these programs reside'
);
cd
(
program_folder
);
% Select a folder to save the EVM results based on user input');
evm_results_folder
=
uigetdir
(
pwd
,
'Select a folder to save EVM calculation results'
);
% Read in ASCII Baseband Reference Waveform file
disp
(
'__________________________________________________________________'
);
disp
(
'The user’s selection will be based on the P1765 Signal Impairment Sets'
);
disp
(
'defined in Section 6.1 and Annex A of IEEE P1765'
);
disp
(
'Read in ASCII Baseband Reference Waveform file'
);
disp
(
'__________________________________________________________________'
);
[
filename
,
path
]
=
uigetfile
([
pwd
,
'\P1765 Reference Waveforms\Base band\Waveform1f_bb.txt'
],
'Select the signal text file'
);
file
=
fullfile
(
path
,
filename
);
% Extract the file extension for default filenaming convention
[
~
,
~
,
ext
]
=
fileparts
(
filename
);
% Enter filename to use for saving results and constellation diagram or
% choose to use the default name (which is same as reference filename)
list
=
{
'DEFAULT filename'
,
'CUSTOM filename'
};
[
filename_choice
,
~
]
=
listdlg
(
'PromptString'
,
...
'Would you like to set a default or custom filename?'
,
...
'SelectionMode'
,
'single'
,
'ListSize'
,[
250
,
100
],
'ListString'
,
list
);
if
filename_choice
==
1
filename
=
strcat
(
filename
(
1
:
end
-
length
(
ext
)),
'_calc-results'
);
else
prompt
=
{
'Enter filename (without extension):'
};
dlgtitle
=
'Custom filename'
;
dims
=
[
1
50
];
definput
=
{
'evm_results_file'
};
response
=
inputdlg
(
prompt
,
dlgtitle
,
dims
,
definput
);
filename
=
response
{
1
};
end
disp
([
'EVM results will be saved in the following folder: '
,
evm_results_folder
]);
disp
([
'Filename for the storing the EVM results: '
,
filename
]);
disp
(
'__________________________________________________________________'
);
end
\ No newline at end of file
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