# Category: Controls

## Linear Algebra

Informally, the terms matrix and array are often used interchangeably. More precisely, a matrix is a two-dimensional numeric array that represents a linear transformation. The mathematical operations defined on matrices are the subject of...

## The Colon Operator

The colon, :, is one of MATLAB’s most important operators. It occurs in several different forms. The expression 1:10 is a row vector containing the integers from 1 to 10 1 2 3 4...

## while

while Repeat statements an indefinite number of times. The general form of a while statement is: while expression statements END The statements are executed while the real part of the expression has all non-zero...

## return

return Return to invoking function. return causes a return to the invoking function or to the keyboard. It also terminates the KEYBOARD mode. Normally functions return when the end of the function is reached....

## elseif

elseif IF statement condition. elseif is used with IF. The statements after the elseif are executed if the expression is true and all the preceding IF and elseif expressions are false. An expression is...

## if

if if statement condition. The general form of the if statement is if expression statements ELSEIF expression statements ELSE statements END The statements are executed if the real part of the expression has all...

## for

for Repeat statements a specific number of times. The general form of a for statement is: for variable = expr, statement, …, statement END The columns of the expression are stored one at a...