Skip to content

Instantly share code, notes, and snippets.

@SimonDanisch
Created March 16, 2015 10:50
Show Gist options
  • Save SimonDanisch/c48e5e5bbe50f4da047f to your computer and use it in GitHub Desktop.
Save SimonDanisch/c48e5e5bbe50f4da047f to your computer and use it in GitHub Desktop.
#taken from http://www.tutorialspoint.com/matlab/matlab_matrix_concatenation.htm
a = [ 10 12 23 ; 14 8 6; 27 8 9]
10 12 23
14 8 6
27 8 9
b = [ 12 31 45 ; 8 0 -9; 45 2 11]
12 31 45
8 0 -9
45 2 11
c = [a, b]
10 12 23 12 31 45
14 8 6 8 0 -9
27 8 9 45 2 11
d = [a; b]
10 12 23
14 8 6
27 8 9
12 31 45
8 0 -9
45 2 11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment