CHALLENGE ACTIVITY 3.1.2: Checking if a vector lies in a plane. 460556.3180782.qx3zqy7 Checking if a vector lies in a plane. samplePlane is a plane in a 3D space that passes through the origin (0, 0, 0). normalVector is a vector that is perpendicular to samplePlane. Assign inPlane with true if testVector lies in samplePlane. Note: If testVector is a vector that lies in samplePlane, then the dot product of testVector and normalVector is 0. Ex: If testVector is [2, 0, -1] and normalVector is [ 0, 1, 0], then inPlane is 1 (true). If testVector is [-1, 0.1, 1] and normalVector is [0, 1, 0], then inPlane is 0 (false). Function > 1 function inPlane 2 3 4 5 6 end = = CheckInPlane( testVector, normalVector ) Code to call your function ? Assessment: % Assign inPlane with 1 (true) if testVector lies in samplePlane, 0 (false) otherwise. inPlane % Provide your code 1 CheckInPlane ([2, 0, -1], [0, 1, 0]) This tool is provided by a third party. Though your activity may be recorded, a page refresh may be needed to fill the banner. Check if CheckInPlane([2, 0, -1], [0, 1, 0]) returns 1 Check if CheckInPlane([-1, 0.1, 1], [0, 1, 0]) returns 0 Check if CheckInPlane([-2, 1, 1], [1, 1, 1]) returns 1 Save C Reset 0/2 MATLAB Documentation C Reset Run Function ? Submit ?

Oh no! Our experts couldn't answer your question.

Don't worry! We won't leave you hanging. Plus, we're giving you back one question for the inconvenience.

Submit your question and receive a step-by-step explanation from our experts in as fast as 30 minutes.
You have no more questions left.
Message from our expert:
Your MATLAB(software) programing based question does not match the subject you selected. Please ask a question in one of the 30+ subjects available. We've credited a question to your account.
Your Question:

This is from zybooks.com's Introduction to Electrical and Computer Engineering 3.1: Vectors

I don't get what they are asking me to do or where to do it.

This is NOT a graded question but an activity.

CHALLENGE
ACTIVITY
3.1.2: Checking if a vector lies in a plane.
460556.3180782.qx3zqy7
Checking if a vector lies in a plane.
samplePlane is a plane in a 3D space that passes through the origin (0, 0, 0). normalVector is a vector that is perpendicular to
samplePlane.
Assign inPlane with true if testVector lies in samplePlane. Note: If testVector is a vector that lies in samplePlane, then the dot product of
testVector and normalVector is 0.
Ex: If testVector is [2, 0, -1] and normalVector is [ 0, 1, 0], then inPlane is 1 (true). If testVector is [-1, 0.1, 1] and normalVector is [0, 1, 0],
then inPlane is 0 (false).
Function >
1 function inPlane
2
3
4
5
6 end
=
=
CheckInPlane( testVector, normalVector )
Code to call your function ?
Assessment:
% Assign inPlane with 1 (true) if testVector lies in samplePlane, 0 (false) otherwise.
inPlane
% Provide your code
1 CheckInPlane ([2, 0, -1], [0, 1, 0])
This tool is provided by a third party. Though your activity may be
recorded, a page refresh may be needed to fill the banner.
Check if CheckInPlane([2, 0, -1], [0, 1, 0]) returns 1
Check if CheckInPlane([-1, 0.1, 1], [0, 1, 0]) returns 0
Check if CheckInPlane([-2, 1, 1], [1, 1, 1]) returns 1
Save C Reset
0/2
MATLAB Documentation
C Reset
Run Function ?
Submit ?
Transcribed Image Text:CHALLENGE ACTIVITY 3.1.2: Checking if a vector lies in a plane. 460556.3180782.qx3zqy7 Checking if a vector lies in a plane. samplePlane is a plane in a 3D space that passes through the origin (0, 0, 0). normalVector is a vector that is perpendicular to samplePlane. Assign inPlane with true if testVector lies in samplePlane. Note: If testVector is a vector that lies in samplePlane, then the dot product of testVector and normalVector is 0. Ex: If testVector is [2, 0, -1] and normalVector is [ 0, 1, 0], then inPlane is 1 (true). If testVector is [-1, 0.1, 1] and normalVector is [0, 1, 0], then inPlane is 0 (false). Function > 1 function inPlane 2 3 4 5 6 end = = CheckInPlane( testVector, normalVector ) Code to call your function ? Assessment: % Assign inPlane with 1 (true) if testVector lies in samplePlane, 0 (false) otherwise. inPlane % Provide your code 1 CheckInPlane ([2, 0, -1], [0, 1, 0]) This tool is provided by a third party. Though your activity may be recorded, a page refresh may be needed to fill the banner. Check if CheckInPlane([2, 0, -1], [0, 1, 0]) returns 1 Check if CheckInPlane([-1, 0.1, 1], [0, 1, 0]) returns 0 Check if CheckInPlane([-2, 1, 1], [1, 1, 1]) returns 1 Save C Reset 0/2 MATLAB Documentation C Reset Run Function ? Submit ?
Knowledge Booster
Basic law of vector algebra
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, electrical-engineering and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Introductory Circuit Analysis (13th Edition)
Introductory Circuit Analysis (13th Edition)
Electrical Engineering
ISBN:
9780133923605
Author:
Robert L. Boylestad
Publisher:
PEARSON
Delmar's Standard Textbook Of Electricity
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:
9781337900348
Author:
Stephen L. Herman
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Electrical Engineering
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education
Fundamentals of Electric Circuits
Fundamentals of Electric Circuits
Electrical Engineering
ISBN:
9780078028229
Author:
Charles K Alexander, Matthew Sadiku
Publisher:
McGraw-Hill Education
Electric Circuits. (11th Edition)
Electric Circuits. (11th Edition)
Electrical Engineering
ISBN:
9780134746968
Author:
James W. Nilsson, Susan Riedel
Publisher:
PEARSON
Engineering Electromagnetics
Engineering Electromagnetics
Electrical Engineering
ISBN:
9780078028151
Author:
Hayt, William H. (william Hart), Jr, BUCK, John A.
Publisher:
Mcgraw-hill Education,