I'm trying to create a mathematical expression which contains some nonlinear terms like delays, interfaces etc., using symbolic math toolbox. An example of my code is as follows.
syms I1 I2 I3 I4 I5
terms = [I1.^2 I2-4 I1*I3-4 I4-8 I5]
theta = [1 2 1 1 5]'
Y = terms*theta
Here the term ''I3-4'' indicates the input I3 with a time delay of 4 seconds(I3(t-4)).I'm having the following issue
- When I multiply terms and theta, it is giving me output as
Y = I1^2+2*(I2-4)+I1*(I3-4)+(I4-8)+5*I5
I understood that matlab is using BODMAS rule, but is there any correct way to create delay terms using Symbolic Math Toolbox. Can some one help me regarding this issue?