?? de2bi.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 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 + -