Error:Statement is incomplete

6 ビュー (過去 30 日間)
Jonhoi Clarke
Jonhoi Clarke 2020 年 4 月 14 日
コメント済み: Jonhoi Clarke 2020 年 4 月 14 日
I keep getting the error message above . Can any body help
syms t x1(t) x2(t)
equ1=diff(x1)==3*x1+4*x2
equ2=diff(x2)==3*x1+2*x2+t^2
system=[equ1;equ2]
x0=[x1(0);x2(0)==[2;1]
[x1sol,x2sol]==dsolve(system,x0)
simplify(x1sol)
simplify(x2sol)
  2 件のコメント
Geoff Hayes
Geoff Hayes 2020 年 4 月 14 日
Jonhoi - is the error with this line?
x0=[x1(0);x2(0)==[2;1]
Note how you are missing a ']' around the first array. (I can't comment as to the validity of the code as I don't use the Symbolic Toolbox.)
Jonhoi Clarke
Jonhoi Clarke 2020 年 4 月 14 日
yes, thank you

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

回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by