ECE 130A Computer Assignment #4 2021
Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit
ECE 130A Computer Assignment #4
2021
Submit your homework as a zipped folder with the .m function files.
——
Problem 1
Function Name: hw41
Inputs:
● (double, 2 × M) h - [time points; impulse response at corresponding time points]
● (double), 2 × N x - [time points; input value at corresponding time points]
Outputs:
● (double, 2 × K) y - [time points; output value at corresponding time points]
Function Description:
Given a system’s impulse response and and input, you would like to characterize the output of the system. Unlike in previous assignment, you now have to keep track of the time points when performing the convolution. You can assume that for each signal, if it is not explicitly defined for a time point, then the value of the signal at that time point is 0.
Notes:
● When returning the y variable, remove all time points with a correspond- ing output value of 0.
● Can use the conv() function to perform the convolution
Tests Understanding Of:
● convolutions
Problem 2
Function Name: hw42
Inputs:
● (double, 1 × M) numtf - coefficients for the numerator of the transfer function
● (double, 1 × N) dentf - coefficients for the denominator of the transfer function
● (double, 1 × K) coeffExp - list of scalings for each exponential
● (double, 1 × K) powExp - list of exponents for the exponential function
● (double, 1 × D) T - list of time points in which to define the input for
Outputs:
● (double, 1 × D) y - output from the system with an exponential input
Function Description:
You would like to characterize the output of a given transfer function and a linear combination of exponential inputs. The input is
_
coeffExp(i) . epowExp(i)i for t e T (1)
K=0
Notes:
● Helpful functions include tf() , lsim()
Tests Understanding Of:
● Control system toolbox functions
2022-02-24