1. Math
  2. Advanced Math
  3. problem 1 scorelator learning goal use the matlab builtin fzero...

Question: problem 1 scorelator learning goal use the matlab builtin fzero...

Question details

Problem 1 (Scorelator). Learning goal: Use the MATLAB built-in fzero root-finding command. Before we implement our own root-finding method, lets try one of MATLABs built-in root-finding method, fzero, to find the zeros of the function, f(x) = xe. 5. This is a transcendental equation that cannot be solved for in terms of elementary functions. Use a function handle to define this function as follows, f = @(x) x.*exp (x) -5; Now MATLAB will recognize f as a function just like it recognizes cos or exp; for example, you can type f (5) to evaluatef(5 Use the fzero command to find the roots of f(x). To do this you will need to use f and to supply an initial guess. Use an initial guess of ro 1 and save the root to file as A1.dat.

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution