Controlling Command Window Input and Output

March 19th, 2010 No Comments   Posted in Documents

The format Function

The format function controls the numeric format of the values displayed. The function affects only how numbers are displayed, not how MATLAB software computes or saves them. Here are the different formats, together with the resulting output produced from a vector x with components of different magnitudes. Read More

Path

August 12th, 2009 No Comments   Posted in Functions

path Get/set search path.
PATH, by itself, prettyprints MATLAB’s current search path. The
initial search path list is set by PATHDEF, and is perhaps
individualized by STARTUP. Read More

Working with Matrices in Matlab

August 5th, 2009 No Comments   Posted in Documents

Generating Matrices

MATLAB software provides four functions that generate basic matrices. 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

while

March 6th, 2008 No Comments   Posted in Controls

while Repeat statements an indefinite number of times.
The general form of a while statement is: Read More

elseif

March 6th, 2008 No Comments   Posted in Controls

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 considered true if
the real part has all non-zero elements. Read More

if

March 6th, 2008 No Comments   Posted in Controls

if if statement condition.
The general form of the if statement is Read More