Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
24
Добавлен:
09.02.2015
Размер:
407.04 Кб
Скачать

Interactive user input which cannot be provided.

See also computer, dos, perl, system, and ! (exclamation point) under punct.

Reference page in Help browser

doc unix

<system> - Execute system command and return result.

Contents of system:

eml_scompget - Embedded MATLAB Library function.

system is both a directory and a function.

SYSTEM Execute system command and return result.

[status,result] = SYSTEM('command') calls upon the operating system to

execute the given command. The resulting status and standard output

are returned.

This function is interchangeable with the DOS and UNIX functions. They

all have the same effect.

Examples:

[status,result] = system('dir')

[status,result] = system('ls')

returns status = 0 and, in result, a MATLAB string containing a list of

files in the current directory (assuming your operating system knows

about the "dir" or "ls" command). If "dir" or "ls" fails or does not

exist on your system, SYSTEM returns a nonzero value in status, and an

explanatory message in result.

See also computer, dos, perl, unix, and ! (exclamation point) under punct.

Reference page in Help browser

doc system

<perl> - Execute Perl command and return the result.

PERL Execute Perl command and return the result.

PERL(PERLFILE) calls perl script specified by the file PERLFILE

using appropriate perl executable.

PERL(PERLFILE,ARG1,ARG2,...) passes the arguments ARG1,ARG2,...

to the perl script file PERLFILE, and calls it by using appropriate

perl executable.

RESULT=PERL(...) outputs the result of attempted perl call. If the

exit status of perl is not zero, an error will be returned.

[RESULT,STATUS] = PERL(...) outputs the result of the perl call, and

also saves its exit status into variable STATUS.

If the Perl executable is not available, it can be downloaded from:

http://www.cpan.org

See also system, java, mex.

Reference page in Help browser

doc perl

<computer> - Computer type.

COMPUTER Computer type.

C = COMPUTER returns string C denoting the type of computer

on which MATLAB is executing. Possibilities are:

ISPC ISUNIX ISMAC ARCHSTR

32-Bit Platforms

PCWIN - Microsoft Windows on x86 1 0 0 win32

GLNX86 - Linux on x86 0 1 0 glnx86

64-Bit Platforms

PCWIN64 - Microsoft Windows on x64 1 0 0 win64

GLNXA64 - Linux on x86_64 0 1 0 glnxa64

MACI64 - Apple Mac OS X on x86_64 0 1 1 maci64

ARCHSTR = COMPUTER('arch') returns string ARCHSTR which is

used by the MEX command -arch switch.

[C,MAXSIZE] = COMPUTER returns integer MAXSIZE which

contains the maximum number of elements allowed in a matrix

on this version of MATLAB.

[C,MAXSIZE,ENDIAN] = COMPUTER returns either 'L' for

little endian byte ordering or 'B' for big endian byte ordering.

See also ispc, isunix, ismac.

Reference page in Help browser

doc computer

<isunix> - True for the UNIX version of MATLAB.

ISUNIX True for the UNIX version of MATLAB.

ISUNIX returns 1 for UNIX versions of MATLAB and 0 otherwise.

See also computer, ispc, ismac.

Reference page in Help browser

doc isunix

<ispc> - True for the PC (Windows) version of MATLAB.

ISPC True for the PC (Windows) version of MATLAB.

ISPC returns 1 for PC (Windows) versions of MATLAB and 0 otherwise.

See also computer, isunix, ismac.

Reference page in Help browser

doc ispc

Соседние файлы в папке Библиотеки Matlab