VPA error Index exceeds number of array elements
조회 수: 1 (최근 30일)
이전 댓글 표시
my VPA solve was working fine and then after running twice, I suddenly have an "Index exceeds number of array elements (1)"
This is what I am running, and its extremely simple. I dont know why it would stop working after functioning prior.
syms t
P(t)= 30/(3+7*exp((-.03*t)))
P(1960)
vpa(P(1960))
댓글 수: 0
답변 (1개)
the cyclist
2021년 9월 15일
I'm confused, because the code you posted runs fine:
syms t
P(t)= 30/(3+7*exp((-.03*t)))
P(1960)
vpa(P(1960))
Is it possible that somewhere in between you defined P as a variable, and then tried to access?
P = 7;
vpa(P(1960))
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!