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

📄 terminate.m

📁 Link & System-Level Wireless OFDM System Simulator Version
💻 M
字号:
 function [bter, kter, obkn] = terminate(b, k, obk, term)% DESCRIPTION [bter, kter, obkn] = terminate(b, k, obk, term)% INPUT%  b --      Base index for each link. Size is #links by one. %  k --      Channel index for each link.  Size is #links by one.%            The value NaN indicates not in use.%  obk --    Binary matrix. Zero indicate occupied channel.%  term --   A binary vector of the same size as b and k indicating%            which links that are going to be released.% OUTPUT%  bter --   Has the same size as respectively b.%  kter --   Nan in all places where calls where terminated. Has the same size as k.%  obkn --   Reflects the new allocation in the system. Has the same size as obk.% by Magnus Almgren 000505if isempty(b) bter = zeros(0,1); kter = zeros(0,1); obkn = obk; return% break end% NaN indicates not used any morebter = b;bter(term) = nan;kter = k;kter(term) = nan;% release channels ind = index(b(term),k(term),size(obk));obkn = obk;obkn(ind) = obkn(ind) + 1; % Mark as available.

⌨️ 快捷键说明

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