Question: Run the Matlab code presented and add to generate all the plots. Attach a screenshot of all the plots in your posts. Problem: If g

Run the Matlab code presented and add to generate all the plots.
Attach a screenshot of all the plots in your posts.
Problem:
If g(x)=x^(2)-4x+4 write out and simplify
(a) g(z)
(b) g(u+v)
(c) g(e^(jt))
(d) g(g(t))
(e) g(2)
MATLAB CODE:
syms z u v t j
% Part (a)
g_z = z^2-4*z +4;
disp('g(z):');
disp(g_z);
% Part (b)
g_uv =(u + v)^2-4*(u + v)+4;
g_uv_simplified = simplify(g_uv);
disp('g(u + v):');
disp(g_uv_simplified);
% Part (c)
g_ejt = exp(j*t)^2-4*exp(j*t)+4;
g_ejt_simplified = simplify(g_ejt);
disp('g(e^{jt}):');
disp(g_ejt_simplified);
% Part (d)
g_t = t^2-4*t +4;
g_g_t = subs(g_t, t, g_t);
g_g_t_simplified = simplify(g_g_t);
disp('g(g(t)):');
disp(g_g_t_simplified);
% Part (e)
g_2=2^2-4*2+4;
disp('g(2):');
disp(g_2);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!