x(n)=[ -15 , -10 , -5 , 0 , 5 , 10 , 15 , 20 , 25 , 30 , 35 , 40 , 45 , 50 , 55 , 60 , 65 ];
h(n)=[ 2 5 1];
(a) y1(n) = x(n) * h(n) = [ -30 , -95 , -75 , -35 , 5 , 45 , 85 , 125 , 165 , 205 , 245 , 285 , 325 , 365 , 405 , 445 , 485 ,385 ,65]
(b) yos(n) = [ -30 , -95 , -75 , -35 , 5 , 45 , 85 , 125 , 165 , 205 , 245 , 285 , 325 , 365 , 405 , 445 , 485 ,385 ,65]
filter size is 17+3-1=19.
block size (N)=L+M-1=5+3-1=7.
M-1=3-1=2 symbols are discarded in each block due to aliasing.
N-(discarded symbols)=7-2=5 symbols of old block are saved and becomes the first symbols of new record.
(c) input data block size is 5.
size of DFT = L+M-1=5+3-1=7.
Suppose the sequence x(n) = 5 * n-15, n-0,-. . , 16 is the input to...
2. (20 points) Let input x(n) (1 0 0) and impulse response h(n) (1 0). Each has length of N-3 and N 2, respectively. Append zeros to x(n) and h(n) to make the length of both equal to N+N-1 Find the output y(n) by using the DFT and the inverse DFT method.
Q8) Consider the following causal linear time-invariant (LTI) discrete-time filter with input x[n] and output y[n] described by bx[n-21- ax[n-3 for n 2 0, where a and b are real-valued positive coefficients. A) Is this a finite impulse response (FIR) or infinite impulse response (IIR) filter? Why? B) What are the initial conditions and their values? Why? C) Draw the block diagram of the filter relating input x[n] and output y[n] D) Derive a formula for the transfer function in...
7. For a linear system whose input-output relations is represented as: v n]=x[n]+0.5x[n-l]-0.25x[n-2]·(x r input. y[n] output) We also assume this system is originally at rest, ie. yln] -0 ifnco. (a) Write the transfer function of this systenm (b) Determine the first five samples of its impulse response. (c) Is this system a stable system? (d) Write down the input-output relation the causal inverse system of this system (e) Use Matlab to finds zeros and poles of the transfer function...
(a) x(t) undergoes impulse train sampling through the following system below: x(t) 20 n=-00 3 i. (5 pts) What is the sampling frequency w used by this system? What is the equation for the output Fourier Transform X,(jw) in terms of X(jw)? ii. (5 pts) Using your equation from (i), sketch the output spectrum X, (jw) vs. w. Make sure to label all critical points iii. (5 pts) Using your sketch from (ii), determine if there is aliasing or not....
ALGORITHM X(A[0..n - 1]) // Input: A contains n real numbers for it 0 to n - 2 do for jt i +1 to n - 1 do if Aj] > A[i] swap A[i] and A[j] 1. What does this algorithm compute? 2. What is the basic operation? 3. How many times is the basic operation executed? 4. What is the efficiency class of this algorithm?
please write code in MATLAB as well
5. (12 points) Create the following signal in Matlab: x[n] = u(n) - u[n-6] a. Mathematically compute yi[n] = x[n] * x[n] where * means convolution. Now use the conv command to perform the convolution. Graph x[n) and the resulting y(n), both over the interval Osns 20. How many non-zero terms does y(n) have? Does your computational result agree with the Matlab result? b. Repeat a. but this time with yz[n] = x[n]*h[n)...
Input
(stdin)
7
N 4 5
N 9 6
N 16 3
R
N 12 8
R
R
Expected Output
9
12
4
Make it in java
Josefine is in charge of the local student organization at The University of Algorithms. The organization gets tasks they must complete. Each task has a unique id and a unique difficulty. Over time new tasks are given to the organization, and Josefine is then responsible for delegating these to the members of the...
[15 marks] Suppose that students enrolled in one course are required to take four tests, and each student’s final grade for this course is the average of his/her grades of these four tests. This question asks you to write a program that can be used to compute the lowest final grade, highest final grade and the average final grade. General Requirements: Use a5q1.c as the name of your C source code file. We will use the following command on bluenose...
I am required to use the try - catch block to validate the input as the test data uses a word "Thirty" and not numbers. The program needs to validate that input, throw an exception and then display the error message. If I don't use the try - catch method I end up with program crashing. My issue is that I can't get the try - catch portion to work. Can you please help? I have attached what I have...
/***************************************************
Name:
Date:
Homework #7
Program name: HexUtilitySOLUTION
Program description: Accepts hexadecimal numbers as input.
Valid input examples: F00D, 000a, 1010, FFFF, Goodbye, BYE
Enter BYE (case insensitive) to exit the program.
****************************************************/
import java.util.Scanner;
public class HexUtilitySOLUTION {
public static void main(String[] args) {
// Maximum length of input string
final byte INPUT_LENGTH = 4;
String userInput = ""; // Initialize to null string
Scanner input = new Scanner(System.in);
// Process the inputs until BYE is entered
do {...