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

📄 de2bi.m

📁 很好的OFDM的基于MATLAB的仿真程序包
💻 M
字号:
function b = de2bi(varargin)
%DE2BI Convert decimal numbers to binary numbers.
%   B = DE2BI(D) converts a nonnegative integer decimal vector D to a binary
%   matrix B. Each row of the binary matrix B corresponds to one element of D.
%   The default orientation of the binary output is Right-MSB; the first
%   element in B represents the lowest bit.
%
%   In addition to the vector input, three optional parameters can be given:
%
%   B = DE2BI(...,N) uses N to define how many digits (columns) are output.
%
%   B = DE2BI(...,N,P) uses P to define which base to convert the decimal
%   elements to.
%
%   B = DE2BI(...,FLAG) uses FLAG to determine the output orientation.  FLAG
%   has two possible values, 'right-msb' and 'left-msb'.  Giving a 'right-msb'
%   FLAG does not change the function's default behavior.  Giving a 'left-msb'
%   FLAG flips the output orientation to display the MSB to the left.
%
%   Examples:
%   

⌨️ 快捷键说明

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