24.02.2013 Views

A1 Matlab

A1 Matlab

A1 Matlab

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Raĉunanje nad višedimenzionim nizovima<br />

• funkcije koje rade nad vektorima,<br />

npr. sum, mean, ...<br />

– obiĉno rade po prvoj nejjediniĉnoj<br />

dimenziji niza<br />

• funkcije koje rade elemenat po<br />

elemenat, npr. sin, ...<br />

• funkcije koje rade sa matricama<br />

– ne prihvataju višedimenzione<br />

nizove kao argumente<br />

» ndims(A)<br />

ans =<br />

4<br />

» eig(A)<br />

??? Error using ==> eig<br />

Input arguments must be 2-D.<br />

» eig(A(:,:,1,1))<br />

ans =<br />

6.4897<br />

-3.6978<br />

-1.7919

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!