Let's look at a space curve r(t) = i cos(t) + j sin(t) + k t
Load the plots library so we can see what this looks like - we'll use the spacecurve command and then introduce the animate command.
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Next let's animate the curve. First we'll set some standard options to use throughout
![]()
To animate we want to create a number of frames, each one representing what the plot would look like at a time t.
We create the default number (25) and then cycle through the frames so it looks like animation.
So we will use the animate(...) command. First we need to tell animate that we want to use the spacecurve to plot. Next we supply the curve
in the form of a vector - [x(s), y(s), z(s)] where s ranges from our start time up to t. We use this to define each frame.
Next we allow t to vary from our start time to our end time.
After we enter the command we position the cursor over the plot and right click. Select animate and then play. This will make one animition cycle.
If you wish it to run continuously, select animate and then continuous then animate and play. It will run until you turn it off (by selecting animte followed by stop).
![]()
Now look at two curves. The first one is smooth and the second is not (dr/dt = 0 at t = 0).
Here is one whose graph doesn't have a point or cusp. It is not smooth because it dr/dt = 0 at t = 0. Run the amination and watch the plot as t approaches 0.