| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1946 人关注过本帖
标题: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
快速回复:matlab7中的bitget函数定义
数据加载中...
 
   



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

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