📄 matrix_subscripting.hlp
字号:
{smcl}
{* 05apr2005}{...}
{cmd:help matrix subscripting}
{hline}
{title:Title}
{pstd}
{hi:[P] matrix define} {hline 2} Matrix subscripting
{title:Syntax}
{p 8 14 2}
{cmdab:mat:rix} {it:A} {cmd:=} {it:...} {it:B}{cmd:[}{it:r}{cmd:,}{it:c}{cmd:]} {it:...}
{pstd}
where {it:r} and {it:c} are numeric or string scalar expressions.
{title:Description}
{pstd}
Subscripting with numeric expressions may be used in any expression context
(such as {helpb generate}, {helpb replace}, etc.) Subscripting by row/column
name may only be used in a matrix context. (This latter is not a constraint;
see the {cmd:rownumb()} and {cmd:colnumb()} matrix functions returning scalar
in {hi:[P] matrix define} and {help matrix functions}; they may be used
in any expression context.)
{title:Examples}
{phang}{cmd:. matrix A = A/A[1,1]}{p_end}
{phang}{cmd:. matrix B = A["weight","displ"]}{p_end}
{phang}{cmd:. matrix D = G[1,"eq1:l1.gnp"]}
{title:Also see}
{psee}
Manual: {bf:[U] 14 Matrix expressions},{break}
{bf:[P] matrix define}
{psee}
Online: {helpb matrix};
{help matrix extraction},
{help matrix substitution}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -