Manual Page Result
0
Command: matlab | Section: 1 | Source: UNIX v10 | File: matlab.1
MATLAB(1) General Commands Manual MATLAB(1)
NAME
matlab - interactive matrix desk calculator
SYNOPSIS
/usr/lbin/matlab
DESCRIPTION
Matlab manipulates complex matrices interactively. Special cases in-
clude real matrices and scalars. Operations include pseudoinversion
(which is inversion for square nonsingular matrices), eigendecomposi-
tion, various other factorizations, solution of linear equations, ma-
trix products (including inner and outer products), Kronecker products,
log, exponential and trigonometric functions of matrices, and rank and
condition estimation.
Variables are alphanumeric strings of at most 4 characters. Case is
ignored. Expressions and assignment statements are written as in For-
tran. Multiple statements can be put on one line, separated by either
comma or semicolon; the result of a statement is written on the stan-
dard output unless a semicolon follows the statement. Extensions to
Fortran notation include:
Matrix construction from elements. Elements in a row are separated by
commas; columns are separated by semicolons; matrices are surrounded by
brackets.
Transpose is indicated by postfix prime
Consecutive integers are denoted by colons in the style 1:4 or 1:2:8
(meaning 1,3,5,7). is a subarray; is a column.
Identity matrix is denoted its dimensions are dictated by context.
Reverse division is denoted by \ . For example, is roughly the same as
except that Gaussian elimination, if applicable, is used to compute x.
Some matlab commands:
help
help word
List commands and functions, or specific information about a
word:
ABS ANS ATAN BASE CHAR CHOL CHOP CLEA COND CONJ COS
DET DIAG DIAR DISP EDIT EIG ELSE END EPS EXEC EXIT
EXP EYE FILE FLOP FLPS FOR FUN HESS HILB IF IMAG
INV KRON LINE LOAD LOG LONG LU MACR MAGI NORM ONES
ORTH PINV PLOT POLY PRIN PROD QR RAND RANK RCON RAT
REAL RETU RREF ROOT ROUN SAVE SCHU SHOR SEMI SIN SIZE
SQRT STOP SUM SVD TRIL TRIU USER WHAT WHIL WHO WHY
save('file')
save('file[,var]...')
Save all current variables, or just the designated variables in
file.
load('file')
Restore saved variables.
exec('file')
Execute the commands in file before reading more commands from
the standard input.
Matlab can be called as a subroutine. For details, see the reference
or type
FILES
SEE ALSO
Cleve Moler, MATLAB User's Guide, Technical Report CS81-1 (Revised),
Dept. of Computer Science, University of New Mexico, 1982. (Available
in troff form with the Matlab source.)
MATLAB(1)