p06 myfirst.ox
来自「时间序列分析中著名的OxMetrics软件包」· OX 代码 · 共 15 行
OX
15 行
#include <oxstd.h> // include the Ox standard library header
main() // function main is the starting point
{
decl m1, m2; // declare two variables, m1 and m2
m1 = unit(3); // assign to m1 a 3 x 3 identity matrix
m1[0][0] = 2; // set top-left element to 2
m2 = <0,0,0;1,1,1>;//m2 is a 2 x 3 matrix, the first row
// consists of zeros, the second of ones
print("two matrices", m1, m2); // print the matrices
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?