ELEC 1200

Useful MATLAB Command List

[2-1-3:4]

 

 

 

 

 

 

 

 

Name

Description

abs

Absolute value.

angle

Phase angle.

atan

Inverse tangent, result in radians.

axis

Control axis scaling and appearance.

cos

Cosine of argument in radians.

edit

Edit M-file.

exist

Check if variables or functions are defined.

exp

Exponential.

fft

Discrete Fourier transform.

fftshift

Shift zero-frequency component to center of spectrum.

filter

One-dimensional digital filter.

find

Find indices of nonzero elements.

fir1

FIR filter design using the window method.

firrcos

Raised Cosine FIR Filter design.

fix

Round towards zero.

flipud

Flip matrix in up/down direction.

floor

Round towards minus infinity.

freqz

Digital filter frequency response.

help

Display help text in Command Window.

hist

Histogram.

imag

Complex imaginary part.

imread

Read image from graphics file.

imshow

Display image in Handle Graphics figure.

isequal

True if arrays are numerically equal.

length

Length of vector.

linspace

Linearly spaced vector.

max

Largest component.

mean

Average or mean value.

num2str

Convert numbers to a string.

plot

Linear plot.

rand

Uniformly distributed pseudo-random numbers.

randn

Normally distributed random numbers.

real

Complex real part.

reshape

Change size.

sign

Signum function.

sin

Sine of argument in radians.

size

Size of array.

sort

Sort in ascending or descending order.

stem

Discrete sequence or "stem" plot.

subplot

Create axes in tiled positions.

sum

Sum of elements.

title

Graph title.

var

Variance.

wavplay

Play sound using Windows audio output device.

wavread

Read Microsoft WAVE (".wav") sound file.

wavrecord

Record sound using Windows audio input device.

xlabel

X-axis label.

xor

Logical EXCLUSIVE OR.

ylabel

Y-axis label.

zeros

Zeros array.

 

Note to instructors: Each entry should be taken directly from MATLAB help. For each function "f", simply cut the description that appears on the first line of the documentation that appears on the first line when you type "help f" into the Description column. When adding to this list, add new functions in alphabetical order.