How do I plot yy'+2x=3; y(1)=-6 on matlab livescript?

1 回表示 (過去 30 日間)
Lucas Romero
Lucas Romero 2020 年 9 月 11 日
回答済み: BOB MATHEW SYJI 2020 年 9 月 12 日
How do I plot yy'+2x=3; y(1)=-6 on matlab livescript?
  1 件のコメント
John D'Errico
John D'Errico 2020 年 9 月 11 日
Why does this look like homework? What have you tried?

サインインしてコメントする。

回答 (1 件)

BOB MATHEW SYJI
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

カテゴリ

Help Center および File ExchangeGraphics Object Programming についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by