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

KSSV
KSSV 2022년 3월 11일
Show us the full code. Error is clear, you need to define the variables using syms.
Yanni Van Der Voort
Yanni Van Der Voort 2022년 3월 11일
편집: Yanni Van Der Voort 2022년 3월 11일
All the variables were input as syms and A was input as: syms A(t)

댓글을 달려면 로그인하십시오.

 채택된 답변

Walter Roberson
Walter Roberson 2022년 3월 11일

0 개 추천

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

댓글 수: 3

Yanni Van Der Voort
Yanni Van Der Voort 2022년 3월 11일
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)
??
Yanni Van Der Voort
Yanni Van Der Voort 2022년 3월 11일
Ah I see I did indeed mean kaccent*(A0+B0)
Thank you

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Programming에 대해 자세히 알아보기

제품

릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by