Question: can you help me fix this error? im trying to plot the solution of a system of differential equations (not plotting the general solution) this

 can you help me fix this error? im trying to plot
can you help me fix this error? im trying to plot the solution of a system of differential equations (not plotting the general solution)
the solution of a system of differential equations (not plotting the general
this is my full code
solution) this is my full code i also have the ode defined
i also have the ode defined in a separate function file like this.

e2 = evec (:,2); yi = x; 9 e1 y2 2*x; % e2 7 - x = -5:5; 8 9 figure(4) - plot(x, y1); % eigenvector 1 31 hold on 12 plot(x,y2); % eigenvector 2 43 44 % Solve the system and plot 45 dxdt = @(t,x) [4*X(1)-X(2); 2*X(1) +X(2)]; 46 (t, x) = ode45 (dxdt, tspan,x); 47 plot(t, x) 48 hold on 49 50 51 -

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!