悬赏 1 个论坛币 未解决
目前在看mata手册,非常不理解pointer的含义。求高手指点。pointer的意思是不是类似一个替换变量?或者可不可以理解成一个分块矩阵的代表,即将一个大矩阵的部分放入不同的pointer中啊?疑惑中。。。其中,手册当中举了一个例子Setting pointers equal to the value of expressions can be useful. In the following code fragment, we create n 5 x 5 matrices for later use:
pvec = J(1, n, NULL)
for (i=1; i<=n; i++) pvec =&(J(5, 5, .))
但是我运行不出来 : pvec = J(1, n, NULL) <istmt>: 3499 n not foundr(3499);
: for (i=1; i<=n; i++) pvec =&(J(5, 5, .)) <istmt>: 3499 n not foundr(3499);
: end
求解为什么?拜谢!!