 Join - Maple Help

# Online Help

###### All Products    Maple    MapleSim

Statistics

 Join
 join data samples Calling Sequence Join(X, options) Parameters

 X - list of data sets options - (optional) equation(s) of the form outputoptions=value; specify options for the Join function Description

 • The Join command joins the specified data into a single one- or two-dimensional data sample.
 • The first parameter X is the list of samples; each element of this list must be an rtable (such as a Matrix or Vector) or a list. Multi-dimensional data sets will generally be converted to one-dimensional. The exception is when each data set is two-dimensional and they all have equally many columns; in that case, all data sets are put underneath each other in a Matrix. Options

 The options argument can contain one or more of the options shown be low.
 • outputoptions=list -- This option provides additional rtable_options to the rtable constructor that builds the result. The supported options are datatype, attributes, and readonly; the subtype option is supported if it does not conflict with the dimension of the result. Examples

 > $\mathrm{with}\left(\mathrm{Statistics}\right):$
 > $A≔\mathrm{Array}\left(\left[1,2,3,4,5\right]\right)$
 $\left[\begin{array}{rrrrr}1& 2& 3& 4& 5\end{array}\right]$ (1)
 > $B≔\mathrm{Array}\left(\left[\mathrm{sin}\left(1\right),\mathrm{sin}\left(2\right),\mathrm{sin}\left(3\right)\right]\right)$
 $\left[\begin{array}{ccc}\mathrm{sin}{}\left(1\right)& \mathrm{sin}{}\left(2\right)& \mathrm{sin}{}\left(3\right)\end{array}\right]$ (2)
 > $C≔⟨⟨x,y,z⟩|⟨t,u,v⟩⟩$
 $\left[\begin{array}{cc}x& t\\ y& u\\ z& v\end{array}\right]$ (3)
 > $\mathrm{interface}\left(\mathrm{rtablesize}=15\right):$
 > $\mathrm{Join}\left(\left[A,B,C\right],\mathrm{outputoptions}=\left[\mathrm{subtype}=\mathrm{Vector}\left[\mathrm{column}\right]\right]\right)$
 $\left[\begin{array}{c}1\\ 2\\ 3\\ 4\\ 5\\ \mathrm{sin}{}\left(1\right)\\ \mathrm{sin}{}\left(2\right)\\ \mathrm{sin}{}\left(3\right)\\ x\\ y\\ z\\ t\\ u\\ v\end{array}\right]$ (4)
 > $U≔\left[\left[1,2\right],\left[2,3\right]\right]$
 ${U}{≔}\left[\left[{1}{,}{2}\right]{,}\left[{2}{,}{3}\right]\right]$ (5)
 > $V≔\mathrm{Matrix}\left(3,2,\left(i,j\right)↦i+j+1\right)$
 $\left[\begin{array}{rr}3& 4\\ 4& 5\\ 5& 6\end{array}\right]$ (6)
 > $\mathrm{Join}\left(\left[U,V\right],\mathrm{outputoptions}=\left[\mathrm{readonly},\mathrm{datatype}=\mathrm{float}\right]\right)$
 $\left[\begin{array}{cc}1.0& 2.0\\ 2.0& 3.0\\ 3.0& 4.0\\ 4.0& 5.0\\ 5.0& 6.0\end{array}\right]$ (7)
 > Compatibility

 • The X parameter was updated in Maple 16.

 See Also