Question: Could you please show the final result of the code from matlab On blackboard is the data file tri_points. mat. This file contains one variable,

 Could you please show the final result of the code from

Could you please show the final result of the code from matlab

On blackboard is the data file tri_points. mat. This file contains one variable, tri_points a 10001 cell array. Each cell in tri_points contains a 16 array consisting of three two dimensional points, ordered in x,y coordinate pairs: [x1y1x2y2x3y3]. (a) Have your script file load the data. (b) Three points (x1,y1),(x2,y2),(x3,y3) are on the same line (collinear) if the following is true: x1(y2y3)+x2(y3y1)+x3(y1y2)=0 Write a function with one input and two outputs. The input should be a 10006 array where each row is a three coordinate triplet: [x1y1x2y2x3y3]. The first output should be a 11000 array that is the evaluation of the collinear condition above. The second output should be the number of non-collinear three point triplets. Evaluate your function using the data provided in tri_points. (c) Plot the first three non-collinear point triplets from tri_points on the same axis

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 Chemical Engineering Questions!