Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zzha zzha
OpenXG-RAN
Commits
283e9ce2
Commit
283e9ce2
authored
Jan 08, 2014
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@4832
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
3e6ed883
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
targets/ARCH/EXMIMO/USERSPACE/OCTAVE/OFDM_TX_FRAME.m
targets/ARCH/EXMIMO/USERSPACE/OCTAVE/OFDM_TX_FRAME.m
+8
-5
No files found.
targets/ARCH/EXMIMO/USERSPACE/OCTAVE/OFDM_TX_FRAME.m
View file @
283e9ce2
function
sig
=
OFDM_TX_FRAME
(
num_carriers
,
num_zeros
,
prefix_length
,
num_symbols_frame
,
preamble_length
)
function
[
sig
,
sig_f
]
=
OFDM_TX_FRAME
(
num_carriers
,
num_zeros
,
prefix_length
,
num_symbols_frame
,
preamble_length
)
% sig - output signal
% sig_length - output signal length
...
...
@@ -10,13 +10,16 @@ function sig = OFDM_TX_FRAME(num_carriers,num_zeros,prefix_length,num_symbols_fr
num_useful_carriers
=
num_carriers
-
num_zeros
-
1
;
sig
=
[];
sig
=
zeros
(
1
,(
num_carriers
+
prefix_length
)
*
num_symbols_frame
);
sig_f
=
zeros
(
num_symbols_frame
,
num_useful_carriers
);
for
k
=
1
:
preamble_length
QAM4_preamble
=
QAM_MOD
(
4
,
floor
(
256
*
abs
(
rand
(
1
,
num_useful_carriers
/
4
))));
sig
=
[
sig
OFDM_TX
(
num_carriers
,
num_zeros
,
prefix_length
,
QAM4_preamble
)];
sig
((
k
-
1
)
*
(
num_carriers
+
prefix_length
)
+
1
:
k
*
(
num_carriers
+
prefix_length
))
=
OFDM_TX
(
num_carriers
,
num_zeros
,
prefix_length
,
QAM4_preamble
);
sig_f
(
k
,:)
=
QAM4_preamble
;
end
for
k
=
1
:(
num_symbols_frame
-
preamble_length
)
for
k
=
preamble_length
+
1
:
num_symbols_frame
QAM_data
=
QAM_MOD
(
256
,
floor
(
256
*
abs
(
rand
(
1
,
num_useful_carriers
))));
sig
=
[
sig
OFDM_TX
(
num_carriers
,
num_zeros
,
prefix_length
,
QAM_data
)];
sig
((
k
-
1
)
*
(
num_carriers
+
prefix_length
)
+
1
:
k
*
(
num_carriers
+
prefix_length
))
=
OFDM_TX
(
num_carriers
,
num_zeros
,
prefix_length
,
QAM_data
);
sig_f
(
k
,:)
=
QAM_data
;
end
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