Matlab
Download
1 / 7

MATLAB - PowerPoint PPT Presentation


  • 91 Views
  • Uploaded on

MATLAB. Prvi koraki. Matrike - vnos. Osnovni element Vnos: [ … ] Običajno jih shranimo v spremenljivko matA = [1 2 23; 3 5 6; 6 12 3; 3 4 1] matA je matrika dimenzije 4 x 3 Vrstice med sabo ločimo s ; Elemente v vrstici lahko ločimo tudi z vejico

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'MATLAB' - nizana


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Matlab

MATLAB

Prvi koraki


Matrike vnos
Matrike - vnos

  • Osnovni element

  • Vnos:

    • [ … ]

    • Običajno jih shranimo v spremenljivko

  • matA = [1 2 23; 3 5 6; 6 12 3; 3 4 1]

    • matA je matrika dimenzije 4 x 3

  • Vrstice med sabo ločimo s ;

  • Elemente v vrstici lahko ločimo tudi z vejico

    • matB = [1, 2, 23; 3, 5, 6; 6, 12, 3; 3, 4, 1]

  • Po vnosu se "rezultat" izpiše



Ra unanje
Računanje

  • Seštevanje, odštevanje, množenje

    • matA + matB, matC – matA

    • rez1 = matA + matB

  • Transponiranje

    • '

    • matA'

    • [1, 2; 10, 15]'

    • Vektor stolpec

    • [1, 12, 23, 4, 5]'


Mno enje
Množenje

  • matA * matB' (zakaj transponiranje?)

  • ans


Posebne matrike
Posebne matrike

  • eye(4)

  • zeros(3)

  • diag([12, 3, 4, 78])

  • ones(3)


Na koncu ukaza
; na koncu ukaza

  • Pomeni, da se rezultat ne izpiše

  • Koristno ob velikih matrikah

  • A = ones(100)

  • B = ones(100);


ad