I am getting a syntax error with +
Show older comments
I need to calculate the value of y for a hw problem using an element by element operation but the first + is giving me a syntax error and I have no idea what I did wrong. (sorry for the abundance of parenthesis, this is the only way I could figure it out). Where I have the first (t.+1) the + is giving me an error
t=[0,1,2,3,4,5,6,7,8];
y=((20.*t.^(2/3))/(t.+1))-(((t.+1)^2)/(e^((.3.*t)+5)))+(2/(t.+1))
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!