Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Array-concatenation/RLaB/array-concatenation.rlab
Normal file
13
Task/Array-concatenation/RLaB/array-concatenation.rlab
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
>> x = [1, 2, 3]
|
||||
>> y = [4, 5, 6]
|
||||
// appending matrix 'y' on the right from matrix 'x' is possible if the two matrices have
|
||||
// the same number of rows:
|
||||
>> z1 = [x, y]
|
||||
matrix columns 1 thru 6
|
||||
1 2 3 4 5 6
|
||||
// stacking matrix 'y' below the matrix 'x' is possible if the two matrices have
|
||||
// the same number of columns:
|
||||
>> z2 = [x; y]
|
||||
1 2 3
|
||||
4 5 6
|
||||
>>
|
||||
Loading…
Add table
Add a link
Reference in a new issue