フィルターのクリア

How can I integral this equation and plot? please help me

1 回表示 (過去 30 日間)
jameslk
jameslk 2021 年 6 月 16 日
コメント済み: jameslk 2021 年 6 月 16 日
dy/dt = y*t^2 + 3*y
y(0) = 1
t= 0:2
This is the equation which I want to integral
But when I integrate and plot this how can I get dy/dt. Because dy/dt becomes y when i intergrate it.
  2 件のコメント
John D'Errico
John D'Errico 2021 年 6 月 16 日
You want to plot the derivative?
Surely it would be true, that if you know y(t), and t, then you can compute dy/dt, since you have the expression right there.
jameslk
jameslk 2021 年 6 月 16 日
yes i want to plot that equation after integral
and how can i get integral constant?
I don't have idea to do this with function int or integral

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

回答 (1 件)

Walter Roberson
Walter Roberson 2021 年 6 月 16 日
syms y(t) c
eqn = diff(y) == y*t^2 + 3*y
eqn(t) = 
ic = y(0) == 1
ic = 
sol = dsolve([eqn, ic])
sol = 
fplot(sol, [0 2])

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by