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.

Pristup podacima u nizu ćelija<br />

• indeksiranje sadržaja daje pristup podacima<br />

• indeksiranje ćelija se upotrebljava za dodelu niza ćelija drugoj<br />

promenljivoj<br />

• pojedine ćelije se mogu brisati<br />

» x = { [1 1], [2 2], [3 3], [4 4] };<br />

» x(2)<br />

ans = [1x2 double]<br />

» x(1:2)<br />

ans = [1x2 double] [1x2 double]<br />

» x{1:2}<br />

ans = 1 1<br />

ans = 2 2<br />

» x(3)=[]<br />

x = [1x2 double] [1x2 double] [1x2 double]<br />

» x{3}=[]<br />

x = [1x2 double] [1x2 double] []

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

Saved successfully!

Ooh no, something went wrong!