Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 0Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started