%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% .m script of web demo "Multicarrier Waveform for 5G"
% Written for GNU Octave
%
% INSTITUTE OF TELECOMMUNICATIONS
% University of Stuttgart
% www.inue-uni-stuttgart.de
% author: Xiaojie Wang
% date: 18.12.2014
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This script computes and plots the OFDM signal in time and frequency domain
function ofdm_waveform1(...
fftSize,... % The total number of subcarriers e.g. total bandwidth
GI_samples,... % length of cyclic prefix in samples
plot_mode,... % plot mode 1= plot frequency spectrum for each PRB, 2= plot spectrum for each subcarrier, 3= plot spectrum for whole allocation
nPRB,... % number of active PRBs (only for plot_mode=1)
PRB_size,... % number of subcarriers within one PRB. e.g. 12 for LTE (only for plot_mode=1)
nSubc,... % number of subcarriers (for plot mode =2)
nSubcAlloc,... % number of subcarriers (for plot mode =3)
subplot_en,... % 1= plot in both time and frequency domain, 2=only in time domain, 3=only in frequency domain
webdemo_en,... % enable webdemo?
svg_en,... % enable svg graphic?
filename... % file
)
addpath(genpath("sourceCode/"))
ofdm_waveform(fftSize,GI_samples, plot_mode, nPRB, PRB_size, nSubc, nSubcAlloc,subplot_en,1,0, filename);
end