Today I formatted your code, next time, use the {}Code button. See here for a GIF showing how to do it.
Info
This question is closed. Reopen it to edit or answer.
This is amy code it is not working why?
1 view (last 30 days)
Show older comments
x=[1 4 5 7.5 14 21 23 32]
v=x.^(2) * exp.(x) + x * (( x + log(x)).^(1/2))
1 Comment
Answers (2)
madhan ravi
on 13 Sep 2018
Edited: madhan ravi
on 13 Sep 2018
x=[1 4 5 7.5 14 21 23 32]
v=x.^(2).*exp(x)+x.*((x+log(x)).^(1/2))
v=vpa(v)
3 Comments
madhan ravi
on 13 Sep 2018
Edited: madhan ravi
on 13 Sep 2018
Exactly as Rik Wisselink mentioned element wise operation should be used since your x is a vector
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!