Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Matlab question pls help. I dont know what to do. Please give me step by step instructions. One frequent use of a plotting feature is
Matlab question pls help. I dont know what to do. Please give me step by step instructions.
One frequent use of a plotting feature is to easily identify trends, relationships, and points of interest that might otherwise get lost in a large set of data or be difficult to achieve through calculation. This homework is an exercise in such a case. You will be using MATLAB to visually approximate the points of intersection of three different equations, where the equations are given as: y_1 = e^(- 4/3 x) - 3 y_2 = x^2 + 0.5x + 3 y_3 = 0.25x^3 - 2x^2 + 15 1. Create a function in MATLAB. This function will hold all of your code for this assignment with the exception of the input. It will have one input, the values for x, and no outputs. This is because we aren't interested in the sets of values that will be generated; we only care about the figure in this problem. Name the function LastNameFirstNameHW2_2. 2. For the input, x, create a vector of values going from -5 to 5 with a step-size of 0.1. This should be in the command window and not in your function. Leave a comment inside your function stating what you used as the input. 3. Inside the function, code for each of the equations above to compute the y_1, y_2 and y_3. Do not forget to use the appropriate operators in your calculations. 4. After these calculations, create an overlay plot (with proper title, axis lapels, and legend) that will show all three equations. Use the following line specifications to make them distinct: a. Equation 1 should be a solid red line b. Equation 2 should be a dashed green line c. Equation 3 should be a dash-dot black line 5. Use the figure to visually approximate the intersections. Leave these values in a comment in your function file. 6. In an Excel Sheet, named Part 1, use the approximate values of x and compute the y values at each intersection using the appropriate y EquationsStep 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