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 Comment

VBBV
VBBV on 30 Apr 2023
Edited: VBBV on 30 Apr 2023
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.

This question is closed.

Asked:

on 30 Apr 2023

Closed:

on 1 May 2023

Community Treasure Hunt

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

Start Hunting!