Sei sulla pagina 1di 4

Briefly explain the following commands/

Clc:clc clears all input and output from the Command Window display, giving you a "clean screen."

Close:close deletes the current figure or the specified figure(s). It optionally returns the status of the close

operation. Remove specified figure

Clear:clear removes all variables from the workspace. This frees up system memory. Remove items from

workspace, freeing up system memory

Clf:clf deletes from the current figure all graphics objects whose handles are not hidden. Clear current

figure window

Zeros:Create array of all zeros. Example:B = zeros(n) returns an n-by-n matrix of zeros

ones
Create array of all ones
Example:Y = ones(n) returns an n-by-n matrix of ones.

eps
Floating-point relative accuracy. eps returns the distance from 1.0 to the next largest doubleprecision number, that is eps = 2^(-52)

sign
Signum function
Example:Y = sign(X) returns an array Y the same size as X

subplot
Create axes in tiled positions. subplot divides the current figure into rectangular panes that are numbered row wise. Each pane contains an axes object. Subsequent plots are output to the current pane.
Example:x=cos(w*t); y=sin(w*t);
subplot(2,1,1); plot(x) subplot(2,1,2); plot(y)

title
Add title to current axes. Each axes graphics object can have one title. The title is located at the top and in the center of the axes. Example:title('Asin(w*t)')

xlabel
Label x-axis
Example:xlabel('Time');

ylabel
Label y-axis Example:ylabel(Amplitude);

conv
Convolution and polynomial multiplication.w = conv(u,v) convolves vectors u and v.

stem
Plot discrete sequence data
Example:t=0:0.1:pi x=sin(t);
stem(t,x)

plot

2-D line plot Example:Plot(t,x)

angle
Phase angle. P = angle(Z) returns the phase angles, in radians, for each element of complex array Z. The angles lie between .

abs
Absolute value and complex magnitude. abs(X) returns an array Y such that each element of Y is the absolute value of the corresponding element of X.

freqz
Frequency response of digital filter. [h,w] = freqz(b,a,l) returns the frequency response vector h and the corresponding angular frequency vector w.

real
Real part of complex number. X = real(Z) returns the real part of the elements of the complex array.

imag
Imaginary part of complex number. Y = imag(Z) returns the imaginary part of the elements of array.

zplane
Plot zeros and ploes. This function displays the poles and zeros of discrete-time systems.
zplane(z,p)

tf2zp
Convert transfer function filter parameters to zero-pole-gain form. tf2zp finds the zeros, poles, and gains of a continuous-time transfer function.
Example:[z,p,k] = tf2zp(b,a)

filt
Specify discrete transfer functions in DSP format Example:sys = filt(num,den)

residuez
z-transform partial-fraction expansion. residuez converts a discrete time system, expressed as the ratio of two polynomials, to partial fraction expansion, or residue, form. It also converts the partial fraction expansion back to the original polynomial coefficients.

zp2tf

Convert zero-pole-gain filter parameters to transfer function form. zp2tf forms transfer function polynomials from the zeros, poles, and gains of a system in factored form.
[b,a] = zp2tf(z,p,k)

finds a rational transfer function

sin
Sine of argument in radians. The sin function operates element-wise on arrays. The function's domains and ranges include complex values. All angles are in radians. Example:Y = sin(X)

sinc
Sinc computes the sinc function of an input vector or array.

waitforbuttonpress
Wait for key press or mouse-button click. k = waitforbuttonpress blocks the caller's execution stream until the function detects that the user has clicked a mouse button or pressed a key while the figure window is active.

length
Length of vector. n = length(X) returns the size of the longest dimension of X. If X is a vector, this is the same as its length.

hold
Retain current graph in figure. hold on retains the current plot and certain axes properties so that subsequent graphing commands add to the existing graph.

fdatool
Open Filter Design and Analysis Tool. fdatool opens the Filter Design and Analysis Tool (FDATool)

fvtool
Open Filter Visualization Tool. fvtool(b,a) opens FVTool and computes the magnitude response of the digital filter defined with numerator, b and denominator, a.

grpdelay
Average filter delay (group delay). The group delay of a filter is a measure of the average delay of the filter as a function of frequency.

Potrebbero piacerti anche