How do I plot yy'+2x=3; y(1)=-6 on matlab livescript?
1 次查看(过去 30 天)
显示 更早的评论
How do I plot yy'+2x=3; y(1)=-6 on matlab livescript?
回答(1 个)
BOB MATHEW SYJI
2020-9-12
I got the plot for the given differential equation with the given initial condition using this function "diff_eqn1"
function sol= diff_eqn1()
syms y(x)
ode = y*diff(y)+2*x==3;
cond=y(1)==-6;
ySol(x)=dsolve(ode,cond);
ezplot(ySol(x))
end
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Object Programming 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!