• R语言
  • 请教:在R中,如何输入一个同时带有上标和下标的矩阵

在R中,如何输入一个带有上标和下标的矩阵呢?

回复 第1楼 的 ieieya:你是说带上下标的矩阵符号么?

<br />
plot(1,type="n")<br />
text(1,1,expression(x[a]^b),cex=5)<br />


另外也可以用tikzDevice包,支持latex语法。
</p>

就像下面那个附件那样的矩阵,我不懂怎么输入,因为在矩阵分解的算法中都是用这种形式,所以,想知道是怎么输入的.

In most iterative algorithms, only the current resutls and maybe the last results need to be stored. So, there is rarely any use to store every thing. However, if you indeed need that, multi-dimensional arrays are a convenient choice. E.g.,

(A=array(1:16, dim=c(2,2,4)))
</p>