isa matlab函数

isa Determine if input is object of specified class.
isa(obj,'ClassName') returns true if obj is an instance of the
class specified by ClassName, and false otherwise. isa also returns
true if obj is an instance of a class that is derived from ClassName.

Some possibilities for 'ClassName' are:
  double          -- Double precision floating point numeric array
                     (this is the traditional MATLAB matrix or array)
  single          -- Single precision floating-point numeric array
  logical         -- Logical array
  char            -- Character array
  int8            -- 8-bit signed integer array
  uint8           -- 8-bit unsigned integer array
  int16           -- 16-bit signed integer array
  uint16          -- 16-bit unsigned integer array
  int32           -- 32-bit signed integer array
  uint32          -- 32-bit unsigned integer array
  int64           -- 64-bit signed integer array
  uint64          -- 64-bit unsigned integer array
  cell            -- Cell array
  struct          -- Structure array
  function_handle -- Function Handle
  <classname>     -- Any MATLAB, Java or .NET class

isa(obj,'classCategory') returns true if obj is an instance of
any of the classes in the specified classCategory, and false otherwise.
isa also returns true if obj is an instance of a class that is derived from
any of the classes in classCategory.

classCategory can be 'numeric', 'float', or 'integer', representing
a category of classes:
numeric -- Integer or floating-point array (double, single,
           int8, uint8, int16, uint16, int32, uint32,
           int64, uint64)
float   -- Single- or double-precision floating-point array
           (double, single)
integer -- Signed or unsigned integer array (int8, uint8,
           int16, uint16, int32, uint32, int64, uint64)
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 转至元数据结尾创建: 董潇伟,最新修改于: 十二月 23, 2016 转至元数据起始第一章:isa和Class一....
    40c0490e5268阅读 5,845评论 0 9
  • 昨日回家,十二点半到,一点五十就走了。大解时,饭卡忘在桌上。前日还扬言:“卡上的钱颇丰,食四五天足足有余。”现在,...
    陈果_周绿阅读 3,627评论 0 1
  • 一 分段提炼 1.D4-5 承上指出一万小时定律来源不科学,启下引出其来龙去脉提及西蒙。 2.D6-7 西蒙的一篇...
    kidII阅读 1,618评论 0 1
  • mop是拖把的意思,这本书里面讲的是拖把狗的故事。 昨天晚上读海尼曼Book 10,陈小冠说我来扮演mop,你来演...
    木木sani阅读 2,629评论 0 0
  • 手账打卡day 5
    心酸12阅读 1,001评论 0 0