So i'm trying to solve this differential equation with dsolve but i'm getting stuck before I can even give my equation. Does anyone know what these errors mean?

2 Comments

Show us the full code. Error is clear, you need to define the variables using syms.
All the variables were input as syms and A was input as: syms A(t)

Sign in to comment.

 Accepted Answer

Walter Roberson
Walter Roberson on 11 Mar 2022
I predict that A0 or B0 are symbolic, so kaccent(A0+B0) is an attempt to index an array using a symbolic variable.

3 Comments

yes both A0 and B0 are in fact symbolic.
Is there any way to prevent this error?
Kind regards
Yanni
And what did you intent
kaccent(A0+B0)
to mean ?
Should it mean
kaccent*(A0+B0)
??
Ah I see I did indeed mean kaccent*(A0+B0)
Thank you

Sign in to comment.

More Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Products

Release

R2021a

Community Treasure Hunt

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

Start Hunting!