Question: ( 3 0 pts ) Write a script that calls three separate functions to accomplish three tasks: A function get 3 points ( ) to

(30pts) Write a script that calls three separate functions to accomplish three tasks:
A function get3points() to prompt the user for three pairs of coordinates and returns x 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(x,Y) 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:
(13**(x1+x2+x3),13**(y1+y2+y3))
A function printit ) to print the results in the exact format with I decimal place precision:
The central point of (x1,y1)(x2,y2)(x3,y3) is (xc,yc.
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
( 3 0 pts ) Write a script that calls three

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 Programming Questions!