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

📄 cir_to_cs.m

📁 这是一个基于matlab/RUNE环境的移动通信网络仿真程序包
💻 M
字号:
   
    function [CS] = CIR_to_CS(CIR,a,b,c)
    
% a,b,c is boundary to make decision of CS that is used
%     CS <= a    use CS1 ==> output = 1
% a < CS <= b    use CS2 ==> output = 2
% b < CS <= c    use CS3 ==> output = 3
%     CS >  c    use CS4 ==> output = 4


    CS=CIR;
    index=find(CS<=a);
    CS(index)=1;
    
    index=find(CS>a&CS<=b);
    CS(index)=2;
    
    index=find(CS>b&CS<=c);
    CS(index)=3;
    
    index=find(CS>c);
    CS(index)=4;

⌨️ 快捷键说明

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