isa - Determine whether input is object of given class matlab

转载 2012年03月27日 13:59:47

isa - Determine whether input is object of given class

Syntax

K = isa(obj, 'class_name')

Description

K = isa(obj, 'class_name') returnslogical 1 (true) if obj isof class (or a subclass of) class_name,and logical 0 (false) otherwise.

The argument obj is a MATLAB objector an object of the Java programming language. The argument class_name isthe name of a MATLAB (predefined or user-defined) or a Java class.Predefined MATLAB classes include

logical

Logical array of true and false values

char

Characters array

numeric

Integer or floating-point array

integer

Signed or unsigned integer 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

float

Single- or double-precision floating-point array

single

Single-precision floating-point array

double

Double-precision floating-point array

cell

Cell array

struct

Structure array

function_handle

Function handle

'class_name'

MATLAB class or Java class

To check for a sparse array, use issparse.To check for a complex array, use ~isreal.

Examples

isa(rand(3,4),'double')
ans =
    1

The following example creates an instance of the user-defined MATLAB classnamed polynom. The isa functionidentifies the object as being of the polynom class.

polynom_obj = polynom([1 0 -2 -5]);
isa(polynom_obj, 'polynom')
ans =
     1

java axis调用cxf 的坑object is not an instance of declaring class while invoking public

简单说一下出错的场景,项目需要为别人系统开放webservice,于是在springmvc框架下集成cxf开发webservice接口,网上教程一大堆,小有波折,参考的 https://my.osc...

How to determine the size of a class/struct in the C++?

How the size of a type is determined by the system?

[面试题]Amazon: Given two binary trees,if the first tree is subtree of the second one

Given two binary trees, check if the first tree is subtree of the second one. A subtree of a tree ...
  • jhbxlx
  • jhbxlx
  • 2014年02月11日 11:19
  • 720

The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files

新建包和类后报错:The type java.lang.Object cannot be resolved. It is indirectly referenced from required .c...

'NoneType' object has no attribute '__getitem__'和argument of type 'NoneType' is not iterable 异常的解决办法

python多线程采集新浪微博GPS数据,存入Mongodb。Mongodb要求经纬度的严格顺序为[longtitude, latitude],而微薄返回的顺序正好相反。所以在转换时,报出如上图所示异...
  • era_misa
  • era_misa
  • 2014年04月03日 11:03
  • 24249

18 What is the __dict__.__dict__attribute of a Python class

深入学习Python对象的__dict__属性,详细介绍了__dict__的作用,由来,使用方式,存储地点等。...
  • lis_12
  • lis_12
  • 2016年12月08日 15:31
  • 346

whether is number

  • 2010年08月24日 20:37
  • 210KB
  • 下载

08 scala, imported `Record' is permanently hidden by definition of class Record in package test

前言昨天 码代码的时候, idea 突然给我报了下面一个warnning, 一个error, 点进报错的Record, 却导航到了Test02.Record [我本身的意图该Record应该为Test...

HTB: quantum of class 10001 is big. Consider r2q change问题

在tc添加class的时候有时会提示: HTB: quantum of class 10001 is big. Consider r2q change. 根据HTB的官方文档显示,...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:isa - Determine whether input is object of given class matlab
举报原因:
原因补充:

(最多只允许输入30个字)