accumarray

September 9th, 2009 No Comments   Posted in Functions

Construct array with accumulation Read More

quit

August 12th, 2009 No Comments   Posted in Functions

quit Quit MATLAB session.
quit terminates MATLAB after running the script FINISH.M,
if it exists. The workspace information will not be saved
unless FINISH.M calls SAVE. If an error occurs while
executing FINISH.M, quitting is cancelled. Read More

Matlab Expressions

August 5th, 2009 No Comments   Posted in Documents

Variables

Like most other programming languages, the MATLAB language provides mathematical expressions, but unlike most programming languages, these expressions involve entire matrices. Read More

Manipulating Matrices

March 13th, 2008 No Comments   Posted in Documents

Matrices and Magic Squares

Matlab MatrisIn MATLAB, a matrix is a rectangular array of numbers. Special meaning is sometimes attached to 1-by-1 matrices, which are scalars, and to matrices with only one row or column, which are vectors. MATLAB has other ways of storing both numeric and nonnumeric data, but in the beginning, it is usually best to think of everything as a matrix. The operations in MATLAB are designed to be as natural as possible. Where other programming languages work with numbers one at a time, MATLAB allows you to work with entire matrices quickly and easily. A good example matrix, used throughout this book, appears in the Renaissance engraving Melancholia I by the German artist and amateur mathematician Albrecht Dürer. Read More

for

March 6th, 2008 No Comments   Posted in Controls

for Repeat statements a specific number of times.
The general form of a for statement is: Read More

case

March 6th, 2008 No Comments   Posted in Controls

case SWITCH statement case.
case is part of the SWITCH statement syntax, whose general form is: Read More

break

March 6th, 2008 No Comments   Posted in Controls

break Terminate execution of WHILE or FOR loop.
break terminates the execution of FOR and WHILE loops.
In nested loops, break exits from the innermost loop only. Read More