Skip to content

Instantly share code, notes, and snippets.

@AALEKH
Created August 19, 2020 19:35
Show Gist options
  • Select an option

  • Save AALEKH/7b55fb8513f2916dda65857716bf13aa to your computer and use it in GitHub Desktop.

Select an option

Save AALEKH/7b55fb8513f2916dda65857716bf13aa to your computer and use it in GitHub Desktop.

Revisions

  1. AALEKH created this gist Aug 19, 2020.
    29 changes: 29 additions & 0 deletions remember.m
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    >>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

    >>