plot numerical solutions to the the initial value problem
6 次查看(过去 30 天)
显示 更早的评论
On a single graph, plot numerical solutions to the the initial value problem on the interval [0,10]. Use values of b that are less than -1, equal to -1, between -1 and 1 and above 1. Use a domain of [0,6].
equation: y' = (y - sqrt(t)) * (1 - y^2) y(0)=b.
Attempted code:
syms y(t)
figure; hold on
for b = -2:1:2
fb = dsolve('Dy = (y - sqrt(t)) * (1 - y^2)', y(0) == b) ;
ezplot(fb, [0, 10, 0, 6])
end
I am confused on how you get it to plot those values for b and be on an interval of 0,10 with a domain of 0,6.
2 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!