Skip to content

Instantly share code, notes, and snippets.

@AALEKH
Created July 30, 2020 16:21
Show Gist options
  • Save AALEKH/a14e68f919704cc29a9d30efd924cb4d to your computer and use it in GitHub Desktop.
Save AALEKH/a14e68f919704cc29a9d30efd924cb4d to your computer and use it in GitHub Desktop.
octave:12> a = [1 2;3 4]
a =
1 2
3 4
octave:13> a(:,1)
ans =
1
3
octave:14> a(:,2)
ans =
2
4
octave:15> a(1,:)
ans =
1 2
octave:16> a(1,2)
ans = 2
octave:17> a(2,:)
ans =
3 4
octave:18>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment