Alex Rivera | Logout

How to draw vectors (physical 2D/3D vectors) in MATLAB?

Asked 2009-12-26T00:43:02.490
21

I want to know the simplest way to plot vectors in MATLAB. For example:

a = [2 3 5];
b = [1 1 0];
c = a + b;

I want to visualize this vector addition as head-to-tail/parallelogram method. How do I plot these vectors with an arrow-head?

Edit
Report

1 Answer

6

I found this arrow(start, end) function on MATLAB Central which is perfect for this purpose of drawing vectors with true magnitude and direction.

answered 2009-12-27T16:16:10.343

Your Answer