methods
类方法名称
说明
示例
列出类方法
显示 MException 类的公共方法
methods MException
Methods for class MException: MException eq ne throwAsCaller addCause getReport rethrow addCorrection isequal throw Static methods: last
获取对象的方法名称
构造一个 java.lang.String 对象,并显示该对象的公共方法的名称。
s = java.lang.String; methods(s);
Methods for class java.lang.String: String format replace charAt getBytes replaceAll chars getChars replaceFirst codePointAt getClass split codePointBefore hashCode startsWith codePointCount indexOf subSequence codePoints intern substring compareTo isEmpty toCharArray compareToIgnoreCase join toLowerCase concat lastIndexOf toString contains length toUpperCase contentEquals matches trim copyValueOf notify valueOf endsWith notifyAll wait equals offsetByCodePoints equalsIgnoreCase regionMatches
显示方法签名
列出 MException 类的公共方法并显示方法签名。
methods('MException','-full')
Methods for class MException: MException lhs1 MException(asciiString rhs1, rhs2) MException scalar lhs1 addCause(MException scalar rhs1, MException scalar rhs2) varargout addCorrection(MException rhs1, Correction) logical lhs1 eq(MException rhs1, MException rhs2) logical lhs1 eq(rhs1, rhs2) logical scalar lhs1 eq(MException scalar rhs1, MException scalar rhs2) unicodeString lhs1 getReport(MException scalar rhs1, asciiString rhs2, rhs3) logical scalar lhs1 isequal(MException scalar rhs1, MException scalar rhs2) logical scalar lhs1 isequal(MException rhs1, MException rhs2) logical scalar lhs1 isequal(rhs1, rhs2) Static MException scalar lhs1 last(ustringToString scalar rhs1) logical lhs1 ne(rhs1, rhs2) logical lhs1 ne(MException rhs1, MException rhs2) logical scalar lhs1 ne(MException scalar rhs1, MException scalar rhs2) rethrow(MException scalar rhs1) throw(MException scalar rhs1) throwAsCaller(MException scalar rhs1)
将方法名称存储在元胞数组中
输入参数
ClassName
— 类名
字符向量 | 字符串标量
类名,指定为字符向量或字符串标量。
数据类型: char
| string
'-full'
— 显示完整描述
'-full'
显示方法的完整说明,包括输入和输出参数
数据类型: char
输出参数
m
— 方法名称
元胞数组
方法名称,以字符向量元胞数组形式返回。
详细信息
扩展功能
基于线程的环境
使用 MATLAB® backgroundPool
在后台运行代码或使用 Parallel Computing Toolbox™ ThreadPool
加快代码运行速度。
此函数完全支持基于线程的环境。有关详细信息,请参阅Run MATLAB Functions in Thread-Based Environment。
版本历史记录
在 R2006a 之前推出
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)