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

Thread Subject:
Find vector perpendicular to axis A and through point B

Subject: Find vector perpendicular to axis A and through point B

From: Els

Date: 5 Jun, 2010 14:11:05

Message: 1 of 3

I have an axis A, with normalized directional vector d=[ 0.0994 0.2237 0.9696] and positional vector O=[1 1 1]. Now I have a point in space R1= [0.0905 -3.7694 2.1939]. How do I calculate the vector which is perpendicular to the Axis and through R1 with Matlab?

Subject: Find vector perpendicular to axis A and through point B

From: Wayne King

Date: 5 Jun, 2010 14:29:06

Message: 2 of 3

"Els " <y.e.t.reeuwijk@student.utwente.nl> wrote in message <hudltp$6ai$1@fred.mathworks.com>...
> I have an axis A, with normalized directional vector d=[ 0.0994 0.2237 0.9696] and positional vector O=[1 1 1]. Now I have a point in space R1= [0.0905 -3.7694 2.1939]. How do I calculate the vector which is perpendicular to the Axis and through R1 with Matlab?

Hi, I'm not sure about your terminology "positional vector", but see

>>doc cross

to see how to compute the cross product of two vectors in 3-space.

Wayne

Subject: Find vector perpendicular to axis A and through point B

From: Els

Date: 5 Jun, 2010 15:00:21

Message: 3 of 3

Wayne, the directional vector is the slope of the axis. And the axis/line starts at the positional vector. The difficulty is that I do not know on which point of the axis/line the angle with point R1 is 90 degrees and thus perpendicular. Or can this be calculated with cross as well?

Best wishes,

Els

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us