isa - Determine whether input is object of given class matlab
来源:互联网 发布:linux如何退出top命令 编辑:程序博客网 时间:2024/06/10 00:05
isa - Determine whether input is object of given class
Syntax
K = isa(obj, 'class_name')
Description
K = isa(obj, 'class_name') returnslogical1 (true) if obj isof class (or a subclass of) class_name,and logical0 (false) otherwise.
The argument obj is a MATLAB objector an object of the Java programming language. The argumentclass_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 classnamedpolynom. The isa functionidentifies the object as being of the polynom class.
polynom_obj = polynom([1 0 -2 -5]);isa(polynom_obj, 'polynom')ans = 1
- isa - Determine whether input is object of given class matlab
- P31 (**) Determine whether a given integer number is prime.
- How to determine the size of an object of class?
- Find whether a given number is a power of 4 or not
- 【Leetcode】Given a binary tree, check whether it is a mirror of itself
- Given an integer, write a function to determine if it is a power of two.
- Given an integer, write a function to determine if it is a power of two
- Determine whether the text is in Chinese or English
- 3、Determine whether an integer is a palindrome
- leetCode Given an integer (signed 32 bits), write a function to check whether it is a power of 4
- Given two strings s and t, write a function to determine if t is an anagram of s.
- Given two strings s and t, write a function to determine if t is an anagram of s.
- object is not an instance of declaring class
- object is not an instance of declaring class 反射异常
- object is not an instance of declaring class 反射异常
- 报错:object is not an instance of declaring class
- hibernate 4 object is not an instance of declaring class
- spring的 object is not an instance of declaring class
- 新一代iPad当做WiFi热点 可续航24个小时
- Jquery Dialog
- 第六周任务五 多文件任务四
- 忘记MySQLroot密码的解决方案
- ubuntu 设置启动服务 rc.local sysv-rc-conf
- isa - Determine whether input is object of given class matlab
- SRTM DEM hgt格式转成GRID格式的问题解决
- vim设置方法集锦
- CJLibrary
- 西南石油大学csdn计科讲坛
- Functions for Working with Objects matlab
- Calculation constellation
- struts2中action的3种实现方式
- Sunboy_2050的专栏