Plot a Vector
In this section you will practice and apply what you have learned using the vector simulations, plotting a simple vector and understanding its properties.
Below is a graph of an example vector that you will plot. Ask yourself these questions: What direction is it pointing? How can I calculate the magnitude of this vector? What are the vector's components? How can I plot the unit vector facing the same direction as this vector?
If you would like to see the full code for plotting the vector, click the Display Code button below:
Here is a code editor so that you can input your start and end points for the vector you will plot.
This is how the start and end inputs should look like:
start = [0, 0]
end = [1, 2]
plotvector is what creates a plot based on the start and end inputs.
Go Back to Vector Exercises Page