In: Advanced Math
Answer:-
For trajectories use the MATLAB code
function model1
[T,Y] = ode45(@fun,[0:0.2:2],[4 3]);
plot (T,Y(:,1),'b','linewidth',1.5)
hold on
plot (T,Y(:,2),'r','linewidth',1.5)
legend('x','y')
xlabel('t','fontsize',12)
ylabel('x,y','fontsize',12)
function dy1 = fun(t,u)
dy1 = zeros(2,1);
dy1=[u(1)*(2-0.4*u(1)-0.3*u(2))
u(2)*(1-0.1*u(2)-0.3*u(1))]
For phase portrait use the MATLAB code
function model1
[T,Y] = ode45(@fun,[0:0.2:2],[4 3]);
plot (Y(:,1),Y(:,2),'b','linewidth',1.5)
xlabel('x','fontsize',12)
ylabel('y','fontsize',12)
function dy1 = fun(t,u)
dy1 = zeros(2,1);
dy1=[u(1)*(2-0.4*u(1)-0.3*u(2))
u(2)*(1-0.1*u(2)-0.3*u(1))]
Please like it , if you have any issue mention in comment