The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 4 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Given the function N(x) = x^1.2 + x − ln(x) − 2
Â
Find the roots (where N(x) is zero) of N(x) in the domain 0.1 ≤ x ≤ 2.5 using the MATLAB fzero function.
Â
1a) Plot N(x) using fplot to find the estimates of the roots (by looking at the graph).
1b) Store your estimates in a variable in the script file. There should be one estimate for each time the function crosses the 0 axis.
1c) Use a for-loop that calls the fzero function for each estimate and prints the resulting roots to 3 decimal places.
1d) Plot the zero crossings as black x's on the plot from 1a)
Define N(x) using an anonymous function definition, and pass your function using your anonymous function's function handle. Stated another way: do not use single quotes to pass your function. Your solution should only have one file. You should only write the equation once.Â
Don't forget to include comments, labels, and a legend (this problem does not have units).Â
1e) Find the minimum value of N(x) using the same domain. Print both the x value and the N(x) value.Â
-----------