index.txt
MATLAB(1) General Commands Manual MATLAB(1) NAME matlab - interactive matrix desk calculator SYNOPSIS /usr/lbin/matlab DESCRIPTION Matlab reads commands from the standard input and manipulates complex matrices. Special cases include real matrices and scalars. Operations include pseudoinversion (which is inversion for square nonsingular ma‐ trices), eigendecomposition, various other factorizations, solution of linear equations, matrix products (including inner and outer products), Kronecker products, log, exponential and trigonometric functions of ma‐ trices, and rank and condition estimation. Variables are alphanumeric strings of at most 4 characters. Case is ignored. Expressions and as‐ signment statements are written as in Fortran, and multiple statements can be put on one line, separated by either a comma or a semicolon; the result of a statement is written on the standard output unless a semi‐ colon 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:8:2 (meaning 1,3,5,7). Identity matrix is denoted `eye'; its dimensions are dictated by con‐ text. Reverse division is denoted by \ . For example, `x = A \ b' is roughly the same as `x = inv(A) ∗ b', except that Gaussian elimination, if ap‐ plicable, is used to compute x. Some matlab commands: help help word List commands and functions; `help word' lists information on word. It is useful to look over the complete help file and the MATLAB User's Guide (see below). 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 MATLAB User's Guide or type `help user'. FILES /usr2/matlab/help - original help file. /usr/llib/mathelp.dac and /usr/llib/mathelp.idx - direct-access help file. /usr2/matlab - source directory. /usr2/matlab/src/helper.f edit this to change location of the direct- access help file, then do `make' in the (above) matlab source di‐ rectory. /usr2/matlab/demo - demonstration file: use exec(′/usr2/matlab/demo′) SEE ALSO Cleve Moler, `MATLAB User's Guide', Technical Report CS81-1 (Revised), Dept. of Computer Science, University of New Mexico, 1982. piggot MATLAB(1)