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

조회 수: 5 (최근 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 CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by