Created
July 30, 2020 16:21
-
-
Save AALEKH/a14e68f919704cc29a9d30efd924cb4d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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