标题:matlab7中的bitget函数定义
只看楼主
vfdff
Rank: 6Rank: 6
等 级:侠之大者
威 望:8
帖 子:2172
专家分:425
注 册:2005-7-15
结帖率:79.17%
 问题点数:0 回复次数:0 
matlab7中的bitget函数定义
function [varargout] = bitget(varargin)
%BITGET Get bit.
%   C = BITGET(A,BIT) returns the value of the bit at position BIT in A. A
%   must be an unsigned integer and BIT must be a number between 1 and the
%   number of bits in the unsigned integer class of A e.g., 32 for UINT32s.
%
%   Example:
%      Prove that INTMAX sets all the bits to 1:
%
%      a = intmax('uint8')
%      if all(bitget(a,1:8)), disp('All the bits have value 1.'), end
%
%   See also BITSET, BITAND, BITOR, BITXOR, BITCMP, BITSHIFT, INTMAX.

%   Copyright 1984-2004 The MathWorks, Inc.
%   $Revision: 1.15.4.3 $  $Date: 2004/04/16 22:07:41 $

if nargout == 0
  builtin('bitget', varargin{:});
else
  [varargout{1:nargout}] = builtin('bitget', varargin{:});
end

这个参数 nargout 哪里来的呢 ?为什么传入的参数没有这个,但是却可以使用呢 ?
搜索更多相关主题的帖子: bitget 函数 定义 
2009-09-13 00:28



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-285573-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.947777 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved