September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
25
Task/Array-concatenation/Stata/array-concatenation-2.stata
Normal file
25
Task/Array-concatenation/Stata/array-concatenation-2.stata
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
. mata
|
||||
: a=2,9,4\7,5,3\6,1,8
|
||||
|
||||
: b=I(3)
|
||||
|
||||
: a,b
|
||||
1 2 3 4 5 6
|
||||
+-------------------------+
|
||||
1 | 2 9 4 1 0 0 |
|
||||
2 | 7 5 3 0 1 0 |
|
||||
3 | 6 1 8 0 0 1 |
|
||||
+-------------------------+
|
||||
|
||||
: a\b
|
||||
1 2 3
|
||||
+-------------+
|
||||
1 | 2 9 4 |
|
||||
2 | 7 5 3 |
|
||||
3 | 6 1 8 |
|
||||
4 | 1 0 0 |
|
||||
5 | 0 1 0 |
|
||||
6 | 0 0 1 |
|
||||
+-------------+
|
||||
|
||||
: end
|
||||
Loading…
Add table
Add a link
Reference in a new issue