Created
August 19, 2020 19:35
-
-
Save AALEKH/7b55fb8513f2916dda65857716bf13aa to your computer and use it in GitHub Desktop.
Remember Octave
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
>>A = [1 2; 3 5] | |
A = | |
1 2 | |
3 5 | |
>>sum(A, 1) | |
ans = | |
4 7 | |
>>sum(A, 2) | |
ans = | |
3 | |
8 | |
>>A(1,:) | |
ans = | |
1 2 | |
>>A(:,1) | |
ans = | |
1 | |
3 | |
>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment