Question: Write a MATLAB function called mb_line.m with the following specifications: Written Requirements: Input values for two points -Remember a line is defined by two points

 Write a MATLAB function called mb_line.m with the following specifications: Written

Write a MATLAB function called mb_line.m with the following specifications: Written Requirements: Input values for two points -Remember a line is defined by two points in 2D space Output values are the slope m and the y intercept b Include help information Include comments to document the code -these comments are not to be displayed with help List code on this page 1. 2. 3. 4. 5. Write a MATLAB script called use_line.m with the following specifications: Ask the user for input points Use the function mb_line.m (created above) to determine the slope and intercept Plot the line in a figure, include grid, title 1. 2. 3. For extra credit (do either a or b or both): Include the slope and y intercept info in the title Plot the points on the figure using a plus sign in a different color than the line a. b

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!