⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 initialize_mobile_station.m

📁 基于OFDM的无线宽带系统仿真It contains mainly two parts, i.e. link-level simulator and system-level simulator.
💻 M
字号:
function [st_initConfig,st_mobileStations] = initialize_mobile_station(st_initConfig)
%__________________________________________________________________________
% Type:                 :   File Header
% File name             :   initialize_mobileStation
% File Description      :   contains the function to initialize mobile
%                           stations
%__________________________________________________________________________
%
%__________________________________________________________________________
% Type:                 :   Function Header
% Function name         :   initialize_mobileStation
% input                 :   st_initConfig
% output                :   st_mobileStation: structure of mobile station,
%                           which contains several parameters like 
%                       :   
% calling functions     :   inputConfig
% called functions      :   MOBMOVE,
% Function Description  :   Algorithm to be put in here
%__________________________________________________________________________


%-------------------------
% Create Mobiles
%-------------------------
[st_initConfig.locMS,st_initConfig.veloMS]=...
    mobmoveScale(st_initConfig.locMS,st_initConfig.veloMS,st_initConfig.aMean,st_initConfig.vMean,...
    st_initConfig.dT,st_initConfig.rombvec,st_initConfig.centerBsLoc,st_initConfig.locBS(st_initConfig.desiredBsIdx),st_initConfig.dmin);


for lp_nmob = 1:st_initConfig.nuMob % this portion has to be changed to accommodate
                                    % the new model where a user is
                                    % dies after its quota of data is
                                    % finished and a new user is born in
                                    % the system. Therefore each user must
                                    % have a different index number and the
                                    % number of frame it will live depends
                                    % on the channel conditions.
    st_mobileStations(lp_nmob).MobNumber(1:st_initConfig.nuFrmPerSlot) = 0; % Mobile identification number
    st_mobileStations(lp_nmob).RemFileSz(1:st_initConfig.nuFrmPerSlot) = 0; % Remaining file size to be trasmitted to the mobile    
end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -