How to solve this error in Matlab

t_dd=12*d(2,1)+2*d(2,1)^2+2*d(2,1)*d(2,1)*s+y(2,1)+4*d(1,1)*d(2,1)*s+y(1,1)^2*exp(d(2,1)*s+y(2,1)^2+2*d(1,1)*s+y(1,1)^2+2*d(2,1)^2+4*d(1,1)^2)*exp(d(2,1)*s+y(2,1)^2)+(2*d(1,1)*s+y(1,1)^2);
I am getting error message regarding this equation.
Can anyone help me with the correctness of this equation and syntax

댓글 수: 1

VBBV
VBBV 2023년 4월 30일
편집: VBBV 2023년 4월 30일
Try by changing ALL y(2,1) & d(2,1) in the equation to y(1,2) & d(1,2). May be you have preallocated dimensions for the matrices d , y in wrong way.
But without knowing what error you get its difficult to say anything further.

답변 (1개)

Walter Roberson
Walter Roberson 2023년 4월 30일

0 개 추천

이 질문은 마감되었습니다.

질문:

2023년 4월 30일

마감:

2023년 5월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by