1 / 7

# MATLAB - PowerPoint PPT Presentation

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

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

## PowerPoint Slideshow about ' MATLAB' - nizana

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

Prvi koraki

• 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

• 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]'

• matA * matB' (zakaj transponiranje?)

• ans

• eye(4)

• zeros(3)

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

• ones(3)

• Pomeni, da se rezultat ne izpiše

• Koristno ob velikih matrikah

• A = ones(100)

• B = ones(100);