MATLAB is a
powerful software tool for mathematical Computation. Using the tool Boxes available in the MATLAB we can
use it for the applications like signal processing , Control systems,
Mechanical applications, Circuit simulation etc. The main principle behind the
MATLAB Computation is it takes the data in the form of Matrix and it computes the
data,corresponding result is displayed on the console.
Some
important commands in MATLAB:
Command
|
Operation
|
Help
|
Lists topic which help is
available
|
Help command name
|
Provides help on the topic
selected
|
Demo
|
Runs the Demo program
|
Who
|
Lists variables currently in the
workspace
|
Whos
|
Lists variables currently in the
workspace and their sizes
|
Clear
|
Clear the workspace, all the
variables are removed.
|
Clear x,y,z
|
Clears only variables x, y
and z.
|
Quit
|
Quits MATLAB
|
Some
of the frequently used built-in-functions in signal processing Toolbox:
Command
|
Operation
|
FILTER(B,A,X)
|
Syntax of this function is Y =
FILTER(B,A,X). It filters the data in vector X with the filter described by
vectors A and B to create the filtered data Y.
|
FFT(X)
|
FFT(X) is the discrete Fourier transform (DFT) of vector X. For matrices, the FFT operation is applied
to each column. For N-D arrays, the FFT operation operates on the first
non-singleton dimension.
FFT(X,N) is the N-point FFT, padded with zeros if X has less than N
points and truncated if it has more.
|
IFFT(X)
|
IFFT(X) is the inverse discrete
Fourier transform of X.
IFFT(X,N) is the N-point inverse
transform.
|
CONV(A, B)
|
C = CONV(A, B) convolves vectors A
and B. The resulting vector is length
LENGTH(A)+LENGTH(B)-1.
If A and B are vectors of polynomial
coefficients, convolving them is equivalent to multiplying the two
polynomials.
|
DECONV(B,A)
|
[Q,R] = DECONV(B,A) deconvolves
vector A out of vector B. The result
is returned in vector Q and the remainder in vector R such that B = conv(A,Q)
+ R.
If A and B are vectors of polynomial coefficients, deconvolution is
equivalent to polynomial division. The
result of dividing B by A is quotient Q and remainder R.
|
ABS(X)
|
ABS(X) is the absolute value of
the elements of X. When X is complex, ABS(X) is the complex modulus
(magnitude) of the elements of X.
|
ANGLE(H)
|
ANGLE(H) returns the phase angles,
in radians, of a matrix with complex elements.
|
FREQZ(B,A,N)
|
[H,W] = FREQZ(B,A,N) returns the
N-point complex frequency response vector H and the N-point frequency vector
W in radians/sample of the filter B/A.
|
STEM(Y)
|
STEM(Y) plots the data sequence Y
as stems from the x axis terminated with circles for the data value. If Y is
a matrix then each column is plotted as a separate series.
|
STEM(X,Y)
|
STEM(X,Y) plots the data sequence
Y at the values specified in X.
|
PLOT(X,Y)
|
PLOT(X,Y) plots vector Y versus
vector X. If X or Y is a matrix, then the vector is plotted versus the rows
or columns of the matrix, whichever line up.
If X is a scalar and Y is a vector, length(Y) disconnected points are
plotted.
|
TITLE('text')
|
TITLE('text') adds text at the top
of the current axis.
|
XLABEL('text')
|
XLABEL('text') adds text beside
the X-axis on the current axis.
|
YLABEL('text')
|
YLABEL('text') adds text beside
the Y-axis on the current axis.
|
|
|
Comments
Post a Comment