1. Constructing a function (5 pts) a. Construct a function in a file named sumxy.m that accepts an input vector x and in
Posted: Sun May 15, 2022 2:58 pm
1. Constructing a function (5 pts) a. Construct a function in a file named sumxy.m that accepts an input vector x and input vector y and calculates the sum in the following equation, and returns a single value result z. z=(x°[n]+x[n]* y[n]+100) b. Using the sumxy function you constructed in part a), determine the output result z if the input vectors x and y are given by >> x=[1:2:43]; y=[1:3:64]; 2. Linearity & Time Invariance (5 pts) Using the finalsystems function posted on Blackboard, provide the input-output mathematical relation (equation) of the system and verify if the system is linear and/or time-invariant with the following test signals. Please discuss the results. Input-Output Linearity Time Mathematical Relation Invariance (Equation) y(1)
Test signals for linearity check t=[-2:0.01:10]; xl= (t>=0&t<1); x2=(t>=-1&t<5); yl=finalsystems (t, xl); y2= finalsystems (t, x2); y12-yi+y2; x3=x1+x2; y3= finalsystems (t, x3); Compare yz and y12=yl+y2 to verify system linearity. Test signals for Time invariance check t=[-2:0.01:10]; xl=(t>=0&t<1); yl= finalsystems (t, xl); x4=(t>=-1.5&t<-0.5); y4= finalsystems (t, x4); Compare yi & y4 to verify system time invariance
Test signals for linearity check t=[-2:0.01:10]; xl= (t>=0&t<1); x2=(t>=-1&t<5); yl=finalsystems (t, xl); y2= finalsystems (t, x2); y12-yi+y2; x3=x1+x2; y3= finalsystems (t, x3); Compare yz and y12=yl+y2 to verify system linearity. Test signals for Time invariance check t=[-2:0.01:10]; xl=(t>=0&t<1); yl= finalsystems (t, xl); x4=(t>=-1.5&t<-0.5); y4= finalsystems (t, x4); Compare yi & y4 to verify system time invariance