specific solution in a vector field of a equation system
3 views (last 30 days)
Show older comments
Alvaro Mª Zumalacarregui Delgado on 3 Mar 2021
Answered: Nagasai Bharat on 11 Mar 2021
I create a vector field of a equation system, also I want to represent the spefic solution of the system in that field but I think that I do it wrong.
this is the system:
N = 20;
x = linspace(x1,x2,N);
y = linspace(y1,y2,N);
U1 = P - a.*Y;
V1 = Q - b.*X;
yh = (P/a)./100;
xh1 = -10;
xh2 = 40;
yv1 = -10;
yv2 = 40;
xv = (Q/b)./100;
hold (app.Axes2, 'on')
s = Q.*x-(b.*x.^2)/2-P.*y+(a.*y.^2)/2;
and the axes:
I think that the code is correct but it doesn't have any sense the axes for me, someone could help me?
Nagasai Bharat on 11 Mar 2021
From my understanding you are manually trying to solve the equation. The following documentation should help you solve the system of differential equations in an efficient way.
Find more on Vector Fields 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!