Preview

MATLAB EL6114

Better Essays
Open Document
Open Document
554 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
MATLAB EL6114
Matlab
1.1.7
f(n) = u(n)-n(n-4)

n = -5:5; f = (n >= 0); g = (n >= 4); stem (n,(f-g))

g(n)=r(n)-2r(n-5)+r(n-10)

n = -15:15; r = n.*(n >= 0); f = (n-5).*((n-5)>=0); h = (n-10).*((n-10)>=0); g = r - 2.*f + h; stem (n,g)

x(n) = δ(n) - 2δ(n-4)

n = -5:5; f = (n == 0); g = ((n-4)==0); x = f - 2.*g stem (n,x)

y(n) = (0.9)^n (u(n)-u(n-20))

n = -20:20; f = (n >= 0); g = ((n-20)>=0); y = 0.9.^n.*(f-g); stem (n,y)

v(n) = cos (0.12pi*n)u(n)

n = 0:40; f = cos(.12*pi*n) g = (n>=0); y = f.*g; stem (n,y)

1.3.8
The convmtx() function work like this:

For example, h =[1,3,-1,2]; convmtx(h',4) It use the basic principle of convolution. When this matrix multiple x’, every line of this matrix multiple x’ and finally add together.

1.3.9 f = (n>=0)-((n-5)>=0); g = n.*(n >= 0)-2.*(n-5).*(n >= 0)+(n-10).*((n-10) >= 0);

A f(n)*f(n)

B f(n)*f(n)*f(n)

C f(n)*g(n)

D g(n)*delta(n) Every signal convolve delta signal is it self.

E g(n) * g(n)

From the figure, we know that f(n)*f(n) is a shift of g(n).
The signal is amplified when the signal convolved to itself repeatedly.

1.3.10
Command:

n = -5:5 f = 3.*((n+2)==0)-((n-1)==0)+2.*((n-3)==0) g = ((n+4)>=0)-((n-3)>=0) y = conv(f,g) m = -10:10 stem (m,y); xlabel('n'); ylabel('y(n)')

14.1

1.5.1 b
Program: Plot:

n = -10:10; k = -20:20; h = -(n == 0)+2*(1/2).^n.*(n>= 0); inverse = -(n == 0)+2*(-1/2).^n.*(n>= 0); v = conv (h,inverse); stem (k,v)

1.5.2 c
Program: Plot:

n = -10:10; k = -20:20; h = (n ==0) + 3.5 * ((n-1)==0)+ 1.5 *((n-2) == 0); inverse = -0.2*(-1/2).^n.*(n>= 0) - 1.2 * (-3).^n .*((-n-1)>=0); v = conv (h,inverse); stem (k,v)

1.5.3 b

Program: Plot:

n = -10:10; k = -20:20 h = ((n+1) ==0) - 10/3 * (n==0)+ ((n-1) == 0)

You May Also Find These Documents Helpful

  • Satisfactory Essays

    ECOR 1010 LAB 5

    • 419 Words
    • 2 Pages

    This report will analyse and discuss 45 given sizes of a dimension on a knob. A histogram and a table will be used to discuss the probability of the production of knobs within the accepted value. This report will also state and present the sample variance, sample mean, sample standard deviation, standard error, and the population mean confidence interval as well. These properties were also reported from Microsoft Excel.…

    • 419 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    130Lab Quiz 1

    • 247 Words
    • 2 Pages

    4. Why should loose hair, clothing and jewelry be restrained while you are performing an experiment?…

    • 247 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Lightlab

    • 470 Words
    • 9 Pages

    Data Table: ln(k) Uncertainty of ln(k) 1/T Uncertainty of 1/T 0.26136 6% 0.003309 0.0034% -0.10536 6% 0.003301 0.0033% 0.139762 4% 0.003288 0.0032% 0.34359 4% 0.003279 0.0031% 0.625938 3% 0.003266 0.0029% 1.011601 2% 0.003259 0.0029% 1.105257 2% 0.003256 0.0029% 1.348073 1% 0.00325 0.0028% 1.824549 0.81% 0.003213 0.0026% 1) Calculating the uncertainty…

    • 470 Words
    • 9 Pages
    Powerful Essays
  • Good Essays

    10 Icebreakers

    • 4111 Words
    • 17 Pages

    second row does the same thing and passes it to the third row. We continue the wave to…

    • 4111 Words
    • 17 Pages
    Good Essays
  • Good Essays

    Although this may look complicated at first glance, it really isn't. If you look closely at it and you'll see that it is really just a simple pattern. Here are some of the matrices that are used in computer graphics in order to…

    • 655 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Mathlab

    • 456 Words
    • 2 Pages

    %Question a)Equation 1 %T in unit celcius T=[ 77 77 63.5 53.3 53.3…

    • 456 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Kraljic Matrix

    • 687 Words
    • 3 Pages

    What is kraljics matrix and how can products be moved from one part of the matrix to the other?…

    • 687 Words
    • 3 Pages
    Good Essays
  • Good Essays

    value in the row. These computations are referred to as row reductions. We applied a similar…

    • 3035 Words
    • 13 Pages
    Good Essays
  • Powerful Essays

    Matlab

    • 2459 Words
    • 13 Pages

    based on a design developed by his grandfather in the years after World War II. The company’s…

    • 2459 Words
    • 13 Pages
    Powerful Essays
  • Good Essays

    Matlab Gatool

    • 482 Words
    • 2 Pages

    Save the file. (Note: The file must be saved under the same name as the function name. i.e. fitness2 as shown above)…

    • 482 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Matrices in Matlab

    • 6867 Words
    • 28 Pages

    >> A(2,3) ans = 0 This is indeed the element in row 2, column 3 of matrix A. You can access an entire row with Matlab’s colon operator. The command A(2,:) essentially means “row 2 every column” of matrix A. >> A(2,:) ans = 5 -1…

    • 6867 Words
    • 28 Pages
    Good Essays
  • Better Essays

    Matlab

    • 1699 Words
    • 7 Pages

    Actually there are many measures to prevent accidents caused by gas leaks and/or gas generations.…

    • 1699 Words
    • 7 Pages
    Better Essays
  • Satisfactory Essays

    Our objective is to design a close-set system that would recognize five designated speakers by using some of the DSP techniques we learned in MATLAB. To do this, we have a pre-recorded template that stores each speaker’s distinctive features. We will use this template to do a mix and match with the speakers in our system.…

    • 349 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Matlab Parallel Computing

    • 5168 Words
    • 21 Pages

    John Burkardt (ARC/ICAM) & Gene Cliff (AOE/ICAM) Virginia Tech .......... FDI Fall Short Course: Introduction to Parallel MATLAB at Virginia Tech http://people.sc.fsu.edu/∼burkardt/presentations/fdi matlab 2009.pdf .......... ARC: Advanced Research Computing AOE: Department of Aerospace and Ocean Engineering ICAM: Interdisciplinary Center for Applied Mathematics…

    • 5168 Words
    • 21 Pages
    Powerful Essays