genth.m

来自「本人编写的一些uwb仿真程序,希望对大家有点用处」· M 代码 · 共 8 行

M
8
字号
%function [thcode]=genth(nh,np)
%跳时码产生器
%thcode 输出序列
%np     跳时码长度
%nh     跳时码的取值范围

function [thcode]=genth(nh,np)
thcode=floor(rand(1,np).*nh);

⌨️ 快捷键说明

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