details
显示数组详细信息
说明
示例
显示对象详细信息
显示类的对象详细信息,该类重载其自己的对象显示方式。details
函数不会调用重载的显示方式。因此,在所有情况下都可以使用此函数获取有关该对象数组的信息。
假设 PolyNom
是为多项式提供专用默认显示方式的类。使用 details
显示有关对象的信息。
使用多项式系数创建一个对象:
pn = PolyNom([1,2,3,0,4])
重载的 disp
方法显示用于计算多项式的代码:
pn = x^4 + 2*x^3 + 3*x^2 + 4
调用 details
函数将提供有关该对象的信息:
details(pn)
PolyNom with properties: coef: [1 2 3 0 4] Methods
输入参数
A
— 输入数组
任意类型的标量或非标量数组
输入数组,指定为标量或任何类型的非标量数组。details
函数显示有关此数组的详细信息。
扩展功能
基于线程的环境
使用 MATLAB® backgroundPool
在后台运行代码或使用 Parallel Computing Toolbox™ ThreadPool
加快代码运行速度。
此函数完全支持基于线程的环境。有关详细信息,请参阅在基于线程的环境中运行 MATLAB 函数。
版本历史记录
在 R2013b 中推出
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)