Question: 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



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 >>isPerpendicular(a, b, c) 1sPerpendicular logical Example 2 >> a= [ 1, 2, 0; 0,0,0]; b= [0,1,0; >> isPerpendicular(a, b, c) isPerpendicular - 0,0,0]; c= [0,2,-1; 0,0,0]; logical Example3 >> a= [1,0,0; 0,0,0]; >>isPerpendicular (a, isPerpendicular = b= [0,1,0; b, c) 0,0,01; c= [0,0,-1; 0,0,0]; Logica 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 >>isPerpendicular(a, b, c) 1sPerpendicular logical Example 2 >> a= [ 1, 2, 0; 0,0,0]; b= [0,1,0; >> isPerpendicular(a, b, c) isPerpendicular - 0,0,0]; c= [0,2,-1; 0,0,0]; logical Example3 >> a= [1,0,0; 0,0,0]; >>isPerpendicular (a, isPerpendicular = b= [0,1,0; b, c) 0,0,01; c= [0,0,-1; 0,0,0]; Logica
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
