Question: ( 3 0 pts ) Write a script that calls three separate functions to accomplish three tasks: A function get 3 points ( ) to
pts Write a script that calls three separate functions to accomplish three tasks:
A function getpoints to prompt the user for three pairs of coordinates and returns and Y vectors. The coordinates need to be input as two vectors respectively of all Xs and three points are all different.
A function calc to calculate and retum the central point of the three points, xc yc The method to calculate the central point of three different points mathematically is:
A function printit to print the results in the exact format with I decimal place precision:
The central point of is
Note: the solution to this problem involves four code files: one acting as a main script and three for the function. write your code on next page matlab
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
