Both of these methods first convert the matrix to a list, then use min() and max() to find the most
extreme element.
[3.21] Convert matrices to single-row or single-column vectors
It is occasionally necessary to convert a matrix to a row- or column-vector. To convert a matrix to a
column vector, use this:
mat2cvec(m)
Func
©([m]) convert matrix to column vector
©2april0
1
list
▶
mat(mat
▶
list(m),
1
)
EndFunc
Or, to convert a matrix to a row vector, use this:
mat2rvec(m)
Func
©([m]) convert matrix to row vector
©2april0
1
list
▶
mat(mat
▶
list(m),
1
)
EndFunc
mat2cvec() converts a matrix to a row vector by first converting the matrix to a list, then converting that
list to a matrix with one element in each row. mat2rvec() changes a matrix to a row vector in the same
way, except that the column vector is transposed to make it a row vector. For example, if the input
matrix is
m
=
a b c
d e f
g h i
then mat2rvec(m) returns [a b c d e f g h i], and mat2cvec(m) returns
a
b
c
d
e
f
g
h
i
3 - 20
Summary of Contents for TI-92+
Page 52: ...Component side of PCB GraphLink I O connector detail 1 41...
Page 53: ...LCD connector detail PCB switch side 1 42...
Page 54: ...Key pad sheet contact side Key pad sheet key side 1 43...
Page 55: ...Key cap detail 1 44...
Page 57: ...Component side of PCB with shield removed A detail view of the intergrated circuits 1 46...
Page 410: ...void extensionroutine2 void Credit to Bhuvanesh Bhatt 10 4...