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

📄 ed_sim_mui_wrapper.m

📁 一个UWB仿真程序包
💻 M
字号:
%Wrapper file for sim, define sim params here and launch this script to start sim.%please refere to this file for a description of the possible params.%clean upclose allclear alltic%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Simulation parameters                                                %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% define parameters %%%%%%%%%%%%%%%%%%%%%%%%%TimingTC = 2e-9; %chip duration in sFS_CONT = 10e9; %sampling frequency in Hz to get cont time signal%PreambleL = 64; %spreading factorCODE_ID = 5; %which one of the 802.15.4a ternary codes to use for UOI%Channel ModelCH_MODEL = 1; %which channel model to chooseCH_ATT_THLD_DB = 15; %rays with bigger attenuation are considered 0%NoiseSNR_DB = 14; %Eb/N0%InterferenceNN = 2; %number of users, 1 is UOIIF_PWR_DB = 0; %power levels of interferersIF_CODE_IDS = 6; %interferer preamble code ids% DataLAMBDA = 200; %[300 10]; %queue arrival rate (packets per second) [src ifs]BURST_LENGTH = 4; %pulses per burstSYMBOL_LENGTH = 512; %chips per symbolPACKET_LENGTH = 127*8; %max packet length, will be smaller if RSCODE = 1RSCODE = 1; %whether to use coding or notRAND_THS = 0; %whether to use random ths instead of 802.15.4a%ReceiverRX_BW = 2e9; %BW of the receiver determines Nyquist = 2*RX_BWT_INT = 1e-9; %integration lengthN_INT = 8; %how many blocks of length T_INT to sumG = 4; %how many repetitions of code in correlationTHLD_PROBA = 0.9999; %threshold for correlation peaksN = 6; %number of consecutive corr peaks neededG_CHEST = 8; %number of len 31 symbols we accumulate for channel mask%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%simulation specific values, runs, instances allowing parallelizationRUN = 100; %number of the run determines init of rngsPKTS_PER_RUN = 5; %number of UOI pkts per runPLOT_DEBUG = 0; %flag indicating whether to show plots%in/out filesCLUSTER = 0; %indicates whether we are running on cluster or notOUT_FILE = 'out_test.txt'; %output text fileLOG_FILE = 'out_test.txtlog'; %log of the simed_sim_mui(TC,FS_CONT,L,CODE_ID,CH_MODEL,CH_ATT_THLD_DB,SNR_DB,NN,IF_PWR_DB,IF_CODE_IDS,LAMBDA,BURST_LENGTH,SYMBOL_LENGTH,PACKET_LENGTH,RSCODE,RAND_THS,RX_BW,T_INT,N_INT,G,THLD_PROBA,N,G_CHEST,RUN,PKTS_PER_RUN,PLOT_DEBUG,CLUSTER,OUT_FILE,LOG_FILE);toc

⌨️ 快捷键说明

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