Problem 2387. Are you in XY plane?

Take a point P as an input position Vector (x,y,z). If you are in XY plane, return 1 as an output otherwise return 0.


1.x=[3 4 5] y=0

2.x=[3 4 0] y=1

Solution Stats

83.15% Correct | 16.85% Incorrect
Last solution submitted on Oct 12, 2016


Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Join the 15-year community celebration.

Play games and win prizes!

Learn more