Code
t = -5:0.1:5;
% 5 a)
plot(t,sign(t))
title('sgn(t)')
% 5 b)
figure();
plot(t,sign(t-3))
title('sgn(t-3)')
% 5 c)
figure();
plot(t,2*sign(t-3))
title('2*sgn(t-3)')
alpha = 3;
t = -5:0.1:5;
% 6 a)
plot(t,exp(-alpha*t).*(t>=0))
title('e^-at * u(t)')
% 6 b)
figure();
plot(t,2*exp(-alpha*t).*((t-4)>=0))
title('2e^-at * u(t-4)')
Hello Only need the answer of question 5 and 6 also with the graph. Write MATLAB...
Write MATLAB code to plot the following waveforms. Impulse approximation: δ(?) δ(? − ?) For ?, choose any value that makes sense. Unit steps: ?(?) ?(? − ?) ? ⋅ ?(? − ?) For ? and ?, choose any values that make sense
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)...
3. (40 Pts.) Write a script which takes the frequency, amplitude and type (sinusoidal, square or triangular) of a function as input from user and plots the function y(t) at output. Hint: In MATLAB, you can generate a sinusoidal function by using "sin", a square function by using "square" and a triangular function by using "sawtooth" functions. User-inputs Select any frequency within the interval FE lkHz, 100 kHz , select the amplitude of the signal "VM" and define the time...
QUESTION 2 (20 MARKS) (a) A continuous time signal x(t) = 3e2tu(-t) is an input to a Linear Time Invariant system of which the impulse response h(t) is shown as h(t) = { .. 12, -osts-2 elsewhere Compute the output y(t) of the system above using convolution in time domain for all values of time t. [8 marks) (b) The impulse response h[n] of an LTI system is given as a[n] = 4(0.6)”u[n] Determine if the system is stable. [3...
cope the code please thanks Write a MATLAB code to obtain the following. Keep your code commented whenever required. Copy your source code and command widow outcomes and screen shots of any plots in your solution. Generate a matrix "A" as follow. A= 16 6 8 2 10 18 12 14 4 I. II. Divide the matrix A by 2 and store the result in a matrix B. Combine matrices A & B to obtain the following matrix C. Also...
Linear Algebra Matlab exercise: 1. (20 points total) Let -6 28 211 A=14-15-12 L-8 32 25 Write a script that (a) (5 points) Computes and prints on the screen the eigenvalues of A (b) (10 points) Without using eig command, computes and prints on the screen bases for the eigenspaces corresponding to each of the distinct eigenvalues of A (c) (5 points) Plots p(t) (e) (5 points) Plots det(A tI), the characteristic polynomial of A, as a function of t...
MATLAB question. Please answer all the questions and also upload the code by MATLAB. Thanks. Down vote if no code provided. For the circuit shown above, at the moment t = 0, the switch is closed, find w(t) for 120, No energy is stored in the capacitor and inductor at moment t-0 1. Write the dynamic model for RLC circuit after t> 0? a. Show all vour work and calculations b. Write down the characteristic equation of the transfer function...
Hello I need some help with these organic chem pre lab questions for the extraction of trimyristin from nutmeg 4.(1) What technique is used to ensure as much as possible trimyristin is extracted from the nutmeg? 5. (6 pts.) Indicate whether the following statements are true (T) or false (F) AND correct any of the false statements. a. The functional group present in trimyristin is a carboxylic acid group b. Pure trimyristin is a liquid at room temperature. c. The...
hello this is about linear regression i want answer the question using R write the results and command of R A marketing researcher studied annual sales of a product that had been introduced 10 years ago. The data are as follows, where X is the year (coded) and Y is sales in thousands 1 VI X;: 2 135 3 162 4 178 5 221 6 232 5 7 283 6 8 306 7 9 374 8 10 395 9 98...
Using MATLAB functions, write a program to answer the question 2) [6 pts] Consider the polynomial y x3-8x2 + 19x - 12 a) Create an anonymous function for y and use that for parts (b)-(d) b) Plot the function over the range 0 s x s 5. Use fplot. c) Find all zeros of the function d) Find the minimum point