Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please provide a working MATLAB code for the following question. 1. Consider a polynomial function r(t) of arbitrary order. Write a MATLAB function fxNthOrder PolyDTSignal
Please provide a working MATLAB code for the following question.
1. Consider a polynomial function r(t) of arbitrary order. Write a MATLAB function fxNthOrder PolyDTSignal to discretize the continuous-time polynomial signal r(t) into a discrete-time signal x[n]. As described in class, the discretization steps are: (1) + c(t = tmin + nAL) + [n]. The program should be able to generate the discrete-time signal for any arbitrary inputs (details of the inputs that the program should receive are given below). The program should also return the following outputs. Program inputs: i) domain of te (tmin, tmax) as a vector domainvec; ii) number of samples to be drawn from the continuous-time signal noof Samples; iii) coefficients of the polynomial as a vector (the program should receive a vector of arbitrary length with the coefficients of the polynomial coeffVec) Program outputs: i) vector of time points at which samples were drawn i.e. t=tmin + nAt as the output vector variable tVec; ii) vector of sample indices i.e. n as the output vector variable nVec; iii) vector of sampled signal i.e.Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started