Data Points Given in Two Vectors - Maple Help

Home : Support : Online Help : Tasks : Plots : Data Points Given in Two Vectors

Plot a Set of Data Points Given by Two Vectors

 Description Plot a set of data points defined by two vectors.

Enter the first vector of data points.

 > $\mathrm{V1}≔⟨{1.1}{,}{1.9}{,}{2.2}{,}{2.4}{,}{2.5}{,}{3.2}{,}{4.0}⟩$
 ${\mathrm{V1}}{:=}\left[\begin{array}{c}{1.1}\\ {1.9}\\ {2.2}\\ {2.4}\\ {2.5}\\ {3.2}\\ {4.0}\end{array}\right]$ (1)

Enter the second vector of data points.

 > $\mathrm{V2}≔⟨{0}{,}{0.1}{,}{0.2}{,}{-}{0.3}{,}{-}{0.2}{,}{0.5}{,}{0.7}⟩$
 ${\mathrm{V2}}{:=}\left[\begin{array}{c}{0}\\ {0.1}\\ {0.2}\\ {-}{0.3}\\ {-}{0.2}\\ {0.5}\\ {0.7}\end{array}\right]$ (2)

Plot the data points.

 > $\mathrm{plot}([\mathrm{seq}(\left[\mathrm{V1}{\left[i\right],\mathrm{V2}\left[i\right]}_{}\right],i=1..\mathrm{LinearAlgebra}\left[\mathrm{Dimension}\right]\left(\mathrm{V1}\right))])$
 Commands Used