1. Engineering
  2. Computer Science
  3. answer properly and fully...

Question: answer properly and fully...

Question details

3. Define in Matlab a function f which computes the value f(a) 10 sin(x) +2+ cos(a). Make sure to define using it using the dotted versions of the operations, so that you can apply the result to vectors. (a) Construct a vector t of values from -6 to 6 with a step of 0.1. (b) Construct the vector of values y. (e) Plot the function on the given interval using the vectors above. (d) Plot in the same window the function g(a) 0. To do that, you can just define an anonymous function which outputs 0, or just graph the segment with endpoints (-6,0) and (6,0) (e) Note that the graph crosses the z-axis four times. This means that the equation (x) -O has four solutions in that interval. Use the fzero function to find all of these roots. For the second parameter of fzero, input a number which is close to the root that you want to find. Use the plot to guess a first approximation. (0) Verify the roots found by applying the function and see if you get 0, or a very close approximation. Answer properly and fully
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution