我很好奇在哪里可以找到 的完整描述特征 功能?它接受哪些论点?未找到任何文档。我只听说 memstats
和 getpid
.还要别的吗?
>> which feature
built-in (undocumented)
Note: A more complete list of features, explanations and references can be found here: http://UndocumentedMatlab.com/blog/undocumented-feature-function/
功能 是一个完全未记录且不受支持的 Matlab 函数,与大多数其他未记录的 Matlab 函数不同,它实际上经常在不同 Matlab 版本之间发生更改,恕不另行通知,因此在您的代码中使用此函数时要非常小心。
话虽如此,多年来已经报道了几个功能选项,主要是在 CSSM 论坛上,也可以在已安装的 Matlab 代码库中看到:
功能 接受两个参数:功能名称和可选的新值。这类似于
获取/设置 函数:如果只提供一个参数,Matlab 返回当前特征值(如
get ),否则该值被修改(如
set )。
功能 ('usehg2',1) - 这显然与当前正在开发的新 Handle-Graphics 实现有关(对于过去的几个版本) - 如果有人有关于 HG2 的任何信息,我很乐意听到它... 功能 ('JavaFigures') - 在 propedit.m 中提到; disabled since R2007a当原生(非 Java)Matlab 图形被禁用时。 功能 ('NewPrintAPI') - 在\toolbox\matlab\graphics\private\setup.m 中提到 功能 ('加速','开/关') - 见 here 功能 ('getpid') - returns the Matlab process ID (好吧,实际上是其 JVM 的 PID,但它与 Matlab 的 PID 相同)。另见类似java.lang.management.ManagementFactory.getRuntimeMXBean.getName.char
. 功能 ('NumCores') - returns the number of CPU cores Matlab 看到的 功能 (memstats, dumpmem, processmem, ...) - 多个在线引用 功能 ('hotlinks') – 参见 toolbox\matlab\helptools\info.m 功能 ('UseOldFileDialogs') – 参见 toolbox\matlab\uitools\private\usejavadialog.m 功能 ('定时')
cpucount = feature('timing','cpucount') – 参见 toolbox\matlab\iofun\tempname.m(其他几个第二个参数选项) 功能 ('DefaultCharacterSet') - 见 here 以下是从已安装的 R2010a Matlab 代码库中获取的更多引用资料:
功能 ('useGBT2')
– “功能('useGBT2')仅在使用 -hgVersion 2 选项启动 Matlab 时可用。” - 在/ja/xlate:15419;另见: clf.m 功能 ('COM_ActxProgidCheck',flag) -/help/techdoc/helpsearch/_533.cfs 功能 ('TimeSeriesTools',1) -/help/techdoc/helpsearch/_533.cfs 功能 ('launch_activation', 'forcecheck') –/toolbox/local/StudentActivationStatus.m 功能 ('HGUsingMatlabClasses') –/toolbox/local/hgrc.m, subplot.m, title.m, xlabel.m, ylabel.m, zlabel.m, mesh.m, surf.m, colorbar.m 等等。 功能 ('EightyColumns',1) -/toolbox/local/matlabrc.m 功能 ('GetSharedLibExt') -/toolbox/matlab/audiovideo/private/privateMMReaderPluginSearch.m 功能 ('locale') - mlint.m, mtree.m, helpmenufcn.m 功能 ('clearjava',1) - javaclasspath.m 功能 ('figuretools') – domymenu.m 功能 ('getdefaultprinter') – printdlg.m:578 功能 ('ShowFigureWindows') – printjob.m, printtables.m,/toolbox/matlab/graphics/private/warnfiguredialog.m 功能 ('SearchUDDClassesForHelp') -/toolbox/matlab/helptools/+helpUtils/@HelpProcess/getHelpText.m 功能 ('Automationserver') - notebook.m, enableservice.m = 启用服务 ('AutomationServer', 真) 功能 ('EnableDDE',flag) – enableservice.m = 启用服务 ('DDEServer', 真) 以下是
中用到的OpenGL相关特性opengl .m 函数:
功能 ('openglmode') 功能 ('OpenGLLoadStatus') 功能 ('UseMesaSoftwareOpenGL',1)- 仅限 unix 功能 ('usegenericopengl',1) 功能 ('getopenglinfo') = opengl ('信息') 功能 ('getopengldata') = opengl ('数据') 功能 ('OpenGLVerbose',1)