Return true or false depending on whether 2 vectors are parallel or not. Vectors can be 2 or 3 dimensional. The origin is not considered to be a vector in this problem. Vectors are row vectors.
So: p1=[0 0 0] p2=[1 2 3] output = false
p1=[1 1]; p2=[4 4] output =true
MATLAB and Simulink resources for Arduino, LEGO, and Raspberry PiLearn more
Opportunities for recent engineering grads.Apply Today
New to MATLAB?Learn MATLAB today!
Play games and win prizes!Learn more