Plotting parametric curves

There is a new function, called plotParametricCurve, which plots curves defined by a parameter and can be used in the command window:

Inputs and outputs of the function plotParametricCurve

Figure 1. Inputs and outputs of the function plotParametricCurve

An example will help to understand how this function works:

1.    Go to the command window and enter the following vectors:

s = 0 : 0.1 : 10;
x = {cos(t)*exp(-0.1*t) for t in s};
y = {sin(t)*exp(-0.1*t) for t in s};

2.    Call the function as follows:

plotParametricCurve(x, y, s, labelWithS = true);

3.    A plot window will pop with the curve shown in figure. 2. Note that the values of the parameter s are marked from 1 to 10. Actually, if the user scrolls the mouse on the curve, the values for parameter (s), x and y will be shown:

Plot window of a parametric curve

Figure 2. Plot window of a parametric curve

 

CONTACT US

Got a question? Just fill in this form and send it to us and we'll get back to you shortly.

Sending

© Copyright 2010-2023 Claytex Services Ltd All Rights Reserved

Log in with your credentials

Forgot your details?