I am trying to draw the backward and forward points of the slow invariant manifold (SIM) from the equilibrium point using the following code of Intrinsic low dimensional manifold (ILDM), but didn't get all backward points. could anyone identify the mistake.
by using below code i am getting following graph which is not plotting the backward points
i am trying to get following result, but unfortunately there is a mistake in my code.
code:
syms c1 c2 c3 c4 c5 x1 x2
C1=EP(1); C2=EP(2); C3=EP(3); C4=EP(4); C5=EP(5);
w2 = k2p*C4*C2 - k2n*C5*C3;
w2 = k2p*c4*c2 - k2n*c5*c3;
F = subs(F,[c1,c4],[x1,x2]);
J = ILDM1D_jacobian(F,r);
Q = ILDM1D_projection(J);
P = ILDM1D_manifold(Q,F,r);
allForward(forward,:) = P;
J= ILDM1D_jacobian (F,r);
Q= ILDM1D_projection (J);
allBackward(backward,:) = P;
plot (EP (1),EP (2), 'ks');hold on;
plot (allForward(:,1),allForward(:,2),'+k-');
plot (allBackward(:,2),allBackward(:,2),'*k-');
xlabel ('A'); ylabel ('AZ');
legend('Eguilibrium point', 'Forward direction', 'Backword direction')