Formula for the exact solution u1(u) and u2(t)?
Show older comments
I want to examine the system u´(t)=Au(t) for matrix A=[12 15; -10 -13] and startvalue u0=[3; -2]
I plotted the system with code:
A=[12 15;-10 -13];
u1=linspace(-3,2,20);u2=linspace(-3,2,20);
[U1,U2]=meshgrid(u1,u2);
F1=A(1,1)*U1+A(1,2)*U2;
F2=A(2,1)*U1+A(2,2)*U2;
quiver(U1,U2,F1,F2,1.5)
axis([-3 5 -3 3]), hold on
f=@(t,u)A*u;
u0=[3;-2];
[t,U]=ode45(f,[0 5],u0);
plot(U(:,1),U(:,2),'r','LineWidth',2)
but how do I find the formula for the exact solution u1(u) and u2(t)?
Accepted Answer
More Answers (0)
Categories
Find more on Symbolic Math Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!