Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Matlab Find all of the intersections of two functions of x: F1(x)-100e. 1 and F2(x)-sin (mx) in the domain 2sxS 10. a) Plot both functions
Matlab
Find all of the intersections of two functions of x: F1(x)-100e. 1 and F2(x)-sin (mx) in the domain 2sxS 10. a) Plot both functions on the same graph. Draw X's where the functions intersect. Print the x values for all of the intersections found. b) Use a for or while loop to automatically find all of the intersections in the given domain (as opposed to estimating them by hand). Before printing your answers, filter out all solutions that are outside of the domain given in the question. The numerical approximation that you're using in this problem (fzero) can cause headaches if you're not careful, so be sure to read the hints below. Hint 1: How do you make an anonymous function that takes one variable (x) and returns zero when the two functions intersect? Hint 2: You need to call fzero a bunch of times with a reasonable set of guesses, enough to make sure that you actually get all of the intersections. Each time you calculate a new intersection, compare it to ALL of the intersections that you have already calculated. If the difference between the new intersection and any of the old ones is very small (
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started