如何画一个方向for this equation?
1 view (last 30 days)
Show older comments
I am trying to plot directional field for these differential eq.s
a) y’= 0.1y-sin(y)
b) y’ = y^2-3*y+1
c) y’ = -y(y-2)(y-4)/10
I was trying to write it like this, but then I am not sure how to give x.
[x, y] = meshgrid(-2:0.2:3, -1:0.2:2);
s = 1 - x.*y.^2;
% for slope function
% f = 1 - x y^2
quiver(x,y, ones(size(s)),s), axistight
2 Comments
Accepted Answer
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!