Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribedimage text in transcribedmatlab

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions

Question

How do Dimensional Database Models differ from Relational Models?

Answered: 1 week ago

Question

What type of processing do Relational Databases support?

Answered: 1 week ago

Question

Describe several aggregation operators.

Answered: 1 week ago