plot the output c(t) using mathlab and show setting time on you graphf
syms t tau;
A = [0 2; -2 -5];
B = [0; 1];
C = [2 1];
x0 = [1; 2];
Phi_t = expm(A*t);
x_h = Phi_t * x0;
u_tau = 1; % Unit step function
x_p = int(Phi_t * B, tau, 0, t);
x_t = x_h + x_p;
y_t = C * x_t;
disp(‘State-transition matrix Phi(t):’);
disp(Phi_t);
fplot(Phi_t(1,1))
disp(‘Homogeneous solution x_h(t):’);
disp(x_h);
fplot(x_h)
disp(‘Particular solution x_p(t):’);
disp(x_p);
disp(‘Full state vector x(t):’);
disp(x_t);
disp(‘Output y(t):’);
disp(y_t);syms t tau;
A = [0 2; -2 -5];
B = [0; 1];
C = [2 1];
x0 = [1; 2];
Phi_t = expm(A*t);
x_h = Phi_t * x0;
u_tau = 1; % Unit step function
x_p = int(Phi_t * B, tau, 0, t);
x_t = x_h + x_p;
y_t = C * x_t;
disp(‘State-transition matrix Phi(t):’);
disp(Phi_t);
fplot(Phi_t(1,1))
disp(‘Homogeneous solution x_h(t):’);
disp(x_h);
fplot(x_h)
disp(‘Particular solution x_p(t):’);
disp(x_p);
disp(‘Full state vector x(t):’);
disp(x_t);
disp(‘Output y(t):’);
disp(y_t); syms t tau;
A = [0 2; -2 -5];
B = [0; 1];
C = [2 1];
x0 = [1; 2];
Phi_t = expm(A*t);
x_h = Phi_t * x0;
u_tau = 1; % Unit step function
x_p = int(Phi_t * B, tau, 0, t);
x_t = x_h + x_p;
y_t = C * x_t;
disp(‘State-transition matrix Phi(t):’);
disp(Phi_t);
fplot(Phi_t(1,1))
disp(‘Homogeneous solution x_h(t):’);
disp(x_h);
fplot(x_h)
disp(‘Particular solution x_p(t):’);
disp(x_p);
disp(‘Full state vector x(t):’);
disp(x_t);
disp(‘Output y(t):’);
disp(y_t); first order system MATLAB Answers — New Questions