Question: matlab Is vector perpendicular to plane? A function is needed to determine if a given 3D vector is perpendicular to a plane. The plane is

matlab Is vector perpendicular to plane? A function is needed to determineif a given 3D vector is perpendicular to a plane. The planeis described by two vectors. Each vectors is described by a 2matlab

Is vector perpendicular to plane? A function is needed to determine if a given 3D vector is perpendicular to a plane. The plane is described by two vectors. Each vectors is described by a 2 x 3 matrix [x1,y1,z1; x2, y2, z2] that contains the coordinates of the starting point (x1,y1,z1] and end points [x2, y2, z2). Write a logical function isPerpendicular with three inputs: the two vectors defining the plane and the third vector that needs to be tested for being perpendicular to a plane. Example 1: >> a= [1,1,0; 1,2,3]; b=[2,1,3; -1,0,2); c=[3,-8,4; 1,1,1]; >>isPerpendicular(a, b, c) is Perpendicular = logical Example 2: >> a= [1,2,0; 0,0,0]; b=[0,1,0; 0,0,0]; c=[0,2,-1; 0,0,0]; >> isPerpendicular(a, b, c) isPerpendicular = logical 0

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!