Unrecognized function or variable 'sims'.

I have this code:
sims y(t)
ode = diff(y)+4*y == exp(-t);
cond = y(0) == 1;
ySol (t) = dsolve (oda, cond)
but when I run it, it says "
unrecognized funtion or variable 'sims'
How can i fix it? help plz

回答 (1 件)

Davide Masiello
Davide Masiello 2022 年 2 月 11 日

0 投票

Hi there.
There are a couple of spelling mistakes in your code. The correct version is
sym y(t)
ode = diff(y)+4*y == exp(-t);
cond = y(0) == 1;
ySol (t) = dsolve (ode, cond)

カテゴリ

製品

リリース

R2021b

質問済み:

2022 年 2 月 11 日

回答済み:

2022 年 2 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by