Question: Problem. 1 nonymous Functions To make an anonymous function in Matlab, use the following syntax. Suppose that we want to create a fumction f(x)-(3r2 -e*/V.

 Problem. 1 nonymous Functions To make an anonymous function in Matlab,

Problem. 1 nonymous Functions To make an anonymous function in Matlab, use the following syntax. Suppose that we want to create a fumction f(x)-(3r2 -e*/V. Suppose also that we want to find the closest root to x = 0.5. This can be accomplished with the Matlab commands (in blue), generating the Matlab responses (in black) >> fc e (x) (3*x."2 exp (-2*x)) ./sqrt (x) = - fc = e (x) (3*x. 2-exp (-2*x)) /sqrt (x) You can then find the closest root using the fzero.m command: (type " help fzero "in the Matlab prompt for further infos) >> fzero (fc,0.5) 0.3906 For this problem, we want to find the root off(x) for 0.5-x 10 where f0 _07 (a) Using the example given above, Define a MATLAB anonymous function for f(x) and determine that the root of f(x) s x,-1 .4191 in the interval for 0.5-X-10. We will call xr = 1.4191 the true value hereafter. Name your Matlab code myfzero.m b) Write a Matlab program to find the same root using instead the bracketing method Name your Matlab code "BracketMethod.m". Assume for initial values xL-0.5 and Xu=10. Stop the iterations when the PERCENTAGE approximate error Ea is smaller than 0.01. (i.e Ea

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!