问题描述
我很好奇在哪里可以找到 FEATURE 功能的完整说明?它接受哪个参数?没有找到文件。我只听说过 memstats
和 getpid
。还有什么?
>>其中包含
内置(未记录)
feature 是一个完全没有记录和不支持的Matlab函数,与大多数其他未公开的Matlab函数不同,它实际上经常会在Matlab版本之间没有事先通知的情况下更改,所以在您的函数中使用此函数时要非常小心代码。
话虽如此,多年来已经报道了几个功能选项,主要是在CSSM论坛上,也可以在安装的Matlab代码库中看到:
$ b 特征 接受两个参数:特征的名称和可选的新的val UE。这与 get / set 函数类似:如果只提供一个参数,则Matlab返回当前特征值(如 get / strong>),否则该值会被修改(如 set )。 ('usehg2',1) - 这显然与当前正在开发的一个新的Handle-Graphics实现有关(在过去的几个版本中) - 如果有人有关于HG2的任何信息,我很乐意听到它... 'JavaFigures') - 在propedit.m中提到; 原生(非Java)Matlab数字被禁用。在\toolbox\matlab\graphics中提及 \private\setup.m
功能 ('accel','开启/关闭') - 请参阅
功能 ('getpid') - (嗯,实际上是其JVM的PID,但与Matlab的PID相同)。另请参阅类似的 java.lang.management.ManagementFactory.getRuntimeMXBean.getName.char
。
- cpucount = feature('时间','cpucount') - 见工具箱\matlab\iofun\tempname.m(其他几个第二选项)
-
功能 ('useGBT2')
- feature('useGBT2')仅当Matlab以-hgVersion 2选项启动时才可用。 - In / 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
-
功能
) - domymenu.m ('ShowFigureWindows') - printjob.m,printtables.m,/ toolbox / matlab。/ p> / images / private / warnfiguredialog.m -
功能 ('SearchUDDClassesForHelp') - / toolbox / matlab /helptools/+helpUtils/@HelpProcess/getHelpText.m
-
-
功能 ('Automationserver' ) - notebook.m,enableservice.m = enableservice ('AutomationServer',true)
- 功能 ('EnableDDE',flag) - enableservice.m = enableservice ('DDEServer',true)
以下是OpenGL相关的功能,用于 opengl .m函数:
$ b
- 功能 ('openglmode')
- 功能 ('OpenGLLoadStatus') ('usegenericopengl',1) ('UseMesaSoftwareOpenGL',1) - 仅限于unix / li>
- 功能 ('getopenglinfo')= opengl ) 功能 数据')
- 功能 ('OpenGLVerbose',1)
I'm curious where to find a complete description of FEATURE function? Which arguments it accepts? No documentation was found. I heard only about memstats
and getpid
. Anything else?
>> which feature
built-in (undocumented)
feature is an entirely undocumented and unsupported Matlab function, and unlike most other undocumented Matlab functions it actually does often change without prior notice between Matlab releases, so be very careful when using this function in your code.
Having said that, several feature options have been reported over the years, mainly on the CSSM forum and also seen in the installed Matlab code base:
feature accepts two arguments: the name of the feature and an optional new value. This is similar to get/set functions: If only one argument is supplied, Matlab returns the current feature value (like get), otherwise the value is modified (like set).
feature('usehg2',1) - this apparently relates to a new Handle-Graphics implementation that is currently under development (for the past few releases) - if anyone has any information about HG2 I would love to hear it...
feature('JavaFigures') - mentioned in propedit.m; disabled since R2007a when native (non-Java) Matlab figures were disabled.
feature('NewPrintAPI') - mentioned in \toolbox\matlab\graphics\private\setup.m
feature('accel’,’on/off’) - see here
feature('getpid') - returns the Matlab process ID (well, actually the PID of its JVM but that's the same PID as Matlab's). Also see the similar
java.lang.management.ManagementFactory.getRuntimeMXBean.getName.char
.feature('NumCores') - returns the number of CPU cores seen by Matlab
feature(memstats, dumpmem, processmem, ...) - multiple online references
feature('hotlinks') – see toolbox\matlab\helptools\info.m
feature('UseOldFileDialogs') – see toolbox\matlab\uitools\private\usejavadialog.m
feature('timing')
- cpucount = feature('timing','cpucount') – see toolbox\matlab\iofun\tempname.m (several other 2nd arg options)
feature('DefaultCharacterSet') - see here
And here are a few more references taken from the installed R2010a Matlab code base:
feature('useGBT2')– "feature('useGBT2') is only available when Matlab is started with -hgVersion 2 option." - In /ja/xlate:15419; also see in: clf.m
feature('COM_ActxProgidCheck',flag) - /help/techdoc/helpsearch/_533.cfs
feature('TimeSeriesTools',1) - /help/techdoc/helpsearch/_533.cfs
feature('launch_activation', 'forcecheck') – /toolbox/local/StudentActivationStatus.m
feature('HGUsingMatlabClasses') – /toolbox/local/hgrc.m, subplot.m, title.m, xlabel.m, ylabel.m, zlabel.m, mesh.m, surf.m, colorbar.m etc. etc.
feature('EightyColumns',1) - /toolbox/local/matlabrc.m
feature('GetSharedLibExt') - /toolbox/matlab/audiovideo/private/privateMMReaderPluginSearch.m
feature('locale') - mlint.m, mtree.m, helpmenufcn.m
feature('clearjava',1) - javaclasspath.m
feature('figuretools') – domymenu.m
feature('getdefaultprinter') – printdlg.m:578
feature('ShowFigureWindows') – printjob.m, printtables.m, /toolbox/matlab/graphics/private/warnfiguredialog.m
feature('SearchUDDClassesForHelp') - /toolbox/matlab/helptools/+helpUtils/@HelpProcess/getHelpText.m
feature('Automationserver') - notebook.m, enableservice.m = enableservice('AutomationServer', true)
- feature('EnableDDE',flag) – enableservice.m = enableservice('DDEServer', true)
The following are OpenGL-related features that are used in opengl.m function:
- feature('openglmode')
- feature('OpenGLLoadStatus')
- feature('UseMesaSoftwareOpenGL',1)- unix only
- feature('usegenericopengl',1)
- feature('getopenglinfo') = opengl('info')
- feature('getopengldata') = opengl('data')
- feature('OpenGLVerbose',1)
这篇关于MATLAB功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!