How to solve these equations using quad and trapz?

1 view (last 30 days)
How to solve these equations? I'm like an ant running on a hot pot...
------
write a function m-file to evaluate this function
h(x)=1/((x-0.1)^2+0.03)+1/((x-0.9)^2+0.07)-8

Answers (1)

Walter Roberson
Walter Roberson on 8 Jan 2016
Change all of the / to ./ and all of the ^ to .^ and otherwise create a function http://www.mathworks.com/help/matlab/ref/function.html

Community Treasure Hunt

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

Start Hunting!