文档

方法

描述

例子

方法类名称显示类的方法名称类名称.如果类名称是一个MATLAB®或Java®类,然后方法只显示非隐藏的公共方法,包括从超类继承的方法。

例子

方法(obj)的类的方法名称obj

例子

方法(___“全部”显示方法的完整描述,包括继承信息,以及(对于MATLAB和Java方法)方法属性和签名。此函数不删除具有不同签名的重复方法名。此选项不适用于MATLAB 7.6之前定义的类。

例子

=方法(___返回字符向量单元格数组中的方法名称。

例子

全部折叠

显示MException类的公共方法

方法MException
类MException的方法:addCause eq isequal rethrow throwAsCaller addCorrection getReport ne throw静态方法:last

构造一个java.lang.String对象,并显示该对象的公共方法的名称。

s = java.lang.String;方法(s);
类java.lang.String: String格式替换charAt getBytes replaceAll chars getChars replaceFirst codePointAt getClass split codePointBefore hashCode startsWith codePointCount indexOf lence codePoints intern子字符串compareTo isEmpty toCharArray compareToIgnoreCase join toLowerCase concat lastIndexOf toString包含长度toUpperCase contentEquals matches trim copyValueOf notify valueOf endsWith notifyAll wait = offsetByCodePoints equalsIgnoreCase regionMatches

列出MException类的公共方法并显示方法签名。

方法(“MException”“全部”
MException类的方法:MException scalar lhs1 addCause(MException scalar rhs1, MException scalar rhs2) varargout addCorrection(MException rhs1, Correction)逻辑标量lhs1 eq(MException scalar rhs1, MException scalar rhs2)逻辑lhs1 eq(MException rhs1, MException rhs2)逻辑lhs1 eq(MException rhs1, MException rhs2)逻辑lhs1 eq(rhs1, rhs2) unicodeString lhs1 getReport(MException scalar rhs1, asciiString rhs2, rhs3)逻辑标量lhs1 isequal(MException scalar rhs1, MException scalar rhs2)逻辑标量lhs1 isequal(MException rhs1, MException scalar rhs2)逻辑标量lhs1 isequal(MException rhs1, MException scalar rhs2)逻辑标量lhs1 isequal(MException rhs1, MException scalar rhs2)MException rhs2) logical scalar lhs1 isequal(rhs1, rhs2) Static MException scalar lhs1 last(asciiString rhs1) logical scalar lhs1 ne(MException scalar rhs1, MException scalar rhs2) logical lhs1 ne(MException rhs1, MException rhs2) logical lhs1 ne(MException rhs1, MException rhs2) rethrow(MException scalar rhs1) throw(MException scalar rhs1) throwAsCaller(MException scalar rhs1)

将MException类的公共方法的名称存储在单元格数组中。使用-full选项包括方法签名。

方法(“MException”“全部”);

输入参数

全部折叠

类名,指定为字符向量或字符串标量。

数据类型:字符|字符串

显示方法的完整描述,包括输入和输出参数

数据类型:字符

输出参数

全部折叠

方法名作为字符向量的单元格数组返回。

更多关于

全部折叠

语言的依赖

类的泛型方法微软®net框架.使用您的产品文档来获取关于通用方法的信息。

方法的关键字

这个词方法也是一个MATLAB类定义关键字。看到classdef有关类定义关键字的更多信息。

列出的方法

这个函数报告来自所有方法目录的方法,并从列表中删除所有重复的方法名。

另请参阅

|

主题

R2006a之前介绍过