
Библиотеки Matlab / local
.doc
toolbox\local – Общие персональные настройки и информация о конфигурации
Saved preferences files
<startup> - User startup M-file (see startupsav as sample).
startup not found.
Use the Help browser search field to search the documentation, or
type "help help" for help command options, such as help for methods.
<finish> - User finish M-file (see finishsav or finishdlg as sample).
finish not found.
Use the Help browser search field to search the documentation, or
type "help help" for help command options, such as help for methods.
<matlabrc> - Master startup M-file.
MATLABRC Master startup M-file.
MATLABRC is automatically executed by MATLAB during startup.
It establishes the MATLAB path, sets the default figure size,
and sets a few uicontrol defaults.
On multi-user or networked systems, the system manager can put
any messages, definitions, etc. that apply to all users here.
MATLABRC also invokes a STARTUP command if the file 'startup.m'
exists on the MATLAB path.
Reference page in Help browser
doc matlabrc
<hgrc> - Master startup M-file for Handle Graphics.
HGRC Master startup MATLAB file for Handle Graphics.
HGRC is automatically executed by MATLAB during startup.
It establishes the default figure size and sets a few uicontrol defaults.
On multi-user or networked systems, the system manager can put
any messages, definitions, etc. that apply to all users here.
HGRC also invokes a STARTUPHG command if the file 'startupHG.m'
exists on the MATLAB path.
<initprefs> - Runs all PREFSPANEL functions.
INITPREFS Runs all PREFSPANEL functions.
INITPREFS scans the MATLAB path for all files called prefspanel.m and
evaluates each in turn. Each prefspanel.m file registers the preferences
panel for a given toolbox.
See also prefspanel
<simulinkrc> - Master startup M-file for Simulink
SIMULINKRC Master startup M-file for Simulink
SIMULINKRC is automatically executed by Simulink during startup.
On multi-user or networked systems, the system manager can put
any messages, definitions, etc. that apply to all users here.
SIMULINKRC also invokes a STARTUPSL command if the file 'startupsl.m'
exists on the MATLAB path.
<pathdef> - Search path defaults.
PATHDEF Search path defaults.
PATHDEF returns a string that can be used as input to MATLABPATH
in order to set the path.
<printopt> - Printer defaults.
PRINTOPT Printer defaults.
PRINTOPT is an M-file that you or your system manager can
edit to indicate your default printer type and destination.
[PCMD,DEV] = PRINTOPT returns two strings, PCMD and DEV.
PCMD is a string containing the print command that
PRINT uses to spool a file to the printer. Its default is:
Unix: lpr -r
Windows: COPY /B LPT1:
Macintosh: lpr -r (Mac OS X 10.2 and higher)
Print -Mps (Mac OS X 10.1)
Note: Solaris users who do not use BSD printing, i.e. lpr,
need to edit this file and uncomment the line to specify 'lp -c'.
DEV is a string containing the default device option for
the PRINT command. Its default is:
Unix: -dps2
Windows: -dwin
Macintosh: -dps2
See also print.
Preference commands
<cedit> - Set command line editor keys.
CEDIT Set command line editor keys.
CEDIT('off') turns off command line recall/edit.
CEDIT('on') turns command line recall/edit back on.
CEDIT('emacs') returns to the default Emacs key definitions.
Here is a table that shows which keystrokes are available
using the command line editor:
Previous line: ^p
Next line: ^n
One character left: ^b
One character right: ^f
Cursor word left: esc b, ^l
Cursor word right: esc f, ^r
Cursor to beginning of line: ^a
Cursor to end of line: ^e
Cancel line: ^u
In place delete: ^d
Insert toggle: ^t
Delete to end of line: ^k
Type CEDIT.M for more information.
The 'emacs' option is always in effect for MS-Windows, in
addition to the normal fixed key bindings.
Configuration information
<hostid> - MATLAB server host identification number.
HOSTID MATLAB server host identification number.
It usually returns a single element cell array
containing the identifier as a string. UNIX systems
may have more than one identifier. In this case,
HOSTID returns a cell array with an identifier in
each cell.
Reference page in Help browser
doc hostid
<license> - Return license number or perform licensing task.
LICENSE Return license number or perform licensing task.
LICENSE, with no arguments, returns the license number for
this MATLAB.
The return value is always a string but is not guaranteed to
be a number. The return value can be the string 'demo' for
demo licenses, 'student' for student licenses, or 'unknown'
if the license number cannot be determined.
LICENSE('inuse') returns a list of the licenses checked out in
the current MATLAB session. In this list, products are listed
alphabetically by their license feature names, i.e., the text
string used to identify products in the INCREMENT lines in a
License File (license.dat). Note that the feature names returned
in the list contain only lower-case characters.
S = LICENSE('inuse') returns an array of structures, where
each structure represents a checked out license. The structures
contains two fields: feature and user. The feature field
contains the license feature name. The user field contains the
username of the person who has the license checked out.
S = LICENSE('inuse', FEATURE) checks if the product specified by the
text string FEATURE is checked out in the current MATLAB session. If
the product is checked out, LICENSE returns the license feature name
and the username in the structure S. If the product is not currently
checked out, the fields in the structure are empty.
The FEATURE string must be a license feature name, spelled exactly as
it appears in the INCREMENT lines in a License File. For example, the
string 'Identification_Toolbox' is the feature name for the System
Identification Toolbox. The FEATURE string is not case-sensitive and
must not exceed 27 characters.
LICENSE('test', FEATURE) tests if a license exists for the product
specified by the text string FEATURE. The LICENSE command returns
1 if the license exists and 0 if the license does not exist.
Note: Testing for a license only confirms that the license
exists. It does not confirm that the license can be checked
out. For example, LICENSE will return 1 if a license exists,
even if the license has expired or if a system administrator
has excluded you from using the product in an options file.
The existence of a license does not indicate that the product
is installed.
LICENSE('test', FEATURE, TOGGLE) enables or disables testing
of the product, FEATURE, depending on the value of TOGGLE.
If you set TOGGLE to 'enable', the syntax LICENSE('test',FEATURE)
will return 1 if the product license exists and 0 if the product
license does not exist. If you set TOGGLE to 'disable', this
syntax will always return 0 (product license does not exist)
for the specified feature.
Note: Disabling a test for a particular product can impact
other tests for the existence of the license, not just
tests performed using the LICENSE command.
LICENSE('checkout', FEATURE) checks out a license for
the product specified by the text string FEATURE, returning 1
if the license is checked out or 0 if the license could not be
checked out.
Examples
% Get the license number of the current MATLAB.
license
% Get a list of all the licenses currently in use.
license('inuse')
% Get a list of licenses in use with information about who is
% using the license.
S = license('inuse')
% Determine if the license for MATLAB is currently in use.
S = license('inuse','MATLAB')
% Determine if a license exists for a product.
license('test','map_toolbox')
% Check out a license for the Control Systems Toolbox.
license('checkout','control_toolbox')
Reference page in Help browser
doc license
<version> - MATLAB version number.
VERSION Version information for MATLAB and libraries.
VERSION returns a string containing MathWorks product family version
information.
VERSION returns the full MathWorks product family
version string
VERSION('-date') returns the release date
VERSION('-release') returns the release number
VERSION('-description') returns the release description
VERSION('-java') returns Java version information
See also computer, ver, verLessThan, whatsnew.
Reference page in Help browser
doc version
Utilities
<userpath> - User environment path
USERPATH User environment path.
USERPATH returns a path string containing the user specific portion of
the path (if it exists). The userpath is the first folder or folders in
the list of folders returned by PATHDEF and thus affects the search path.
The userpath consists of a primary path, and on certain platforms,
also contains a secondary path. The primary path is only one folder, but
the secondary path can contain multiple folders.
The default primary userpath is platform specific: on Windows,
it is the user's "Documents" (or "My Documents" on WinXP) folder
appended with "MATLAB". On the Mac, it is the user's
"Documents" folder ($home/Documents) appended with "MATLAB".
On Unix, it is the user's $home appended by Documents and
MATLAB; if there is no $home/Documents directory, the default
primary userpath will not be used.
The secondary userpath is available only on UNIX and Mac and is taken
from the MATLABPATH environment variable.
USERPATH(path) changes the current value of the primary userpath to the
folder passed in. It updates the current MATLAB path, and this
new primary userpath will persist across MATLAB sessions. This will not
work with the -nojvm startup option.
USERPATH('reset') resets the primary userpath to the default. It updates
the current MATLAB path, and this new primary userpath will persist across
MATLAB sessions. This will not work with the -nojvm startup option.
USERPATH('clear') removes the primary userpath. It updates the current
MATLAB path, and this new primary userpath will persist across MATLAB sessions.
This will not work with the -nojvm startup option.
See also pathdef.
Reference page in Help browser
doc userpath