Command Reference : Function Reference : Function Reference: R
  
 
@rowextract
Extract rowvector from matrix object.
Syntax: @rowextract(m, n)
m: matrix, sym
n: integer
Return: vector
Extract a vector from row n of the matrix object m, where m is a matrix object.
Note that we recommend that extraction be performed using the newer “.row” object data member functions. See “Matrix Data Members” and “Sym Data Members” and the examples below.
Examples
matrix m1 = @mnrnd(20, 5)
vector v1 = @rowextract(m1,3)
extracts row 3 from the matrix M1.
sym s1 = @unvech(@mnrnd(15))
vector v2 = @rowextract(s1, 5)
Alternately, using the data member functions, we have
vector v1a = m1.@row(3)
vector v1b = s1.@row(5)
Cross-references
See “Matrix Data Members” and “Sym Data Members”.
See also @columnextract and @subextract.